Implement process resource limits

This commit is contained in:
EnderIce2
2024-04-02 05:52:43 +03:00
parent e09d93e2bb
commit daccdaeeae
3 changed files with 38 additions and 9 deletions

View File

@ -247,13 +247,6 @@ struct rusage
long ru_nivcsw;
};
typedef unsigned long rlim_t;
struct rlimit
{
rlim_t rlim_cur; /* Soft limit */
rlim_t rlim_max; /* Hard limit (ceiling for rlim_cur) */
};
struct linux_dirent
{
unsigned long d_ino; /* Inode number */