delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/20/20:37:09

From: vischne AT ibm DOT net (Victor Schneider)
Subject: More missing lines from <sys/unistd.h>
20 Oct 1997 20:37:09 -0700 :
Message-ID: <1.5.4.16.19971020210138.23afed04.cygnus.gnu-win32@pop1.ibm.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Missing lines from <sys/unistd.h> (taken from linux/usr/include/sys/unistd.h):


/* 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 _EXFUN (getopt, (int __argc, char *__const * __argv,
			__const char *__opts));
extern int opterr;
extern int optind;
extern int optopt;
extern char *optarg;


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019