diff options
Diffstat (limited to 'Lib/irix5/SOCKET.py')
-rwxr-xr-x | Lib/irix5/SOCKET.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Lib/irix5/SOCKET.py b/Lib/irix5/SOCKET.py index 0ba0742..401de2b 100755 --- a/Lib/irix5/SOCKET.py +++ b/Lib/irix5/SOCKET.py @@ -1,4 +1,27 @@ # Generated by h2py from /usr/include/sys/socket.h + +# Included from sys/bsd_types.h + +# Included from sys/mkdev.h +ONBITSMAJOR = 7 +ONBITSMINOR = 8 +OMAXMAJ = 0x7f +OMAXMIN = 0xff +NBITSMAJOR = 14 +NBITSMINOR = 18 +MAXMAJ = 0x1ff +MAXMIN = 0x3ffff +OLDDEV = 0 +NEWDEV = 1 +MKDEV_VER = NEWDEV +def major(dev): return __major(MKDEV_VER, dev) + +def minor(dev): return __minor(MKDEV_VER, dev) + + +# Included from sys/select.h +FD_SETSIZE = 1024 +NBBY = 8 SOCK_STREAM = 1 SOCK_DGRAM = 2 SOCK_RAW = 3 @@ -70,6 +93,8 @@ AF_OSINET = 21 AF_GOSIP = 22 AF_SDL = 23 AF_MAX = (AF_SDL+1) +def OPTLEN(x): return ((((x) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) + PF_UNSPEC = AF_UNSPEC PF_UNIX = AF_UNIX PF_INET = AF_INET |