PIPS
|
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
Go to the source code of this file.
Macros | |
#define | _ @GUARD_PREFIX@_UNISTD_H |
Substitute for and wrapper around <unistd.h>. More... | |
#define | __need_system_stdlib_h |
NetBSD 5.0 mis-defines NULL. More... | |
#define | _GL_UNISTD_INLINE _GL_INLINE |
Native Windows platforms declare chdir, getcwd, rmdir in <io.h> and/or <direct.h>, not in <unistd.h>. More... | |
#define | STDIN_FILENO 0 |
The definitions of _GL_FUNCDECL_RPL etc. More... | |
#define | STDOUT_FILENO 1 |
#define | STDERR_FILENO 2 |
#define | F_OK 0 |
Ensure *_OK macros exist. More... | |
#define | X_OK 1 |
#define | W_OK 2 |
#define | R_OK 4 |
#define _ @GUARD_PREFIX@_UNISTD_H |
Substitute for and wrapper around <unistd.h>.
Copyright (C) 2003-2014 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
The include_next requires a split double-inclusion guard.
Get all possible declarations of gethostname().
Definition at line 38 of file unistd.in.h.
#define __need_system_stdlib_h |
NetBSD 5.0 mis-defines NULL.
Also get size_t.
mingw doesn't define the SEEK_* or *_FILENO macros in <unistd.h>.
Cygwin 1.7.1 declares symlinkat in <stdio.h>, not in <unistd.h>.
But avoid namespace pollution on glibc systems.
Cygwin 1.7.1 declares unlinkat in <fcntl.h>, not in <unistd.h>.
But avoid namespace pollution on glibc systems.
mingw fails to declare _exit in <unistd.h>.
mingw, MSVC, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.
Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>.
OSF Tru64 Unix cannot see gnulib rpl_strtod when system <stdlib.h> is included here.
But avoid namespace pollution on glibc systems.
Definition at line 68 of file unistd.in.h.
#define _GL_UNISTD_INLINE _GL_INLINE |
Native Windows platforms declare chdir, getcwd, rmdir in <io.h> and/or <direct.h>, not in <unistd.h>.
They also declare access(), chmod(), close(), dup(), dup2(), isatty(), lseek(), read(), unlink(), write() in <io.h>.
AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>. NonStop Kernel declares gethostname in <netdb.h>, not in <unistd.h>.
But avoid namespace pollution on glibc systems.
MSVC defines off_t in <sys/types.h>. May also define off_t to a 64-bit type on native Windows.
Get off_t.
Get getopt(), optarg, optind, opterr, optopt. But avoid namespace pollution on glibc systems.
Definition at line 124 of file unistd.in.h.
#define F_OK 0 |
#define R_OK 4 |
Definition at line 226 of file unistd.in.h.
#define STDERR_FILENO 2 |
Definition at line 218 of file unistd.in.h.
#define STDIN_FILENO 0 |
The definitions of _GL_FUNCDECL_RPL etc.
are copied here.
The definition of _GL_ARG_NONNULL is copied here.
The definition of _GL_WARN_ON_USE is copied here.
Hide some function declarations from <winsock2.h>.
OS/2 EMX lacks these macros.
Definition at line 212 of file unistd.in.h.
#define STDOUT_FILENO 1 |
Definition at line 215 of file unistd.in.h.
#define W_OK 2 |
Definition at line 225 of file unistd.in.h.
#define X_OK 1 |
Definition at line 224 of file unistd.in.h.