diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/tools/cython/Cython/Includes/posix/resource.pxd | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/posix/resource.pxd')
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/resource.pxd | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/contrib/tools/cython/Cython/Includes/posix/resource.pxd b/contrib/tools/cython/Cython/Includes/posix/resource.pxd index 9f55c6ab4e..6d9bac2925 100644 --- a/contrib/tools/cython/Cython/Includes/posix/resource.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/resource.pxd @@ -1,55 +1,55 @@ -# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html - +# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html + from posix.time cimport timeval -from posix.types cimport id_t - +from posix.types cimport id_t + cdef extern from "<sys/resource.h>" nogil: - - enum: PRIO_PROCESS - enum: PRIO_PGRP - enum: PRIO_USER - - enum: RLIM_INFINITY - enum: RLIM_SAVED_MAX - enum: RLIM_SAVED_CUR - - enum: RUSAGE_SELF - enum: RUSAGE_CHILDREN - - enum: RLIMIT_CORE - enum: RLIMIT_CPU - enum: RLIMIT_DATA - enum: RLIMIT_FSIZE - enum: RLIMIT_NOFILE - enum: RLIMIT_STACK - enum: RLIMIT_AS - - ctypedef unsigned long rlim_t - - cdef struct rlimit: - rlim_t rlim_cur - rlim_t rlim_max - - cdef struct rusage: - timeval ru_utime - timeval ru_stime - long ru_maxrss - long ru_ixrss - long ru_idrss - long ru_isrss - long ru_minflt - long ru_majflt - long ru_nswap - long ru_inblock - long ru_oublock - long ru_msgsnd - long ru_msgrcv - long ru_nsignals - long ru_nvcsw - long ru_nivcsw - - int getpriority(int, id_t) - int getrlimit(int, rlimit *) - int getrusage(int, rusage *) - int setpriority(int, id_t, int) - int setrlimit(int, const rlimit *) + + enum: PRIO_PROCESS + enum: PRIO_PGRP + enum: PRIO_USER + + enum: RLIM_INFINITY + enum: RLIM_SAVED_MAX + enum: RLIM_SAVED_CUR + + enum: RUSAGE_SELF + enum: RUSAGE_CHILDREN + + enum: RLIMIT_CORE + enum: RLIMIT_CPU + enum: RLIMIT_DATA + enum: RLIMIT_FSIZE + enum: RLIMIT_NOFILE + enum: RLIMIT_STACK + enum: RLIMIT_AS + + ctypedef unsigned long rlim_t + + cdef struct rlimit: + rlim_t rlim_cur + rlim_t rlim_max + + cdef struct rusage: + timeval ru_utime + timeval ru_stime + long ru_maxrss + long ru_ixrss + long ru_idrss + long ru_isrss + long ru_minflt + long ru_majflt + long ru_nswap + long ru_inblock + long ru_oublock + long ru_msgsnd + long ru_msgrcv + long ru_nsignals + long ru_nvcsw + long ru_nivcsw + + int getpriority(int, id_t) + int getrlimit(int, rlimit *) + int getrusage(int, rusage *) + int setpriority(int, id_t, int) + int setrlimit(int, const rlimit *) |