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