Print this page
remove support for non-ANSI compilation

*** 17,26 **** --- 17,28 ---- * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* + * Copyright 2014 Garrrett D'Amore <garrett@damore.org> + * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
*** 37,48 **** */ #ifndef _SYS_RESOURCE_H #define _SYS_RESOURCE_H - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/feature_tests.h> #include <sys/types.h> #include <sys/time.h> --- 39,48 ----
*** 256,267 **** #define getrlimit64 getrlimit #define rlimit64 rlimit #endif #endif /* _LP64 && _LARGEFILE64_SOURCE */ - #if defined(__STDC__) - extern int setrlimit(int, const struct rlimit *); extern int getrlimit(int, struct rlimit *); /* transitional large file interfaces */ #if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \ --- 256,265 ----
*** 272,299 **** extern int getpriority(int, id_t); extern int setpriority(int, id_t, int); extern int getrusage(int, struct rusage *); - #else /* __STDC__ */ - - extern int getrlimit(); - extern int setrlimit(); - - /* transitional large file interfaces */ - #if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \ - !defined(__PRAGMA_REDEFINE_EXTNAME)) - extern int setrlimit64(); - extern int getrlimit64(); - #endif /* _LARGEFILE64_SOURCE... */ - - extern int getpriority(); - extern int setpriority(); - extern int getrusage(); - - #endif /* __STDC__ */ - #endif /* _KERNEL */ #ifdef __cplusplus } #endif --- 270,279 ----