* RE: More missing lines from <sys/unistd.h>
@ 1997-10-20 23:26 Sergey Okhapkin
0 siblings, 0 replies; 2+ messages in thread
From: Sergey Okhapkin @ 1997-10-20 23:26 UTC (permalink / raw)
To: gnu-win32, 'Victor Schneider'
Victor Schneider wrote:
> Missing lines from <sys/unistd.h> (taken from linux/usr/include/sys/unistd.h):
>
> extern int _EXFUN (getopt, (int __argc, char *__const * __argv,
> __const char *__opts));
> extern int opterr;
> extern int optind;
> extern int optopt;
> extern char *optarg;
>
Unistd.h is not the best place fot getopt stuff. The program must include getopt.h.
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
* More missing lines from <sys/unistd.h>
@ 1997-10-20 19:25 Victor Schneider
0 siblings, 0 replies; 2+ messages in thread
From: Victor Schneider @ 1997-10-20 19:25 UTC (permalink / raw)
To: gnu-win32
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@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-10-20 23:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-20 23:26 More missing lines from <sys/unistd.h> Sergey Okhapkin
-- strict thread matches above, loose matches on Subject: below --
1997-10-20 19:25 Victor Schneider
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).