Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
613f7c40
Kaydet (Commit)
613f7c40
authored
24 years ago
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Donn Cave <donn@oz.net>:
Generated files for BeOS R5.
üst
a2fda0df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
997 additions
and
0 deletions
+997
-0
FCNTL.py
Lib/plat-beos5/FCNTL.py
+125
-0
IN.py
Lib/plat-beos5/IN.py
+328
-0
SOCKET.py
Lib/plat-beos5/SOCKET.py
+325
-0
TERMIOS.py
Lib/plat-beos5/TERMIOS.py
+219
-0
No files found.
Lib/plat-beos5/FCNTL.py
0 → 100644
Dosyayı görüntüle @
613f7c40
# Generated by h2py from /boot/develop/headers/posix/fcntl.h
# Included from be_setup.h
def
__std
(
ref
):
return
ref
__be_os
=
2
__dest_os
=
__be_os
__MSL__
=
0x4011
__GLIBC__
=
-
2
__GLIBC_MINOR__
=
1
# Included from BeBuild.h
B_BEOS_VERSION_4
=
0x0400
B_BEOS_VERSION_4_5
=
0x0450
B_BEOS_VERSION_5
=
0x0500
B_BEOS_VERSION
=
B_BEOS_VERSION_5
B_BEOS_VERSION_MAUI
=
B_BEOS_VERSION_5
_PR2_COMPATIBLE_
=
1
_PR3_COMPATIBLE_
=
1
_R4_COMPATIBLE_
=
1
_R4_5_COMPATIBLE_
=
1
_PR2_COMPATIBLE_
=
0
_PR3_COMPATIBLE_
=
0
_R4_COMPATIBLE_
=
1
_R4_5_COMPATIBLE_
=
1
def
_UNUSED
(
x
):
return
x
# Included from sys/types.h
# Included from time.h
# Included from null.h
NULL
=
(
0
)
NULL
=
0L
# Included from size_t.h
# Included from stddef.h
# Included from wchar_t.h
CLOCKS_PER_SEC
=
1000
CLK_TCK
=
CLOCKS_PER_SEC
MAX_TIMESTR
=
70
# Included from sys/stat.h
S_ATTR_DIR
=
01000000000
S_ATTR
=
02000000000
S_INDEX_DIR
=
04000000000
S_STR_INDEX
=
00100000000
S_INT_INDEX
=
00200000000
S_UINT_INDEX
=
00400000000
S_LONG_LONG_INDEX
=
00010000000
S_ULONG_LONG_INDEX
=
00020000000
S_FLOAT_INDEX
=
00040000000
S_DOUBLE_INDEX
=
00001000000
S_ALLOW_DUPS
=
00002000000
S_IFMT
=
00000170000
S_IFLNK
=
00000120000
S_IFREG
=
00000100000
S_IFBLK
=
00000060000
S_IFDIR
=
00000040000
S_IFCHR
=
00000020000
S_IFIFO
=
00000010000
def
S_ISREG
(
m
):
return
(((
m
)
&
S_IFMT
)
==
S_IFREG
)
def
S_ISLNK
(
m
):
return
(((
m
)
&
S_IFMT
)
==
S_IFLNK
)
def
S_ISBLK
(
m
):
return
(((
m
)
&
S_IFMT
)
==
S_IFBLK
)
def
S_ISDIR
(
m
):
return
(((
m
)
&
S_IFMT
)
==
S_IFDIR
)
def
S_ISCHR
(
m
):
return
(((
m
)
&
S_IFMT
)
==
S_IFCHR
)
def
S_ISFIFO
(
m
):
return
(((
m
)
&
S_IFMT
)
==
S_IFIFO
)
def
S_ISINDEX
(
m
):
return
(((
m
)
&
S_INDEX_DIR
)
==
S_INDEX_DIR
)
S_IUMSK
=
07777
S_ISUID
=
04000
S_ISGID
=
02000
S_ISVTX
=
01000
S_IRWXU
=
00700
S_IRUSR
=
00400
S_IWUSR
=
00200
S_IXUSR
=
00100
S_IRWXG
=
00070
S_IRGRP
=
00040
S_IWGRP
=
00020
S_IXGRP
=
00010
S_IRWXO
=
00007
S_IROTH
=
00004
S_IWOTH
=
00002
S_IXOTH
=
00001
F_DUPFD
=
0x0001
F_GETFD
=
0x0002
F_SETFD
=
0x0004
F_GETFL
=
0x0008
F_SETFL
=
0x0010
F_GETLK
=
0x0020
F_RDLCK
=
0x0040
F_SETLK
=
0x0080
F_SETLKW
=
0x0100
F_UNLCK
=
0x0200
F_WRLCK
=
0x0400
FD_CLOEXEC
=
1
FD_CLOEXEC
=
0x0800
O_RDONLY
=
0
O_WRONLY
=
1
O_RDWR
=
2
O_RWMASK
=
3
O_CLOEXEC
=
0x0040
O_NONBLOCK
=
0x0080
O_EXCL
=
0x0100
O_CREAT
=
0x0200
O_TRUNC
=
0x0400
O_APPEND
=
0x0800
O_NOCTTY
=
0x1000
O_NOTRAVERSE
=
0x2000
O_ACCMODE
=
0x0003
O_TEXT
=
0x4000
O_BINARY
=
0x8000
S_IREAD
=
0x0100
S_IWRITE
=
0x0080
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Lib/plat-beos5/IN.py
0 → 100644
Dosyayı görüntüle @
613f7c40
# Generated by h2py from /boot/develop/headers/be/net/netinet/in.h
# Included from socket.h
# Included from BeBuild.h
B_BEOS_VERSION_4
=
0x0400
B_BEOS_VERSION_4_5
=
0x0450
B_BEOS_VERSION_5
=
0x0500
B_BEOS_VERSION
=
B_BEOS_VERSION_5
B_BEOS_VERSION_MAUI
=
B_BEOS_VERSION_5
_PR2_COMPATIBLE_
=
1
_PR3_COMPATIBLE_
=
1
_R4_COMPATIBLE_
=
1
_R4_5_COMPATIBLE_
=
1
_PR2_COMPATIBLE_
=
0
_PR3_COMPATIBLE_
=
0
_R4_COMPATIBLE_
=
1
_R4_5_COMPATIBLE_
=
1
def
_UNUSED
(
x
):
return
x
# Included from sys/types.h
# Included from time.h
# Included from be_setup.h
def
__std
(
ref
):
return
ref
__be_os
=
2
__dest_os
=
__be_os
__MSL__
=
0x4011
__GLIBC__
=
-
2
__GLIBC_MINOR__
=
1
# Included from null.h
NULL
=
(
0
)
NULL
=
0L
# Included from size_t.h
# Included from stddef.h
# Included from wchar_t.h
CLOCKS_PER_SEC
=
1000
CLK_TCK
=
CLOCKS_PER_SEC
MAX_TIMESTR
=
70
# Included from sys/time.h
# Included from ByteOrder.h
# Included from endian.h
__LITTLE_ENDIAN
=
1234
LITTLE_ENDIAN
=
__LITTLE_ENDIAN
__BYTE_ORDER
=
__LITTLE_ENDIAN
BYTE_ORDER
=
__BYTE_ORDER
__BIG_ENDIAN
=
0
BIG_ENDIAN
=
0
__BIG_ENDIAN
=
4321
BIG_ENDIAN
=
__BIG_ENDIAN
__BYTE_ORDER
=
__BIG_ENDIAN
BYTE_ORDER
=
__BYTE_ORDER
__LITTLE_ENDIAN
=
0
LITTLE_ENDIAN
=
0
__PDP_ENDIAN
=
3412
PDP_ENDIAN
=
__PDP_ENDIAN
# Included from SupportDefs.h
# Included from Errors.h
# Included from limits.h
# Included from float.h
FLT_ROUNDS
=
1
FLT_RADIX
=
2
FLT_MANT_DIG
=
24
FLT_DIG
=
6
FLT_MIN_EXP
=
(
-
125
)
FLT_MIN_10_EXP
=
(
-
37
)
FLT_MAX_EXP
=
128
FLT_MAX_10_EXP
=
38
DBL_MANT_DIG
=
53
DBL_DIG
=
15
DBL_MIN_EXP
=
(
-
1021
)
DBL_MIN_10_EXP
=
(
-
308
)
DBL_MAX_EXP
=
1024
DBL_MAX_10_EXP
=
308
LDBL_MANT_DIG
=
DBL_MANT_DIG
LDBL_DIG
=
DBL_DIG
LDBL_MIN_EXP
=
DBL_MIN_EXP
LDBL_MIN_10_EXP
=
DBL_MIN_10_EXP
LDBL_MAX_EXP
=
DBL_MAX_EXP
LDBL_MAX_10_EXP
=
DBL_MAX_10_EXP
CHAR_BIT
=
(
8
)
SCHAR_MIN
=
(
-
127
-
1
)
SCHAR_MAX
=
(
127
)
CHAR_MIN
=
SCHAR_MIN
CHAR_MAX
=
SCHAR_MAX
MB_LEN_MAX
=
(
1
)
SHRT_MIN
=
(
-
32767
-
1
)
SHRT_MAX
=
(
32767
)
LONG_MIN
=
(
-
2147483647L
-
1
)
LONG_MAX
=
(
2147483647L
)
INT_MIN
=
LONG_MIN
INT_MAX
=
LONG_MAX
ARG_MAX
=
(
32768
)
ATEXIT_MAX
=
(
32
)
CHILD_MAX
=
(
1024
)
IOV_MAX
=
(
256
)
FILESIZEBITS
=
(
64
)
LINK_MAX
=
(
1
)
LOGIN_NAME_MAX
=
(
32
)
MAX_CANON
=
(
255
)
MAX_INPUT
=
(
255
)
NAME_MAX
=
(
256
)
NGROUPS_MAX
=
(
32
)
OPEN_MAX
=
(
128
)
PATH_MAX
=
(
1024
)
PIPE_MAX
=
(
512
)
SSIZE_MAX
=
(
2147483647L
)
TTY_NAME_MAX
=
(
256
)
TZNAME_MAX
=
(
32
)
SYMLINKS_MAX
=
(
16
)
_POSIX_ARG_MAX
=
(
32768
)
_POSIX_CHILD_MAX
=
(
1024
)
_POSIX_LINK_MAX
=
(
1
)
_POSIX_LOGIN_NAME_MAX
=
(
9
)
_POSIX_MAX_CANON
=
(
255
)
_POSIX_MAX_INPUT
=
(
255
)
_POSIX_NAME_MAX
=
(
255
)
_POSIX_NGROUPS_MAX
=
(
0
)
_POSIX_OPEN_MAX
=
(
128
)
_POSIX_PATH_MAX
=
(
1024
)
_POSIX_PIPE_BUF
=
(
512
)
_POSIX_SSIZE_MAX
=
(
2147483647L
)
_POSIX_STREAM_MAX
=
(
8
)
_POSIX_TTY_NAME_MAX
=
(
256
)
_POSIX_TZNAME_MAX
=
(
3
)
B_GENERAL_ERROR_BASE
=
LONG_MIN
B_OS_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x1000
B_APP_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x2000
B_INTERFACE_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x3000
B_MEDIA_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x4000
B_TRANSLATION_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x4800
B_MIDI_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x5000
B_STORAGE_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x6000
B_POSIX_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x7000
B_MAIL_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x8000
B_PRINT_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x9000
B_DEVICE_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0xa000
B_ERRORS_END
=
(
B_GENERAL_ERROR_BASE
+
0xffff
)
E2BIG
=
(
B_POSIX_ERROR_BASE
+
1
)
ECHILD
=
(
B_POSIX_ERROR_BASE
+
2
)
EDEADLK
=
(
B_POSIX_ERROR_BASE
+
3
)
EFBIG
=
(
B_POSIX_ERROR_BASE
+
4
)
EMLINK
=
(
B_POSIX_ERROR_BASE
+
5
)
ENFILE
=
(
B_POSIX_ERROR_BASE
+
6
)
ENODEV
=
(
B_POSIX_ERROR_BASE
+
7
)
ENOLCK
=
(
B_POSIX_ERROR_BASE
+
8
)
ENOSYS
=
(
B_POSIX_ERROR_BASE
+
9
)
ENOTTY
=
(
B_POSIX_ERROR_BASE
+
10
)
ENXIO
=
(
B_POSIX_ERROR_BASE
+
11
)
ESPIPE
=
(
B_POSIX_ERROR_BASE
+
12
)
ESRCH
=
(
B_POSIX_ERROR_BASE
+
13
)
EFPOS
=
(
B_POSIX_ERROR_BASE
+
14
)
ESIGPARM
=
(
B_POSIX_ERROR_BASE
+
15
)
EDOM
=
(
B_POSIX_ERROR_BASE
+
16
)
ERANGE
=
(
B_POSIX_ERROR_BASE
+
17
)
EPROTOTYPE
=
(
B_POSIX_ERROR_BASE
+
18
)
EPROTONOSUPPORT
=
(
B_POSIX_ERROR_BASE
+
19
)
EPFNOSUPPORT
=
(
B_POSIX_ERROR_BASE
+
20
)
EAFNOSUPPORT
=
(
B_POSIX_ERROR_BASE
+
21
)
EADDRINUSE
=
(
B_POSIX_ERROR_BASE
+
22
)
EADDRNOTAVAIL
=
(
B_POSIX_ERROR_BASE
+
23
)
ENETDOWN
=
(
B_POSIX_ERROR_BASE
+
24
)
ENETUNREACH
=
(
B_POSIX_ERROR_BASE
+
25
)
ENETRESET
=
(
B_POSIX_ERROR_BASE
+
26
)
ECONNABORTED
=
(
B_POSIX_ERROR_BASE
+
27
)
ECONNRESET
=
(
B_POSIX_ERROR_BASE
+
28
)
EISCONN
=
(
B_POSIX_ERROR_BASE
+
29
)
ENOTCONN
=
(
B_POSIX_ERROR_BASE
+
30
)
ESHUTDOWN
=
(
B_POSIX_ERROR_BASE
+
31
)
ECONNREFUSED
=
(
B_POSIX_ERROR_BASE
+
32
)
EHOSTUNREACH
=
(
B_POSIX_ERROR_BASE
+
33
)
ENOPROTOOPT
=
(
B_POSIX_ERROR_BASE
+
34
)
ENOBUFS
=
(
B_POSIX_ERROR_BASE
+
35
)
EINPROGRESS
=
(
B_POSIX_ERROR_BASE
+
36
)
EALREADY
=
(
B_POSIX_ERROR_BASE
+
37
)
EILSEQ
=
(
B_POSIX_ERROR_BASE
+
38
)
ENOMSG
=
(
B_POSIX_ERROR_BASE
+
39
)
ESTALE
=
(
B_POSIX_ERROR_BASE
+
40
)
EOVERFLOW
=
(
B_POSIX_ERROR_BASE
+
41
)
EMSGSIZE
=
(
B_POSIX_ERROR_BASE
+
42
)
EOPNOTSUPP
=
(
B_POSIX_ERROR_BASE
+
43
)
ENOTSOCK
=
(
B_POSIX_ERROR_BASE
+
44
)
false
=
0
true
=
1
NULL
=
(
0
)
FALSE
=
0
TRUE
=
1
# Included from TypeConstants.h
B_HOST_IS_LENDIAN
=
1
B_HOST_IS_BENDIAN
=
0
def
B_HOST_TO_LENDIAN_DOUBLE
(
arg
):
return
(
double
)(
arg
)
def
B_HOST_TO_LENDIAN_FLOAT
(
arg
):
return
(
float
)(
arg
)
def
B_HOST_TO_LENDIAN_INT64
(
arg
):
return
(
uint64
)(
arg
)
def
B_HOST_TO_LENDIAN_INT32
(
arg
):
return
(
uint32
)(
arg
)
def
B_HOST_TO_LENDIAN_INT16
(
arg
):
return
(
uint16
)(
arg
)
def
B_HOST_TO_BENDIAN_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_HOST_TO_BENDIAN_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_HOST_TO_BENDIAN_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_HOST_TO_BENDIAN_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_HOST_TO_BENDIAN_INT16
(
arg
):
return
__swap_int16
(
arg
)
def
B_LENDIAN_TO_HOST_DOUBLE
(
arg
):
return
(
double
)(
arg
)
def
B_LENDIAN_TO_HOST_FLOAT
(
arg
):
return
(
float
)(
arg
)
def
B_LENDIAN_TO_HOST_INT64
(
arg
):
return
(
uint64
)(
arg
)
def
B_LENDIAN_TO_HOST_INT32
(
arg
):
return
(
uint32
)(
arg
)
def
B_LENDIAN_TO_HOST_INT16
(
arg
):
return
(
uint16
)(
arg
)
def
B_BENDIAN_TO_HOST_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_BENDIAN_TO_HOST_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_BENDIAN_TO_HOST_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_BENDIAN_TO_HOST_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_BENDIAN_TO_HOST_INT16
(
arg
):
return
__swap_int16
(
arg
)
B_HOST_IS_LENDIAN
=
0
B_HOST_IS_BENDIAN
=
1
def
B_HOST_TO_LENDIAN_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_HOST_TO_LENDIAN_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_HOST_TO_LENDIAN_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_HOST_TO_LENDIAN_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_HOST_TO_LENDIAN_INT16
(
arg
):
return
__swap_int16
(
arg
)
def
B_HOST_TO_BENDIAN_DOUBLE
(
arg
):
return
(
double
)(
arg
)
def
B_HOST_TO_BENDIAN_FLOAT
(
arg
):
return
(
float
)(
arg
)
def
B_HOST_TO_BENDIAN_INT64
(
arg
):
return
(
uint64
)(
arg
)
def
B_HOST_TO_BENDIAN_INT32
(
arg
):
return
(
uint32
)(
arg
)
def
B_HOST_TO_BENDIAN_INT16
(
arg
):
return
(
uint16
)(
arg
)
def
B_LENDIAN_TO_HOST_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_LENDIAN_TO_HOST_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_LENDIAN_TO_HOST_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_LENDIAN_TO_HOST_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_LENDIAN_TO_HOST_INT16
(
arg
):
return
__swap_int16
(
arg
)
def
B_BENDIAN_TO_HOST_DOUBLE
(
arg
):
return
(
double
)(
arg
)
def
B_BENDIAN_TO_HOST_FLOAT
(
arg
):
return
(
float
)(
arg
)
def
B_BENDIAN_TO_HOST_INT64
(
arg
):
return
(
uint64
)(
arg
)
def
B_BENDIAN_TO_HOST_INT32
(
arg
):
return
(
uint32
)(
arg
)
def
B_BENDIAN_TO_HOST_INT16
(
arg
):
return
(
uint16
)(
arg
)
def
B_SWAP_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_SWAP_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_SWAP_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_SWAP_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_SWAP_INT16
(
arg
):
return
__swap_int16
(
arg
)
def
htonl
(
x
):
return
B_HOST_TO_BENDIAN_INT32
(
x
)
def
ntohl
(
x
):
return
B_BENDIAN_TO_HOST_INT32
(
x
)
def
htons
(
x
):
return
B_HOST_TO_BENDIAN_INT16
(
x
)
def
ntohs
(
x
):
return
B_BENDIAN_TO_HOST_INT16
(
x
)
AF_INET
=
1
INADDR_ANY
=
0x00000000
INADDR_BROADCAST
=
0xffffffff
INADDR_LOOPBACK
=
0x7f000001
SOL_SOCKET
=
1
SO_DEBUG
=
1
SO_REUSEADDR
=
2
SO_NONBLOCK
=
3
SO_REUSEPORT
=
4
MSG_OOB
=
0x1
SOCK_DGRAM
=
1
SOCK_STREAM
=
2
IPPROTO_UDP
=
1
IPPROTO_TCP
=
2
IPPROTO_ICMP
=
3
B_UDP_MAX_SIZE
=
(
65536
-
1024
)
FD_SETSIZE
=
256
FDSETSIZE
=
FD_SETSIZE
NFDBITS
=
32
def
_FDMSKNO
(
fd
):
return
((
fd
)
/
NFDBITS
)
def
_FDBITNO
(
fd
):
return
((
fd
)
%
NFDBITS
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Lib/plat-beos5/SOCKET.py
0 → 100644
Dosyayı görüntüle @
613f7c40
# Generated by h2py from /boot/develop/headers/be/net/socket.h
# Included from BeBuild.h
B_BEOS_VERSION_4
=
0x0400
B_BEOS_VERSION_4_5
=
0x0450
B_BEOS_VERSION_5
=
0x0500
B_BEOS_VERSION
=
B_BEOS_VERSION_5
B_BEOS_VERSION_MAUI
=
B_BEOS_VERSION_5
_PR2_COMPATIBLE_
=
1
_PR3_COMPATIBLE_
=
1
_R4_COMPATIBLE_
=
1
_R4_5_COMPATIBLE_
=
1
_PR2_COMPATIBLE_
=
0
_PR3_COMPATIBLE_
=
0
_R4_COMPATIBLE_
=
1
_R4_5_COMPATIBLE_
=
1
def
_UNUSED
(
x
):
return
x
# Included from sys/types.h
# Included from time.h
# Included from be_setup.h
def
__std
(
ref
):
return
ref
__be_os
=
2
__dest_os
=
__be_os
__MSL__
=
0x4011
__GLIBC__
=
-
2
__GLIBC_MINOR__
=
1
# Included from null.h
NULL
=
(
0
)
NULL
=
0L
# Included from size_t.h
# Included from stddef.h
# Included from wchar_t.h
CLOCKS_PER_SEC
=
1000
CLK_TCK
=
CLOCKS_PER_SEC
MAX_TIMESTR
=
70
# Included from sys/time.h
# Included from ByteOrder.h
# Included from endian.h
__LITTLE_ENDIAN
=
1234
LITTLE_ENDIAN
=
__LITTLE_ENDIAN
__BYTE_ORDER
=
__LITTLE_ENDIAN
BYTE_ORDER
=
__BYTE_ORDER
__BIG_ENDIAN
=
0
BIG_ENDIAN
=
0
__BIG_ENDIAN
=
4321
BIG_ENDIAN
=
__BIG_ENDIAN
__BYTE_ORDER
=
__BIG_ENDIAN
BYTE_ORDER
=
__BYTE_ORDER
__LITTLE_ENDIAN
=
0
LITTLE_ENDIAN
=
0
__PDP_ENDIAN
=
3412
PDP_ENDIAN
=
__PDP_ENDIAN
# Included from SupportDefs.h
# Included from Errors.h
# Included from limits.h
# Included from float.h
FLT_ROUNDS
=
1
FLT_RADIX
=
2
FLT_MANT_DIG
=
24
FLT_DIG
=
6
FLT_MIN_EXP
=
(
-
125
)
FLT_MIN_10_EXP
=
(
-
37
)
FLT_MAX_EXP
=
128
FLT_MAX_10_EXP
=
38
DBL_MANT_DIG
=
53
DBL_DIG
=
15
DBL_MIN_EXP
=
(
-
1021
)
DBL_MIN_10_EXP
=
(
-
308
)
DBL_MAX_EXP
=
1024
DBL_MAX_10_EXP
=
308
LDBL_MANT_DIG
=
DBL_MANT_DIG
LDBL_DIG
=
DBL_DIG
LDBL_MIN_EXP
=
DBL_MIN_EXP
LDBL_MIN_10_EXP
=
DBL_MIN_10_EXP
LDBL_MAX_EXP
=
DBL_MAX_EXP
LDBL_MAX_10_EXP
=
DBL_MAX_10_EXP
CHAR_BIT
=
(
8
)
SCHAR_MIN
=
(
-
127
-
1
)
SCHAR_MAX
=
(
127
)
CHAR_MIN
=
SCHAR_MIN
CHAR_MAX
=
SCHAR_MAX
MB_LEN_MAX
=
(
1
)
SHRT_MIN
=
(
-
32767
-
1
)
SHRT_MAX
=
(
32767
)
LONG_MIN
=
(
-
2147483647L
-
1
)
LONG_MAX
=
(
2147483647L
)
INT_MIN
=
LONG_MIN
INT_MAX
=
LONG_MAX
ARG_MAX
=
(
32768
)
ATEXIT_MAX
=
(
32
)
CHILD_MAX
=
(
1024
)
IOV_MAX
=
(
256
)
FILESIZEBITS
=
(
64
)
LINK_MAX
=
(
1
)
LOGIN_NAME_MAX
=
(
32
)
MAX_CANON
=
(
255
)
MAX_INPUT
=
(
255
)
NAME_MAX
=
(
256
)
NGROUPS_MAX
=
(
32
)
OPEN_MAX
=
(
128
)
PATH_MAX
=
(
1024
)
PIPE_MAX
=
(
512
)
SSIZE_MAX
=
(
2147483647L
)
TTY_NAME_MAX
=
(
256
)
TZNAME_MAX
=
(
32
)
SYMLINKS_MAX
=
(
16
)
_POSIX_ARG_MAX
=
(
32768
)
_POSIX_CHILD_MAX
=
(
1024
)
_POSIX_LINK_MAX
=
(
1
)
_POSIX_LOGIN_NAME_MAX
=
(
9
)
_POSIX_MAX_CANON
=
(
255
)
_POSIX_MAX_INPUT
=
(
255
)
_POSIX_NAME_MAX
=
(
255
)
_POSIX_NGROUPS_MAX
=
(
0
)
_POSIX_OPEN_MAX
=
(
128
)
_POSIX_PATH_MAX
=
(
1024
)
_POSIX_PIPE_BUF
=
(
512
)
_POSIX_SSIZE_MAX
=
(
2147483647L
)
_POSIX_STREAM_MAX
=
(
8
)
_POSIX_TTY_NAME_MAX
=
(
256
)
_POSIX_TZNAME_MAX
=
(
3
)
B_GENERAL_ERROR_BASE
=
LONG_MIN
B_OS_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x1000
B_APP_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x2000
B_INTERFACE_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x3000
B_MEDIA_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x4000
B_TRANSLATION_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x4800
B_MIDI_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x5000
B_STORAGE_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x6000
B_POSIX_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x7000
B_MAIL_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x8000
B_PRINT_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0x9000
B_DEVICE_ERROR_BASE
=
B_GENERAL_ERROR_BASE
+
0xa000
B_ERRORS_END
=
(
B_GENERAL_ERROR_BASE
+
0xffff
)
E2BIG
=
(
B_POSIX_ERROR_BASE
+
1
)
ECHILD
=
(
B_POSIX_ERROR_BASE
+
2
)
EDEADLK
=
(
B_POSIX_ERROR_BASE
+
3
)
EFBIG
=
(
B_POSIX_ERROR_BASE
+
4
)
EMLINK
=
(
B_POSIX_ERROR_BASE
+
5
)
ENFILE
=
(
B_POSIX_ERROR_BASE
+
6
)
ENODEV
=
(
B_POSIX_ERROR_BASE
+
7
)
ENOLCK
=
(
B_POSIX_ERROR_BASE
+
8
)
ENOSYS
=
(
B_POSIX_ERROR_BASE
+
9
)
ENOTTY
=
(
B_POSIX_ERROR_BASE
+
10
)
ENXIO
=
(
B_POSIX_ERROR_BASE
+
11
)
ESPIPE
=
(
B_POSIX_ERROR_BASE
+
12
)
ESRCH
=
(
B_POSIX_ERROR_BASE
+
13
)
EFPOS
=
(
B_POSIX_ERROR_BASE
+
14
)
ESIGPARM
=
(
B_POSIX_ERROR_BASE
+
15
)
EDOM
=
(
B_POSIX_ERROR_BASE
+
16
)
ERANGE
=
(
B_POSIX_ERROR_BASE
+
17
)
EPROTOTYPE
=
(
B_POSIX_ERROR_BASE
+
18
)
EPROTONOSUPPORT
=
(
B_POSIX_ERROR_BASE
+
19
)
EPFNOSUPPORT
=
(
B_POSIX_ERROR_BASE
+
20
)
EAFNOSUPPORT
=
(
B_POSIX_ERROR_BASE
+
21
)
EADDRINUSE
=
(
B_POSIX_ERROR_BASE
+
22
)
EADDRNOTAVAIL
=
(
B_POSIX_ERROR_BASE
+
23
)
ENETDOWN
=
(
B_POSIX_ERROR_BASE
+
24
)
ENETUNREACH
=
(
B_POSIX_ERROR_BASE
+
25
)
ENETRESET
=
(
B_POSIX_ERROR_BASE
+
26
)
ECONNABORTED
=
(
B_POSIX_ERROR_BASE
+
27
)
ECONNRESET
=
(
B_POSIX_ERROR_BASE
+
28
)
EISCONN
=
(
B_POSIX_ERROR_BASE
+
29
)
ENOTCONN
=
(
B_POSIX_ERROR_BASE
+
30
)
ESHUTDOWN
=
(
B_POSIX_ERROR_BASE
+
31
)
ECONNREFUSED
=
(
B_POSIX_ERROR_BASE
+
32
)
EHOSTUNREACH
=
(
B_POSIX_ERROR_BASE
+
33
)
ENOPROTOOPT
=
(
B_POSIX_ERROR_BASE
+
34
)
ENOBUFS
=
(
B_POSIX_ERROR_BASE
+
35
)
EINPROGRESS
=
(
B_POSIX_ERROR_BASE
+
36
)
EALREADY
=
(
B_POSIX_ERROR_BASE
+
37
)
EILSEQ
=
(
B_POSIX_ERROR_BASE
+
38
)
ENOMSG
=
(
B_POSIX_ERROR_BASE
+
39
)
ESTALE
=
(
B_POSIX_ERROR_BASE
+
40
)
EOVERFLOW
=
(
B_POSIX_ERROR_BASE
+
41
)
EMSGSIZE
=
(
B_POSIX_ERROR_BASE
+
42
)
EOPNOTSUPP
=
(
B_POSIX_ERROR_BASE
+
43
)
ENOTSOCK
=
(
B_POSIX_ERROR_BASE
+
44
)
false
=
0
true
=
1
NULL
=
(
0
)
FALSE
=
0
TRUE
=
1
# Included from TypeConstants.h
B_HOST_IS_LENDIAN
=
1
B_HOST_IS_BENDIAN
=
0
def
B_HOST_TO_LENDIAN_DOUBLE
(
arg
):
return
(
double
)(
arg
)
def
B_HOST_TO_LENDIAN_FLOAT
(
arg
):
return
(
float
)(
arg
)
def
B_HOST_TO_LENDIAN_INT64
(
arg
):
return
(
uint64
)(
arg
)
def
B_HOST_TO_LENDIAN_INT32
(
arg
):
return
(
uint32
)(
arg
)
def
B_HOST_TO_LENDIAN_INT16
(
arg
):
return
(
uint16
)(
arg
)
def
B_HOST_TO_BENDIAN_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_HOST_TO_BENDIAN_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_HOST_TO_BENDIAN_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_HOST_TO_BENDIAN_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_HOST_TO_BENDIAN_INT16
(
arg
):
return
__swap_int16
(
arg
)
def
B_LENDIAN_TO_HOST_DOUBLE
(
arg
):
return
(
double
)(
arg
)
def
B_LENDIAN_TO_HOST_FLOAT
(
arg
):
return
(
float
)(
arg
)
def
B_LENDIAN_TO_HOST_INT64
(
arg
):
return
(
uint64
)(
arg
)
def
B_LENDIAN_TO_HOST_INT32
(
arg
):
return
(
uint32
)(
arg
)
def
B_LENDIAN_TO_HOST_INT16
(
arg
):
return
(
uint16
)(
arg
)
def
B_BENDIAN_TO_HOST_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_BENDIAN_TO_HOST_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_BENDIAN_TO_HOST_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_BENDIAN_TO_HOST_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_BENDIAN_TO_HOST_INT16
(
arg
):
return
__swap_int16
(
arg
)
B_HOST_IS_LENDIAN
=
0
B_HOST_IS_BENDIAN
=
1
def
B_HOST_TO_LENDIAN_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_HOST_TO_LENDIAN_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_HOST_TO_LENDIAN_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_HOST_TO_LENDIAN_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_HOST_TO_LENDIAN_INT16
(
arg
):
return
__swap_int16
(
arg
)
def
B_HOST_TO_BENDIAN_DOUBLE
(
arg
):
return
(
double
)(
arg
)
def
B_HOST_TO_BENDIAN_FLOAT
(
arg
):
return
(
float
)(
arg
)
def
B_HOST_TO_BENDIAN_INT64
(
arg
):
return
(
uint64
)(
arg
)
def
B_HOST_TO_BENDIAN_INT32
(
arg
):
return
(
uint32
)(
arg
)
def
B_HOST_TO_BENDIAN_INT16
(
arg
):
return
(
uint16
)(
arg
)
def
B_LENDIAN_TO_HOST_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_LENDIAN_TO_HOST_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_LENDIAN_TO_HOST_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_LENDIAN_TO_HOST_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_LENDIAN_TO_HOST_INT16
(
arg
):
return
__swap_int16
(
arg
)
def
B_BENDIAN_TO_HOST_DOUBLE
(
arg
):
return
(
double
)(
arg
)
def
B_BENDIAN_TO_HOST_FLOAT
(
arg
):
return
(
float
)(
arg
)
def
B_BENDIAN_TO_HOST_INT64
(
arg
):
return
(
uint64
)(
arg
)
def
B_BENDIAN_TO_HOST_INT32
(
arg
):
return
(
uint32
)(
arg
)
def
B_BENDIAN_TO_HOST_INT16
(
arg
):
return
(
uint16
)(
arg
)
def
B_SWAP_DOUBLE
(
arg
):
return
__swap_double
(
arg
)
def
B_SWAP_FLOAT
(
arg
):
return
__swap_float
(
arg
)
def
B_SWAP_INT64
(
arg
):
return
__swap_int64
(
arg
)
def
B_SWAP_INT32
(
arg
):
return
__swap_int32
(
arg
)
def
B_SWAP_INT16
(
arg
):
return
__swap_int16
(
arg
)
def
htonl
(
x
):
return
B_HOST_TO_BENDIAN_INT32
(
x
)
def
ntohl
(
x
):
return
B_BENDIAN_TO_HOST_INT32
(
x
)
def
htons
(
x
):
return
B_HOST_TO_BENDIAN_INT16
(
x
)
def
ntohs
(
x
):
return
B_BENDIAN_TO_HOST_INT16
(
x
)
AF_INET
=
1
INADDR_ANY
=
0x00000000
INADDR_BROADCAST
=
0xffffffff
INADDR_LOOPBACK
=
0x7f000001
SOL_SOCKET
=
1
SO_DEBUG
=
1
SO_REUSEADDR
=
2
SO_NONBLOCK
=
3
SO_REUSEPORT
=
4
MSG_OOB
=
0x1
SOCK_DGRAM
=
1
SOCK_STREAM
=
2
IPPROTO_UDP
=
1
IPPROTO_TCP
=
2
IPPROTO_ICMP
=
3
B_UDP_MAX_SIZE
=
(
65536
-
1024
)
FD_SETSIZE
=
256
FDSETSIZE
=
FD_SETSIZE
NFDBITS
=
32
def
_FDMSKNO
(
fd
):
return
((
fd
)
/
NFDBITS
)
def
_FDBITNO
(
fd
):
return
((
fd
)
%
NFDBITS
)
This diff is collapsed.
Click to expand it.
Lib/plat-beos5/TERMIOS.py
0 → 100644
Dosyayı görüntüle @
613f7c40
# Generated by h2py from /boot/develop/headers/posix/termios.h
# Included from be_setup.h
def
__std
(
ref
):
return
ref
__be_os
=
2
__dest_os
=
__be_os
__MSL__
=
0x4011
__GLIBC__
=
-
2
__GLIBC_MINOR__
=
1
# Included from BeBuild.h
B_BEOS_VERSION_4
=
0x0400
B_BEOS_VERSION_4_5
=
0x0450
B_BEOS_VERSION_5
=
0x0500
B_BEOS_VERSION
=
B_BEOS_VERSION_5
B_BEOS_VERSION_MAUI
=
B_BEOS_VERSION_5
_PR2_COMPATIBLE_
=
1
_PR3_COMPATIBLE_
=
1
_R4_COMPATIBLE_
=
1
_R4_5_COMPATIBLE_
=
1
_PR2_COMPATIBLE_
=
0
_PR3_COMPATIBLE_
=
0
_R4_COMPATIBLE_
=
1
_R4_5_COMPATIBLE_
=
1
def
_UNUSED
(
x
):
return
x
# Included from sys/types.h
# Included from time.h
# Included from null.h
NULL
=
(
0
)
NULL
=
0L
# Included from size_t.h
# Included from stddef.h
# Included from wchar_t.h
CLOCKS_PER_SEC
=
1000
CLK_TCK
=
CLOCKS_PER_SEC
MAX_TIMESTR
=
70
# Included from unistd.h
B_MOUNT_READ_ONLY
=
1
R_OK
=
4
W_OK
=
2
X_OK
=
1
F_OK
=
0
STDIN_FILENO
=
0
STDOUT_FILENO
=
1
STDERR_FILENO
=
2
_PC_CHOWN_RESTRICTED
=
1
_PC_MAX_CANON
=
2
_PC_MAX_INPUT
=
3
_PC_NAME_MAX
=
4
_PC_NO_TRUNC
=
5
_PC_PATH_MAX
=
6
_PC_PIPE_BUF
=
7
_PC_VDISABLE
=
8
_POSIX_CHOWN_RESTRICTED
=
9
_POSIX_JOB_CONTROL
=
10
_POSIX_NO_TRUNC
=
11
_POSIX_SAVED_IDS
=
12
_POSIX_VERSION
=
(
199009L
)
_SC_ARG_MAX
=
15
_SC_CHILD_MAX
=
16
_SC_CLK_TCK
=
17
_SC_JOB_CONTROL
=
18
_SC_NGROUPS_MAX
=
19
_SC_OPEN_MAX
=
20
_SC_SAVED_IDS
=
21
_SC_STREAM_MAX
=
22
_SC_TZNAME_MAX
=
23
_SC_VERSION
=
24
_PC_LINK_MAX
=
25
SEEK_SET
=
0
SEEK_CUR
=
1
SEEK_END
=
2
NCC
=
11
NCCS
=
NCC
VINTR
=
0
VQUIT
=
1
VERASE
=
2
VKILL
=
3
VEOF
=
4
VEOL
=
5
VMIN
=
4
VTIME
=
5
VEOL2
=
6
VSWTCH
=
7
VSTART
=
8
VSTOP
=
9
VSUSP
=
10
IGNBRK
=
0x01
BRKINT
=
0x02
IGNPAR
=
0x04
PARMRK
=
0x08
INPCK
=
0x10
ISTRIP
=
0x20
INLCR
=
0x40
IGNCR
=
0x80
ICRNL
=
0x100
IUCLC
=
0x200
IXON
=
0x400
IXANY
=
0x800
IXOFF
=
0x1000
OPOST
=
0x01
OLCUC
=
0x02
ONLCR
=
0x04
OCRNL
=
0x08
ONOCR
=
0x10
ONLRET
=
0x20
OFILL
=
0x40
OFDEL
=
0x80
NLDLY
=
0x100
NL0
=
0x000
NL1
=
0x100
CRDLY
=
0x600
CR0
=
0x000
CR1
=
0x200
CR2
=
0x400
CR3
=
0x600
TABDLY
=
0x1800
TAB0
=
0x0000
TAB1
=
0x0800
TAB2
=
0x1000
TAB3
=
0x1800
BSDLY
=
0x2000
BS0
=
0x0000
BS1
=
0x2000
VTDLY
=
0x4000
VT0
=
0x0000
VT1
=
0x4000
FFDLY
=
0x8000
FF0
=
0x0000
FF1
=
0x8000
CBAUD
=
0x1F
B0
=
0x00
B50
=
0x01
B75
=
0x02
B110
=
0x03
B134
=
0x04
B150
=
0x05
B200
=
0x06
B300
=
0x07
B600
=
0x08
B1200
=
0x09
B1800
=
0x0A
B2400
=
0x0B
B4800
=
0x0C
B9600
=
0x0D
B19200
=
0x0E
B38400
=
0x0F
B57600
=
0x10
B115200
=
0x11
B230400
=
0x12
B31250
=
0x13
CSIZE
=
0x20
CS5
=
0x00
CS6
=
0x00
CS7
=
0x00
CS8
=
0x20
CSTOPB
=
0x40
CREAD
=
0x80
PARENB
=
0x100
PARODD
=
0x200
HUPCL
=
0x400
CLOCAL
=
0x800
XLOBLK
=
0x1000
CTSFLOW
=
0x2000
RTSFLOW
=
0x4000
CRTSCTS
=
(
RTSFLOW
|
CTSFLOW
)
ISIG
=
(
0x01
)
ICANON
=
(
0x02
)
XCASE
=
(
0x04
)
ECHO
=
(
0x08
)
ECHOE
=
(
0x10
)
ECHOK
=
(
0x20
)
ECHONL
=
(
0x40
)
NOFLSH
=
(
0x80
)
TOSTOP
=
(
0x100
)
IEXTEN
=
(
0x200
)
EV_RING
=
0x0001
EV_BREAK
=
0x0002
EV_CARRIER
=
0x0004
EV_CARRIERLOST
=
0x0008
TCGETA
=
(
0x8000
)
TCSETA
=
(
TCGETA
+
1
)
TCSETAF
=
(
TCGETA
+
2
)
TCSETAW
=
(
TCGETA
+
3
)
TCWAITEVENT
=
(
TCGETA
+
4
)
TCSBRK
=
(
TCGETA
+
5
)
TCFLSH
=
(
TCGETA
+
6
)
TCXONC
=
(
TCGETA
+
7
)
TCQUERYCONNECTED
=
(
TCGETA
+
8
)
TCGETBITS
=
(
TCGETA
+
9
)
TCSETDTR
=
(
TCGETA
+
10
)
TCSETRTS
=
(
TCGETA
+
11
)
TIOCGWINSZ
=
(
TCGETA
+
12
)
TIOCSWINSZ
=
(
TCGETA
+
13
)
TCVTIME
=
(
TCGETA
+
14
)
TCGB_CTS
=
0x01
TCGB_DSR
=
0x02
TCGB_RI
=
0x04
TCGB_DCD
=
0x08
TCSANOW
=
0x01
TCSADRAIN
=
0x02
TCSAFLUSH
=
0x04
TCOOFF
=
0x01
TCOON
=
0x02
TCIOFF
=
0x04
TCION
=
0x08
TCIFLUSH
=
0x01
TCOFLUSH
=
0x02
TCIOFLUSH
=
(
TCIFLUSH
|
TCOFLUSH
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment