Lely core libraries 2.3.4
unistd.h
Go to the documentation of this file.
1
22#ifndef LELY_LIBC_UNISTD_H_
23#define LELY_LIBC_UNISTD_H_
24
25#include <lely/features.h>
26
27#ifndef LELY_HAVE_UNISTD_H
28#if defined(_POSIX_C_SOURCE) || defined(__MINGW32__) || defined(__NEWLIB__)
29#define LELY_HAVE_UNISTD_H 1
30#endif
31#endif
32
33#if LELY_HAVE_UNISTD_H
34#include <unistd.h>
35#else // !LELY_HAVE_UNISTD_H
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
42char *optarg;
43
46
53
56
73int getopt(int argc, char *const argv[], const char *optstring);
74
84unsigned sleep(unsigned seconds);
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif // !LELY_HAVE_UNISTD_H
91
92#endif // !LELY_LIBC_UNISTD_H_
This header file is part of the Lely libraries; it contains the compiler feature definitions.
This header file is part of the C11 and POSIX compatibility library; it includes <unistd....
int optopt
The last option character to cause an error.
Definition unistd.h:55
int getopt(int argc, char *const argv[], const char *optstring)
Parses options passed as arguments to main().
Definition getopt.c:46
unsigned sleep(unsigned seconds)
Sleeps until the specified number of realtime seconds has elapsed or the calling thread is interrupte...
int optind
The index of the next argument to be parsed by getopt().
Definition unistd.h:45
char * optarg
A pointer to the argument of the current option.
Definition unistd.h:42
int opterr
A flag indicating whether a diagnostic message should be printed if an unknown option character or mi...
Definition unistd.h:52