diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-23 15:28:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-23 15:28:54 +0000 |
commit | a379e56acc0955dd1ec03740cfbb632ce54b7416 (patch) | |
tree | 408e9a4ab3aa25628e67dec3b09448eee54a4054 /posix/unistd.h | |
parent | 34a4b66d934c5aa8d413073f0df773ed5830c05b (diff) | |
download | glibc-a379e56acc0955dd1ec03740cfbb632ce54b7416.zip glibc-a379e56acc0955dd1ec03740cfbb632ce54b7416.tar.gz glibc-a379e56acc0955dd1ec03740cfbb632ce54b7416.tar.bz2 |
Update.
1998-09-23 15:25 Ulrich Drepper <drepper@cygnus.com>
* libio/stdio.h: Define __need_getopt and include getopt.h to define
getopt stuff.
* posix/unistd.h: Likewise.
* stdio/stdio.h: Likewise.
* posix/getopt.h: Remove _GNU_SOURCE use. If __need_getopt is defined
define only getopt and the variables.
(CPPFLAGS): Add -DUSE_LIBDB1
Diffstat (limited to 'posix/unistd.h')
-rw-r--r-- | posix/unistd.h | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/posix/unistd.h b/posix/unistd.h index aa7deff..3ea2481 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -718,37 +718,11 @@ extern int setlogin __P ((__const char *__name)); #ifdef __USE_POSIX2 -/* Process the arguments in ARGV (ARGC of them, minus - the program name) for options given in OPTS. - - If `opterr' is zero, no messages are generated - for invalid options; it defaults to 1. - `optind' is the current index into ARGV. - `optarg' is the argument corresponding to the current option. - Return the option character from OPTS just read. - Return -1 when there are no more options. - For unrecognized options, or options missing arguments, - `optopt' is set to the option letter, and '?' is returned. - - The OPTS string is a list of characters which are recognized option - letters, optionally followed by colons, specifying that that letter - takes an argument, to be placed in `optarg'. - - If a letter in OPTS is followed by two colons, its argument is optional. - This behavior is specific to the GNU `getopt'. - - The argument `--' causes premature termination of argument scanning, - explicitly telling `getopt' that there are no more options. - - If OPTS begins with `--', then non-option arguments - are treated as arguments to the option '\0'. - This behavior is specific to the GNU `getopt'. */ -extern int getopt __P ((int __argc, char *__const * __argv, - __const char *__opts)); -extern int opterr; -extern int optind; -extern int optopt; -extern char *optarg; +/* Get definitions and prototypes for functions to process the + arguments in ARGV (ARGC of them, minus the program name) for + options given in OPTS. */ +# define __need_getopt +# include <getopt.h> #endif |