fchdir: use more consistent macro convention
[gnulib.git] / lib / unistd.in.h
1 /* Substitute for and wrapper around <unistd.h>.
2    Copyright (C) 2003-2009 Free Software Foundation, Inc.
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2, or (at your option)
7    any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software Foundation,
16    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
17
18 #ifndef _GL_UNISTD_H
19
20 #if __GNUC__ >= 3
21 @PRAGMA_SYSTEM_HEADER@
22 #endif
23
24 /* The include_next requires a split double-inclusion guard.  */
25 #if @HAVE_UNISTD_H@
26 # @INCLUDE_NEXT@ @NEXT_UNISTD_H@
27 #endif
28
29 #ifndef _GL_UNISTD_H
30 #define _GL_UNISTD_H
31
32 /* NetBSD 5.0 mis-defines NULL.  Also get size_t.  */
33 #include <stddef.h>
34
35 /* mingw doesn't define the SEEK_* or *_FILENO macros in <unistd.h>.  */
36 #if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET)
37 # include <stdio.h>
38 #endif
39
40 /* mingw fails to declare _exit in <unistd.h>.  */
41 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
42 #include <stdlib.h>
43
44 #if @GNULIB_WRITE@ && @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@
45 /* Get ssize_t.  */
46 # include <sys/types.h>
47 #endif
48
49 /* Get getopt(), optarg, optind, opterr, optopt.  */
50 #if @GNULIB_UNISTD_H_GETOPT@
51 # include <getopt.h>
52 #endif
53
54 #if @GNULIB_GETHOSTNAME@
55 /* Get all possible declarations of gethostname().  */
56 # if @UNISTD_H_HAVE_WINSOCK2_H@
57 #  include <winsock2.h>
58 #  if !defined _GL_SYS_SOCKET_H
59 #   undef socket
60 #   define socket               socket_used_without_including_sys_socket_h
61 #   undef connect
62 #   define connect              connect_used_without_including_sys_socket_h
63 #   undef accept
64 #   define accept               accept_used_without_including_sys_socket_h
65 #   undef bind
66 #   define bind                 bind_used_without_including_sys_socket_h
67 #   undef getpeername
68 #   define getpeername          getpeername_used_without_including_sys_socket_h
69 #   undef getsockname
70 #   define getsockname          getsockname_used_without_including_sys_socket_h
71 #   undef getsockopt
72 #   define getsockopt           getsockopt_used_without_including_sys_socket_h
73 #   undef listen
74 #   define listen               listen_used_without_including_sys_socket_h
75 #   undef recv
76 #   define recv                 recv_used_without_including_sys_socket_h
77 #   undef send
78 #   define send                 send_used_without_including_sys_socket_h
79 #   undef recvfrom
80 #   define recvfrom             recvfrom_used_without_including_sys_socket_h
81 #   undef sendto
82 #   define sendto               sendto_used_without_including_sys_socket_h
83 #   undef setsockopt
84 #   define setsockopt           setsockopt_used_without_including_sys_socket_h
85 #   undef shutdown
86 #   define shutdown             shutdown_used_without_including_sys_socket_h
87 #  endif
88 #  if !defined _GL_SYS_SELECT_H
89 #   undef select
90 #   define select               select_used_without_including_sys_select_h
91 #  endif
92 # endif
93 #endif
94
95 /* The definition of GL_LINK_WARNING is copied here.  */
96
97
98 /* OS/2 EMX lacks these macros.  */
99 #ifndef STDIN_FILENO
100 # define STDIN_FILENO 0
101 #endif
102 #ifndef STDOUT_FILENO
103 # define STDOUT_FILENO 1
104 #endif
105 #ifndef STDERR_FILENO
106 # define STDERR_FILENO 2
107 #endif
108
109 /* Declare overridden functions.  */
110
111 #ifdef __cplusplus
112 extern "C" {
113 #endif
114
115
116 #if @GNULIB_CHOWN@
117 # if @REPLACE_CHOWN@
118 #  ifndef REPLACE_CHOWN
119 #   define REPLACE_CHOWN 1
120 #  endif
121 #  if REPLACE_CHOWN
122 /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE
123    to GID (if GID is not -1).  Follow symbolic links.
124    Return 0 if successful, otherwise -1 and errno set.
125    See the POSIX:2001 specification
126    <http://www.opengroup.org/susv3xsh/chown.html>.  */
127 #   define chown rpl_chown
128 extern int chown (const char *file, uid_t uid, gid_t gid);
129 #  endif
130 # endif
131 #elif defined GNULIB_POSIXCHECK
132 # undef chown
133 # define chown(f,u,g) \
134     (GL_LINK_WARNING ("chown fails to follow symlinks on some systems and " \
135                       "doesn't treat a uid or gid of -1 on some systems - " \
136                       "use gnulib module chown for portability"), \
137      chown (f, u, g))
138 #endif
139
140
141 #if @GNULIB_CLOSE@
142 # if @REPLACE_CLOSE@
143 /* Automatically included by modules that need a replacement for close.  */
144 #  undef close
145 #  define close rpl_close
146 extern int close (int);
147 # endif
148 #elif @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@
149 # undef close
150 # define close close_used_without_requesting_gnulib_module_close
151 #elif defined GNULIB_POSIXCHECK
152 # undef close
153 # define close(f) \
154     (GL_LINK_WARNING ("close does not portably work on sockets - " \
155                       "use gnulib module close for portability"), \
156      close (f))
157 #endif
158
159
160 #if @GNULIB_DUP2@
161 # if @REPLACE_DUP2@
162 #  define dup2 rpl_dup2
163 # endif
164 # if !@HAVE_DUP2@ || @REPLACE_DUP2@
165 /* Copy the file descriptor OLDFD into file descriptor NEWFD.  Do nothing if
166    NEWFD = OLDFD, otherwise close NEWFD first if it is open.
167    Return newfd if successful, otherwise -1 and errno set.
168    See the POSIX:2001 specification
169    <http://www.opengroup.org/susv3xsh/dup2.html>.  */
170 extern int dup2 (int oldfd, int newfd);
171 # endif
172 #elif defined GNULIB_POSIXCHECK
173 # undef dup2
174 # define dup2(o,n) \
175     (GL_LINK_WARNING ("dup2 is unportable - " \
176                       "use gnulib module dup2 for portability"), \
177      dup2 (o, n))
178 #endif
179
180
181 #if @GNULIB_DUP3@
182 /* Copy the file descriptor OLDFD into file descriptor NEWFD, with the
183    specified flags.
184    The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>)
185    and O_TEXT, O_BINARY (defined in "binary-io.h").
186    Close NEWFD first if it is open.
187    Return newfd if successful, otherwise -1 and errno set.
188    See the Linux man page at
189    <http://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>.  */
190 # if @HAVE_DUP3@
191 #  define dup3 rpl_dup3
192 # endif
193 extern int dup3 (int oldfd, int newfd, int flags);
194 #elif defined GNULIB_POSIXCHECK
195 # undef dup3
196 # define dup3(o,n,f) \
197     (GL_LINK_WARNING ("dup3 is unportable - " \
198                       "use gnulib module dup3 for portability"), \
199      dup3 (o, n, f))
200 #endif
201
202
203 #if @GNULIB_ENVIRON@
204 # if !@HAVE_DECL_ENVIRON@
205 /* Set of environment variables and values.  An array of strings of the form
206    "VARIABLE=VALUE", terminated with a NULL.  */
207 #  if defined __APPLE__ && defined __MACH__
208 #   include <crt_externs.h>
209 #   define environ (*_NSGetEnviron ())
210 #  else
211 extern char **environ;
212 #  endif
213 # endif
214 #elif defined GNULIB_POSIXCHECK
215 # undef environ
216 # define environ \
217     (GL_LINK_WARNING ("environ is unportable - " \
218                       "use gnulib module environ for portability"), \
219      environ)
220 #endif
221
222
223 #if @GNULIB_EUIDACCESS@
224 # if !@HAVE_EUIDACCESS@
225 /* Like access(), except that is uses the effective user id and group id of
226    the current process.  */
227 extern int euidaccess (const char *filename, int mode);
228 # endif
229 #elif defined GNULIB_POSIXCHECK
230 # undef euidaccess
231 # define euidaccess(f,m) \
232     (GL_LINK_WARNING ("euidaccess is unportable - " \
233                       "use gnulib module euidaccess for portability"), \
234      euidaccess (f, m))
235 #endif
236
237
238 #if @GNULIB_FCHDIR@
239 # if @REPLACE_FCHDIR@
240
241 /* Change the process' current working directory to the directory on which
242    the given file descriptor is open.
243    Return 0 if successful, otherwise -1 and errno set.
244    See the POSIX:2001 specification
245    <http://www.opengroup.org/susv3xsh/fchdir.html>.  */
246 extern int fchdir (int /*fd*/);
247
248 #  define dup rpl_dup
249 extern int dup (int);
250
251 /* Gnulib internal hooks needed to maintain the fchdir metadata.  */
252 extern int _gl_register_fd (int fd, const char *filename);
253 extern void _gl_unregister_fd (int fd);
254 extern int _gl_register_dup (int oldfd, int newfd);
255
256 # endif
257 #elif defined GNULIB_POSIXCHECK
258 # undef fchdir
259 # define fchdir(f) \
260     (GL_LINK_WARNING ("fchdir is unportable - " \
261                       "use gnulib module fchdir for portability"), \
262      fchdir (f))
263 #endif
264
265
266 #if @GNULIB_FSYNC@
267 /* Synchronize changes to a file.
268    Return 0 if successful, otherwise -1 and errno set.
269    See POSIX:2001 specification
270    <http://www.opengroup.org/susv3xsh/fsync.html>.  */
271 # if !@HAVE_FSYNC@
272 extern int fsync (int fd);
273 # endif
274 #elif defined GNULIB_POSIXCHECK
275 # undef fsync
276 # define fsync(fd) \
277     (GL_LINK_WARNING ("fsync is unportable - " \
278                       "use gnulib module fsync for portability"), \
279      fsync (fd))
280 #endif
281
282
283 #if @GNULIB_FTRUNCATE@
284 # if !@HAVE_FTRUNCATE@
285 /* Change the size of the file to which FD is opened to become equal to LENGTH.
286    Return 0 if successful, otherwise -1 and errno set.
287    See the POSIX:2001 specification
288    <http://www.opengroup.org/susv3xsh/ftruncate.html>.  */
289 extern int ftruncate (int fd, off_t length);
290 # endif
291 #elif defined GNULIB_POSIXCHECK
292 # undef ftruncate
293 # define ftruncate(f,l) \
294     (GL_LINK_WARNING ("ftruncate is unportable - " \
295                       "use gnulib module ftruncate for portability"), \
296      ftruncate (f, l))
297 #endif
298
299
300 #if @GNULIB_GETCWD@
301 /* Include the headers that might declare getcwd so that they will not
302    cause confusion if included after this file.  */
303 # include <stdlib.h>
304 # if @REPLACE_GETCWD@
305 /* Get the name of the current working directory, and put it in SIZE bytes
306    of BUF.
307    Return BUF if successful, or NULL if the directory couldn't be determined
308    or SIZE was too small.
309    See the POSIX:2001 specification
310    <http://www.opengroup.org/susv3xsh/getcwd.html>.
311    Additionally, the gnulib module 'getcwd' guarantees the following GNU
312    extension: If BUF is NULL, an array is allocated with 'malloc'; the array
313    is SIZE bytes long, unless SIZE == 0, in which case it is as big as
314    necessary.  */
315 #  define getcwd rpl_getcwd
316 extern char * getcwd (char *buf, size_t size);
317 # endif
318 #elif defined GNULIB_POSIXCHECK
319 # undef getcwd
320 # define getcwd(b,s) \
321     (GL_LINK_WARNING ("getcwd is unportable - " \
322                       "use gnulib module getcwd for portability"), \
323      getcwd (b, s))
324 #endif
325
326
327 #if @GNULIB_GETDOMAINNAME@
328 /* Return the NIS domain name of the machine.
329    WARNING! The NIS domain name is unrelated to the fully qualified host name
330             of the machine.  It is also unrelated to email addresses.
331    WARNING! The NIS domain name is usually the empty string or "(none)" when
332             not using NIS.
333
334    Put up to LEN bytes of the NIS domain name into NAME.
335    Null terminate it if the name is shorter than LEN.
336    If the NIS domain name is longer than LEN, set errno = EINVAL and return -1.
337    Return 0 if successful, otherwise set errno and return -1.  */
338 # if !@HAVE_GETDOMAINNAME@
339 extern int getdomainname(char *name, size_t len);
340 # endif
341 #elif defined GNULIB_POSIXCHECK
342 # undef getdomainname
343 # define getdomainname(n,l) \
344     (GL_LINK_WARNING ("getdomainname is unportable - " \
345                       "use gnulib module getdomainname for portability"), \
346      getdomainname (n, l))
347 #endif
348
349
350 #if @GNULIB_GETDTABLESIZE@
351 # if !@HAVE_GETDTABLESIZE@
352 /* Return the maximum number of file descriptors in the current process.
353    In POSIX, this is same as sysconf (_SC_OPEN_MAX).  */
354 extern int getdtablesize (void);
355 # endif
356 #elif defined GNULIB_POSIXCHECK
357 # undef getdtablesize
358 # define getdtablesize() \
359     (GL_LINK_WARNING ("getdtablesize is unportable - " \
360                       "use gnulib module getdtablesize for portability"), \
361      getdtablesize ())
362 #endif
363
364
365 #if @GNULIB_GETHOSTNAME@
366 /* Return the standard host name of the machine.
367    WARNING! The host name may or may not be fully qualified.
368
369    Put up to LEN bytes of the host name into NAME.
370    Null terminate it if the name is shorter than LEN.
371    If the host name is longer than LEN, set errno = EINVAL and return -1.
372    Return 0 if successful, otherwise set errno and return -1.  */
373 # if @UNISTD_H_HAVE_WINSOCK2_H@
374 #  undef gethostname
375 #  define gethostname rpl_gethostname
376 # endif
377 # if @UNISTD_H_HAVE_WINSOCK2_H@ || !@HAVE_GETHOSTNAME@
378 extern int gethostname(char *name, size_t len);
379 # endif
380 #elif @UNISTD_H_HAVE_WINSOCK2_H@
381 # undef gethostname
382 # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname
383 #elif defined GNULIB_POSIXCHECK
384 # undef gethostname
385 # define gethostname(n,l) \
386     (GL_LINK_WARNING ("gethostname is unportable - " \
387                       "use gnulib module gethostname for portability"), \
388      gethostname (n, l))
389 #endif
390
391
392 #if @GNULIB_GETLOGIN_R@
393 /* Copies the user's login name to NAME.
394    The array pointed to by NAME has room for SIZE bytes.
395
396    Returns 0 if successful.  Upon error, an error number is returned, or -1 in
397    the case that the login name cannot be found but no specific error is
398    provided (this case is hopefully rare but is left open by the POSIX spec).
399
400    See <http://www.opengroup.org/susv3xsh/getlogin.html>.
401  */
402 # if !@HAVE_DECL_GETLOGIN_R@
403 extern int getlogin_r (char *name, size_t size);
404 # endif
405 #elif defined GNULIB_POSIXCHECK
406 # undef getlogin_r
407 # define getlogin_r(n,s) \
408     (GL_LINK_WARNING ("getlogin_r is unportable - " \
409                       "use gnulib module getlogin_r for portability"), \
410      getlogin_r (n, s))
411 #endif
412
413
414 #if @GNULIB_GETPAGESIZE@
415 # if @REPLACE_GETPAGESIZE@
416 #  define getpagesize rpl_getpagesize
417 extern int getpagesize (void);
418 # elif !@HAVE_GETPAGESIZE@
419 /* This is for POSIX systems.  */
420 #  if !defined getpagesize && defined _SC_PAGESIZE
421 #   if ! (defined __VMS && __VMS_VER < 70000000)
422 #    define getpagesize() sysconf (_SC_PAGESIZE)
423 #   endif
424 #  endif
425 /* This is for older VMS.  */
426 #  if !defined getpagesize && defined __VMS
427 #   ifdef __ALPHA
428 #    define getpagesize() 8192
429 #   else
430 #    define getpagesize() 512
431 #   endif
432 #  endif
433 /* This is for BeOS.  */
434 #  if !defined getpagesize && @HAVE_OS_H@
435 #   include <OS.h>
436 #   if defined B_PAGE_SIZE
437 #    define getpagesize() B_PAGE_SIZE
438 #   endif
439 #  endif
440 /* This is for AmigaOS4.0.  */
441 #  if !defined getpagesize && defined __amigaos4__
442 #   define getpagesize() 2048
443 #  endif
444 /* This is for older Unix systems.  */
445 #  if !defined getpagesize && @HAVE_SYS_PARAM_H@
446 #   include <sys/param.h>
447 #   ifdef EXEC_PAGESIZE
448 #    define getpagesize() EXEC_PAGESIZE
449 #   else
450 #    ifdef NBPG
451 #     ifndef CLSIZE
452 #      define CLSIZE 1
453 #     endif
454 #     define getpagesize() (NBPG * CLSIZE)
455 #    else
456 #     ifdef NBPC
457 #      define getpagesize() NBPC
458 #     endif
459 #    endif
460 #   endif
461 #  endif
462 # endif
463 #elif defined GNULIB_POSIXCHECK
464 # undef getpagesize
465 # define getpagesize() \
466     (GL_LINK_WARNING ("getpagesize is unportable - " \
467                       "use gnulib module getpagesize for portability"), \
468      getpagesize ())
469 #endif
470
471
472 #if @GNULIB_GETUSERSHELL@
473 # if !@HAVE_GETUSERSHELL@
474 /* Return the next valid login shell on the system, or NULL when the end of
475    the list has been reached.  */
476 extern char *getusershell (void);
477 /* Rewind to pointer that is advanced at each getusershell() call.  */
478 extern void setusershell (void);
479 /* Free the pointer that is advanced at each getusershell() call and
480    associated resources.  */
481 extern void endusershell (void);
482 # endif
483 #elif defined GNULIB_POSIXCHECK
484 # undef getusershell
485 # define getusershell() \
486     (GL_LINK_WARNING ("getusershell is unportable - " \
487                       "use gnulib module getusershell for portability"), \
488      getusershell ())
489 # undef setusershell
490 # define setusershell() \
491     (GL_LINK_WARNING ("setusershell is unportable - " \
492                       "use gnulib module getusershell for portability"), \
493      setusershell ())
494 # undef endusershell
495 # define endusershell() \
496     (GL_LINK_WARNING ("endusershell is unportable - " \
497                       "use gnulib module getusershell for portability"), \
498      endusershell ())
499 #endif
500
501
502 #if @GNULIB_LCHOWN@
503 # if @REPLACE_LCHOWN@
504 /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE
505    to GID (if GID is not -1).  Do not follow symbolic links.
506    Return 0 if successful, otherwise -1 and errno set.
507    See the POSIX:2001 specification
508    <http://www.opengroup.org/susv3xsh/lchown.html>.  */
509 #  define lchown rpl_lchown
510 extern int lchown (char const *file, uid_t owner, gid_t group);
511 # endif
512 #elif defined GNULIB_POSIXCHECK
513 # undef lchown
514 # define lchown(f,u,g) \
515     (GL_LINK_WARNING ("lchown is unportable to pre-POSIX.1-2001 " \
516                       "systems - use gnulib module lchown for portability"), \
517      lchown (f, u, g))
518 #endif
519
520
521 #if @GNULIB_LINK@
522 /* Create a new hard link for an existing file.
523    Return 0 if successful, otherwise -1 and errno set.
524    See POSIX:2001 specification
525    <http://www.opengroup.org/susv3xsh/link.html>.  */
526 # if !@HAVE_LINK@
527 extern int link (const char *path1, const char *path2);
528 # endif
529 #elif defined GNULIB_POSIXCHECK
530 # undef link
531 # define link(path1,path2) \
532     (GL_LINK_WARNING ("link is unportable - " \
533                       "use gnulib module link for portability"), \
534      link (path1, path2))
535 #endif
536
537
538 #if @GNULIB_LSEEK@
539 # if @REPLACE_LSEEK@
540 /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END.
541    Return the new offset if successful, otherwise -1 and errno set.
542    See the POSIX:2001 specification
543    <http://www.opengroup.org/susv3xsh/lseek.html>.  */
544 #  define lseek rpl_lseek
545    extern off_t lseek (int fd, off_t offset, int whence);
546 # endif
547 #elif defined GNULIB_POSIXCHECK
548 # undef lseek
549 # define lseek(f,o,w) \
550     (GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \
551                       "systems - use gnulib module lseek for portability"), \
552      lseek (f, o, w))
553 #endif
554
555
556 #if @GNULIB_PIPE2@
557 /* Create a pipe, applying the given flags when opening the read-end of the
558    pipe and the write-end of the pipe.
559    The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>)
560    and O_TEXT, O_BINARY (defined in "binary-io.h").
561    Store the read-end as fd[0] and the write-end as fd[1].
562    Return 0 upon success, or -1 with errno set upon failure.
563    See also the Linux man page at
564    <http://www.kernel.org/doc/man-pages/online/pages/man2/pipe2.2.html>.  */
565 # if @HAVE_PIPE2@
566 #  define pipe2 rpl_pipe2
567 # endif
568 extern int pipe2 (int fd[2], int flags);
569 #elif defined GNULIB_POSIXCHECK
570 # undef pipe2
571 # define pipe2(f,o) \
572     (GL_LINK_WARNING ("pipe2 is unportable - " \
573                       "use gnulib module pipe2 for portability"), \
574      pipe2 (f, o))
575 #endif
576
577
578 #if @GNULIB_READLINK@
579 /* Read the contents of the symbolic link FILE and place the first BUFSIZE
580    bytes of it into BUF.  Return the number of bytes placed into BUF if
581    successful, otherwise -1 and errno set.
582    See the POSIX:2001 specification
583    <http://www.opengroup.org/susv3xsh/readlink.html>.  */
584 # if !@HAVE_READLINK@
585 extern int readlink (const char *file, char *buf, size_t bufsize);
586 # endif
587 #elif defined GNULIB_POSIXCHECK
588 # undef readlink
589 # define readlink(f,b,s) \
590     (GL_LINK_WARNING ("readlink is unportable - " \
591                       "use gnulib module readlink for portability"), \
592      readlink (f, b, s))
593 #endif
594
595
596 #if @GNULIB_SLEEP@
597 /* Pause the execution of the current thread for N seconds.
598    Returns the number of seconds left to sleep.
599    See the POSIX:2001 specification
600    <http://www.opengroup.org/susv3xsh/sleep.html>.  */
601 # if !@HAVE_SLEEP@
602 extern unsigned int sleep (unsigned int n);
603 # endif
604 #elif defined GNULIB_POSIXCHECK
605 # undef sleep
606 # define sleep(n) \
607     (GL_LINK_WARNING ("sleep is unportable - " \
608                       "use gnulib module sleep for portability"), \
609      sleep (n))
610 #endif
611
612
613 #if @GNULIB_WRITE@ && @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@
614 /* Write up to COUNT bytes starting at BUF to file descriptor FD.
615    See the POSIX:2001 specification
616    <http://www.opengroup.org/susv3xsh/write.html>.  */
617 # undef write
618 # define write rpl_write
619 extern ssize_t write (int fd, const void *buf, size_t count);
620 #endif
621
622
623 #ifdef __cplusplus
624 }
625 #endif
626
627
628 #endif /* _GL_UNISTD_H */
629 #endif /* _GL_UNISTD_H */