1*906afcb8SAndy Fiddaman 2*906afcb8SAndy Fiddaman/* : : generated by proto : : */ 3*906afcb8SAndy Fiddaman/* : : generated from contrib/ast/src/lib/libast/features/sys by iffe version 2012-07-17 : : */ 4*906afcb8SAndy Fiddaman 5*906afcb8SAndy Fiddaman#ifndef _AST_SYS_H 6*906afcb8SAndy Fiddaman#if !defined(__PROTO__) 7*906afcb8SAndy Fiddaman# if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus) 8*906afcb8SAndy Fiddaman# if defined(__cplusplus) 9*906afcb8SAndy Fiddaman# define __LINKAGE__ "C" 10*906afcb8SAndy Fiddaman# else 11*906afcb8SAndy Fiddaman# define __LINKAGE__ 12*906afcb8SAndy Fiddaman# endif 13*906afcb8SAndy Fiddaman# define __STDARG__ 14*906afcb8SAndy Fiddaman# define __PROTO__(x) x 15*906afcb8SAndy Fiddaman# define __OTORP__(x) 16*906afcb8SAndy Fiddaman# define __PARAM__(n,o) n 17*906afcb8SAndy Fiddaman# if !defined(__STDC__) && !defined(__cplusplus) 18*906afcb8SAndy Fiddaman# if !defined(c_plusplus) 19*906afcb8SAndy Fiddaman# define const 20*906afcb8SAndy Fiddaman# endif 21*906afcb8SAndy Fiddaman# define signed 22*906afcb8SAndy Fiddaman# define void int 23*906afcb8SAndy Fiddaman# define volatile 24*906afcb8SAndy Fiddaman# define __V_ char 25*906afcb8SAndy Fiddaman# else 26*906afcb8SAndy Fiddaman# define __V_ void 27*906afcb8SAndy Fiddaman# endif 28*906afcb8SAndy Fiddaman# else 29*906afcb8SAndy Fiddaman# define __PROTO__(x) () 30*906afcb8SAndy Fiddaman# define __OTORP__(x) x 31*906afcb8SAndy Fiddaman# define __PARAM__(n,o) o 32*906afcb8SAndy Fiddaman# define __LINKAGE__ 33*906afcb8SAndy Fiddaman# define __V_ char 34*906afcb8SAndy Fiddaman# define const 35*906afcb8SAndy Fiddaman# define signed 36*906afcb8SAndy Fiddaman# define void int 37*906afcb8SAndy Fiddaman# define volatile 38*906afcb8SAndy Fiddaman# endif 39*906afcb8SAndy Fiddaman# define __MANGLE__ __LINKAGE__ 40*906afcb8SAndy Fiddaman# if defined(__cplusplus) || defined(c_plusplus) 41*906afcb8SAndy Fiddaman# define __VARARG__ ... 42*906afcb8SAndy Fiddaman# else 43*906afcb8SAndy Fiddaman# define __VARARG__ 44*906afcb8SAndy Fiddaman# endif 45*906afcb8SAndy Fiddaman# if defined(__STDARG__) 46*906afcb8SAndy Fiddaman# define __VA_START__(p,a) va_start(p,a) 47*906afcb8SAndy Fiddaman# else 48*906afcb8SAndy Fiddaman# define __VA_START__(p,a) va_start(p) 49*906afcb8SAndy Fiddaman# endif 50*906afcb8SAndy Fiddaman# if !defined(__INLINE__) 51*906afcb8SAndy Fiddaman# if defined(__cplusplus) 52*906afcb8SAndy Fiddaman# define __INLINE__ extern __MANGLE__ inline 53*906afcb8SAndy Fiddaman# else 54*906afcb8SAndy Fiddaman# if defined(_WIN32) && !defined(__GNUC__) 55*906afcb8SAndy Fiddaman# define __INLINE__ __inline 56*906afcb8SAndy Fiddaman# endif 57*906afcb8SAndy Fiddaman# endif 58*906afcb8SAndy Fiddaman# endif 59*906afcb8SAndy Fiddaman#endif 60*906afcb8SAndy Fiddaman#if !defined(__LINKAGE__) 61*906afcb8SAndy Fiddaman#define __LINKAGE__ /* 2004-08-11 transition */ 62*906afcb8SAndy Fiddaman#endif 63*906afcb8SAndy Fiddaman 64*906afcb8SAndy Fiddaman#define _AST_SYS_H 1 65*906afcb8SAndy Fiddaman#define _sys_types 1 /* #include <sys/types.h> ok */ 66*906afcb8SAndy Fiddaman#if __mips == 2 && !defined(_NO_LARGEFILE64_SOURCE) 67*906afcb8SAndy Fiddaman#define _NO_LARGEFILE64_SOURCE 1 68*906afcb8SAndy Fiddaman#endif 69*906afcb8SAndy Fiddaman#if !defined(_NO_LARGEFILE64_SOURCE) && _typ_off64_t && _lib_lseek64 && _lib_stat64 70*906afcb8SAndy Fiddaman#if !defined(_LARGEFILE64_SOURCE) 71*906afcb8SAndy Fiddaman#define _LARGEFILE64_SOURCE 1 72*906afcb8SAndy Fiddaman#endif 73*906afcb8SAndy Fiddaman#if !defined(_LARGEFILE_SOURCE) 74*906afcb8SAndy Fiddaman#define _LARGEFILE_SOURCE 1 75*906afcb8SAndy Fiddaman#endif 76*906afcb8SAndy Fiddaman#if !defined(_LARGE_FILE_API) 77*906afcb8SAndy Fiddaman#define _LARGE_FILE_API 1 78*906afcb8SAndy Fiddaman#endif 79*906afcb8SAndy Fiddaman#else 80*906afcb8SAndy Fiddaman#undef _LARGEFILE64_SOURCE 81*906afcb8SAndy Fiddaman#undef _LARGEFILE_SOURCE 82*906afcb8SAndy Fiddaman#undef _LARGE_FILE_API 83*906afcb8SAndy Fiddaman#undef _typ_ino64_t 84*906afcb8SAndy Fiddaman#undef _typ_off64_t 85*906afcb8SAndy Fiddaman#undef _typ_struct_dirent64 86*906afcb8SAndy Fiddaman#undef _lib_creat64 87*906afcb8SAndy Fiddaman#undef _lib_fstat64 88*906afcb8SAndy Fiddaman#undef _lib_fstatvfs64 89*906afcb8SAndy Fiddaman#undef _lib_ftruncate64 90*906afcb8SAndy Fiddaman#undef _lib_lseek64 91*906afcb8SAndy Fiddaman#undef _lib_lstat64 92*906afcb8SAndy Fiddaman#undef _lib_mmap64 93*906afcb8SAndy Fiddaman#undef _lib_open64 94*906afcb8SAndy Fiddaman#undef _lib_readdir64 95*906afcb8SAndy Fiddaman#undef _lib_stat64 96*906afcb8SAndy Fiddaman#undef _lib_statvfs64 97*906afcb8SAndy Fiddaman#undef _lib_truncate64 98*906afcb8SAndy Fiddaman#endif 99*906afcb8SAndy Fiddaman#if !_lib_readdir64 100*906afcb8SAndy Fiddaman#undef _typ_ino64_t 101*906afcb8SAndy Fiddaman#endif 102*906afcb8SAndy Fiddaman#if defined(__STDC__) && !defined(__USE_FIXED_PROTOTYPES__) 103*906afcb8SAndy Fiddaman#define __USE_FIXED_PROTOTYPES__ 1 /* kick gcc out of the past */ 104*906afcb8SAndy Fiddaman#endif 105*906afcb8SAndy Fiddaman#include <stdlib.h> 106*906afcb8SAndy Fiddaman#include <stddef.h> 107*906afcb8SAndy Fiddaman#include <sys/types.h> 108*906afcb8SAndy Fiddaman#include <stdint.h> 109*906afcb8SAndy Fiddaman#include <inttypes.h> 110*906afcb8SAndy Fiddaman#include <string.h> 111*906afcb8SAndy Fiddaman#include <unistd.h> 112*906afcb8SAndy Fiddaman#include <limits.h> 113*906afcb8SAndy Fiddaman#include <fcntl.h> 114*906afcb8SAndy Fiddaman#include <locale.h> 115*906afcb8SAndy Fiddaman#define _hdr_time 1 /* #include <time.h> ok */ 116*906afcb8SAndy Fiddaman#define _sys_time 1 /* #include <sys/time.h> ok */ 117*906afcb8SAndy Fiddaman#define _sys_times 1 /* #include <sys/times.h> ok */ 118*906afcb8SAndy Fiddaman#define _typ_dev_t 1 /* dev_t is a type */ 119*906afcb8SAndy Fiddaman#define _typ_nlink_t 1 /* nlink_t is a type */ 120*906afcb8SAndy Fiddaman#define _typ_gid_t 1 /* gid_t is a type */ 121*906afcb8SAndy Fiddaman#define _typ_mode_t 1 /* mode_t is a type */ 122*906afcb8SAndy Fiddaman#define _typ_uid_t 1 /* uid_t is a type */ 123*906afcb8SAndy Fiddaman#define _hdr_stdio 1 /* #include <stdio.h> ok */ 124*906afcb8SAndy Fiddaman#define _hdr_wchar 1 /* #include <wchar.h> ok */ 125*906afcb8SAndy Fiddaman#define _typ_wchar_t 1 /* wchar_t is a type */ 126*906afcb8SAndy Fiddaman#define _typ_pid_t 1 /* pid_t is a type */ 127*906afcb8SAndy Fiddaman#define _typ_ssize_t 1 /* ssize_t is a type */ 128*906afcb8SAndy Fiddaman#define _typ_wint_t 1 /* wint_t is a type */ 129*906afcb8SAndy Fiddaman#define _sys_socket 1 /* #include <sys/socket.h> ok */ 130*906afcb8SAndy Fiddaman#define _typ_socklen_t 1 /* socklen_t is a type */ 131*906afcb8SAndy Fiddaman#define _typ_size_t 1 /* size_t is a type */ 132*906afcb8SAndy Fiddaman#define _typ_clock_t 1 /* clock_t is a type */ 133*906afcb8SAndy Fiddaman#define _typ_ino_t 1 /* ino_t is a type */ 134*906afcb8SAndy Fiddaman#define _typ_off_t 1 /* off_t is a type */ 135*906afcb8SAndy Fiddaman#define _typ_ptrdiff_t 1 /* ptrdiff_t is a type */ 136*906afcb8SAndy Fiddaman#define _typ_time_t 1 /* time_t is a type */ 137*906afcb8SAndy Fiddaman#define _typ_div_t 1 /* div_t is a type */ 138*906afcb8SAndy Fiddaman#define _typ_ldiv_t 1 /* ldiv_t is a type */ 139*906afcb8SAndy Fiddaman#if _BLD_ast && defined(__EXPORT__) 140*906afcb8SAndy Fiddaman#undef __MANGLE__ 141*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__ __EXPORT__ 142*906afcb8SAndy Fiddaman#endif 143*906afcb8SAndy Fiddamanextern __MANGLE__ void cfree __PROTO__((__V_*)); 144*906afcb8SAndy Fiddamanextern __MANGLE__ size_t confstr __PROTO__((int, char*, size_t)); 145*906afcb8SAndy Fiddamanextern __MANGLE__ int eaccess __PROTO__((const char*, int)); 146*906afcb8SAndy Fiddamanextern __MANGLE__ int execvpe __PROTO__((const char*, char* const[], char* const[])); 147*906afcb8SAndy Fiddamanextern __MANGLE__ __V_* pvalloc __PROTO__((size_t)); 148*906afcb8SAndy Fiddamanextern __MANGLE__ pid_t spawnveg __PROTO__((const char*, char* const[], char* const[], pid_t)); 149*906afcb8SAndy Fiddaman#undef __MANGLE__ 150*906afcb8SAndy Fiddaman#define __MANGLE__ __LINKAGE__ 151*906afcb8SAndy Fiddaman#if !defined(va_start) 152*906afcb8SAndy Fiddaman#if defined(__STDARG__) 153*906afcb8SAndy Fiddaman#include <stdarg.h> 154*906afcb8SAndy Fiddaman#else 155*906afcb8SAndy Fiddaman#include <varargs.h> 156*906afcb8SAndy Fiddaman#endif 157*906afcb8SAndy Fiddaman#endif 158*906afcb8SAndy Fiddaman 159*906afcb8SAndy Fiddaman#endif 160