Annotate exported variables in getopt.c

This commit is contained in:
Asanka C. Herath
2010-11-23 02:23:41 -05:00
parent 0ee4597aed
commit 1f2dc24b5d

View File

@@ -44,11 +44,11 @@ static char sccsid[] = "@(#)getopt.c 8.1 (Berkeley) 6/4/93";
/*
* get option letter from argument vector
*/
int opterr = 1, /* if error message should be printed */
optind = 1, /* index into parent argv vector */
optopt, /* character checked for validity */
optreset; /* reset getopt */
char *optarg; /* argument associated with option */
ROKEN_LIB_VARIABLE int opterr = 1; /* if error message should be printed */
ROKEN_LIB_VARIABLE int optind = 1; /* index into parent argv vector */
ROKEN_LIB_VARIABLE int optopt; /* character checked for validity */
int optreset; /* reset getopt */
ROKEN_LIB_VARIABLE char *optarg; /* argument associated with option */
#define BADCH (int)'?'
#define BADARG (int)':'