OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-i960/] [resource.h] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _I960_RESOURCE_H
2
#define _I960_RESOURCE_H
3
 
4
/* FIXME add process(or) priority in here somewhere? */
5
 
6
/*
7
 * Resource limits
8
 */
9
 
10
#define RLIMIT_CPU      0                /* CPU time in ms */
11
#define RLIMIT_FSIZE    1               /* Maximum filesize */
12
#define RLIMIT_DATA     2               /* max data size */
13
#define RLIMIT_STACK    3               /* max stack size */
14
#define RLIMIT_CORE     4               /* max core file size */
15
#define RLIMIT_RSS      5               /* max resident set size */
16
#define RLIMIT_NPROC    6               /* max number of processes */
17
#define RLIMIT_NOFILE   7               /* max number of open files */
18
#define RLIMIT_MEMLOCK  8               /* max locked-in-memory address space*/
19
#define RLIMIT_AS       9               /* address space limit */
20
 
21
#define RLIM_NLIMITS    10
22
 
23
#ifdef __KERNEL__
24
 
25
#define INIT_RLIMITS    \
26
{                       \
27
  {LONG_MAX, LONG_MAX}, \
28
  {LONG_MAX, LONG_MAX}, \
29
  {LONG_MAX, LONG_MAX}, \
30
  {_STK_LIM, _STK_LIM}, \
31
  {       0, LONG_MAX}, \
32
  {LONG_MAX, LONG_MAX}, \
33
  {MAX_TASKS_PER_USER, MAX_TASKS_PER_USER}, \
34
  {NR_OPEN, NR_OPEN},   \
35
  {LONG_MAX, LONG_MAX}, \
36
  {LONG_MAX, LONG_MAX}  \
37
}
38
 
39
#endif /* __KERNEL__ */
40
 
41
#endif /* _I960_RESOURCE_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.