aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/posix/resource.pxd
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /contrib/tools/cython/Cython/Includes/posix/resource.pxd
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/posix/resource.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/posix/resource.pxd55
1 files changed, 55 insertions, 0 deletions
diff --git a/contrib/tools/cython/Cython/Includes/posix/resource.pxd b/contrib/tools/cython/Cython/Includes/posix/resource.pxd
new file mode 100644
index 0000000000..9f55c6ab4e
--- /dev/null
+++ b/contrib/tools/cython/Cython/Includes/posix/resource.pxd
@@ -0,0 +1,55 @@
+# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html
+
+from posix.time cimport timeval
+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 *)