mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Close #12326: sys.platform is now always 'linux' on Linux
On Linux, sys.platform doesn't contain the major version anymore. It is now always 'linux', instead of 'linux2' or 'linux3' depending on the Linux version used to build Python.
This commit is contained in:
parent
87f58d828a
commit
ff3d9399fc
14 changed files with 11 additions and 1085 deletions
83
Lib/plat-linux/DLFCN.py
Normal file
83
Lib/plat-linux/DLFCN.py
Normal file
|
@ -0,0 +1,83 @@
|
|||
# Generated by h2py from /usr/include/dlfcn.h
|
||||
_DLFCN_H = 1
|
||||
|
||||
# Included from features.h
|
||||
_FEATURES_H = 1
|
||||
__USE_ANSI = 1
|
||||
__FAVOR_BSD = 1
|
||||
_ISOC99_SOURCE = 1
|
||||
_POSIX_SOURCE = 1
|
||||
_POSIX_C_SOURCE = 199506
|
||||
_XOPEN_SOURCE = 600
|
||||
_XOPEN_SOURCE_EXTENDED = 1
|
||||
_LARGEFILE64_SOURCE = 1
|
||||
_BSD_SOURCE = 1
|
||||
_SVID_SOURCE = 1
|
||||
_BSD_SOURCE = 1
|
||||
_SVID_SOURCE = 1
|
||||
__USE_ISOC99 = 1
|
||||
_POSIX_SOURCE = 1
|
||||
_POSIX_C_SOURCE = 2
|
||||
_POSIX_C_SOURCE = 199506
|
||||
__USE_POSIX = 1
|
||||
__USE_POSIX2 = 1
|
||||
__USE_POSIX199309 = 1
|
||||
__USE_POSIX199506 = 1
|
||||
__USE_XOPEN = 1
|
||||
__USE_XOPEN_EXTENDED = 1
|
||||
__USE_UNIX98 = 1
|
||||
_LARGEFILE_SOURCE = 1
|
||||
__USE_XOPEN2K = 1
|
||||
__USE_ISOC99 = 1
|
||||
__USE_XOPEN_EXTENDED = 1
|
||||
__USE_LARGEFILE = 1
|
||||
__USE_LARGEFILE64 = 1
|
||||
__USE_FILE_OFFSET64 = 1
|
||||
__USE_MISC = 1
|
||||
__USE_BSD = 1
|
||||
__USE_SVID = 1
|
||||
__USE_GNU = 1
|
||||
__USE_REENTRANT = 1
|
||||
__STDC_IEC_559__ = 1
|
||||
__STDC_IEC_559_COMPLEX__ = 1
|
||||
__STDC_ISO_10646__ = 200009
|
||||
__GNU_LIBRARY__ = 6
|
||||
__GLIBC__ = 2
|
||||
__GLIBC_MINOR__ = 2
|
||||
|
||||
# Included from sys/cdefs.h
|
||||
_SYS_CDEFS_H = 1
|
||||
def __PMT(args): return args
|
||||
|
||||
def __P(args): return args
|
||||
|
||||
def __PMT(args): return args
|
||||
|
||||
def __STRING(x): return #x
|
||||
|
||||
__flexarr = []
|
||||
__flexarr = [0]
|
||||
__flexarr = []
|
||||
__flexarr = [1]
|
||||
def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
|
||||
|
||||
def __attribute__(xyz): return
|
||||
|
||||
def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x)))
|
||||
|
||||
def __attribute_format_arg__(x): return
|
||||
|
||||
__USE_LARGEFILE = 1
|
||||
__USE_LARGEFILE64 = 1
|
||||
__USE_EXTERN_INLINES = 1
|
||||
|
||||
# Included from gnu/stubs.h
|
||||
|
||||
# Included from bits/dlfcn.h
|
||||
RTLD_LAZY = 0x00001
|
||||
RTLD_NOW = 0x00002
|
||||
RTLD_BINDING_MASK = 0x3
|
||||
RTLD_NOLOAD = 0x00004
|
||||
RTLD_GLOBAL = 0x00100
|
||||
RTLD_LOCAL = 0
|
||||
RTLD_NODELETE = 0x01000
|
Loading…
Add table
Add a link
Reference in a new issue