Home
last modified time | relevance | path

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

/third_party/python/Modules/
Dfcntlmodule.c459 if (PyModule_AddIntMacro(m, LOCK_SH)) return -1; in all_ins()
460 if (PyModule_AddIntMacro(m, LOCK_EX)) return -1; in all_ins()
461 if (PyModule_AddIntMacro(m, LOCK_NB)) return -1; in all_ins()
462 if (PyModule_AddIntMacro(m, LOCK_UN)) return -1; in all_ins()
465 if (PyModule_AddIntMacro(m, LOCK_MAND)) return -1; in all_ins()
468 if (PyModule_AddIntMacro(m, LOCK_READ)) return -1; in all_ins()
471 if (PyModule_AddIntMacro(m, LOCK_WRITE)) return -1; in all_ins()
474 if (PyModule_AddIntMacro(m, LOCK_RW)) return -1; in all_ins()
478 if (PyModule_AddIntMacro(m, F_DUPFD)) return -1; in all_ins()
481 if (PyModule_AddIntMacro(m, F_DUPFD_CLOEXEC)) return -1; in all_ins()
[all …]
Dsocketmodule.c7298 PyModule_AddIntMacro(m, AF_UNSPEC);
7300 PyModule_AddIntMacro(m, AF_INET);
7302 PyModule_AddIntMacro(m, AF_UNIX);
7306 PyModule_AddIntMacro(m, AF_AX25);
7309 PyModule_AddIntMacro(m, AF_IPX); /* Novell IPX */
7313 PyModule_AddIntMacro(m, AF_APPLETALK);
7317 PyModule_AddIntMacro(m, AF_NETROM);
7321 PyModule_AddIntMacro(m, AF_BRIDGE);
7325 PyModule_AddIntMacro(m, AF_ATMPVC);
7329 PyModule_AddIntMacro(m, AF_AAL5);
[all …]
Dsymtablemodule.c79 if (PyModule_AddIntMacro(m, USE) < 0) return -1; in symtable_init_constants()
80 if (PyModule_AddIntMacro(m, DEF_GLOBAL) < 0) return -1; in symtable_init_constants()
81 if (PyModule_AddIntMacro(m, DEF_NONLOCAL) < 0) return -1; in symtable_init_constants()
82 if (PyModule_AddIntMacro(m, DEF_LOCAL) < 0) return -1; in symtable_init_constants()
83 if (PyModule_AddIntMacro(m, DEF_PARAM) < 0) return -1; in symtable_init_constants()
84 if (PyModule_AddIntMacro(m, DEF_FREE) < 0) return -1; in symtable_init_constants()
85 if (PyModule_AddIntMacro(m, DEF_FREE_CLASS) < 0) return -1; in symtable_init_constants()
86 if (PyModule_AddIntMacro(m, DEF_IMPORT) < 0) return -1; in symtable_init_constants()
87 if (PyModule_AddIntMacro(m, DEF_BOUND) < 0) return -1; in symtable_init_constants()
88 if (PyModule_AddIntMacro(m, DEF_ANNOT) < 0) return -1; in symtable_init_constants()
[all …]
Dposixmodule.c15045 if (PyModule_AddIntMacro(m, F_OK)) return -1; in all_ins()
15048 if (PyModule_AddIntMacro(m, R_OK)) return -1; in all_ins()
15051 if (PyModule_AddIntMacro(m, W_OK)) return -1; in all_ins()
15054 if (PyModule_AddIntMacro(m, X_OK)) return -1; in all_ins()
15057 if (PyModule_AddIntMacro(m, NGROUPS_MAX)) return -1; in all_ins()
15060 if (PyModule_AddIntMacro(m, TMP_MAX)) return -1; in all_ins()
15063 if (PyModule_AddIntMacro(m, WCONTINUED)) return -1; in all_ins()
15066 if (PyModule_AddIntMacro(m, WNOHANG)) return -1; in all_ins()
15069 if (PyModule_AddIntMacro(m, WUNTRACED)) return -1; in all_ins()
15072 if (PyModule_AddIntMacro(m, O_RDONLY)) return -1; in all_ins()
[all …]
Dselectmodule.c2449 PyModule_AddIntMacro(m, PIPE_BUF);
2468 PyModule_AddIntMacro(m, POLLIN);
2469 PyModule_AddIntMacro(m, POLLPRI);
2470 PyModule_AddIntMacro(m, POLLOUT);
2471 PyModule_AddIntMacro(m, POLLERR);
2472 PyModule_AddIntMacro(m, POLLHUP);
2473 PyModule_AddIntMacro(m, POLLNVAL);
2476 PyModule_AddIntMacro(m, POLLRDNORM);
2479 PyModule_AddIntMacro(m, POLLRDBAND);
2482 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.c1963 if (PyModule_AddIntMacro(module, CLOCK_REALTIME) < 0) {
1970 if (PyModule_AddIntMacro(module, CLOCK_MONOTONIC) < 0) {
1976 if (PyModule_AddIntMacro(module, CLOCK_MONOTONIC_RAW) < 0) {
1982 if (PyModule_AddIntMacro(module, CLOCK_HIGHRES) < 0) {
1987 if (PyModule_AddIntMacro(module, CLOCK_PROCESS_CPUTIME_ID) < 0) {
1993 if (PyModule_AddIntMacro(module, CLOCK_THREAD_CPUTIME_ID) < 0) {
1998 if (PyModule_AddIntMacro(module, CLOCK_PROF) < 0) {
2003 if (PyModule_AddIntMacro(module, CLOCK_BOOTTIME) < 0) {
2008 if (PyModule_AddIntMacro(module, CLOCK_TAI) < 0) {
2013 if (PyModule_AddIntMacro(module, CLOCK_UPTIME) < 0) {
[all …]
D_lzmamodule.c1518 if (PyModule_AddIntMacro(module, macro) < 0) { \ in lzma_exec()
D_datetimemodule.c6836 if (PyModule_AddIntMacro(module, MINYEAR) < 0) { in _datetime_exec()
6839 if (PyModule_AddIntMacro(module, MAXYEAR) < 0) { in _datetime_exec()
/third_party/python/PC/
D_msi.c1283 PyModule_AddIntMacro(m, MSICOLINFO_NAMES); in PyInit__msi()
1284 PyModule_AddIntMacro(m, MSICOLINFO_TYPES); in PyInit__msi()
1286 PyModule_AddIntMacro(m, MSIMODIFY_SEEK); in PyInit__msi()
1287 PyModule_AddIntMacro(m, MSIMODIFY_REFRESH); in PyInit__msi()
1288 PyModule_AddIntMacro(m, MSIMODIFY_INSERT); in PyInit__msi()
1289 PyModule_AddIntMacro(m, MSIMODIFY_UPDATE); in PyInit__msi()
1290 PyModule_AddIntMacro(m, MSIMODIFY_ASSIGN); in PyInit__msi()
1291 PyModule_AddIntMacro(m, MSIMODIFY_REPLACE); in PyInit__msi()
1292 PyModule_AddIntMacro(m, MSIMODIFY_MERGE); in PyInit__msi()
1293 PyModule_AddIntMacro(m, MSIMODIFY_DELETE); in PyInit__msi()
[all …]
/third_party/python/Include/
Dmodsupport.h61 #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c) macro
/third_party/python/Lib/test/
D_testcppext.cpp210 if (PyModule_AddIntMacro(module, __cplusplus) < 0) { in _testcppext_exec()
/third_party/python/Modules/_io/
D_iomodule.c691 if (PyModule_AddIntMacro(m, DEFAULT_BUFFER_SIZE) < 0) in PyInit__io()
/third_party/python/Doc/c-api/
Dmodule.rst558 .. c:function:: int PyModule_AddIntMacro(PyObject *module, macro)
561 *macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
/third_party/python/Doc/data/
Drefcounts.dat1337 PyModule_AddIntMacro:int:::
1338 PyModule_AddIntMacro:PyObject*:module:0:
1339 PyModule_AddIntMacro::macro::
/third_party/python/Python/
DPython-ast.c11914 if (PyModule_AddIntMacro(m, PyCF_ALLOW_TOP_LEVEL_AWAIT) < 0) { in astmodule_exec()
11917 if (PyModule_AddIntMacro(m, PyCF_ONLY_AST) < 0) { in astmodule_exec()
11920 if (PyModule_AddIntMacro(m, PyCF_TYPE_COMMENTS) < 0) { in astmodule_exec()
/third_party/python/Doc/whatsnew/
D2.6.rst3058 and :c:macro:`PyModule_AddIntMacro()`. (Contributed by