xref: /illumos-gate/usr/src/cmd/ast/libshell/sparcv9/FEATURE/rlimits (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1/* : : generated from contrib/ast/src/cmd/ksh93/features/rlimits by iffe version 2012-07-17 : : */
2#ifndef _def_rlimits_ksh93
3#define _def_rlimits_ksh93	1
4#define _sys_types	1	/* #include <sys/types.h> ok */
5#define _sys_time	1	/* #include <sys/time.h> ok */
6#define _sys_resource	1	/* #include <sys/resource.h> ok */
7#define _lib_getrlimit	1	/* getrlimit() in default lib(s) */
8#define _lib_ulimit	1	/* ulimit() in default lib(s) */
9#define _hdr_time	1	/* #include <time.h> ok */
10#define _sys_times	1	/* #include <sys/times.h> ok */
11#define _hdr_stddef	1	/* #include <stddef.h> ok */
12#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
13#define _typ_rlim_t	1	/* rlim_t is a type */
14#define _typ_rlim64_t	1	/* rlim64_t is a type */
15
16#if _sys_resource
17#	include <sys/resource.h>
18#	if _lib_getrlimit64
19#		undef	getrlimit
20#		define	getrlimit	getrlimit64
21#		undef	setrlimit
22#		define	setrlimit	setrlimit64
23#		if _typ_rlim64_t
24#			undef	rlimit
25#			define	rlimit	rlimit64
26#			undef	rlim_t
27#			define	rlim_t	rlim64_t
28#		endif
29#		ifdef RLIM64_INFINITY
30#			undef	RLIM_INFINITY
31#			define	RLIM_INFINITY	RLIM64_INFINITY
32#		endif
33#	endif
34#endif
35
36
37#endif
38