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