Home
last modified time | relevance | path

Searched refs:PyStructSequence_SET_ITEM (Results 1 – 25 of 28) sorted by relevance

12

/external/python/cpython2/Modules/
Dresource.c85 PyStructSequence_SET_ITEM(result, 0, in resource_getrusage()
87 PyStructSequence_SET_ITEM(result, 1, in resource_getrusage()
89 PyStructSequence_SET_ITEM(result, 2, PyInt_FromLong(ru.ru_maxrss)); in resource_getrusage()
90 PyStructSequence_SET_ITEM(result, 3, PyInt_FromLong(ru.ru_ixrss)); in resource_getrusage()
91 PyStructSequence_SET_ITEM(result, 4, PyInt_FromLong(ru.ru_idrss)); in resource_getrusage()
92 PyStructSequence_SET_ITEM(result, 5, PyInt_FromLong(ru.ru_isrss)); in resource_getrusage()
93 PyStructSequence_SET_ITEM(result, 6, PyInt_FromLong(ru.ru_minflt)); in resource_getrusage()
94 PyStructSequence_SET_ITEM(result, 7, PyInt_FromLong(ru.ru_majflt)); in resource_getrusage()
95 PyStructSequence_SET_ITEM(result, 8, PyInt_FromLong(ru.ru_nswap)); in resource_getrusage()
96 PyStructSequence_SET_ITEM(result, 9, PyInt_FromLong(ru.ru_inblock)); in resource_getrusage()
[all …]
Dpwdmodule.c52 PyStructSequence_SET_ITEM(v, i, PyString_FromString(val)); in sets()
54 PyStructSequence_SET_ITEM(v, i, Py_None); in sets()
67 #define SETI(i,val) PyStructSequence_SET_ITEM(v, i, PyInt_FromLong((long) val)) in mkpwent()
76 PyStructSequence_SET_ITEM(v, setIndex++, _PyInt_FromUid(p->pw_uid)); in mkpwent()
77 PyStructSequence_SET_ITEM(v, setIndex++, _PyInt_FromGid(p->pw_gid)); in mkpwent()
Dspwdmodule.c63 PyStructSequence_SET_ITEM(v, i, PyString_FromString(val)); in sets()
65 PyStructSequence_SET_ITEM(v, i, Py_None); in sets()
77 #define SETI(i,val) PyStructSequence_SET_ITEM(v, i, PyInt_FromLong((long) val)) in mkspent()
Dposixmodule.c1469 PyStructSequence_SET_ITEM(v, index, ival); in fill_time()
1470 PyStructSequence_SET_ITEM(v, index+3, fval); in fill_time()
1483 PyStructSequence_SET_ITEM(v, 0, PyInt_FromLong((long)st->st_mode)); in _pystat_fromstructstat()
1485 PyStructSequence_SET_ITEM(v, 1, in _pystat_fromstructstat()
1488 PyStructSequence_SET_ITEM(v, 1, PyInt_FromLong((long)st->st_ino)); in _pystat_fromstructstat()
1491 PyStructSequence_SET_ITEM(v, 2, PyLong_FromUnsignedLong(st->st_dev)); in _pystat_fromstructstat()
1493 PyStructSequence_SET_ITEM(v, 2, _PyInt_FromDev(st->st_dev)); in _pystat_fromstructstat()
1495 PyStructSequence_SET_ITEM(v, 3, PyInt_FromLong((long)st->st_nlink)); in _pystat_fromstructstat()
1497 PyStructSequence_SET_ITEM(v, 4, PyInt_FromLong(0)); in _pystat_fromstructstat()
1498 PyStructSequence_SET_ITEM(v, 5, PyInt_FromLong(0)); in _pystat_fromstructstat()
[all …]
Dgrpmodule.c60 #define SET(i,val) PyStructSequence_SET_ITEM(v, i, val) in mkgrent()
Dtimemodule.c254 #define SET(i,val) PyStructSequence_SET_ITEM(v, i, PyInt_FromLong((long) val)) in tmtotuple()
/external/python/cpython3/Modules/
Dresource.c98 PyStructSequence_SET_ITEM(result, 0, in resource_getrusage_impl()
100 PyStructSequence_SET_ITEM(result, 1, in resource_getrusage_impl()
102 PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong(ru.ru_maxrss)); in resource_getrusage_impl()
103 PyStructSequence_SET_ITEM(result, 3, PyLong_FromLong(ru.ru_ixrss)); in resource_getrusage_impl()
104 PyStructSequence_SET_ITEM(result, 4, PyLong_FromLong(ru.ru_idrss)); in resource_getrusage_impl()
105 PyStructSequence_SET_ITEM(result, 5, PyLong_FromLong(ru.ru_isrss)); in resource_getrusage_impl()
106 PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(ru.ru_minflt)); in resource_getrusage_impl()
107 PyStructSequence_SET_ITEM(result, 7, PyLong_FromLong(ru.ru_majflt)); in resource_getrusage_impl()
108 PyStructSequence_SET_ITEM(result, 8, PyLong_FromLong(ru.ru_nswap)); in resource_getrusage_impl()
109 PyStructSequence_SET_ITEM(result, 9, PyLong_FromLong(ru.ru_inblock)); in resource_getrusage_impl()
[all …]
Dpwdmodule.c73 PyStructSequence_SET_ITEM(v, i, o); in sets()
76 PyStructSequence_SET_ITEM(v, i, Py_None); in sets()
89 #define SETI(i,val) PyStructSequence_SET_ITEM(v, i, PyLong_FromLong((long) val)) in mkpwent()
98 PyStructSequence_SET_ITEM(v, setIndex++, _PyLong_FromUid(p->pw_uid)); in mkpwent()
99 PyStructSequence_SET_ITEM(v, setIndex++, _PyLong_FromGid(p->pw_gid)); in mkpwent()
Dsignalmodule.c1092 PyStructSequence_SET_ITEM(result, 0, PyLong_FromLong((long)(si->si_signo))); in fill_siginfo()
1093 PyStructSequence_SET_ITEM(result, 1, PyLong_FromLong((long)(si->si_code))); in fill_siginfo()
1095 PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong(0L)); in fill_siginfo()
1096 PyStructSequence_SET_ITEM(result, 3, PyLong_FromLong(0L)); in fill_siginfo()
1097 PyStructSequence_SET_ITEM(result, 4, PyLong_FromLong(0L)); in fill_siginfo()
1098 PyStructSequence_SET_ITEM(result, 5, PyLong_FromLong(0L)); in fill_siginfo()
1100 PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong((long)(si->si_errno))); in fill_siginfo()
1101 PyStructSequence_SET_ITEM(result, 3, PyLong_FromPid(si->si_pid)); in fill_siginfo()
1102 PyStructSequence_SET_ITEM(result, 4, _PyLong_FromUid(si->si_uid)); in fill_siginfo()
1103 PyStructSequence_SET_ITEM(result, 5, in fill_siginfo()
[all …]
Dspwdmodule.c71 PyStructSequence_SET_ITEM(v, i, o); in sets()
73 PyStructSequence_SET_ITEM(v, i, Py_None); in sets()
85 #define SETI(i,val) PyStructSequence_SET_ITEM(v, i, PyLong_FromLong((long) val)) in mkspent()
Dposixmodule.c2291 PyStructSequence_SET_ITEM(v, index, s); in fill_time()
2292 PyStructSequence_SET_ITEM(v, index+3, float_s); in fill_time()
2293 PyStructSequence_SET_ITEM(v, index+6, ns_total); in fill_time()
2316 PyStructSequence_SET_ITEM(v, 0, PyLong_FromLong((long)st->st_mode)); in _pystat_fromstructstat()
2318 PyStructSequence_SET_ITEM(v, 1, PyLong_FromUnsignedLongLong(st->st_ino)); in _pystat_fromstructstat()
2320 PyStructSequence_SET_ITEM(v, 2, PyLong_FromUnsignedLong(st->st_dev)); in _pystat_fromstructstat()
2322 PyStructSequence_SET_ITEM(v, 2, _PyLong_FromDev(st->st_dev)); in _pystat_fromstructstat()
2324 PyStructSequence_SET_ITEM(v, 3, PyLong_FromLong((long)st->st_nlink)); in _pystat_fromstructstat()
2326 PyStructSequence_SET_ITEM(v, 4, PyLong_FromLong(0)); in _pystat_fromstructstat()
2327 PyStructSequence_SET_ITEM(v, 5, PyLong_FromLong(0)); in _pystat_fromstructstat()
[all …]
Dgrpmodule.c80 #define SET(i,val) PyStructSequence_SET_ITEM(v, i, val) in mkgrent()
Dtimemodule.c419 #define SET(i,val) PyStructSequence_SET_ITEM(v, i, PyLong_FromLong((long) val))
431 PyStructSequence_SET_ITEM(v, 9,
435 PyStructSequence_SET_ITEM(v, 9,
437 PyStructSequence_SET_ITEM(v, 10, _PyLong_FromTime_t(gmtoff));
/external/python/cpython2/RISCOS/Modules/
Driscosmodule.c202 PyStructSequence_SET_ITEM(v, 0, in riscos_stat()
204 PyStructSequence_SET_ITEM(v, 1, PyInt_FromLong((long) 0)); /*st_ino*/ in riscos_stat()
205 PyStructSequence_SET_ITEM(v, 2, PyInt_FromLong((long) 0)); /*st_dev*/ in riscos_stat()
206 PyStructSequence_SET_ITEM(v, 3, PyInt_FromLong((long) 0)); /*st_nlink*/ in riscos_stat()
207 PyStructSequence_SET_ITEM(v, 4, PyInt_FromLong((long) 0)); /*st_uid*/ in riscos_stat()
208 PyStructSequence_SET_ITEM(v, 5, PyInt_FromLong((long) 0)); /*st_gid*/ in riscos_stat()
209 PyStructSequence_SET_ITEM(v, 6, in riscos_stat()
211 PyStructSequence_SET_ITEM(v, 7, PyInt_FromLong((long) t)); /*st_atime*/ in riscos_stat()
212 PyStructSequence_SET_ITEM(v, 8, PyInt_FromLong((long) t)); /*st_mtime*/ in riscos_stat()
213 PyStructSequence_SET_ITEM(v, 9, PyInt_FromLong((long) t)); /*st_ctime*/ in riscos_stat()
[all …]
/external/python/cpython3/Python/
Dthread.c195 PyStructSequence_SET_ITEM(threadinfo, pos++, value); in PyThread_GetInfo()
211 PyStructSequence_SET_ITEM(threadinfo, pos++, value); in PyThread_GetInfo()
228 PyStructSequence_SET_ITEM(threadinfo, pos++, value); in PyThread_GetInfo()
Dsysmodule.c1337 PyStructSequence_SET_ITEM(res, 0, firstiter); in sys_get_asyncgen_hooks_impl()
1340 PyStructSequence_SET_ITEM(res, 1, finalizer); in sys_get_asyncgen_hooks_impl()
1386 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1388 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1390 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1392 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1394 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1396 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1398 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
1400 PyStructSequence_SET_ITEM(hash_info, field++, in get_hash_info()
[all …]
Derrors.c1222 PyStructSequence_SET_ITEM(args, pos++, exc_type); \ in make_unraisable_hook_args()
/external/python/cpython2/Python/
Dsysmodule.c608 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.dwMajorVersion)); in sys_getwindowsversion()
609 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.dwMinorVersion)); in sys_getwindowsversion()
610 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.dwBuildNumber)); in sys_getwindowsversion()
611 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.dwPlatformId)); in sys_getwindowsversion()
612 PyStructSequence_SET_ITEM(version, pos++, PyString_FromString(ver.szCSDVersion)); in sys_getwindowsversion()
613 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.wServicePackMajor)); in sys_getwindowsversion()
614 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.wServicePackMinor)); in sys_getwindowsversion()
615 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.wSuiteMask)); in sys_getwindowsversion()
616 PyStructSequence_SET_ITEM(version, pos++, PyInt_FromLong(ver.wProductType)); in sys_getwindowsversion()
1255 PyStructSequence_SET_ITEM(seq, pos++, PyInt_FromLong(flag)) in make_flags()
[all …]
/external/python/cpython2/Include/
Dstructseq.h35 #define PyStructSequence_SET_ITEM(op, i, v) \ macro
/external/python/cpython3/Include/
Dstructseq.h38 #define PyStructSequence_SET_ITEM(op, i, v) PyTuple_SET_ITEM(op, i, v) macro
/external/python/cpython3/Objects/
Dstructseq.c60 PyStructSequence_SET_ITEM(op, i, v); in PyStructSequence_SetItem()
Dfloatobject.c90 PyStructSequence_SET_ITEM(floatinfo, pos++, PyLong_FromLong(flag)) in PyFloat_GetInfo()
92 PyStructSequence_SET_ITEM(floatinfo, pos++, PyFloat_FromDouble(flag)) in PyFloat_GetInfo()
/external/python/cpython3/Doc/c-api/
Dtuple.rst216 .. c:function:: void PyStructSequence_SET_ITEM(PyObject *p, Py_ssize_t *pos, PyObject *o)
/external/python/cpython2/Objects/
Dfloatobject.c115 PyStructSequence_SET_ITEM(floatinfo, pos++, PyInt_FromLong(flag)) in PyFloat_GetInfo()
117 PyStructSequence_SET_ITEM(floatinfo, pos++, PyFloat_FromDouble(flag)) in PyFloat_GetInfo()
/external/python/cpython3/Doc/data/
Drefcounts.dat2134 PyStructSequence_SET_ITEM:void:::
2135 PyStructSequence_SET_ITEM:PyObject*:p:0:
2136 PyStructSequence_SET_ITEM:Py_ssize_t*:pos::
2137 PyStructSequence_SET_ITEM:PyObject*:o:0:

12