Home
last modified time | relevance | path

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

/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.c1463 PyStructSequence_SET_ITEM(v, index, ival); in fill_time()
1464 PyStructSequence_SET_ITEM(v, index+3, fval); in fill_time()
1477 PyStructSequence_SET_ITEM(v, 0, PyInt_FromLong((long)st->st_mode)); in _pystat_fromstructstat()
1479 PyStructSequence_SET_ITEM(v, 1, in _pystat_fromstructstat()
1482 PyStructSequence_SET_ITEM(v, 1, PyInt_FromLong((long)st->st_ino)); in _pystat_fromstructstat()
1485 PyStructSequence_SET_ITEM(v, 2, PyLong_FromUnsignedLong(st->st_dev)); in _pystat_fromstructstat()
1487 PyStructSequence_SET_ITEM(v, 2, _PyInt_FromDev(st->st_dev)); in _pystat_fromstructstat()
1489 PyStructSequence_SET_ITEM(v, 3, PyInt_FromLong((long)st->st_nlink)); in _pystat_fromstructstat()
1491 PyStructSequence_SET_ITEM(v, 4, PyInt_FromLong(0)); in _pystat_fromstructstat()
1492 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/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/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/cpython2/Objects/
Dfloatobject.c116 PyStructSequence_SET_ITEM(floatinfo, pos++, PyInt_FromLong(flag)) in PyFloat_GetInfo()
118 PyStructSequence_SET_ITEM(floatinfo, pos++, PyFloat_FromDouble(flag)) in PyFloat_GetInfo()
Dlongobject.c4389 PyStructSequence_SET_ITEM(long_info, field++, in PyLong_GetInfo()
4391 PyStructSequence_SET_ITEM(long_info, field++, in PyLong_GetInfo()