diff options
Diffstat (limited to 'lang/python21/files/patch-Lib:plat-freebsd7:FCNTL.py')
-rw-r--r-- | lang/python21/files/patch-Lib:plat-freebsd7:FCNTL.py | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/lang/python21/files/patch-Lib:plat-freebsd7:FCNTL.py b/lang/python21/files/patch-Lib:plat-freebsd7:FCNTL.py new file mode 100644 index 000000000000..95bb905198e2 --- /dev/null +++ b/lang/python21/files/patch-Lib:plat-freebsd7:FCNTL.py @@ -0,0 +1,153 @@ +--- Lib/plat-freebsd7/FCNTL.py.orig Thu Jul 28 16:23:59 2005 ++++ Lib/plat-freebsd7/FCNTL.py Thu Jul 28 16:25:53 2005 +@@ -0,0 +1,150 @@ ++# Generated by h2py from /usr/include/fcntl.h ++ ++# Included from sys/cdefs.h ++__GNUCLIKE_ASM = 3 ++__GNUCLIKE_ASM = 2 ++__GNUCLIKE___TYPEOF = 1 ++__GNUCLIKE___OFFSETOF = 1 ++__GNUCLIKE___SECTION = 1 ++__GNUCLIKE_ATTRIBUTE_MODE_DI = 1 ++__GNUCLIKE_CTOR_SECTION_HANDLING = 1 ++__GNUCLIKE_BUILTIN_CONSTANT_P = 1 ++__GNUCLIKE_BUILTIN_VARARGS = 1 ++__GNUCLIKE_BUILTIN_VAALIST = 1 ++__GNUC_VA_LIST_COMPATIBILITY = 1 ++__GNUCLIKE_BUILTIN_STDARG = 1 ++__GNUCLIKE_BUILTIN_NEXT_ARG = 1 ++__GNUCLIKE_BUILTIN_MEMCPY = 1 ++__CC_SUPPORTS_INLINE = 1 ++__CC_SUPPORTS___INLINE = 1 ++__CC_SUPPORTS___INLINE__ = 1 ++__CC_SUPPORTS___FUNC__ = 1 ++__CC_SUPPORTS_WARNING = 1 ++__CC_SUPPORTS_VARADIC_XXX = 1 ++__CC_SUPPORTS_DYNAMIC_ARRAY_INIT = 1 ++__CC_INT_IS_32BIT = 1 ++def __P(protos): return protos ++ ++def __STRING(x): return #x ++ ++def __XSTRING(x): return __STRING(x) ++ ++def __P(protos): return () ++ ++def __STRING(x): return "x" ++ ++def __aligned(x): return __attribute__((__aligned__(x))) ++ ++def __section(x): return __attribute__((__section__(x))) ++ ++def __aligned(x): return __attribute__((__aligned__(x))) ++ ++def __section(x): return __attribute__((__section__(x))) ++ ++def __nonnull(x): return __attribute__((__nonnull__(x))) ++ ++def __predict_true(exp): return __builtin_expect((exp), 1) ++ ++def __predict_false(exp): return __builtin_expect((exp), 0) ++ ++def __predict_true(exp): return (exp) ++ ++def __predict_false(exp): return (exp) ++ ++def __FBSDID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) ++ ++def __RCSID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) ++ ++def __RCSID_SOURCE(s): return __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s) ++ ++def __SCCSID(s): return __IDSTRING(__CONCAT(__sccsid_,__LINE__),s) ++ ++def __COPYRIGHT(s): return __IDSTRING(__CONCAT(__copyright_,__LINE__),s) ++ ++_POSIX_C_SOURCE = 199009 ++_POSIX_C_SOURCE = 199209 ++__XSI_VISIBLE = 600 ++_POSIX_C_SOURCE = 200112 ++__XSI_VISIBLE = 500 ++_POSIX_C_SOURCE = 199506 ++_POSIX_C_SOURCE = 198808 ++__POSIX_VISIBLE = 200112 ++__ISO_C_VISIBLE = 1999 ++__POSIX_VISIBLE = 199506 ++__ISO_C_VISIBLE = 1990 ++__POSIX_VISIBLE = 199309 ++__ISO_C_VISIBLE = 1990 ++__POSIX_VISIBLE = 199209 ++__ISO_C_VISIBLE = 1990 ++__POSIX_VISIBLE = 199009 ++__ISO_C_VISIBLE = 1990 ++__POSIX_VISIBLE = 198808 ++__ISO_C_VISIBLE = 0 ++__POSIX_VISIBLE = 0 ++__XSI_VISIBLE = 0 ++__BSD_VISIBLE = 0 ++__ISO_C_VISIBLE = 1990 ++__POSIX_VISIBLE = 0 ++__XSI_VISIBLE = 0 ++__BSD_VISIBLE = 0 ++__ISO_C_VISIBLE = 1999 ++__POSIX_VISIBLE = 200112 ++__XSI_VISIBLE = 600 ++__BSD_VISIBLE = 1 ++__ISO_C_VISIBLE = 1999 ++ ++# Included from sys/_types.h ++ ++# Included from machine/_types.h ++O_RDONLY = 0x0000 ++O_WRONLY = 0x0001 ++O_RDWR = 0x0002 ++O_ACCMODE = 0x0003 ++FREAD = 0x0001 ++FWRITE = 0x0002 ++O_NONBLOCK = 0x0004 ++O_APPEND = 0x0008 ++O_SHLOCK = 0x0010 ++O_EXLOCK = 0x0020 ++O_ASYNC = 0x0040 ++O_FSYNC = 0x0080 ++O_SYNC = 0x0080 ++O_NOFOLLOW = 0x0100 ++O_CREAT = 0x0200 ++O_TRUNC = 0x0400 ++O_EXCL = 0x0800 ++FHASLOCK = 0x4000 ++O_NOCTTY = 0x8000 ++O_DIRECT = 0x00010000 ++def FFLAGS(oflags): return ((oflags) + 1) ++ ++def OFLAGS(fflags): return ((fflags) - 1) ++ ++FAPPEND = O_APPEND ++FASYNC = O_ASYNC ++FFSYNC = O_FSYNC ++FNONBLOCK = O_NONBLOCK ++FNDELAY = O_NONBLOCK ++O_NDELAY = O_NONBLOCK ++FPOSIXSHM = O_NOFOLLOW ++F_DUPFD = 0 ++F_GETFD = 1 ++F_SETFD = 2 ++F_GETFL = 3 ++F_SETFL = 4 ++F_GETOWN = 5 ++F_SETOWN = 6 ++F_GETLK = 7 ++F_SETLK = 8 ++F_SETLKW = 9 ++FD_CLOEXEC = 1 ++F_RDLCK = 1 ++F_UNLCK = 2 ++F_WRLCK = 3 ++F_WAIT = 0x010 ++F_FLOCK = 0x020 ++F_POSIX = 0x040 ++LOCK_SH = 0x01 ++LOCK_EX = 0x02 ++LOCK_NB = 0x04 ++LOCK_UN = 0x08 |