3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 */
25
26 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
27
28 /* Copyright (c) 1988 AT&T */
29 /* All Rights Reserved */
30
31 #ifndef _STDLIB_H
32 #define _STDLIB_H
33
34 #include <iso/stdlib_iso.h>
35 #include <iso/stdlib_c99.h>
36
37 #if defined(__EXTENSIONS__) || defined(_XPG4)
38 #include <sys/wait.h>
39 #endif
40
41 /*
42 * Allow global visibility for symbols defined in
208 extern int posix_memalign(void **, size_t, size_t);
209 extern int posix_openpt(int);
210 extern int setenv(const char *, const char *, int);
211 extern int unsetenv(const char *);
212 #endif
213
214 #if defined(__EXTENSIONS__) || \
215 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
216 extern char *canonicalize_file_name(const char *);
217 extern int clearenv(void);
218 extern void closefrom(int);
219 extern int daemon(int, int);
220 extern int dup2(int, int);
221 extern int dup3(int, int, int);
222 extern int fdwalk(int (*)(void *, int), void *);
223 extern char *qecvt(long double, int, int *, int *);
224 extern char *qfcvt(long double, int, int *, int *);
225 extern char *qgcvt(long double, int, char *);
226 extern char *getcwd(char *, size_t);
227 extern const char *getexecname(void);
228 extern char *getlogin(void);
229 extern int getopt(int, char *const *, const char *);
230 extern char *optarg;
231 extern int optind, opterr, optopt;
232 extern char *getpass(const char *);
233 extern char *getpassphrase(const char *);
234 extern int getpw(uid_t, char *);
235 extern int isatty(int);
236 extern void *memalign(size_t, size_t);
237 extern char *ttyname(int);
238 extern char *mkdtemp(char *);
239 extern const char *getprogname(void);
240 extern void setprogname(const char *);
241
242 #if !defined(_STRICT_STDC) && defined(_LONGLONG_TYPE)
243 extern char *lltostr(long long, char *);
244 extern char *ulltostr(unsigned long long, char *);
245 #endif /* !defined(_STRICT_STDC) && defined(_LONGLONG_TYPE) */
246
247 #endif /* defined(__EXTENSIONS__) || !defined(_STRICT_STDC) ... */
248
316 #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || defined(_XPG6)
317 extern int posix_memalign();
318 extern int posix_openpt();
319 extern int setenv();
320 extern int unsetenv();
321 #endif
322
323 #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
324 extern char *canonicalize_file_name();
325 extern int clearenv();
326 extern void closefrom();
327 extern int daemon();
328 extern int dup2();
329 extern int dup3();
330 extern int fdwalk();
331 extern char *qecvt();
332 extern char *qfcvt();
333 extern char *qgcvt();
334 extern char *getcwd();
335 extern char *getexecname();
336 extern char *getlogin();
337 extern int getopt();
338 extern char *optarg;
339 extern int optind, opterr, optopt;
340 extern char *getpass();
341 extern char *getpassphrase();
342 extern int getpw();
343 extern int isatty();
344 extern void *memalign();
345 extern char *ttyname();
346 extern char *mkdtemp();
347 extern char *getprogname();
348 extern void setprogname();
349
350 #if defined(_LONGLONG_TYPE)
351 extern char *lltostr();
352 extern char *ulltostr();
353 #endif /* defined(_LONGLONG_TYPE) */
354 #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
355
356 #endif /* __STDC__ */
|
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 2013 Gary Mills
24 *
25 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
26 */
27
28 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
29
30 /* Copyright (c) 1988 AT&T */
31 /* All Rights Reserved */
32
33 #ifndef _STDLIB_H
34 #define _STDLIB_H
35
36 #include <iso/stdlib_iso.h>
37 #include <iso/stdlib_c99.h>
38
39 #if defined(__EXTENSIONS__) || defined(_XPG4)
40 #include <sys/wait.h>
41 #endif
42
43 /*
44 * Allow global visibility for symbols defined in
210 extern int posix_memalign(void **, size_t, size_t);
211 extern int posix_openpt(int);
212 extern int setenv(const char *, const char *, int);
213 extern int unsetenv(const char *);
214 #endif
215
216 #if defined(__EXTENSIONS__) || \
217 (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
218 extern char *canonicalize_file_name(const char *);
219 extern int clearenv(void);
220 extern void closefrom(int);
221 extern int daemon(int, int);
222 extern int dup2(int, int);
223 extern int dup3(int, int, int);
224 extern int fdwalk(int (*)(void *, int), void *);
225 extern char *qecvt(long double, int, int *, int *);
226 extern char *qfcvt(long double, int, int *, int *);
227 extern char *qgcvt(long double, int, char *);
228 extern char *getcwd(char *, size_t);
229 extern const char *getexecname(void);
230
231 #ifndef __GETLOGIN_DEFINED /* Avoid duplicate in unistd.h */
232 #define __GETLOGIN_DEFINED
233 #ifndef __USE_LEGACY_LOGNAME__
234 #ifdef __PRAGMA_REDEFINE_EXTNAME
235 #pragma redefine_extname getlogin getloginx
236 #else /* __PRAGMA_REDEFINE_EXTNAME */
237 extern char *getloginx(void);
238 #define getlogin getloginx
239 #endif /* __PRAGMA_REDEFINE_EXTNAME */
240 #endif /* __USE_LEGACY_LOGNAME__ */
241 extern char *getlogin(void);
242 #endif /* __GETLOGIN_DEFINED */
243
244 extern int getopt(int, char *const *, const char *);
245 extern char *optarg;
246 extern int optind, opterr, optopt;
247 extern char *getpass(const char *);
248 extern char *getpassphrase(const char *);
249 extern int getpw(uid_t, char *);
250 extern int isatty(int);
251 extern void *memalign(size_t, size_t);
252 extern char *ttyname(int);
253 extern char *mkdtemp(char *);
254 extern const char *getprogname(void);
255 extern void setprogname(const char *);
256
257 #if !defined(_STRICT_STDC) && defined(_LONGLONG_TYPE)
258 extern char *lltostr(long long, char *);
259 extern char *ulltostr(unsigned long long, char *);
260 #endif /* !defined(_STRICT_STDC) && defined(_LONGLONG_TYPE) */
261
262 #endif /* defined(__EXTENSIONS__) || !defined(_STRICT_STDC) ... */
263
331 #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || defined(_XPG6)
332 extern int posix_memalign();
333 extern int posix_openpt();
334 extern int setenv();
335 extern int unsetenv();
336 #endif
337
338 #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
339 extern char *canonicalize_file_name();
340 extern int clearenv();
341 extern void closefrom();
342 extern int daemon();
343 extern int dup2();
344 extern int dup3();
345 extern int fdwalk();
346 extern char *qecvt();
347 extern char *qfcvt();
348 extern char *qgcvt();
349 extern char *getcwd();
350 extern char *getexecname();
351
352 #ifndef __GETLOGIN_DEFINED /* Avoid duplicate in unistd.h */
353 #define __GETLOGIN_DEFINED
354 #ifndef __USE_LEGACY_LOGNAME__
355 #ifdef __PRAGMA_REDEFINE_EXTNAME
356 #pragma redefine_extname getlogin getloginx
357 #else /* __PRAGMA_REDEFINE_EXTNAME */
358 extern char *getloginx();
359 #define getlogin getloginx
360 #endif /* __PRAGMA_REDEFINE_EXTNAME */
361 #endif /* __USE_LEGACY_LOGNAME__ */
362 extern char *getlogin();
363 #endif /* __GETLOGIN_DEFINED */
364
365 extern int getopt();
366 extern char *optarg;
367 extern int optind, opterr, optopt;
368 extern char *getpass();
369 extern char *getpassphrase();
370 extern int getpw();
371 extern int isatty();
372 extern void *memalign();
373 extern char *ttyname();
374 extern char *mkdtemp();
375 extern char *getprogname();
376 extern void setprogname();
377
378 #if defined(_LONGLONG_TYPE)
379 extern char *lltostr();
380 extern char *ulltostr();
381 #endif /* defined(_LONGLONG_TYPE) */
382 #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
383
384 #endif /* __STDC__ */
|