Home
last modified time | relevance | path

Searched refs:PyModule_AddIntMacro (Results 1 – 25 of 30) 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.c453 if (PyModule_AddIntMacro(m, LOCK_SH)) return -1; in all_ins()
454 if (PyModule_AddIntMacro(m, LOCK_EX)) return -1; in all_ins()
455 if (PyModule_AddIntMacro(m, LOCK_NB)) return -1; in all_ins()
456 if (PyModule_AddIntMacro(m, LOCK_UN)) return -1; in all_ins()
459 if (PyModule_AddIntMacro(m, LOCK_MAND)) return -1; in all_ins()
462 if (PyModule_AddIntMacro(m, LOCK_READ)) return -1; in all_ins()
465 if (PyModule_AddIntMacro(m, LOCK_WRITE)) return -1; in all_ins()
468 if (PyModule_AddIntMacro(m, LOCK_RW)) return -1; in all_ins()
472 if (PyModule_AddIntMacro(m, F_DUPFD)) return -1; in all_ins()
475 if (PyModule_AddIntMacro(m, F_DUPFD_CLOEXEC)) return -1; in all_ins()
[all …]
D_stat.c515 if (PyModule_AddIntMacro(m, S_IFDIR)) return NULL; in PyInit__stat()
516 if (PyModule_AddIntMacro(m, S_IFCHR)) return NULL; in PyInit__stat()
517 if (PyModule_AddIntMacro(m, S_IFBLK)) return NULL; in PyInit__stat()
518 if (PyModule_AddIntMacro(m, S_IFREG)) return NULL; in PyInit__stat()
519 if (PyModule_AddIntMacro(m, S_IFIFO)) return NULL; in PyInit__stat()
520 if (PyModule_AddIntMacro(m, S_IFLNK)) return NULL; in PyInit__stat()
521 if (PyModule_AddIntMacro(m, S_IFSOCK)) return NULL; in PyInit__stat()
522 if (PyModule_AddIntMacro(m, S_IFDOOR)) return NULL; in PyInit__stat()
523 if (PyModule_AddIntMacro(m, S_IFPORT)) return NULL; in PyInit__stat()
524 if (PyModule_AddIntMacro(m, S_IFWHT)) return NULL; in PyInit__stat()
[all …]
Dsyslogmodule.c278 PyModule_AddIntMacro(m, LOG_EMERG); in PyInit_syslog()
279 PyModule_AddIntMacro(m, LOG_ALERT); in PyInit_syslog()
280 PyModule_AddIntMacro(m, LOG_CRIT); in PyInit_syslog()
281 PyModule_AddIntMacro(m, LOG_ERR); in PyInit_syslog()
282 PyModule_AddIntMacro(m, LOG_WARNING); in PyInit_syslog()
283 PyModule_AddIntMacro(m, LOG_NOTICE); in PyInit_syslog()
284 PyModule_AddIntMacro(m, LOG_INFO); in PyInit_syslog()
285 PyModule_AddIntMacro(m, LOG_DEBUG); in PyInit_syslog()
288 PyModule_AddIntMacro(m, LOG_PID); in PyInit_syslog()
289 PyModule_AddIntMacro(m, LOG_CONS); in PyInit_syslog()
[all …]
Dsocketmodule.c6855 PyModule_AddIntMacro(m, AF_UNSPEC);
6857 PyModule_AddIntMacro(m, AF_INET);
6859 PyModule_AddIntMacro(m, AF_UNIX);
6863 PyModule_AddIntMacro(m, AF_AX25);
6866 PyModule_AddIntMacro(m, AF_IPX); /* Novell IPX */
6870 PyModule_AddIntMacro(m, AF_APPLETALK);
6874 PyModule_AddIntMacro(m, AF_NETROM);
6878 PyModule_AddIntMacro(m, AF_BRIDGE);
6882 PyModule_AddIntMacro(m, AF_ATMPVC);
6886 PyModule_AddIntMacro(m, AF_AAL5);
[all …]
Dsymtablemodule.c85 PyModule_AddIntMacro(m, USE); in PyInit__symtable()
86 PyModule_AddIntMacro(m, DEF_GLOBAL); in PyInit__symtable()
87 PyModule_AddIntMacro(m, DEF_LOCAL); in PyInit__symtable()
88 PyModule_AddIntMacro(m, DEF_PARAM); in PyInit__symtable()
89 PyModule_AddIntMacro(m, DEF_FREE); in PyInit__symtable()
90 PyModule_AddIntMacro(m, DEF_FREE_CLASS); in PyInit__symtable()
91 PyModule_AddIntMacro(m, DEF_IMPORT); in PyInit__symtable()
92 PyModule_AddIntMacro(m, DEF_BOUND); in PyInit__symtable()
93 PyModule_AddIntMacro(m, DEF_ANNOT); in PyInit__symtable()
99 PyModule_AddIntMacro(m, LOCAL); in PyInit__symtable()
[all …]
Dresource.c373 PyModule_AddIntMacro(m, RLIMIT_CPU); in PyInit_resource()
377 PyModule_AddIntMacro(m, RLIMIT_FSIZE); in PyInit_resource()
381 PyModule_AddIntMacro(m, RLIMIT_DATA); in PyInit_resource()
385 PyModule_AddIntMacro(m, RLIMIT_STACK); in PyInit_resource()
389 PyModule_AddIntMacro(m, RLIMIT_CORE); in PyInit_resource()
393 PyModule_AddIntMacro(m, RLIMIT_NOFILE); in PyInit_resource()
397 PyModule_AddIntMacro(m, RLIMIT_OFILE); in PyInit_resource()
401 PyModule_AddIntMacro(m, RLIMIT_VMEM); in PyInit_resource()
405 PyModule_AddIntMacro(m, RLIMIT_AS); in PyInit_resource()
409 PyModule_AddIntMacro(m, RLIMIT_RSS); in PyInit_resource()
[all …]
Dsignalmodule.c1253 if (PyModule_AddIntMacro(m, SIG_BLOCK)) in PyInit__signal()
1257 if (PyModule_AddIntMacro(m, SIG_UNBLOCK)) in PyInit__signal()
1261 if (PyModule_AddIntMacro(m, SIG_SETMASK)) in PyInit__signal()
1291 if (PyModule_AddIntMacro(m, SIGHUP)) in PyInit__signal()
1295 if (PyModule_AddIntMacro(m, SIGINT)) in PyInit__signal()
1299 if (PyModule_AddIntMacro(m, SIGBREAK)) in PyInit__signal()
1303 if (PyModule_AddIntMacro(m, SIGQUIT)) in PyInit__signal()
1307 if (PyModule_AddIntMacro(m, SIGILL)) in PyInit__signal()
1311 if (PyModule_AddIntMacro(m, SIGTRAP)) in PyInit__signal()
1315 if (PyModule_AddIntMacro(m, SIGIOT)) in PyInit__signal()
[all …]
Dzlibmodule.c1360 PyModule_AddIntMacro(m, MAX_WBITS); in PyInit_zlib()
1361 PyModule_AddIntMacro(m, DEFLATED); in PyInit_zlib()
1362 PyModule_AddIntMacro(m, DEF_MEM_LEVEL); in PyInit_zlib()
1363 PyModule_AddIntMacro(m, DEF_BUF_SIZE); in PyInit_zlib()
1365 PyModule_AddIntMacro(m, Z_NO_COMPRESSION); in PyInit_zlib()
1366 PyModule_AddIntMacro(m, Z_BEST_SPEED); in PyInit_zlib()
1367 PyModule_AddIntMacro(m, Z_BEST_COMPRESSION); in PyInit_zlib()
1368 PyModule_AddIntMacro(m, Z_DEFAULT_COMPRESSION); in PyInit_zlib()
1370 PyModule_AddIntMacro(m, Z_FILTERED); in PyInit_zlib()
1371 PyModule_AddIntMacro(m, Z_HUFFMAN_ONLY); in PyInit_zlib()
[all …]
Dposixmodule.c12861 if (PyModule_AddIntMacro(m, F_OK)) return -1; in all_ins()
12864 if (PyModule_AddIntMacro(m, R_OK)) return -1; in all_ins()
12867 if (PyModule_AddIntMacro(m, W_OK)) return -1; in all_ins()
12870 if (PyModule_AddIntMacro(m, X_OK)) return -1; in all_ins()
12873 if (PyModule_AddIntMacro(m, NGROUPS_MAX)) return -1; in all_ins()
12876 if (PyModule_AddIntMacro(m, TMP_MAX)) return -1; in all_ins()
12879 if (PyModule_AddIntMacro(m, WCONTINUED)) return -1; in all_ins()
12882 if (PyModule_AddIntMacro(m, WNOHANG)) return -1; in all_ins()
12885 if (PyModule_AddIntMacro(m, WUNTRACED)) return -1; in all_ins()
12888 if (PyModule_AddIntMacro(m, O_RDONLY)) return -1; in all_ins()
[all …]
Dselectmodule.c2432 PyModule_AddIntMacro(m, PIPE_BUF);
2447 PyModule_AddIntMacro(m, POLLIN);
2448 PyModule_AddIntMacro(m, POLLPRI);
2449 PyModule_AddIntMacro(m, POLLOUT);
2450 PyModule_AddIntMacro(m, POLLERR);
2451 PyModule_AddIntMacro(m, POLLHUP);
2452 PyModule_AddIntMacro(m, POLLNVAL);
2455 PyModule_AddIntMacro(m, POLLRDNORM);
2458 PyModule_AddIntMacro(m, POLLRDBAND);
2461 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 …]
D_localemodule.c741 PyModule_AddIntMacro(m, LC_CTYPE); in PyInit__locale()
742 PyModule_AddIntMacro(m, LC_TIME); in PyInit__locale()
743 PyModule_AddIntMacro(m, LC_COLLATE); in PyInit__locale()
744 PyModule_AddIntMacro(m, LC_MONETARY); in PyInit__locale()
747 PyModule_AddIntMacro(m, LC_MESSAGES); in PyInit__locale()
750 PyModule_AddIntMacro(m, LC_NUMERIC); in PyInit__locale()
751 PyModule_AddIntMacro(m, LC_ALL); in PyInit__locale()
752 PyModule_AddIntMacro(m, CHAR_MAX); in PyInit__locale()
Dtimemodule.c1758 PyModule_AddIntMacro(m, CLOCK_REALTIME); in PyInit_time()
1761 PyModule_AddIntMacro(m, CLOCK_MONOTONIC); in PyInit_time()
1764 PyModule_AddIntMacro(m, CLOCK_MONOTONIC_RAW); in PyInit_time()
1767 PyModule_AddIntMacro(m, CLOCK_HIGHRES); in PyInit_time()
1770 PyModule_AddIntMacro(m, CLOCK_PROCESS_CPUTIME_ID); in PyInit_time()
1773 PyModule_AddIntMacro(m, CLOCK_THREAD_CPUTIME_ID); in PyInit_time()
1776 PyModule_AddIntMacro(m, CLOCK_PROF); in PyInit_time()
1779 PyModule_AddIntMacro(m, CLOCK_BOOTTIME); in PyInit_time()
1782 PyModule_AddIntMacro(m, CLOCK_UPTIME); in PyInit_time()
D_lzmamodule.c1453 if (PyModule_AddIntMacro(m, FORMAT_AUTO) == -1 || in PyInit__lzma()
1454 PyModule_AddIntMacro(m, FORMAT_XZ) == -1 || in PyInit__lzma()
1455 PyModule_AddIntMacro(m, FORMAT_ALONE) == -1 || in PyInit__lzma()
1456 PyModule_AddIntMacro(m, FORMAT_RAW) == -1 || in PyInit__lzma()
/external/python/cpython3/PC/
D_msi.c1082 PyModule_AddIntMacro(m, MSICOLINFO_NAMES); in PyInit__msi()
1083 PyModule_AddIntMacro(m, MSICOLINFO_TYPES); in PyInit__msi()
1085 PyModule_AddIntMacro(m, MSIMODIFY_SEEK); in PyInit__msi()
1086 PyModule_AddIntMacro(m, MSIMODIFY_REFRESH); in PyInit__msi()
1087 PyModule_AddIntMacro(m, MSIMODIFY_INSERT); in PyInit__msi()
1088 PyModule_AddIntMacro(m, MSIMODIFY_UPDATE); in PyInit__msi()
1089 PyModule_AddIntMacro(m, MSIMODIFY_ASSIGN); in PyInit__msi()
1090 PyModule_AddIntMacro(m, MSIMODIFY_REPLACE); in PyInit__msi()
1091 PyModule_AddIntMacro(m, MSIMODIFY_MERGE); in PyInit__msi()
1092 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.h120 #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.c657 if (PyModule_AddIntMacro(m, DEFAULT_BUFFER_SIZE) < 0) in PyInit__io()
/external/python/cpython3/Doc/c-api/
Dmodule.rst436 .. c:function:: int PyModule_AddIntMacro(PyObject *module, macro)
439 *macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int

12