Home
last modified time | relevance | path

Searched refs:PyModule_AddIntConstant (Results 1 – 25 of 78) sorted by relevance

1234

/external/python/cpython2/Modules/
Dsyslogmodule.c253 PyModule_AddIntConstant(m, "LOG_EMERG", LOG_EMERG); in initsyslog()
254 PyModule_AddIntConstant(m, "LOG_ALERT", LOG_ALERT); in initsyslog()
255 PyModule_AddIntConstant(m, "LOG_CRIT", LOG_CRIT); in initsyslog()
256 PyModule_AddIntConstant(m, "LOG_ERR", LOG_ERR); in initsyslog()
257 PyModule_AddIntConstant(m, "LOG_WARNING", LOG_WARNING); in initsyslog()
258 PyModule_AddIntConstant(m, "LOG_NOTICE", LOG_NOTICE); in initsyslog()
259 PyModule_AddIntConstant(m, "LOG_INFO", LOG_INFO); in initsyslog()
260 PyModule_AddIntConstant(m, "LOG_DEBUG", LOG_DEBUG); in initsyslog()
263 PyModule_AddIntConstant(m, "LOG_PID", LOG_PID); in initsyslog()
264 PyModule_AddIntConstant(m, "LOG_CONS", LOG_CONS); in initsyslog()
[all …]
Dsymtablemodule.c61 PyModule_AddIntConstant(m, "USE", USE); in init_symtable()
62 PyModule_AddIntConstant(m, "DEF_GLOBAL", DEF_GLOBAL); in init_symtable()
63 PyModule_AddIntConstant(m, "DEF_LOCAL", DEF_LOCAL); in init_symtable()
64 PyModule_AddIntConstant(m, "DEF_PARAM", DEF_PARAM); in init_symtable()
65 PyModule_AddIntConstant(m, "DEF_FREE", DEF_FREE); in init_symtable()
66 PyModule_AddIntConstant(m, "DEF_FREE_CLASS", DEF_FREE_CLASS); in init_symtable()
67 PyModule_AddIntConstant(m, "DEF_IMPORT", DEF_IMPORT); in init_symtable()
68 PyModule_AddIntConstant(m, "DEF_BOUND", DEF_BOUND); in init_symtable()
70 PyModule_AddIntConstant(m, "TYPE_FUNCTION", FunctionBlock); in init_symtable()
71 PyModule_AddIntConstant(m, "TYPE_CLASS", ClassBlock); in init_symtable()
[all …]
Dsocketmodule.c4666 PyModule_AddIntConstant(m, "AF_UNSPEC", AF_UNSPEC);
4668 PyModule_AddIntConstant(m, "AF_INET", AF_INET);
4670 PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
4673 PyModule_AddIntConstant(m, "AF_UNIX", AF_UNIX);
4677 PyModule_AddIntConstant(m, "AF_AX25", AF_AX25);
4680 PyModule_AddIntConstant(m, "AF_IPX", AF_IPX); /* Novell IPX */
4684 PyModule_AddIntConstant(m, "AF_APPLETALK", AF_APPLETALK);
4688 PyModule_AddIntConstant(m, "AF_NETROM", AF_NETROM);
4692 PyModule_AddIntConstant(m, "AF_BRIDGE", AF_BRIDGE);
4696 PyModule_AddIntConstant(m, "AF_ATMPVC", AF_ATMPVC);
[all …]
Dselectmodule.c1866 PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF);
1880 PyModule_AddIntConstant(m, "POLLIN", POLLIN);
1881 PyModule_AddIntConstant(m, "POLLPRI", POLLPRI);
1882 PyModule_AddIntConstant(m, "POLLOUT", POLLOUT);
1883 PyModule_AddIntConstant(m, "POLLERR", POLLERR);
1884 PyModule_AddIntConstant(m, "POLLHUP", POLLHUP);
1885 PyModule_AddIntConstant(m, "POLLNVAL", POLLNVAL);
1888 PyModule_AddIntConstant(m, "POLLRDNORM", POLLRDNORM);
1891 PyModule_AddIntConstant(m, "POLLRDBAND", POLLRDBAND);
1894 PyModule_AddIntConstant(m, "POLLWRNORM", POLLWRNORM);
[all …]
Dresource.c271 PyModule_AddIntConstant(m, "RLIMIT_CPU", RLIMIT_CPU); in initresource()
275 PyModule_AddIntConstant(m, "RLIMIT_FSIZE", RLIMIT_FSIZE); in initresource()
279 PyModule_AddIntConstant(m, "RLIMIT_DATA", RLIMIT_DATA); in initresource()
283 PyModule_AddIntConstant(m, "RLIMIT_STACK", RLIMIT_STACK); in initresource()
287 PyModule_AddIntConstant(m, "RLIMIT_CORE", RLIMIT_CORE); in initresource()
291 PyModule_AddIntConstant(m, "RLIMIT_NOFILE", RLIMIT_NOFILE); in initresource()
295 PyModule_AddIntConstant(m, "RLIMIT_OFILE", RLIMIT_OFILE); in initresource()
299 PyModule_AddIntConstant(m, "RLIMIT_VMEM", RLIMIT_VMEM); in initresource()
303 PyModule_AddIntConstant(m, "RLIMIT_AS", RLIMIT_AS); in initresource()
307 PyModule_AddIntConstant(m, "RLIMIT_RSS", RLIMIT_RSS); in initresource()
[all …]
Dtimemodule.c809 PyModule_AddIntConstant(m, "timezone", _timezone); in inittimezone()
811 PyModule_AddIntConstant(m, "timezone", timezone); in inittimezone()
814 PyModule_AddIntConstant(m, "altzone", altzone); in inittimezone()
817 PyModule_AddIntConstant(m, "altzone", _timezone-3600); in inittimezone()
819 PyModule_AddIntConstant(m, "altzone", timezone-3600); in inittimezone()
822 PyModule_AddIntConstant(m, "daylight", daylight); in inittimezone()
846 PyModule_AddIntConstant(m, "timezone", julyzone); in inittimezone()
847 PyModule_AddIntConstant(m, "altzone", janzone); in inittimezone()
848 PyModule_AddIntConstant(m, "daylight", in inittimezone()
854 PyModule_AddIntConstant(m, "timezone", janzone); in inittimezone()
[all …]
Dlinuxaudiodev.c485 if (PyModule_AddIntConstant(m, "AFMT_MU_LAW", (long)AFMT_MU_LAW) == -1) in initlinuxaudiodev()
487 if (PyModule_AddIntConstant(m, "AFMT_A_LAW", (long)AFMT_A_LAW) == -1) in initlinuxaudiodev()
489 if (PyModule_AddIntConstant(m, "AFMT_U8", (long)AFMT_U8) == -1) in initlinuxaudiodev()
491 if (PyModule_AddIntConstant(m, "AFMT_S8", (long)AFMT_S8) == -1) in initlinuxaudiodev()
493 if (PyModule_AddIntConstant(m, "AFMT_U16_BE", (long)AFMT_U16_BE) == -1) in initlinuxaudiodev()
495 if (PyModule_AddIntConstant(m, "AFMT_U16_LE", (long)AFMT_U16_LE) == -1) in initlinuxaudiodev()
497 if (PyModule_AddIntConstant(m, "AFMT_S16_BE", (long)AFMT_S16_BE) == -1) in initlinuxaudiodev()
499 if (PyModule_AddIntConstant(m, "AFMT_S16_LE", (long)AFMT_S16_LE) == -1) in initlinuxaudiodev()
501 if (PyModule_AddIntConstant(m, "AFMT_S16_NE", (long)AFMT_S16_NE) == -1) in initlinuxaudiodev()
Dzlibmodule.c1139 PyModule_AddIntConstant(m, "MAX_WBITS", MAX_WBITS); in PyInit_zlib()
1140 PyModule_AddIntConstant(m, "DEFLATED", DEFLATED); in PyInit_zlib()
1141 PyModule_AddIntConstant(m, "DEF_MEM_LEVEL", DEF_MEM_LEVEL); in PyInit_zlib()
1142 PyModule_AddIntConstant(m, "Z_BEST_SPEED", Z_BEST_SPEED); in PyInit_zlib()
1143 PyModule_AddIntConstant(m, "Z_BEST_COMPRESSION", Z_BEST_COMPRESSION); in PyInit_zlib()
1144 PyModule_AddIntConstant(m, "Z_DEFAULT_COMPRESSION", Z_DEFAULT_COMPRESSION); in PyInit_zlib()
1145 PyModule_AddIntConstant(m, "Z_FILTERED", Z_FILTERED); in PyInit_zlib()
1146 PyModule_AddIntConstant(m, "Z_HUFFMAN_ONLY", Z_HUFFMAN_ONLY); in PyInit_zlib()
1147 PyModule_AddIntConstant(m, "Z_DEFAULT_STRATEGY", Z_DEFAULT_STRATEGY); in PyInit_zlib()
1149 PyModule_AddIntConstant(m, "Z_FINISH", Z_FINISH); in PyInit_zlib()
[all …]
D_ssl.c4242 PyModule_AddIntConstant(m, "SSL_ERROR_ZERO_RETURN", in init_ssl()
4244 PyModule_AddIntConstant(m, "SSL_ERROR_WANT_READ", in init_ssl()
4246 PyModule_AddIntConstant(m, "SSL_ERROR_WANT_WRITE", in init_ssl()
4248 PyModule_AddIntConstant(m, "SSL_ERROR_WANT_X509_LOOKUP", in init_ssl()
4250 PyModule_AddIntConstant(m, "SSL_ERROR_SYSCALL", in init_ssl()
4252 PyModule_AddIntConstant(m, "SSL_ERROR_SSL", in init_ssl()
4254 PyModule_AddIntConstant(m, "SSL_ERROR_WANT_CONNECT", in init_ssl()
4257 PyModule_AddIntConstant(m, "SSL_ERROR_EOF", in init_ssl()
4259 PyModule_AddIntConstant(m, "SSL_ERROR_INVALID_ERROR_CODE", in init_ssl()
4262 PyModule_AddIntConstant(m, "CERT_NONE", in init_ssl()
[all …]
D_hotshot.c1638 PyModule_AddIntConstant(module, "WHAT_ENTER", WHAT_ENTER); in init_hotshot()
1639 PyModule_AddIntConstant(module, "WHAT_EXIT", WHAT_EXIT); in init_hotshot()
1640 PyModule_AddIntConstant(module, "WHAT_LINENO", WHAT_LINENO); in init_hotshot()
1641 PyModule_AddIntConstant(module, "WHAT_OTHER", WHAT_OTHER); in init_hotshot()
1642 PyModule_AddIntConstant(module, "WHAT_ADD_INFO", WHAT_ADD_INFO); in init_hotshot()
1643 PyModule_AddIntConstant(module, "WHAT_DEFINE_FILE", WHAT_DEFINE_FILE); in init_hotshot()
1644 PyModule_AddIntConstant(module, "WHAT_DEFINE_FUNC", WHAT_DEFINE_FUNC); in init_hotshot()
1645 PyModule_AddIntConstant(module, "WHAT_LINE_TIMES", WHAT_LINE_TIMES); in init_hotshot()
/external/python/cpython2/PC/
D_msi.c1027 PyModule_AddIntConstant(m, "MSIDBOPEN_CREATEDIRECT", (int)MSIDBOPEN_CREATEDIRECT); in init_msi()
1028 PyModule_AddIntConstant(m, "MSIDBOPEN_CREATE", (int)MSIDBOPEN_CREATE); in init_msi()
1029 PyModule_AddIntConstant(m, "MSIDBOPEN_DIRECT", (int)MSIDBOPEN_DIRECT); in init_msi()
1030 PyModule_AddIntConstant(m, "MSIDBOPEN_READONLY", (int)MSIDBOPEN_READONLY); in init_msi()
1031 PyModule_AddIntConstant(m, "MSIDBOPEN_TRANSACT", (int)MSIDBOPEN_TRANSACT); in init_msi()
1032 PyModule_AddIntConstant(m, "MSIDBOPEN_PATCHFILE", (int)MSIDBOPEN_PATCHFILE); in init_msi()
1034 PyModule_AddIntConstant(m, "MSICOLINFO_NAMES", MSICOLINFO_NAMES); in init_msi()
1035 PyModule_AddIntConstant(m, "MSICOLINFO_TYPES", MSICOLINFO_TYPES); in init_msi()
1037 PyModule_AddIntConstant(m, "MSIMODIFY_SEEK", MSIMODIFY_SEEK); in init_msi()
1038 PyModule_AddIntConstant(m, "MSIMODIFY_REFRESH", MSIMODIFY_REFRESH); in init_msi()
[all …]
/external/python/cpython3/Modules/_blake2/
Dblake2module.c79 PyModule_AddIntConstant(m, "BLAKE2B_SALT_SIZE", BLAKE2B_SALTBYTES); in PyInit__blake2()
80 PyModule_AddIntConstant(m, "BLAKE2B_PERSON_SIZE", BLAKE2B_PERSONALBYTES); in PyInit__blake2()
81 PyModule_AddIntConstant(m, "BLAKE2B_MAX_KEY_SIZE", BLAKE2B_KEYBYTES); in PyInit__blake2()
82 PyModule_AddIntConstant(m, "BLAKE2B_MAX_DIGEST_SIZE", BLAKE2B_OUTBYTES); in PyInit__blake2()
99 PyModule_AddIntConstant(m, "BLAKE2S_SALT_SIZE", BLAKE2S_SALTBYTES); in PyInit__blake2()
100 PyModule_AddIntConstant(m, "BLAKE2S_PERSON_SIZE", BLAKE2S_PERSONALBYTES); in PyInit__blake2()
101 PyModule_AddIntConstant(m, "BLAKE2S_MAX_KEY_SIZE", BLAKE2S_KEYBYTES); in PyInit__blake2()
102 PyModule_AddIntConstant(m, "BLAKE2S_MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES); in PyInit__blake2()
/external/selinux/libselinux/src/
Daudit2why.c475 PyModule_AddIntConstant(m,"UNKNOWN", UNKNOWN);
476 PyModule_AddIntConstant(m,"BADSCON", BADSCON);
477 PyModule_AddIntConstant(m,"BADTCON", BADTCON);
478 PyModule_AddIntConstant(m,"BADTCLASS", BADTCLASS);
479 PyModule_AddIntConstant(m,"BADPERM", BADPERM);
480 PyModule_AddIntConstant(m,"BADCOMPUTE", BADCOMPUTE);
481 PyModule_AddIntConstant(m,"NOPOLICY", NOPOLICY);
482 PyModule_AddIntConstant(m,"ALLOW", ALLOW);
483 PyModule_AddIntConstant(m,"DONTAUDIT", DONTAUDIT);
484 PyModule_AddIntConstant(m,"TERULE", TERULE);
[all …]
/external/python/cpython3/Modules/
Dselectmodule.c2544 PyModule_AddIntConstant(m, "KQ_FILTER_READ", EVFILT_READ);
2545 PyModule_AddIntConstant(m, "KQ_FILTER_WRITE", EVFILT_WRITE);
2547 PyModule_AddIntConstant(m, "KQ_FILTER_AIO", EVFILT_AIO);
2550 PyModule_AddIntConstant(m, "KQ_FILTER_VNODE", EVFILT_VNODE);
2553 PyModule_AddIntConstant(m, "KQ_FILTER_PROC", EVFILT_PROC);
2556 PyModule_AddIntConstant(m, "KQ_FILTER_NETDEV", EVFILT_NETDEV);
2559 PyModule_AddIntConstant(m, "KQ_FILTER_SIGNAL", EVFILT_SIGNAL);
2561 PyModule_AddIntConstant(m, "KQ_FILTER_TIMER", EVFILT_TIMER);
2564 PyModule_AddIntConstant(m, "KQ_EV_ADD", EV_ADD);
2565 PyModule_AddIntConstant(m, "KQ_EV_DELETE", EV_DELETE);
[all …]
D_stat.c563 if (PyModule_AddIntConstant(m, "ST_MODE", 0)) return NULL; in PyInit__stat()
564 if (PyModule_AddIntConstant(m, "ST_INO", 1)) return NULL; in PyInit__stat()
565 if (PyModule_AddIntConstant(m, "ST_DEV", 2)) return NULL; in PyInit__stat()
566 if (PyModule_AddIntConstant(m, "ST_NLINK", 3)) return NULL; in PyInit__stat()
567 if (PyModule_AddIntConstant(m, "ST_UID", 4)) return NULL; in PyInit__stat()
568 if (PyModule_AddIntConstant(m, "ST_GID", 5)) return NULL; in PyInit__stat()
569 if (PyModule_AddIntConstant(m, "ST_SIZE", 6)) return NULL; in PyInit__stat()
570 if (PyModule_AddIntConstant(m, "ST_ATIME", 7)) return NULL; in PyInit__stat()
571 if (PyModule_AddIntConstant(m, "ST_MTIME", 8)) return NULL; in PyInit__stat()
572 if (PyModule_AddIntConstant(m, "ST_CTIME", 9)) return NULL; in PyInit__stat()
Dsymtablemodule.c95 PyModule_AddIntConstant(m, "TYPE_FUNCTION", FunctionBlock); in PyInit__symtable()
96 PyModule_AddIntConstant(m, "TYPE_CLASS", ClassBlock); in PyInit__symtable()
97 PyModule_AddIntConstant(m, "TYPE_MODULE", ModuleBlock); in PyInit__symtable()
105 PyModule_AddIntConstant(m, "SCOPE_OFF", SCOPE_OFFSET); in PyInit__symtable()
D_ssl.c5820 PyModule_AddIntConstant(m, "SSL_ERROR_ZERO_RETURN", in PyInit__ssl()
5822 PyModule_AddIntConstant(m, "SSL_ERROR_WANT_READ", in PyInit__ssl()
5824 PyModule_AddIntConstant(m, "SSL_ERROR_WANT_WRITE", in PyInit__ssl()
5826 PyModule_AddIntConstant(m, "SSL_ERROR_WANT_X509_LOOKUP", in PyInit__ssl()
5828 PyModule_AddIntConstant(m, "SSL_ERROR_SYSCALL", in PyInit__ssl()
5830 PyModule_AddIntConstant(m, "SSL_ERROR_SSL", in PyInit__ssl()
5832 PyModule_AddIntConstant(m, "SSL_ERROR_WANT_CONNECT", in PyInit__ssl()
5835 PyModule_AddIntConstant(m, "SSL_ERROR_EOF", in PyInit__ssl()
5837 PyModule_AddIntConstant(m, "SSL_ERROR_INVALID_ERROR_CODE", in PyInit__ssl()
5840 PyModule_AddIntConstant(m, "CERT_NONE", in PyInit__ssl()
[all …]
Dtimemodule.c1567 PyModule_AddIntConstant(m, "timezone", _Py_timezone); in init_timezone()
1569 PyModule_AddIntConstant(m, "altzone", altzone); in init_timezone()
1571 PyModule_AddIntConstant(m, "altzone", _Py_timezone-3600); in init_timezone()
1573 PyModule_AddIntConstant(m, "daylight", _Py_daylight); in init_timezone()
1620 PyModule_AddIntConstant(m, "timezone", julyzone); in init_timezone()
1621 PyModule_AddIntConstant(m, "altzone", janzone); in init_timezone()
1622 PyModule_AddIntConstant(m, "daylight", in init_timezone()
1628 PyModule_AddIntConstant(m, "timezone", janzone); in init_timezone()
1629 PyModule_AddIntConstant(m, "altzone", julyzone); in init_timezone()
1630 PyModule_AddIntConstant(m, "daylight", in init_timezone()
[all …]
Dsocketmodule.c6958 PyModule_AddIntConstant(m, "AF_VSOCK", AF_VSOCK);
6959 PyModule_AddIntConstant(m, "SO_VM_SOCKETS_BUFFER_SIZE", 0);
6960 PyModule_AddIntConstant(m, "SO_VM_SOCKETS_BUFFER_MIN_SIZE", 1);
6961 PyModule_AddIntConstant(m, "SO_VM_SOCKETS_BUFFER_MAX_SIZE", 2);
6962 PyModule_AddIntConstant(m, "VMADDR_CID_ANY", 0xffffffff);
6963 PyModule_AddIntConstant(m, "VMADDR_PORT_ANY", 0xffffffff);
6964 PyModule_AddIntConstant(m, "VMADDR_CID_HOST", 2);
6965 PyModule_AddIntConstant(m, "VM_SOCKETS_INVALID_VERSION", 0xffffffff);
6966 PyModule_AddIntConstant(m, "IOCTL_VM_SOCKETS_GET_LOCAL_CID", _IO(7, 0xb9));
7254 PyModule_AddIntConstant(m, "SOMAXCONN", 5); /* Common value */
[all …]
D_uuidmodule.c64 if (PyModule_AddIntConstant(mod, "has_uuid_generate_time_safe", in PyInit__uuid()
Dfaulthandler.c1262 if (PyModule_AddIntConstant(m, "_EXCEPTION_ACCESS_VIOLATION", in PyInit_faulthandler()
1265 if (PyModule_AddIntConstant(m, "_EXCEPTION_INT_DIVIDE_BY_ZERO", in PyInit_faulthandler()
1268 if (PyModule_AddIntConstant(m, "_EXCEPTION_STACK_OVERFLOW", in PyInit_faulthandler()
1273 if (PyModule_AddIntConstant(m, "_EXCEPTION_NONCONTINUABLE", in PyInit_faulthandler()
1276 if (PyModule_AddIntConstant(m, "_EXCEPTION_NONCONTINUABLE_EXCEPTION", in PyInit_faulthandler()
/external/python/cpython2/Include/
Dmodsupport.h41 PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);
43 #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
/external/python/cpython3/Include/
Dmodsupport.h118 PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);
120 #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
/external/python/cpython3/PC/
D_msi.c1075 PyModule_AddIntConstant(m, "MSIDBOPEN_CREATEDIRECT", (long)(SIZE_T)MSIDBOPEN_CREATEDIRECT); in PyInit__msi()
1076 PyModule_AddIntConstant(m, "MSIDBOPEN_CREATE", (long)(SIZE_T)MSIDBOPEN_CREATE); in PyInit__msi()
1077 PyModule_AddIntConstant(m, "MSIDBOPEN_DIRECT", (long)(SIZE_T)MSIDBOPEN_DIRECT); in PyInit__msi()
1078 PyModule_AddIntConstant(m, "MSIDBOPEN_READONLY", (long)(SIZE_T)MSIDBOPEN_READONLY); in PyInit__msi()
1079 PyModule_AddIntConstant(m, "MSIDBOPEN_TRANSACT", (long)(SIZE_T)MSIDBOPEN_TRANSACT); in PyInit__msi()
1080 PyModule_AddIntConstant(m, "MSIDBOPEN_PATCHFILE", (long)(SIZE_T)MSIDBOPEN_PATCHFILE); in PyInit__msi()
/external/protobuf/python/google/protobuf/internal/
Dapi_implementation.cc113 if (PyModule_AddIntConstant( in INITFUNC()

1234