1 /* 2 * BEGIN illumos section 3 * This is an unstable interface; changes may be made 4 * without notice. 5 * END illumos section 6 */ 7 /*********************************************************************** 8 * * 9 * This software is part of the ast package * 10 * Copyright (c) 1985-2025 AT&T Intellectual Property * 11 * All Rights Reserved * 12 * This software is licensed by AT&T Intellectual Property * 13 * under the terms and conditions of the license in * 14 * http://www.eclipse.org/org/documents/epl-v10.html * 15 * (with an md5 checksum of b35adb5213ca9657e911e9befb180842) * 16 * * 17 * Information and Software Systems Research * 18 * AT&T Research * 19 * Florham Park NJ * 20 * * 21 * Glenn Fowler <gsf@research.att.com> * 22 * David Korn <dgk@research.att.com> * 23 * Phong Vo <kpv@research.att.com> * 24 * * 25 ***********************************************************************/ 26 27 /* : : generated by proto : : */ 28 /* : : generated from contrib/ast/src/lib/libast/features/sys by iffe version 2012-07-17 : : */ 29 30 #ifndef _AST_SYS_H 31 #if !defined(__PROTO__) 32 # if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus) 33 # if defined(__cplusplus) 34 # define __LINKAGE__ "C" 35 # else 36 # define __LINKAGE__ 37 # endif 38 # define __STDARG__ 39 # define __PROTO__(x) x 40 # define __OTORP__(x) 41 # define __PARAM__(n,o) n 42 # if !defined(__STDC__) && !defined(__cplusplus) 43 # if !defined(c_plusplus) 44 # define const 45 # endif 46 # define signed 47 # define void int 48 # define volatile 49 # define __V_ char 50 # else 51 # define __V_ void 52 # endif 53 # else 54 # define __PROTO__(x) () 55 # define __OTORP__(x) x 56 # define __PARAM__(n,o) o 57 # define __LINKAGE__ 58 # define __V_ char 59 # define const 60 # define signed 61 # define void int 62 # define volatile 63 # endif 64 # define __MANGLE__ __LINKAGE__ 65 # if defined(__cplusplus) || defined(c_plusplus) 66 # define __VARARG__ ... 67 # else 68 # define __VARARG__ 69 # endif 70 # if defined(__STDARG__) 71 # define __VA_START__(p,a) va_start(p,a) 72 # else 73 # define __VA_START__(p,a) va_start(p) 74 # endif 75 # if !defined(__INLINE__) 76 # if defined(__cplusplus) 77 # define __INLINE__ extern __MANGLE__ inline 78 # else 79 # if defined(_WIN32) && !defined(__GNUC__) 80 # define __INLINE__ __inline 81 # endif 82 # endif 83 # endif 84 #endif 85 #if !defined(__LINKAGE__) 86 #define __LINKAGE__ /* 2004-08-11 transition */ 87 #endif 88 89 #define _AST_SYS_H 1 90 #define _sys_types 1 /* #include <sys/types.h> ok */ 91 #if __mips == 2 && !defined(_NO_LARGEFILE64_SOURCE) 92 #define _NO_LARGEFILE64_SOURCE 1 93 #endif 94 #if !defined(_NO_LARGEFILE64_SOURCE) && _typ_off64_t && _lib_lseek64 && _lib_stat64 95 #if !defined(_LARGEFILE64_SOURCE) 96 #define _LARGEFILE64_SOURCE 1 97 #endif 98 #if !defined(_LARGEFILE_SOURCE) 99 #define _LARGEFILE_SOURCE 1 100 #endif 101 #if !defined(_LARGE_FILE_API) 102 #define _LARGE_FILE_API 1 103 #endif 104 #else 105 #undef _LARGEFILE64_SOURCE 106 #undef _LARGEFILE_SOURCE 107 #undef _LARGE_FILE_API 108 #undef _typ_ino64_t 109 #undef _typ_off64_t 110 #undef _typ_struct_dirent64 111 #undef _lib_creat64 112 #undef _lib_fstat64 113 #undef _lib_fstatvfs64 114 #undef _lib_ftruncate64 115 #undef _lib_lseek64 116 #undef _lib_lstat64 117 #undef _lib_mmap64 118 #undef _lib_open64 119 #undef _lib_readdir64 120 #undef _lib_stat64 121 #undef _lib_statvfs64 122 #undef _lib_truncate64 123 #endif 124 #if !_lib_readdir64 125 #undef _typ_ino64_t 126 #endif 127 #if defined(__STDC__) && !defined(__USE_FIXED_PROTOTYPES__) 128 #define __USE_FIXED_PROTOTYPES__ 1 /* kick gcc out of the past */ 129 #endif 130 #include <stdlib.h> 131 #include <stddef.h> 132 #include <sys/types.h> 133 #include <stdint.h> 134 #include <inttypes.h> 135 #include <string.h> 136 #include <unistd.h> 137 #include <limits.h> 138 #include <fcntl.h> 139 #include <locale.h> 140 #define _hdr_time 1 /* #include <time.h> ok */ 141 #define _sys_time 1 /* #include <sys/time.h> ok */ 142 #define _sys_times 1 /* #include <sys/times.h> ok */ 143 #define _typ_dev_t 1 /* dev_t is a type */ 144 #define _typ_nlink_t 1 /* nlink_t is a type */ 145 #define _typ_gid_t 1 /* gid_t is a type */ 146 #define _typ_mode_t 1 /* mode_t is a type */ 147 #define _typ_uid_t 1 /* uid_t is a type */ 148 #define _hdr_stdio 1 /* #include <stdio.h> ok */ 149 #define _hdr_wchar 1 /* #include <wchar.h> ok */ 150 #define _typ_wchar_t 1 /* wchar_t is a type */ 151 #define _typ_pid_t 1 /* pid_t is a type */ 152 #define _typ_ssize_t 1 /* ssize_t is a type */ 153 #define _typ_wint_t 1 /* wint_t is a type */ 154 #define _sys_socket 1 /* #include <sys/socket.h> ok */ 155 #define _typ_socklen_t 1 /* socklen_t is a type */ 156 #define _typ_size_t 1 /* size_t is a type */ 157 #define _typ_clock_t 1 /* clock_t is a type */ 158 #define _typ_ino_t 1 /* ino_t is a type */ 159 #define _typ_off_t 1 /* off_t is a type */ 160 #define _typ_ptrdiff_t 1 /* ptrdiff_t is a type */ 161 #define _typ_time_t 1 /* time_t is a type */ 162 #define _typ_div_t 1 /* div_t is a type */ 163 #define _typ_ldiv_t 1 /* ldiv_t is a type */ 164 #if _BLD_ast && defined(__EXPORT__) 165 #undef __MANGLE__ 166 #define __MANGLE__ __LINKAGE__ __EXPORT__ 167 #endif 168 extern __MANGLE__ void cfree __PROTO__((__V_*)); 169 extern __MANGLE__ size_t confstr __PROTO__((int, char*, size_t)); 170 extern __MANGLE__ int eaccess __PROTO__((const char*, int)); 171 extern __MANGLE__ int execvpe __PROTO__((const char*, char* const[], char* const[])); 172 extern __MANGLE__ __V_* pvalloc __PROTO__((size_t)); 173 extern __MANGLE__ pid_t spawnveg __PROTO__((const char*, char* const[], char* const[], pid_t)); 174 #undef __MANGLE__ 175 #define __MANGLE__ __LINKAGE__ 176 #if !defined(va_start) 177 #if defined(__STDARG__) 178 #include <stdarg.h> 179 #else 180 #include <varargs.h> 181 #endif 182 #endif 183 184 #endif 185