Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_RESOURCE_H
     13 #define _LINUX_RESOURCE_H
     14 
     15 #include <linux/time.h>
     16 
     17 struct task_struct;
     18 
     19 #define RUSAGE_SELF 0
     20 #define RUSAGE_CHILDREN (-1)
     21 #define RUSAGE_BOTH (-2)
     22 
     23 struct rusage {
     24  struct timeval ru_utime;
     25  struct timeval ru_stime;
     26  long ru_maxrss;
     27  long ru_ixrss;
     28  long ru_idrss;
     29  long ru_isrss;
     30  long ru_minflt;
     31  long ru_majflt;
     32  long ru_nswap;
     33  long ru_inblock;
     34  long ru_oublock;
     35  long ru_msgsnd;
     36  long ru_msgrcv;
     37  long ru_nsignals;
     38  long ru_nvcsw;
     39  long ru_nivcsw;
     40 };
     41 
     42 struct rlimit {
     43  unsigned long rlim_cur;
     44  unsigned long rlim_max;
     45 };
     46 
     47 #define PRIO_MIN (-20)
     48 #define PRIO_MAX 20
     49 
     50 #define PRIO_PROCESS 0
     51 #define PRIO_PGRP 1
     52 #define PRIO_USER 2
     53 
     54 #define _STK_LIM (8*1024*1024)
     55 
     56 #define MLOCK_LIMIT (8 * PAGE_SIZE)
     57 
     58 #include <asm/resource.h>
     59 
     60 #endif
     61