annotate lib/stdlib.in.h @ 448:5cccf90bf838 3.0 tip

Fixed bug with complex external references generating invalid relocations in the object file
author lost@l-w.ca
date Fri, 05 Nov 2010 22:27:00 -0600
parents b8bf63962a99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
434
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
1 /* A GNU-like <stdlib.h>.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
2
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
3 Copyright (C) 1995, 2001-2004, 2006-2010 Free Software Foundation, Inc.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
4
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
5 This program is free software: you can redistribute it and/or modify
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
7 the Free Software Foundation; either version 3 of the License, or
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
8 (at your option) any later version.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
9
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
13 GNU General Public License for more details.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
14
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
17
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
18 #if __GNUC__ >= 3
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
19 @PRAGMA_SYSTEM_HEADER@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
20 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
21
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
22 #if defined __need_malloc_and_calloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
23 /* Special invocation convention inside glibc header files. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
24
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
25 #@INCLUDE_NEXT@ @NEXT_STDLIB_H@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
26
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
27 #else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
28 /* Normal invocation convention. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
29
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
30 #ifndef _GL_STDLIB_H
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
31
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
32 /* The include_next requires a split double-inclusion guard. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
33 #@INCLUDE_NEXT@ @NEXT_STDLIB_H@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
34
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
35 #ifndef _GL_STDLIB_H
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
36 #define _GL_STDLIB_H
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
37
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
38 /* NetBSD 5.0 mis-defines NULL. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
39 #include <stddef.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
40
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
41 /* Solaris declares getloadavg() in <sys/loadavg.h>. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
42 #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
43 # include <sys/loadavg.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
44 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
45
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
46 /* OSF/1 5.1 declares 'struct random_data' in <random.h>, which is included
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
47 from <stdlib.h> if _REENTRANT is defined. Include it always. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
48 #if @HAVE_RANDOM_H@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
49 # include <random.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
50 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
51
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
52 #if !@HAVE_STRUCT_RANDOM_DATA@ || (@GNULIB_RANDOM_R@ && !@HAVE_RANDOM_R@) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
53 || defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
54 # include <stdint.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
55 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
56
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
57 #if !@HAVE_STRUCT_RANDOM_DATA@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
58 struct random_data
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
59 {
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
60 int32_t *fptr; /* Front pointer. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
61 int32_t *rptr; /* Rear pointer. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
62 int32_t *state; /* Array of state values. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
63 int rand_type; /* Type of random number generator. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
64 int rand_deg; /* Degree of random number generator. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
65 int rand_sep; /* Distance between front and rear. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
66 int32_t *end_ptr; /* Pointer behind state table. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
67 };
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
68 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
69
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
70 #if (@GNULIB_MKSTEMP@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
71 /* On MacOS X 10.3, only <unistd.h> declares mkstemp. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
72 /* On Cygwin 1.7.1, only <unistd.h> declares getsubopt. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
73 /* But avoid namespace pollution on glibc systems. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
74 # include <unistd.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
75 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
76
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
77 /* The definition of GL_LINK_WARNING is copied here. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
78
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
79 /* The definition of _GL_ARG_NONNULL is copied here. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
80
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
81
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
82 /* Some systems do not define EXIT_*, despite otherwise supporting C89. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
83 #ifndef EXIT_SUCCESS
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
84 # define EXIT_SUCCESS 0
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
85 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
86 /* Tandem/NSK and other platforms that define EXIT_FAILURE as -1 interfere
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
87 with proper operation of xargs. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
88 #ifndef EXIT_FAILURE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
89 # define EXIT_FAILURE 1
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
90 #elif EXIT_FAILURE != 1
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
91 # undef EXIT_FAILURE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
92 # define EXIT_FAILURE 1
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
93 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
94
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
95
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
96 #ifdef __cplusplus
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
97 extern "C" {
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
98 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
99
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
100 #if @GNULIB_ATOLL@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
101 # if !@HAVE_ATOLL@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
102 /* Parse a signed decimal integer.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
103 Returns the value of the integer. Errors are not detected. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
104 extern long long atoll (const char *string) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
105 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
106 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
107 # undef atoll
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
108 # define atoll(s) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
109 (GL_LINK_WARNING ("atoll is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
110 "use gnulib module atoll for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
111 atoll (s))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
112 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
113
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
114 #if @GNULIB_CALLOC_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
115 # if !@HAVE_CALLOC_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
116 # undef calloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
117 # define calloc rpl_calloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
118 extern void * calloc (size_t nmemb, size_t size);
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
119 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
120 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
121 # undef calloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
122 # define calloc(n,s) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
123 (GL_LINK_WARNING ("calloc is not POSIX compliant everywhere - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
124 "use gnulib module calloc-posix for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
125 calloc (n, s))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
126 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
127
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
128 #if @GNULIB_CANONICALIZE_FILE_NAME@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
129 # if @REPLACE_CANONICALIZE_FILE_NAME@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
130 # define canonicalize_file_name rpl_canonicalize_file_name
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
131 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
132 # if !@HAVE_CANONICALIZE_FILE_NAME@ || @REPLACE_CANONICALIZE_FILE_NAME@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
133 extern char *canonicalize_file_name (const char *name) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
134 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
135 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
136 # undef canonicalize_file_name
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
137 # define canonicalize_file_name(n) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
138 (GL_LINK_WARNING ("canonicalize_file_name is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
139 "use gnulib module canonicalize-lgpl for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
140 canonicalize_file_name (n))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
141 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
142
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
143 #if @GNULIB_GETLOADAVG@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
144 # if !@HAVE_DECL_GETLOADAVG@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
145 /* Store max(NELEM,3) load average numbers in LOADAVG[].
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
146 The three numbers are the load average of the last 1 minute, the last 5
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
147 minutes, and the last 15 minutes, respectively.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
148 LOADAVG is an array of NELEM numbers. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
149 extern int getloadavg (double loadavg[], int nelem) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
150 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
151 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
152 # undef getloadavg
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
153 # define getloadavg(l,n) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
154 (GL_LINK_WARNING ("getloadavg is not portable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
155 "use gnulib module getloadavg for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
156 getloadavg (l, n))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
157 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
158
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
159 #if @GNULIB_GETSUBOPT@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
160 /* Assuming *OPTIONP is a comma separated list of elements of the form
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
161 "token" or "token=value", getsubopt parses the first of these elements.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
162 If the first element refers to a "token" that is member of the given
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
163 NULL-terminated array of tokens:
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
164 - It replaces the comma with a NUL byte, updates *OPTIONP to point past
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
165 the first option and the comma, sets *VALUEP to the value of the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
166 element (or NULL if it doesn't contain an "=" sign),
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
167 - It returns the index of the "token" in the given array of tokens.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
168 Otherwise it returns -1, and *OPTIONP and *VALUEP are undefined.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
169 For more details see the POSIX:2001 specification.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
170 http://www.opengroup.org/susv3xsh/getsubopt.html */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
171 # if !@HAVE_GETSUBOPT@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
172 extern int getsubopt (char **optionp, char *const *tokens, char **valuep)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
173 _GL_ARG_NONNULL ((1, 2, 3));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
174 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
175 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
176 # undef getsubopt
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
177 # define getsubopt(o,t,v) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
178 (GL_LINK_WARNING ("getsubopt is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
179 "use gnulib module getsubopt for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
180 getsubopt (o, t, v))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
181 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
182
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
183 #if @GNULIB_MALLOC_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
184 # if !@HAVE_MALLOC_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
185 # undef malloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
186 # define malloc rpl_malloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
187 extern void * malloc (size_t size);
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
188 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
189 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
190 # undef malloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
191 # define malloc(s) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
192 (GL_LINK_WARNING ("malloc is not POSIX compliant everywhere - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
193 "use gnulib module malloc-posix for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
194 malloc (s))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
195 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
196
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
197 #if @GNULIB_MKDTEMP@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
198 # if !@HAVE_MKDTEMP@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
199 /* Create a unique temporary directory from TEMPLATE.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
200 The last six characters of TEMPLATE must be "XXXXXX";
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
201 they are replaced with a string that makes the directory name unique.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
202 Returns TEMPLATE, or a null pointer if it cannot get a unique name.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
203 The directory is created mode 700. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
204 extern char * mkdtemp (char * /*template*/) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
205 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
206 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
207 # undef mkdtemp
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
208 # define mkdtemp(t) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
209 (GL_LINK_WARNING ("mkdtemp is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
210 "use gnulib module mkdtemp for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
211 mkdtemp (t))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
212 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
213
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
214 #if @GNULIB_MKOSTEMP@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
215 # if !@HAVE_MKOSTEMP@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
216 /* Create a unique temporary file from TEMPLATE.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
217 The last six characters of TEMPLATE must be "XXXXXX";
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
218 they are replaced with a string that makes the file name unique.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
219 The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
220 and O_TEXT, O_BINARY (defined in "binary-io.h").
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
221 The file is then created, with the specified flags, ensuring it didn't exist
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
222 before.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
223 The file is created read-write (mask at least 0600 & ~umask), but it may be
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
224 world-readable and world-writable (mask 0666 & ~umask), depending on the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
225 implementation.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
226 Returns the open file descriptor if successful, otherwise -1 and errno
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
227 set. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
228 extern int mkostemp (char * /*template*/, int /*flags*/) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
229 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
230 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
231 # undef mkostemp
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
232 # define mkostemp(t,f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
233 (GL_LINK_WARNING ("mkostemp is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
234 "use gnulib module mkostemp for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
235 mkostemp (t, f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
236 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
237
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
238 #if @GNULIB_MKOSTEMPS@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
239 # if !@HAVE_MKOSTEMPS@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
240 /* Create a unique temporary file from TEMPLATE.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
241 The last six characters of TEMPLATE before a suffix of length
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
242 SUFFIXLEN must be "XXXXXX";
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
243 they are replaced with a string that makes the file name unique.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
244 The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
245 and O_TEXT, O_BINARY (defined in "binary-io.h").
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
246 The file is then created, with the specified flags, ensuring it didn't exist
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
247 before.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
248 The file is created read-write (mask at least 0600 & ~umask), but it may be
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
249 world-readable and world-writable (mask 0666 & ~umask), depending on the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
250 implementation.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
251 Returns the open file descriptor if successful, otherwise -1 and errno
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
252 set. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
253 extern int mkostemps (char * /*template*/, int /*suffixlen*/, int /*flags*/)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
254 _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
255 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
256 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
257 # undef mkostemps
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
258 # define mkostemps(t,s,f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
259 (GL_LINK_WARNING ("mkostemps is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
260 "use gnulib module mkostemps for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
261 mkostemps (t, s, f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
262 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
263
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
264 #if @GNULIB_MKSTEMP@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
265 # if @REPLACE_MKSTEMP@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
266 /* Create a unique temporary file from TEMPLATE.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
267 The last six characters of TEMPLATE must be "XXXXXX";
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
268 they are replaced with a string that makes the file name unique.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
269 The file is then created, ensuring it didn't exist before.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
270 The file is created read-write (mask at least 0600 & ~umask), but it may be
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
271 world-readable and world-writable (mask 0666 & ~umask), depending on the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
272 implementation.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
273 Returns the open file descriptor if successful, otherwise -1 and errno
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
274 set. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
275 # define mkstemp rpl_mkstemp
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
276 extern int mkstemp (char * /*template*/) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
277 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
278 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
279 # undef mkstemp
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
280 # define mkstemp(t) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
281 (GL_LINK_WARNING ("mkstemp is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
282 "use gnulib module mkstemp for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
283 mkstemp (t))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
284 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
285
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
286 #if @GNULIB_MKSTEMPS@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
287 # if !@HAVE_MKSTEMPS@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
288 /* Create a unique temporary file from TEMPLATE.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
289 The last six characters of TEMPLATE prior to a suffix of length
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
290 SUFFIXLEN must be "XXXXXX";
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
291 they are replaced with a string that makes the file name unique.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
292 The file is then created, ensuring it didn't exist before.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
293 The file is created read-write (mask at least 0600 & ~umask), but it may be
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
294 world-readable and world-writable (mask 0666 & ~umask), depending on the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
295 implementation.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
296 Returns the open file descriptor if successful, otherwise -1 and errno
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
297 set. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
298 extern int mkstemps (char * /*template*/, int /*suffixlen*/)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
299 _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
300 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
301 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
302 # undef mkstemps
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
303 # define mkstemps(t,s) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
304 (GL_LINK_WARNING ("mkstemps is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
305 "use gnulib module mkstemps for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
306 mkstemps (t, s))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
307 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
308
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
309 #if @GNULIB_PUTENV@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
310 # if @REPLACE_PUTENV@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
311 # undef putenv
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
312 # define putenv rpl_putenv
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
313 extern int putenv (char *string) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
314 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
315 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
316
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
317 #if @GNULIB_RANDOM_R@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
318 # if !@HAVE_RANDOM_R@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
319
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
320 # ifndef RAND_MAX
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
321 # define RAND_MAX 2147483647
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
322 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
323
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
324 int srandom_r (unsigned int seed, struct random_data *rand_state)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
325 _GL_ARG_NONNULL ((2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
326 int initstate_r (unsigned int seed, char *buf, size_t buf_size,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
327 struct random_data *rand_state)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
328 _GL_ARG_NONNULL ((2, 4));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
329 int setstate_r (char *arg_state, struct random_data *rand_state)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
330 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
331 int random_r (struct random_data *buf, int32_t *result)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
332 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
333 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
334 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
335 # undef random_r
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
336 # define random_r(b,r) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
337 (GL_LINK_WARNING ("random_r is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
338 "use gnulib module random_r for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
339 random_r (b,r))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
340 # undef initstate_r
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
341 # define initstate_r(s,b,sz,r) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
342 (GL_LINK_WARNING ("initstate_r is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
343 "use gnulib module random_r for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
344 initstate_r (s,b,sz,r))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
345 # undef srandom_r
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
346 # define srandom_r(s,r) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
347 (GL_LINK_WARNING ("srandom_r is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
348 "use gnulib module random_r for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
349 srandom_r (s,r))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
350 # undef setstate_r
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
351 # define setstate_r(a,r) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
352 (GL_LINK_WARNING ("setstate_r is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
353 "use gnulib module random_r for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
354 setstate_r (a,r))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
355 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
356
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
357 #if @GNULIB_REALLOC_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
358 # if !@HAVE_REALLOC_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
359 # undef realloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
360 # define realloc rpl_realloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
361 extern void * realloc (void *ptr, size_t size);
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
362 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
363 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
364 # undef realloc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
365 # define realloc(p,s) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
366 (GL_LINK_WARNING ("realloc is not POSIX compliant everywhere - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
367 "use gnulib module realloc-posix for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
368 realloc (p, s))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
369 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
370
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
371 #if @GNULIB_REALPATH@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
372 # if @REPLACE_REALPATH@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
373 # define realpath rpl_realpath
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
374 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
375 # if !@HAVE_REALPATH@ || @REPLACE_REALPATH@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
376 extern char *realpath (const char *name, char *resolved) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
377 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
378 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
379 # undef realpath
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
380 # define realpath(n,r) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
381 (GL_LINK_WARNING ("realpath is unportable - use gnulib module " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
382 "canonicalize or canonicalize-lgpl for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
383 realpath (n, r))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
384 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
385
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
386 #if @GNULIB_RPMATCH@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
387 # if !@HAVE_RPMATCH@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
388 /* Test a user response to a question.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
389 Return 1 if it is affirmative, 0 if it is negative, or -1 if not clear. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
390 extern int rpmatch (const char *response) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
391 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
392 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
393 # undef rpmatch
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
394 # define rpmatch(r) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
395 (GL_LINK_WARNING ("rpmatch is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
396 "use gnulib module rpmatch for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
397 rpmatch (r))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
398 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
399
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
400 #if @GNULIB_SETENV@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
401 # if @REPLACE_SETENV@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
402 # undef setenv
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
403 # define setenv rpl_setenv
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
404 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
405 # if !@HAVE_SETENV@ || @REPLACE_SETENV@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
406 /* Set NAME to VALUE in the environment.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
407 If REPLACE is nonzero, overwrite an existing value. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
408 extern int setenv (const char *name, const char *value, int replace)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
409 _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
410 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
411 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
412 # undef setenv
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
413 # define setenv(n,v,o) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
414 (GL_LINK_WARNING ("setenv is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
415 "use gnulib module setenv for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
416 setenv (n, v, o))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
417 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
418
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
419 #if @GNULIB_STRTOD@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
420 # if @REPLACE_STRTOD@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
421 # define strtod rpl_strtod
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
422 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
423 # if !@HAVE_STRTOD@ || @REPLACE_STRTOD@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
424 /* Parse a double from STRING, updating ENDP if appropriate. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
425 extern double strtod (const char *str, char **endp) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
426 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
427 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
428 # undef strtod
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
429 # define strtod(s, e) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
430 (GL_LINK_WARNING ("strtod is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
431 "use gnulib module strtod for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
432 strtod (s, e))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
433 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
434
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
435 #if @GNULIB_STRTOLL@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
436 # if !@HAVE_STRTOLL@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
437 /* Parse a signed integer whose textual representation starts at STRING.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
438 The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
439 it may be decimal or octal (with prefix "0") or hexadecimal (with prefix
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
440 "0x").
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
441 If ENDPTR is not NULL, the address of the first byte after the integer is
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
442 stored in *ENDPTR.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
443 Upon overflow, the return value is LLONG_MAX or LLONG_MIN, and errno is set
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
444 to ERANGE. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
445 extern long long strtoll (const char *string, char **endptr, int base)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
446 _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
447 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
448 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
449 # undef strtoll
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
450 # define strtoll(s,e,b) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
451 (GL_LINK_WARNING ("strtoll is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
452 "use gnulib module strtoll for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
453 strtoll (s, e, b))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
454 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
455
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
456 #if @GNULIB_STRTOULL@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
457 # if !@HAVE_STRTOULL@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
458 /* Parse an unsigned integer whose textual representation starts at STRING.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
459 The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
460 it may be decimal or octal (with prefix "0") or hexadecimal (with prefix
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
461 "0x").
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
462 If ENDPTR is not NULL, the address of the first byte after the integer is
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
463 stored in *ENDPTR.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
464 Upon overflow, the return value is ULLONG_MAX, and errno is set to
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
465 ERANGE. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
466 extern unsigned long long strtoull (const char *string, char **endptr, int base)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
467 _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
468 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
469 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
470 # undef strtoull
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
471 # define strtoull(s,e,b) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
472 (GL_LINK_WARNING ("strtoull is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
473 "use gnulib module strtoull for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
474 strtoull (s, e, b))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
475 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
476
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
477 #if @GNULIB_UNSETENV@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
478 # if @REPLACE_UNSETENV@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
479 # undef unsetenv
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
480 # define unsetenv rpl_unsetenv
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
481 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
482 # if !@HAVE_UNSETENV@ || @REPLACE_UNSETENV@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
483 /* Remove the variable NAME from the environment. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
484 extern int unsetenv (const char *name) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
485 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
486 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
487 # undef unsetenv
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
488 # define unsetenv(n) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
489 (GL_LINK_WARNING ("unsetenv is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
490 "use gnulib module unsetenv for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
491 unsetenv (n))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
492 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
493
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
494 #ifdef __cplusplus
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
495 }
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
496 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
497
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
498 #endif /* _GL_STDLIB_H */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
499 #endif /* _GL_STDLIB_H */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
500 #endif