more uapi bits

This commit is contained in:
2026-10-13 23:04:30 +02:00
parent 56d43a94a9
commit 00b7cdb8d7
6 changed files with 300 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
/* SPDX-License-Identifier: Unlicense */
#ifndef __ZINNIA_UAPI_RESOURCE_H
#define __ZINNIA_UAPI_RESOURCE_H
#include <uapi/types.h>
#define __PRIO_PROCESS 0
#define __PRIO_PGRP 1
#define __PRIO_USER 2
#define __RLIMIT_CPU 0
#define __RLIMIT_FSIZE 1
#define __RLIMIT_DATA 2
#define __RLIMIT_STACK 3
#define __RLIMIT_CORE 4
#define __RLIMIT_RSS 5
#define __RLIMIT_NPROC 6
#define __RLIMIT_NOFILE 7
#define __RLIMIT_MEMLOCK 8
#define __RLIMIT_AS 9
#define __RLIMIT_NLIMITS 16
#define __RLIM_INFINITY ((__rlim_t) - 1)
struct __rlimit {
__rlim_t rlim_cur;
__rlim_t rlim_max;
};
#endif