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