xref: /illumos-gate/usr/src/cmd/ast/libshell/i386/FEATURE/rlimits (revision 1769817e9676d2db341d2b6828c199f0eabac823)
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_getrlimit64	1	/* getrlimit64() in default lib(s) */
9#define _lib_ulimit	1	/* ulimit() in default lib(s) */
10#define _hdr_time	1	/* #include <time.h> ok */
11#define _sys_times	1	/* #include <sys/times.h> ok */
12#define _hdr_stddef	1	/* #include <stddef.h> ok */
13#define _hdr_stdlib	1	/* #include <stdlib.h> ok */
14#define _typ_rlim_t	1	/* rlim_t is a type */
15#define _typ_rlim64_t	1	/* rlim64_t is a type */
16
17#if _sys_resource
18#	include <sys/resource.h>
19#	if _lib_getrlimit64
20#		undef	getrlimit
21#		define	getrlimit	getrlimit64
22#		undef	setrlimit
23#		define	setrlimit	setrlimit64
24#		if _typ_rlim64_t
25#			undef	rlimit
26#			define	rlimit	rlimit64
27#			undef	rlim_t
28#			define	rlim_t	rlim64_t
29#		endif
30#		ifdef RLIM64_INFINITY
31#			undef	RLIM_INFINITY
32#			define	RLIM_INFINITY	RLIM64_INFINITY
33#		endif
34#	endif
35#endif
36
37
38#endif
39