22#ifndef LELY_LIBC_UNISTD_H_
23#define LELY_LIBC_UNISTD_H_
27#ifndef LELY_HAVE_UNISTD_H
28#if defined(_POSIX_C_SOURCE) || defined(__MINGW32__) || defined(__NEWLIB__)
29#define LELY_HAVE_UNISTD_H 1
73int getopt(
int argc,
char *
const argv[],
const char *optstring);
84unsigned sleep(
unsigned seconds);
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.
int getopt(int argc, char *const argv[], const char *optstring)
Parses options passed as arguments to main().
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().
char * optarg
A pointer to the argument of the current option.
int opterr
A flag indicating whether a diagnostic message should be printed if an unknown option character or mi...