mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Script to regenerate FCNTL.py, IN.py, SOCKET.py
This commit is contained in:
parent
01f5f62401
commit
c95f7248d6
11
Lib/plat-sunos4/regen
Executable file
11
Lib/plat-sunos4/regen
Executable file
@ -0,0 +1,11 @@
|
||||
#! /bin/sh
|
||||
case `uname -sr` in
|
||||
'SunOS 4.'*) ;;
|
||||
*) echo Probably not on a SunOS 4 system 1>&2
|
||||
exit 1;;
|
||||
esac
|
||||
set -v
|
||||
h2py </usr/include/sys/fcntlcom.h >FCNTL.py
|
||||
echo "O_ACCMODE = (O_RDONLY|O_WRONLY|O_RDWR)" >>FCNTL.py
|
||||
h2py /usr/include/sys/socket.h
|
||||
h2py -i '(u_long)' /usr/include/netinet/in.h
|
11
Lib/sunos4/regen
Executable file
11
Lib/sunos4/regen
Executable file
@ -0,0 +1,11 @@
|
||||
#! /bin/sh
|
||||
case `uname -sr` in
|
||||
'SunOS 4.'*) ;;
|
||||
*) echo Probably not on a SunOS 4 system 1>&2
|
||||
exit 1;;
|
||||
esac
|
||||
set -v
|
||||
h2py </usr/include/sys/fcntlcom.h >FCNTL.py
|
||||
echo "O_ACCMODE = (O_RDONLY|O_WRONLY|O_RDWR)" >>FCNTL.py
|
||||
h2py /usr/include/sys/socket.h
|
||||
h2py -i '(u_long)' /usr/include/netinet/in.h
|
Loading…
Reference in New Issue
Block a user