Home
last modified time | relevance | path

Searched refs:PyModule_AddIntMacro (Results 1 – 25 of 29) 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.c444 if (PyModule_AddIntMacro(m, LOCK_SH)) return -1; in all_ins()
445 if (PyModule_AddIntMacro(m, LOCK_EX)) return -1; in all_ins()
446 if (PyModule_AddIntMacro(m, LOCK_NB)) return -1; in all_ins()
447 if (PyModule_AddIntMacro(m, LOCK_UN)) return -1; in all_ins()
450 if (PyModule_AddIntMacro(m, LOCK_MAND)) return -1; in all_ins()
453 if (PyModule_AddIntMacro(m, LOCK_READ)) return -1; in all_ins()
456 if (PyModule_AddIntMacro(m, LOCK_WRITE)) return -1; in all_ins()
459 if (PyModule_AddIntMacro(m, LOCK_RW)) return -1; in all_ins()
463 if (PyModule_AddIntMacro(m, F_DUPFD)) return -1; in all_ins()
466 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.c280 PyModule_AddIntMacro(m, LOG_EMERG); in PyInit_syslog()
281 PyModule_AddIntMacro(m, LOG_ALERT); in PyInit_syslog()
282 PyModule_AddIntMacro(m, LOG_CRIT); in PyInit_syslog()
283 PyModule_AddIntMacro(m, LOG_ERR); in PyInit_syslog()
284 PyModule_AddIntMacro(m, LOG_WARNING); in PyInit_syslog()
285 PyModule_AddIntMacro(m, LOG_NOTICE); in PyInit_syslog()
286 PyModule_AddIntMacro(m, LOG_INFO); in PyInit_syslog()
287 PyModule_AddIntMacro(m, LOG_DEBUG); in PyInit_syslog()
290 PyModule_AddIntMacro(m, LOG_PID); in PyInit_syslog()
291 PyModule_AddIntMacro(m, LOG_CONS); in PyInit_syslog()
[all …]
Dsocketmodule.c6603 PyModule_AddIntMacro(m, AF_UNSPEC);
6605 PyModule_AddIntMacro(m, AF_INET);
6607 PyModule_AddIntMacro(m, AF_UNIX);
6611 PyModule_AddIntMacro(m, AF_AX25);
6614 PyModule_AddIntMacro(m, AF_IPX); /* Novell IPX */
6618 PyModule_AddIntMacro(m, AF_APPLETALK);
6622 PyModule_AddIntMacro(m, AF_NETROM);
6626 PyModule_AddIntMacro(m, AF_BRIDGE);
6630 PyModule_AddIntMacro(m, AF_ATMPVC);
6634 PyModule_AddIntMacro(m, AF_AAL5);
[all …]
Dsymtablemodule.c74 PyModule_AddIntMacro(m, USE); in PyInit__symtable()
75 PyModule_AddIntMacro(m, DEF_GLOBAL); in PyInit__symtable()
76 PyModule_AddIntMacro(m, DEF_LOCAL); in PyInit__symtable()
77 PyModule_AddIntMacro(m, DEF_PARAM); in PyInit__symtable()
78 PyModule_AddIntMacro(m, DEF_FREE); in PyInit__symtable()
79 PyModule_AddIntMacro(m, DEF_FREE_CLASS); in PyInit__symtable()
80 PyModule_AddIntMacro(m, DEF_IMPORT); in PyInit__symtable()
81 PyModule_AddIntMacro(m, DEF_BOUND); in PyInit__symtable()
82 PyModule_AddIntMacro(m, DEF_ANNOT); in PyInit__symtable()
88 PyModule_AddIntMacro(m, LOCAL); in PyInit__symtable()
[all …]
Dresource.c334 PyModule_AddIntMacro(m, RLIMIT_CPU); in PyInit_resource()
338 PyModule_AddIntMacro(m, RLIMIT_FSIZE); in PyInit_resource()
342 PyModule_AddIntMacro(m, RLIMIT_DATA); in PyInit_resource()
346 PyModule_AddIntMacro(m, RLIMIT_STACK); in PyInit_resource()
350 PyModule_AddIntMacro(m, RLIMIT_CORE); in PyInit_resource()
354 PyModule_AddIntMacro(m, RLIMIT_NOFILE); in PyInit_resource()
358 PyModule_AddIntMacro(m, RLIMIT_OFILE); in PyInit_resource()
362 PyModule_AddIntMacro(m, RLIMIT_VMEM); in PyInit_resource()
366 PyModule_AddIntMacro(m, RLIMIT_AS); in PyInit_resource()
370 PyModule_AddIntMacro(m, RLIMIT_RSS); in PyInit_resource()
[all …]
Dsignalmodule.c1231 if (PyModule_AddIntMacro(m, SIG_BLOCK)) in PyInit__signal()
1235 if (PyModule_AddIntMacro(m, SIG_UNBLOCK)) in PyInit__signal()
1239 if (PyModule_AddIntMacro(m, SIG_SETMASK)) in PyInit__signal()
1269 if (PyModule_AddIntMacro(m, SIGHUP)) in PyInit__signal()
1273 if (PyModule_AddIntMacro(m, SIGINT)) in PyInit__signal()
1277 if (PyModule_AddIntMacro(m, SIGBREAK)) in PyInit__signal()
1281 if (PyModule_AddIntMacro(m, SIGQUIT)) in PyInit__signal()
1285 if (PyModule_AddIntMacro(m, SIGILL)) in PyInit__signal()
1289 if (PyModule_AddIntMacro(m, SIGTRAP)) in PyInit__signal()
1293 if (PyModule_AddIntMacro(m, SIGIOT)) in PyInit__signal()
[all …]
Dposixmodule.c12376 if (PyModule_AddIntMacro(m, F_OK)) return -1;
12379 if (PyModule_AddIntMacro(m, R_OK)) return -1;
12382 if (PyModule_AddIntMacro(m, W_OK)) return -1;
12385 if (PyModule_AddIntMacro(m, X_OK)) return -1;
12388 if (PyModule_AddIntMacro(m, NGROUPS_MAX)) return -1;
12391 if (PyModule_AddIntMacro(m, TMP_MAX)) return -1;
12394 if (PyModule_AddIntMacro(m, WCONTINUED)) return -1;
12397 if (PyModule_AddIntMacro(m, WNOHANG)) return -1;
12400 if (PyModule_AddIntMacro(m, WUNTRACED)) return -1;
12403 if (PyModule_AddIntMacro(m, O_RDONLY)) return -1;
[all …]
Dselectmodule.c2422 PyModule_AddIntMacro(m, PIPE_BUF);
2437 PyModule_AddIntMacro(m, POLLIN);
2438 PyModule_AddIntMacro(m, POLLPRI);
2439 PyModule_AddIntMacro(m, POLLOUT);
2440 PyModule_AddIntMacro(m, POLLERR);
2441 PyModule_AddIntMacro(m, POLLHUP);
2442 PyModule_AddIntMacro(m, POLLNVAL);
2445 PyModule_AddIntMacro(m, POLLRDNORM);
2448 PyModule_AddIntMacro(m, POLLRDBAND);
2451 PyModule_AddIntMacro(m, POLLWRNORM);
[all …]
D_localemodule.c634 PyModule_AddIntMacro(m, LC_CTYPE); in PyInit__locale()
635 PyModule_AddIntMacro(m, LC_TIME); in PyInit__locale()
636 PyModule_AddIntMacro(m, LC_COLLATE); in PyInit__locale()
637 PyModule_AddIntMacro(m, LC_MONETARY); in PyInit__locale()
640 PyModule_AddIntMacro(m, LC_MESSAGES); in PyInit__locale()
643 PyModule_AddIntMacro(m, LC_NUMERIC); in PyInit__locale()
644 PyModule_AddIntMacro(m, LC_ALL); in PyInit__locale()
645 PyModule_AddIntMacro(m, CHAR_MAX); in PyInit__locale()
Dzlibmodule.c1375 PyModule_AddIntMacro(m, MAX_WBITS); in PyInit_zlib()
1376 PyModule_AddIntMacro(m, DEFLATED); in PyInit_zlib()
1377 PyModule_AddIntMacro(m, DEF_MEM_LEVEL); in PyInit_zlib()
1378 PyModule_AddIntMacro(m, DEF_BUF_SIZE); in PyInit_zlib()
1379 PyModule_AddIntMacro(m, Z_BEST_SPEED); in PyInit_zlib()
1380 PyModule_AddIntMacro(m, Z_BEST_COMPRESSION); in PyInit_zlib()
1381 PyModule_AddIntMacro(m, Z_DEFAULT_COMPRESSION); in PyInit_zlib()
1382 PyModule_AddIntMacro(m, Z_FILTERED); in PyInit_zlib()
1383 PyModule_AddIntMacro(m, Z_HUFFMAN_ONLY); in PyInit_zlib()
1384 PyModule_AddIntMacro(m, Z_DEFAULT_STRATEGY); in PyInit_zlib()
[all …]
D_testbuffer.c2860 PyModule_AddIntMacro(m, ND_MAX_NDIM); in PyInit__testbuffer()
2861 PyModule_AddIntMacro(m, ND_VAREXPORT); in PyInit__testbuffer()
2862 PyModule_AddIntMacro(m, ND_WRITABLE); in PyInit__testbuffer()
2863 PyModule_AddIntMacro(m, ND_FORTRAN); in PyInit__testbuffer()
2864 PyModule_AddIntMacro(m, ND_SCALAR); in PyInit__testbuffer()
2865 PyModule_AddIntMacro(m, ND_PIL); in PyInit__testbuffer()
2866 PyModule_AddIntMacro(m, ND_GETBUF_FAIL); in PyInit__testbuffer()
2867 PyModule_AddIntMacro(m, ND_GETBUF_UNDEFINED); in PyInit__testbuffer()
2868 PyModule_AddIntMacro(m, ND_REDIRECT); in PyInit__testbuffer()
2870 PyModule_AddIntMacro(m, PyBUF_SIMPLE); in PyInit__testbuffer()
[all …]
Dtimemodule.c1368 PyModule_AddIntMacro(m, CLOCK_REALTIME); in PyInit_time()
1371 PyModule_AddIntMacro(m, CLOCK_MONOTONIC); in PyInit_time()
1374 PyModule_AddIntMacro(m, CLOCK_MONOTONIC_RAW); in PyInit_time()
1377 PyModule_AddIntMacro(m, CLOCK_HIGHRES); in PyInit_time()
1380 PyModule_AddIntMacro(m, CLOCK_PROCESS_CPUTIME_ID); in PyInit_time()
1383 PyModule_AddIntMacro(m, CLOCK_THREAD_CPUTIME_ID); in PyInit_time()
D_lzmamodule.c1472 if (PyModule_AddIntMacro(m, FORMAT_AUTO) == -1 || in PyInit__lzma()
1473 PyModule_AddIntMacro(m, FORMAT_XZ) == -1 || in PyInit__lzma()
1474 PyModule_AddIntMacro(m, FORMAT_ALONE) == -1 || in PyInit__lzma()
1475 PyModule_AddIntMacro(m, FORMAT_RAW) == -1 || in PyInit__lzma()
/external/python/cpython3/PC/
D_msi.c1056 PyModule_AddIntMacro(m, MSICOLINFO_NAMES); in PyInit__msi()
1057 PyModule_AddIntMacro(m, MSICOLINFO_TYPES); in PyInit__msi()
1059 PyModule_AddIntMacro(m, MSIMODIFY_SEEK); in PyInit__msi()
1060 PyModule_AddIntMacro(m, MSIMODIFY_REFRESH); in PyInit__msi()
1061 PyModule_AddIntMacro(m, MSIMODIFY_INSERT); in PyInit__msi()
1062 PyModule_AddIntMacro(m, MSIMODIFY_UPDATE); in PyInit__msi()
1063 PyModule_AddIntMacro(m, MSIMODIFY_ASSIGN); in PyInit__msi()
1064 PyModule_AddIntMacro(m, MSIMODIFY_REPLACE); in PyInit__msi()
1065 PyModule_AddIntMacro(m, MSIMODIFY_MERGE); in PyInit__msi()
1066 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.h78 #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.c680 if (PyModule_AddIntMacro(m, DEFAULT_BUFFER_SIZE) < 0) in PyInit__io()
/external/python/cpython3/Doc/c-api/
Dmodule.rst430 .. c:function:: int PyModule_AddIntMacro(PyObject *module, macro)
433 *macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int

12