Home
last modified time | relevance | path

Searched refs:PyModule_AddIntMacro (Results 1 – 25 of 26) sorted by relevance

12

/external/autotest/client/deps/lansim/src/
Dwrapper_linux_if.c34 PyModule_AddIntMacro(m, IFNAMSIZ); in _init_linux_if_h()
35 PyModule_AddIntMacro(m, IFALIASZ); in _init_linux_if_h()
78 PyModule_AddIntMacro(m, IFF_UP); in _init_linux_if_h()
79 PyModule_AddIntMacro(m, IFF_BROADCAST); in _init_linux_if_h()
80 PyModule_AddIntMacro(m, IFF_DEBUG); in _init_linux_if_h()
81 PyModule_AddIntMacro(m, IFF_LOOPBACK); in _init_linux_if_h()
82 PyModule_AddIntMacro(m, IFF_POINTOPOINT); in _init_linux_if_h()
83 PyModule_AddIntMacro(m, IFF_NOTRAILERS); in _init_linux_if_h()
84 PyModule_AddIntMacro(m, IFF_RUNNING); in _init_linux_if_h()
85 PyModule_AddIntMacro(m, IFF_NOARP); in _init_linux_if_h()
[all …]
Dwrapper_sys_ioctl.c33 PyModule_AddIntMacro(m, SIOCADDRT); in _init_sys_ioctl_h()
34 PyModule_AddIntMacro(m, SIOCDELRT); in _init_sys_ioctl_h()
35 PyModule_AddIntMacro(m, SIOCRTMSG); in _init_sys_ioctl_h()
38 PyModule_AddIntMacro(m, SIOCGIFNAME); in _init_sys_ioctl_h()
39 PyModule_AddIntMacro(m, SIOCSIFLINK); in _init_sys_ioctl_h()
40 PyModule_AddIntMacro(m, SIOCGIFCONF); in _init_sys_ioctl_h()
41 PyModule_AddIntMacro(m, SIOCGIFFLAGS); in _init_sys_ioctl_h()
42 PyModule_AddIntMacro(m, SIOCSIFFLAGS); in _init_sys_ioctl_h()
43 PyModule_AddIntMacro(m, SIOCGIFADDR); in _init_sys_ioctl_h()
44 PyModule_AddIntMacro(m, SIOCSIFADDR); in _init_sys_ioctl_h()
[all …]
Dwrapper_linux_if_tun.c32 PyModule_AddIntMacro(m, TUN_READQ_SIZE); in _init_linux_if_tun_h()
34 PyModule_AddIntMacro(m, TUN_TUN_DEV); in _init_linux_if_tun_h()
35 PyModule_AddIntMacro(m, TUN_TAP_DEV); in _init_linux_if_tun_h()
36 PyModule_AddIntMacro(m, TUN_TYPE_MASK); in _init_linux_if_tun_h()
39 PyModule_AddIntMacro(m, TUNSETNOCSUM); in _init_linux_if_tun_h()
40 PyModule_AddIntMacro(m, TUNSETDEBUG); in _init_linux_if_tun_h()
41 PyModule_AddIntMacro(m, TUNSETIFF); in _init_linux_if_tun_h()
42 PyModule_AddIntMacro(m, TUNSETPERSIST); in _init_linux_if_tun_h()
43 PyModule_AddIntMacro(m, TUNSETOWNER); in _init_linux_if_tun_h()
44 PyModule_AddIntMacro(m, TUNSETLINK); in _init_linux_if_tun_h()
[all …]
/external/python/cpython3/Modules/
Dfcntlmodule.c471 if (PyModule_AddIntMacro(m, LOCK_SH)) return -1; in all_ins()
472 if (PyModule_AddIntMacro(m, LOCK_EX)) return -1; in all_ins()
473 if (PyModule_AddIntMacro(m, LOCK_NB)) return -1; in all_ins()
474 if (PyModule_AddIntMacro(m, LOCK_UN)) return -1; in all_ins()
477 if (PyModule_AddIntMacro(m, LOCK_MAND)) return -1; in all_ins()
480 if (PyModule_AddIntMacro(m, LOCK_READ)) return -1; in all_ins()
483 if (PyModule_AddIntMacro(m, LOCK_WRITE)) return -1; in all_ins()
486 if (PyModule_AddIntMacro(m, LOCK_RW)) return -1; in all_ins()
490 if (PyModule_AddIntMacro(m, F_DUPFD)) return -1; in all_ins()
493 if (PyModule_AddIntMacro(m, F_DUPFD_CLOEXEC)) return -1; in all_ins()
[all …]
Dsymtablemodule.c97 PyModule_AddIntMacro(m, USE); in PyInit__symtable()
98 PyModule_AddIntMacro(m, DEF_GLOBAL); in PyInit__symtable()
99 PyModule_AddIntMacro(m, DEF_NONLOCAL); in PyInit__symtable()
100 PyModule_AddIntMacro(m, DEF_LOCAL); in PyInit__symtable()
101 PyModule_AddIntMacro(m, DEF_PARAM); in PyInit__symtable()
102 PyModule_AddIntMacro(m, DEF_FREE); in PyInit__symtable()
103 PyModule_AddIntMacro(m, DEF_FREE_CLASS); in PyInit__symtable()
104 PyModule_AddIntMacro(m, DEF_IMPORT); in PyInit__symtable()
105 PyModule_AddIntMacro(m, DEF_BOUND); in PyInit__symtable()
106 PyModule_AddIntMacro(m, DEF_ANNOT); in PyInit__symtable()
[all …]
Dsocketmodule.c7210 PyModule_AddIntMacro(m, AF_UNSPEC);
7212 PyModule_AddIntMacro(m, AF_INET);
7214 PyModule_AddIntMacro(m, AF_UNIX);
7218 PyModule_AddIntMacro(m, AF_AX25);
7221 PyModule_AddIntMacro(m, AF_IPX); /* Novell IPX */
7225 PyModule_AddIntMacro(m, AF_APPLETALK);
7229 PyModule_AddIntMacro(m, AF_NETROM);
7233 PyModule_AddIntMacro(m, AF_BRIDGE);
7237 PyModule_AddIntMacro(m, AF_ATMPVC);
7241 PyModule_AddIntMacro(m, AF_AAL5);
[all …]
Dsignalmodule.c1409 if (PyModule_AddIntMacro(m, NSIG)) in PyInit__signal()
1413 if (PyModule_AddIntMacro(m, SIG_BLOCK)) in PyInit__signal()
1417 if (PyModule_AddIntMacro(m, SIG_UNBLOCK)) in PyInit__signal()
1421 if (PyModule_AddIntMacro(m, SIG_SETMASK)) in PyInit__signal()
1451 if (PyModule_AddIntMacro(m, SIGHUP)) in PyInit__signal()
1455 if (PyModule_AddIntMacro(m, SIGINT)) in PyInit__signal()
1459 if (PyModule_AddIntMacro(m, SIGBREAK)) in PyInit__signal()
1463 if (PyModule_AddIntMacro(m, SIGQUIT)) in PyInit__signal()
1467 if (PyModule_AddIntMacro(m, SIGILL)) in PyInit__signal()
1471 if (PyModule_AddIntMacro(m, SIGTRAP)) in PyInit__signal()
[all …]
Dposixmodule.c14610 if (PyModule_AddIntMacro(m, F_OK)) return -1; in all_ins()
14613 if (PyModule_AddIntMacro(m, R_OK)) return -1; in all_ins()
14616 if (PyModule_AddIntMacro(m, W_OK)) return -1; in all_ins()
14619 if (PyModule_AddIntMacro(m, X_OK)) return -1; in all_ins()
14622 if (PyModule_AddIntMacro(m, NGROUPS_MAX)) return -1; in all_ins()
14625 if (PyModule_AddIntMacro(m, TMP_MAX)) return -1; in all_ins()
14628 if (PyModule_AddIntMacro(m, WCONTINUED)) return -1; in all_ins()
14631 if (PyModule_AddIntMacro(m, WNOHANG)) return -1; in all_ins()
14634 if (PyModule_AddIntMacro(m, WUNTRACED)) return -1; in all_ins()
14637 if (PyModule_AddIntMacro(m, O_RDONLY)) return -1; in all_ins()
[all …]
Dzlibmodule.c1437 PyModule_AddIntMacro(m, MAX_WBITS); in PyInit_zlib()
1438 PyModule_AddIntMacro(m, DEFLATED); in PyInit_zlib()
1439 PyModule_AddIntMacro(m, DEF_MEM_LEVEL); in PyInit_zlib()
1440 PyModule_AddIntMacro(m, DEF_BUF_SIZE); in PyInit_zlib()
1442 PyModule_AddIntMacro(m, Z_NO_COMPRESSION); in PyInit_zlib()
1443 PyModule_AddIntMacro(m, Z_BEST_SPEED); in PyInit_zlib()
1444 PyModule_AddIntMacro(m, Z_BEST_COMPRESSION); in PyInit_zlib()
1445 PyModule_AddIntMacro(m, Z_DEFAULT_COMPRESSION); in PyInit_zlib()
1447 PyModule_AddIntMacro(m, Z_FILTERED); in PyInit_zlib()
1448 PyModule_AddIntMacro(m, Z_HUFFMAN_ONLY); in PyInit_zlib()
[all …]
Dselectmodule.c2468 PyModule_AddIntMacro(m, PIPE_BUF);
2487 PyModule_AddIntMacro(m, POLLIN);
2488 PyModule_AddIntMacro(m, POLLPRI);
2489 PyModule_AddIntMacro(m, POLLOUT);
2490 PyModule_AddIntMacro(m, POLLERR);
2491 PyModule_AddIntMacro(m, POLLHUP);
2492 PyModule_AddIntMacro(m, POLLNVAL);
2495 PyModule_AddIntMacro(m, POLLRDNORM);
2498 PyModule_AddIntMacro(m, POLLRDBAND);
2501 PyModule_AddIntMacro(m, POLLWRNORM);
[all …]
D_testbuffer.c2859 PyModule_AddIntMacro(m, ND_MAX_NDIM); in PyInit__testbuffer()
2860 PyModule_AddIntMacro(m, ND_VAREXPORT); in PyInit__testbuffer()
2861 PyModule_AddIntMacro(m, ND_WRITABLE); in PyInit__testbuffer()
2862 PyModule_AddIntMacro(m, ND_FORTRAN); in PyInit__testbuffer()
2863 PyModule_AddIntMacro(m, ND_SCALAR); in PyInit__testbuffer()
2864 PyModule_AddIntMacro(m, ND_PIL); in PyInit__testbuffer()
2865 PyModule_AddIntMacro(m, ND_GETBUF_FAIL); in PyInit__testbuffer()
2866 PyModule_AddIntMacro(m, ND_GETBUF_UNDEFINED); in PyInit__testbuffer()
2867 PyModule_AddIntMacro(m, ND_REDIRECT); in PyInit__testbuffer()
2869 PyModule_AddIntMacro(m, PyBUF_SIMPLE); in PyInit__testbuffer()
[all …]
Dtimemodule.c1897 if (PyModule_AddIntMacro(module, CLOCK_REALTIME) < 0) {
1904 if (PyModule_AddIntMacro(module, CLOCK_MONOTONIC) < 0) {
1910 if (PyModule_AddIntMacro(module, CLOCK_MONOTONIC_RAW) < 0) {
1916 if (PyModule_AddIntMacro(module, CLOCK_HIGHRES) < 0) {
1921 if (PyModule_AddIntMacro(module, CLOCK_PROCESS_CPUTIME_ID) < 0) {
1927 if (PyModule_AddIntMacro(module, CLOCK_THREAD_CPUTIME_ID) < 0) {
1932 if (PyModule_AddIntMacro(module, CLOCK_PROF) < 0) {
1937 if (PyModule_AddIntMacro(module, CLOCK_BOOTTIME) < 0) {
1942 if (PyModule_AddIntMacro(module, CLOCK_TAI) < 0) {
1947 if (PyModule_AddIntMacro(module, CLOCK_UPTIME) < 0) {
[all …]
D_lzmamodule.c1447 if (PyModule_AddIntMacro(m, FORMAT_AUTO) == -1 || in PyInit__lzma()
1448 PyModule_AddIntMacro(m, FORMAT_XZ) == -1 || in PyInit__lzma()
1449 PyModule_AddIntMacro(m, FORMAT_ALONE) == -1 || in PyInit__lzma()
1450 PyModule_AddIntMacro(m, FORMAT_RAW) == -1 || in PyInit__lzma()
D_datetimemodule.c6672 PyModule_AddIntMacro(m, MINYEAR); in PyInit__datetime()
6673 PyModule_AddIntMacro(m, MAXYEAR); in PyInit__datetime()
/external/python/cpython3/PC/
D_msi.c1085 PyModule_AddIntMacro(m, MSICOLINFO_NAMES); in PyInit__msi()
1086 PyModule_AddIntMacro(m, MSICOLINFO_TYPES); in PyInit__msi()
1088 PyModule_AddIntMacro(m, MSIMODIFY_SEEK); in PyInit__msi()
1089 PyModule_AddIntMacro(m, MSIMODIFY_REFRESH); in PyInit__msi()
1090 PyModule_AddIntMacro(m, MSIMODIFY_INSERT); in PyInit__msi()
1091 PyModule_AddIntMacro(m, MSIMODIFY_UPDATE); in PyInit__msi()
1092 PyModule_AddIntMacro(m, MSIMODIFY_ASSIGN); in PyInit__msi()
1093 PyModule_AddIntMacro(m, MSIMODIFY_REPLACE); in PyInit__msi()
1094 PyModule_AddIntMacro(m, MSIMODIFY_MERGE); in PyInit__msi()
1095 PyModule_AddIntMacro(m, MSIMODIFY_DELETE); in PyInit__msi()
[all …]
/external/python/cpython2/Doc/c-api/
Dmodule.rst107 .. c:function:: int PyModule_AddIntMacro(PyObject *module, macro)
110 *macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
/external/python/cpython2/Include/
Dmodsupport.h43 #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c) macro
/external/python/cpython3/Include/
Dmodsupport.h146 #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c) macro
/external/python/cpython2/Modules/
Dsocketmodule.c4822 PyModule_AddIntMacro(m, AF_PACKET);
4825 PyModule_AddIntMacro(m, PF_PACKET);
4828 PyModule_AddIntMacro(m, PACKET_HOST);
4831 PyModule_AddIntMacro(m, PACKET_BROADCAST);
4834 PyModule_AddIntMacro(m, PACKET_MULTICAST);
4837 PyModule_AddIntMacro(m, PACKET_OTHERHOST);
4840 PyModule_AddIntMacro(m, PACKET_OUTGOING);
4843 PyModule_AddIntMacro(m, PACKET_LOOPBACK);
4846 PyModule_AddIntMacro(m, PACKET_FASTROUTE);
/external/python/cpython2/Modules/_io/
D_iomodule.c654 if (PyModule_AddIntMacro(m, DEFAULT_BUFFER_SIZE) < 0) in init_io()
/external/python/cpython3/Modules/_io/
D_iomodule.c691 if (PyModule_AddIntMacro(m, DEFAULT_BUFFER_SIZE) < 0) in PyInit__io()
/external/python/cpython3/Doc/c-api/
Dmodule.rst475 .. c:function:: int PyModule_AddIntMacro(PyObject *module, macro)
478 *macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
/external/python/cpython3/Doc/data/
Drefcounts.dat1334 PyModule_AddIntMacro:int:::
1335 PyModule_AddIntMacro:PyObject*:module:0:
1336 PyModule_AddIntMacro::macro::
/external/python/cpython3/Python/
DPython-ast.c9644 if (PyModule_AddIntMacro(m, PyCF_ALLOW_TOP_LEVEL_AWAIT) < 0) { in astmodule_exec()
9647 if (PyModule_AddIntMacro(m, PyCF_ONLY_AST) < 0) { in astmodule_exec()
9650 if (PyModule_AddIntMacro(m, PyCF_TYPE_COMMENTS) < 0) { in astmodule_exec()
/external/python/cpython2/Doc/whatsnew/
D2.6.rst3054 and :c:macro:`PyModule_AddIntMacro()`. (Contributed by

12