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
e5e73b96
Kaydet (Commit)
e5e73b96
authored
Eki 09, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
initial commit
üst
29c1b97d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
558 additions
and
0 deletions
+558
-0
FCNTL.py
Lib/plat-sunos5/FCNTL.py
+47
-0
IN.py
Lib/plat-sunos5/IN.py
+81
-0
SOCKET.py
Lib/plat-sunos5/SOCKET.py
+103
-0
SUNAUDIODEV.py
Lib/plat-sunos5/SUNAUDIODEV.py
+38
-0
regen
Lib/plat-sunos5/regen
+10
-0
FCNTL.py
Lib/sunos5/FCNTL.py
+47
-0
IN.py
Lib/sunos5/IN.py
+81
-0
SOCKET.py
Lib/sunos5/SOCKET.py
+103
-0
SUNAUDIODEV.py
Lib/sunos5/SUNAUDIODEV.py
+38
-0
regen
Lib/sunos5/regen
+10
-0
No files found.
Lib/plat-sunos5/FCNTL.py
0 → 100755
Dosyayı görüntüle @
e5e73b96
# Generated by h2py from /usr/include/sys/fcntl.h
O_RDONLY
=
0
O_WRONLY
=
1
O_RDWR
=
2
O_NDELAY
=
0x04
O_APPEND
=
0x08
O_SYNC
=
0x10
O_DSYNC
=
0x40
O_RSYNC
=
0x8000
O_NONBLOCK
=
0x80
O_PRIV
=
0x1000
O_CREAT
=
0x100
O_TRUNC
=
0x200
O_EXCL
=
0x400
O_NOCTTY
=
0x800
F_DUPFD
=
0
F_GETFD
=
1
F_SETFD
=
2
F_GETFL
=
3
F_SETFL
=
4
F_SETLK
=
6
F_SETLKW
=
7
F_O_GETLK
=
5
F_SETLK
=
6
F_SETLKW
=
7
F_CHKFL
=
8
F_ALLOCSP
=
10
F_FREESP
=
11
F_ISSTREAM
=
13
F_GETLK
=
14
F_PRIV
=
15
F_NPRIV
=
16
F_QUOTACTL
=
17
F_BLOCKS
=
18
F_BLKSIZE
=
19
F_RSETLK
=
20
F_RGETLK
=
21
F_RSETLKW
=
22
F_GETOWN
=
23
F_SETOWN
=
24
F_REVOKE
=
25
F_RDLCK
=
01
F_WRLCK
=
02
F_UNLCK
=
03
F_UNLKSYS
=
04
O_ACCMODE
=
3
FD_CLOEXEC
=
1
Lib/plat-sunos5/IN.py
0 → 100755
Dosyayı görüntüle @
e5e73b96
# Generated by h2py from /usr/include/netinet/in.h
IPPROTO_IP
=
0
IPPROTO_ICMP
=
1
IPPROTO_IGMP
=
2
IPPROTO_GGP
=
3
IPPROTO_ENCAP
=
4
IPPROTO_TCP
=
6
IPPROTO_EGP
=
8
IPPROTO_PUP
=
12
IPPROTO_UDP
=
17
IPPROTO_IDP
=
22
IPPROTO_HELLO
=
63
IPPROTO_ND
=
77
IPPROTO_EON
=
80
IPPROTO_RAW
=
255
IPPROTO_MAX
=
256
IPPORT_ECHO
=
7
IPPORT_DISCARD
=
9
IPPORT_SYSTAT
=
11
IPPORT_DAYTIME
=
13
IPPORT_NETSTAT
=
15
IPPORT_FTP
=
21
IPPORT_TELNET
=
23
IPPORT_SMTP
=
25
IPPORT_TIMESERVER
=
37
IPPORT_NAMESERVER
=
42
IPPORT_WHOIS
=
43
IPPORT_MTP
=
57
IPPORT_TFTP
=
69
IPPORT_RJE
=
77
IPPORT_FINGER
=
79
IPPORT_TTYLINK
=
87
IPPORT_SUPDUP
=
95
IPPORT_EXECSERVER
=
512
IPPORT_LOGINSERVER
=
513
IPPORT_CMDSERVER
=
514
IPPORT_EFSSERVER
=
520
IPPORT_BIFFUDP
=
512
IPPORT_WHOSERVER
=
513
IPPORT_ROUTESERVER
=
520
IPPORT_RESERVED
=
1024
IPPORT_USERRESERVED
=
5000
IMPLINK_IP
=
155
IMPLINK_LOWEXPER
=
156
IMPLINK_HIGHEXPER
=
158
IN_CLASSA_NET
=
0xff000000
IN_CLASSA_NSHIFT
=
24
IN_CLASSA_HOST
=
0x00ffffff
IN_CLASSA_MAX
=
128
IN_CLASSB_NET
=
0xffff0000
IN_CLASSB_NSHIFT
=
16
IN_CLASSB_HOST
=
0x0000ffff
IN_CLASSB_MAX
=
65536
IN_CLASSC_NET
=
0xffffff00
IN_CLASSC_NSHIFT
=
8
IN_CLASSC_HOST
=
0x000000ff
IN_CLASSD_NET
=
0xf0000000
IN_CLASSD_NSHIFT
=
28
IN_CLASSD_HOST
=
0x0fffffff
INADDR_ANY
=
0x00000000
INADDR_LOOPBACK
=
0x7F000001
INADDR_BROADCAST
=
0xffffffff
INADDR_UNSPEC_GROUP
=
0xe0000000
INADDR_ALLHOSTS_GROUP
=
0xe0000001
INADDR_MAX_LOCAL_GROUP
=
0xe00000ff
IN_LOOPBACKNET
=
127
IP_OPTIONS
=
1
IP_HDRINCL
=
2
IP_TOS
=
3
IP_TTL
=
4
IP_RECVOPTS
=
5
IP_RECVRETOPTS
=
6
IP_RECVDSTADDR
=
7
IP_RETOPTS
=
8
IP_MULTICAST_IF
=
0x10
IP_MULTICAST_TTL
=
0x11
IP_MULTICAST_LOOP
=
0x12
IP_ADD_MEMBERSHIP
=
0x13
IP_DROP_MEMBERSHIP
=
0x14
IP_DEFAULT_MULTICAST_TTL
=
1
IP_DEFAULT_MULTICAST_LOOP
=
1
Lib/plat-sunos5/SOCKET.py
0 → 100755
Dosyayı görüntüle @
e5e73b96
# Generated by h2py from /usr/include/sys/socket.h
NC_TPI_CLTS
=
1
NC_TPI_COTS
=
2
NC_TPI_COTS_ORD
=
3
NC_TPI_RAW
=
4
SOCK_STREAM
=
NC_TPI_COTS
SOCK_DGRAM
=
NC_TPI_CLTS
SOCK_RAW
=
NC_TPI_RAW
SOCK_RDM
=
5
SOCK_SEQPACKET
=
6
SO_DEBUG
=
0x0001
SO_ACCEPTCONN
=
0x0002
SO_REUSEADDR
=
0x0004
SO_KEEPALIVE
=
0x0008
SO_DONTROUTE
=
0x0010
SO_BROADCAST
=
0x0020
SO_USELOOPBACK
=
0x0040
SO_LINGER
=
0x0080
SO_OOBINLINE
=
0x0100
SO_DONTLINGER
=
(
~
SO_LINGER
)
SO_SNDBUF
=
0x1001
SO_RCVBUF
=
0x1002
SO_SNDLOWAT
=
0x1003
SO_RCVLOWAT
=
0x1004
SO_SNDTIMEO
=
0x1005
SO_RCVTIMEO
=
0x1006
SO_ERROR
=
0x1007
SO_TYPE
=
0x1008
SO_PROTOTYPE
=
0x1009
SOL_SOCKET
=
0xffff
AF_UNSPEC
=
0
AF_UNIX
=
1
AF_INET
=
2
AF_IMPLINK
=
3
AF_PUP
=
4
AF_CHAOS
=
5
AF_NS
=
6
AF_NBS
=
7
AF_ECMA
=
8
AF_DATAKIT
=
9
AF_CCITT
=
10
AF_SNA
=
11
AF_DECnet
=
12
AF_DLI
=
13
AF_LAT
=
14
AF_HYLINK
=
15
AF_APPLETALK
=
16
AF_NIT
=
17
AF_802
=
18
AF_OSI
=
19
AF_X25
=
20
AF_OSINET
=
21
AF_GOSIP
=
22
AF_MAX
=
22
PF_UNSPEC
=
AF_UNSPEC
PF_UNIX
=
AF_UNIX
PF_INET
=
AF_INET
PF_IMPLINK
=
AF_IMPLINK
PF_PUP
=
AF_PUP
PF_CHAOS
=
AF_CHAOS
PF_NS
=
AF_NS
PF_NBS
=
AF_NBS
PF_ECMA
=
AF_ECMA
PF_DATAKIT
=
AF_DATAKIT
PF_CCITT
=
AF_CCITT
PF_SNA
=
AF_SNA
PF_DECnet
=
AF_DECnet
PF_DLI
=
AF_DLI
PF_LAT
=
AF_LAT
PF_HYLINK
=
AF_HYLINK
PF_APPLETALK
=
AF_APPLETALK
PF_NIT
=
AF_NIT
PF_802
=
AF_802
PF_OSI
=
AF_OSI
PF_X25
=
AF_X25
PF_OSINET
=
AF_OSINET
PF_GOSIP
=
AF_GOSIP
PF_MAX
=
AF_MAX
SOMAXCONN
=
5
MSG_OOB
=
0x1
MSG_PEEK
=
0x2
MSG_DONTROUTE
=
0x4
MSG_MAXIOVLEN
=
16
SOCKETSYS
=
88
SOCKETSYS
=
83
SO_ACCEPT
=
1
SO_BIND
=
2
SO_CONNECT
=
3
SO_GETPEERNAME
=
4
SO_GETSOCKNAME
=
5
SO_GETSOCKOPT
=
6
SO_LISTEN
=
7
SO_RECV
=
8
SO_RECVFROM
=
9
SO_SEND
=
10
SO_SENDTO
=
11
SO_SETSOCKOPT
=
12
SO_SHUTDOWN
=
13
SO_SOCKET
=
14
SO_SOCKPOLL
=
15
SO_GETIPDOMAIN
=
16
SO_SETIPDOMAIN
=
17
SO_ADJTIME
=
18
Lib/plat-sunos5/SUNAUDIODEV.py
0 → 100755
Dosyayı görüntüle @
e5e73b96
# Symbolic constants for use with sunaudiodev module
# The names are the same as in audioio.h with the leading AUDIO_
# removed.
# Not all values are supported on all releases of SunOS.
# Encoding types, for fields i_encoding and o_encoding
ENCODING_NONE
=
0
# no encoding assigned
ENCODING_ULAW
=
1
# u-law encoding
ENCODING_ALAW
=
2
# A-law encoding
ENCODING_LINEAR
=
3
# Linear PCM encoding
# Gain ranges for i_gain, o_gain and monitor_gain
MIN_GAIN
=
0
# minimum gain value
MAX_GAIN
=
255
# maximum gain value
# Balance values for i_balance and o_balance
LEFT_BALANCE
=
0
# left channel only
MID_BALANCE
=
32
# equal left/right channel
RIGHT_BALANCE
=
64
# right channel only
BALANCE_SHIFT
=
3
# Port names for i_port and o_port
PORT_A
=
1
PORT_B
=
2
PORT_C
=
3
PORT_D
=
4
SPEAKER
=
0x01
# output to built-in speaker
HEADPHONE
=
0x02
# output to headphone jack
LINE_OUT
=
0x04
# output to line out
MICROPHONE
=
0x01
# input from microphone
LINE_IN
=
0x02
# input from line in
Lib/plat-sunos5/regen
0 → 100755
Dosyayı görüntüle @
e5e73b96
#! /bin/sh
case
`
uname
-sr
`
in
'SunOS 5.'
*
)
;;
*
)
echo
Probably not on a Solaris 2 system 1>&2
exit
1
;;
esac
set
-v
h2py /usr/include/sys/fcntl.h
h2py /usr/include/sys/socket.h
h2py
-i
'(u_long)'
/usr/include/netinet/in.h
Lib/sunos5/FCNTL.py
0 → 100755
Dosyayı görüntüle @
e5e73b96
# Generated by h2py from /usr/include/sys/fcntl.h
O_RDONLY
=
0
O_WRONLY
=
1
O_RDWR
=
2
O_NDELAY
=
0x04
O_APPEND
=
0x08
O_SYNC
=
0x10
O_DSYNC
=
0x40
O_RSYNC
=
0x8000
O_NONBLOCK
=
0x80
O_PRIV
=
0x1000
O_CREAT
=
0x100
O_TRUNC
=
0x200
O_EXCL
=
0x400
O_NOCTTY
=
0x800
F_DUPFD
=
0
F_GETFD
=
1
F_SETFD
=
2
F_GETFL
=
3
F_SETFL
=
4
F_SETLK
=
6
F_SETLKW
=
7
F_O_GETLK
=
5
F_SETLK
=
6
F_SETLKW
=
7
F_CHKFL
=
8
F_ALLOCSP
=
10
F_FREESP
=
11
F_ISSTREAM
=
13
F_GETLK
=
14
F_PRIV
=
15
F_NPRIV
=
16
F_QUOTACTL
=
17
F_BLOCKS
=
18
F_BLKSIZE
=
19
F_RSETLK
=
20
F_RGETLK
=
21
F_RSETLKW
=
22
F_GETOWN
=
23
F_SETOWN
=
24
F_REVOKE
=
25
F_RDLCK
=
01
F_WRLCK
=
02
F_UNLCK
=
03
F_UNLKSYS
=
04
O_ACCMODE
=
3
FD_CLOEXEC
=
1
Lib/sunos5/IN.py
0 → 100755
Dosyayı görüntüle @
e5e73b96
# Generated by h2py from /usr/include/netinet/in.h
IPPROTO_IP
=
0
IPPROTO_ICMP
=
1
IPPROTO_IGMP
=
2
IPPROTO_GGP
=
3
IPPROTO_ENCAP
=
4
IPPROTO_TCP
=
6
IPPROTO_EGP
=
8
IPPROTO_PUP
=
12
IPPROTO_UDP
=
17
IPPROTO_IDP
=
22
IPPROTO_HELLO
=
63
IPPROTO_ND
=
77
IPPROTO_EON
=
80
IPPROTO_RAW
=
255
IPPROTO_MAX
=
256
IPPORT_ECHO
=
7
IPPORT_DISCARD
=
9
IPPORT_SYSTAT
=
11
IPPORT_DAYTIME
=
13
IPPORT_NETSTAT
=
15
IPPORT_FTP
=
21
IPPORT_TELNET
=
23
IPPORT_SMTP
=
25
IPPORT_TIMESERVER
=
37
IPPORT_NAMESERVER
=
42
IPPORT_WHOIS
=
43
IPPORT_MTP
=
57
IPPORT_TFTP
=
69
IPPORT_RJE
=
77
IPPORT_FINGER
=
79
IPPORT_TTYLINK
=
87
IPPORT_SUPDUP
=
95
IPPORT_EXECSERVER
=
512
IPPORT_LOGINSERVER
=
513
IPPORT_CMDSERVER
=
514
IPPORT_EFSSERVER
=
520
IPPORT_BIFFUDP
=
512
IPPORT_WHOSERVER
=
513
IPPORT_ROUTESERVER
=
520
IPPORT_RESERVED
=
1024
IPPORT_USERRESERVED
=
5000
IMPLINK_IP
=
155
IMPLINK_LOWEXPER
=
156
IMPLINK_HIGHEXPER
=
158
IN_CLASSA_NET
=
0xff000000
IN_CLASSA_NSHIFT
=
24
IN_CLASSA_HOST
=
0x00ffffff
IN_CLASSA_MAX
=
128
IN_CLASSB_NET
=
0xffff0000
IN_CLASSB_NSHIFT
=
16
IN_CLASSB_HOST
=
0x0000ffff
IN_CLASSB_MAX
=
65536
IN_CLASSC_NET
=
0xffffff00
IN_CLASSC_NSHIFT
=
8
IN_CLASSC_HOST
=
0x000000ff
IN_CLASSD_NET
=
0xf0000000
IN_CLASSD_NSHIFT
=
28
IN_CLASSD_HOST
=
0x0fffffff
INADDR_ANY
=
0x00000000
INADDR_LOOPBACK
=
0x7F000001
INADDR_BROADCAST
=
0xffffffff
INADDR_UNSPEC_GROUP
=
0xe0000000
INADDR_ALLHOSTS_GROUP
=
0xe0000001
INADDR_MAX_LOCAL_GROUP
=
0xe00000ff
IN_LOOPBACKNET
=
127
IP_OPTIONS
=
1
IP_HDRINCL
=
2
IP_TOS
=
3
IP_TTL
=
4
IP_RECVOPTS
=
5
IP_RECVRETOPTS
=
6
IP_RECVDSTADDR
=
7
IP_RETOPTS
=
8
IP_MULTICAST_IF
=
0x10
IP_MULTICAST_TTL
=
0x11
IP_MULTICAST_LOOP
=
0x12
IP_ADD_MEMBERSHIP
=
0x13
IP_DROP_MEMBERSHIP
=
0x14
IP_DEFAULT_MULTICAST_TTL
=
1
IP_DEFAULT_MULTICAST_LOOP
=
1
Lib/sunos5/SOCKET.py
0 → 100755
Dosyayı görüntüle @
e5e73b96
# Generated by h2py from /usr/include/sys/socket.h
NC_TPI_CLTS
=
1
NC_TPI_COTS
=
2
NC_TPI_COTS_ORD
=
3
NC_TPI_RAW
=
4
SOCK_STREAM
=
NC_TPI_COTS
SOCK_DGRAM
=
NC_TPI_CLTS
SOCK_RAW
=
NC_TPI_RAW
SOCK_RDM
=
5
SOCK_SEQPACKET
=
6
SO_DEBUG
=
0x0001
SO_ACCEPTCONN
=
0x0002
SO_REUSEADDR
=
0x0004
SO_KEEPALIVE
=
0x0008
SO_DONTROUTE
=
0x0010
SO_BROADCAST
=
0x0020
SO_USELOOPBACK
=
0x0040
SO_LINGER
=
0x0080
SO_OOBINLINE
=
0x0100
SO_DONTLINGER
=
(
~
SO_LINGER
)
SO_SNDBUF
=
0x1001
SO_RCVBUF
=
0x1002
SO_SNDLOWAT
=
0x1003
SO_RCVLOWAT
=
0x1004
SO_SNDTIMEO
=
0x1005
SO_RC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O_SENDTO
=
11
SO_SETSOCKOPT
=
12
SO_SHUTDOWN
=
13
SO_SOCKET
=
14
SO_SOCKPOLL
=
15
SO_GETIPDOMAIN
=
16
SO_SETIPDOMAIN
=
17
SO_ADJTIME
=
18
Lib/sunos5/SUNAUDIODEV.py
0 → 100755
Dosyayı görüntüle @
e5e73b96
# Symbolic constants for use with sunaudiodev module
# The names are the same as in audioio.h with the leading AUDIO_
# removed.
# Not all values are supported on all releases of SunOS.
# Encoding types, for fields i_encoding and o_encoding
ENCODING_NONE
=
0
# no encoding assigned
ENCODING_ULAW
=
1
# u-law encoding
ENCODING_ALAW
=
2
# A-law encoding
ENCODING_LINEAR
=
3
# Linear PCM encoding
# Gain ranges for i_gain, o_gain and monitor_gain
MIN_GAIN
=
0
# minimum gain value
MAX_GAIN
=
255
# maximum gain value
# Balance values for i_balance and o_balance
LEFT_BALANCE
=
0
# left channel only
MID_BALANCE
=
32
# equal left/right channel
RIGHT_BALANCE
=
64
# right channel only
BALANCE_SHIFT
=
3
# Port names for i_port and o_port
PORT_A
=
1
PORT_B
=
2
PORT_C
=
3
PORT_D
=
4
SPEAKER
=
0x01
# output to built-in speaker
HEADPHONE
=
0x02
# output to headphone jack
LINE_OUT
=
0x04
# output to line out
MICROPHONE
=
0x01
# input from microphone
LINE_IN
=
0x02
# input from line in
Lib/sunos5/regen
0 → 100755
Dosyayı görüntüle @
e5e73b96
#! /bin/sh
case
`
uname
-sr
`
in
'SunOS 5.'
*
)
;;
*
)
echo
Probably not on a Solaris 2 system 1>&2
exit
1
;;
esac
set
-v
h2py /usr/include/sys/fcntl.h
h2py /usr/include/sys/socket.h
h2py
-i
'(u_long)'
/usr/include/netinet/in.h
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