1 /***********************************************************************
3 * This software is part of the ast package *
4 * Copyright (c) 1985-2010 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Common Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
21 ***********************************************************************/
23 /* : : generated by proto : : */
24 /* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_32bit/src/lib/libast/features/sys by iffe version 2009-12-04 : : */
27 #if !defined(__PROTO__)
28 # if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
29 # if defined(__cplusplus)
30 # define __LINKAGE__ "C"
35 # define __PROTO__(x) x
37 # define __PARAM__(n,o) n
38 # if !defined(__STDC__) && !defined(__cplusplus)
39 # if !defined(c_plusplus)
50 # define __PROTO__(x) ()
51 # define __OTORP__(x) x
52 # define __PARAM__(n,o) o
60 # define __MANGLE__ __LINKAGE__
61 # if defined(__cplusplus) || defined(c_plusplus)
62 # define __VARARG__ ...
66 # if defined(__STDARG__)
67 # define __VA_START__(p,a) va_start(p,a)
69 # define __VA_START__(p,a) va_start(p)
71 # if !defined(__INLINE__)
72 # if defined(__cplusplus)
73 # define __INLINE__ extern __MANGLE__ inline
75 # if defined(_WIN32) && !defined(__GNUC__)
76 # define __INLINE__ __inline
81 #if !defined(__LINKAGE__)
82 #define __LINKAGE__ /* 2004-08-11 transition */
86 #define _sys_types 1 /* #include <sys/types.h> ok */
87 #if __mips == 2 && !defined(_NO_LARGEFILE64_SOURCE)
88 #define _NO_LARGEFILE64_SOURCE 1
90 #if !defined(_NO_LARGEFILE64_SOURCE) && _typ_off64_t && _lib_lseek64 && _lib_stat64
91 #if !defined(_LARGEFILE64_SOURCE)
92 #define _LARGEFILE64_SOURCE 1
94 #if !defined(_LARGEFILE_SOURCE)
95 #define _LARGEFILE_SOURCE 1
98 #undef _LARGEFILE64_SOURCE
99 #undef _LARGEFILE_SOURCE
101 #undef _typ_struct_dirent64
104 #undef _lib_fstatvfs64
105 #undef _lib_ftruncate64
110 #undef _lib_readdir64
112 #undef _lib_statvfs64
113 #undef _lib_truncate64
115 #if defined(__STDC__) && !defined(__USE_FIXED_PROTOTYPES__)
116 #define __USE_FIXED_PROTOTYPES__ 1 /* kick gcc out of the past */
120 #include <sys/types.h>
122 #include <inttypes.h>
128 #define _hdr_time 1 /* #include <time.h> ok */
129 #define _sys_time 1 /* #include <sys/time.h> ok */
130 #define _sys_times 1 /* #include <sys/times.h> ok */
131 #define _typ_dev_t 1 /* dev_t is a type */
132 #define _typ_nlink_t 1 /* nlink_t is a type */
133 #define _typ_gid_t 1 /* gid_t is a type */
134 #define _typ_mode_t 1 /* mode_t is a type */
135 #define _typ_uid_t 1 /* uid_t is a type */
136 #define _hdr_stdio 1 /* #include <stdio.h> ok */
137 #define _hdr_wchar 1 /* #include <wchar.h> ok */
138 #define _typ_wchar_t 1 /* wchar_t is a type */
139 #define _typ_pid_t 1 /* pid_t is a type */
140 #define _typ_ssize_t 1 /* ssize_t is a type */
141 #define _typ_wint_t 1 /* wint_t is a type */
142 #define _sys_socket 1 /* #include <sys/socket.h> ok */
143 #define _typ_socklen_t 1 /* socklen_t is a type */
144 #define _typ_size_t 1 /* size_t is a type */
145 #define _typ_clock_t 1 /* clock_t is a type */
146 #define _typ_ino_t 1 /* ino_t is a type */
147 #define _typ_off_t 1 /* off_t is a type */
148 #define _typ_ptrdiff_t 1 /* ptrdiff_t is a type */
149 #define _typ_time_t 1 /* time_t is a type */
150 #define _typ_div_t 1 /* div_t is a type */
151 #define _typ_ldiv_t 1 /* ldiv_t is a type */
152 #if _BLD_ast && defined(__EXPORT__)
154 #define __MANGLE__ __LINKAGE__ __EXPORT__
156 extern __MANGLE__
void cfree
__PROTO__((__V_
*));
157 extern __MANGLE__
int eaccess
__PROTO__((const char*, int));
158 extern __MANGLE__
int execvpe
__PROTO__((const char*, char* const[], char* const[]));
159 extern __MANGLE__ __V_
* pvalloc
__PROTO__((size_t));
160 extern __MANGLE__ pid_t spawnveg
__PROTO__((const char*, char* const[], char* const[], pid_t
));
162 #define __MANGLE__ __LINKAGE__
163 #if !defined(va_start)
164 #if defined(__STDARG__)