Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * resource.h: Resource definitions.
0004  *
0005  * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
0006  */
0007 
0008 #ifndef _SPARC_RESOURCE_H
0009 #define _SPARC_RESOURCE_H
0010 
0011 /*
0012  * These two resource limit IDs have a Sparc/Linux-specific ordering,
0013  * the rest comes from the generic header:
0014  */
0015 #define RLIMIT_NOFILE       6   /* max number of open files */
0016 #define RLIMIT_NPROC        7   /* max number of processes */
0017 
0018 #if defined(__sparc__) && defined(__arch64__)
0019 /* Use generic version */
0020 #else
0021 /*
0022  * SuS says limits have to be unsigned.
0023  * We make this unsigned, but keep the
0024  * old value for compatibility:
0025  */
0026 #define RLIM_INFINITY       0x7fffffff
0027 #endif
0028 
0029 #include <asm-generic/resource.h>
0030 
0031 #endif /* !(_SPARC_RESOURCE_H) */