getopt.c File Reference

Go to the source code of this file.

Defines

#define NULL   0
#define EOF   (-1)
#define ERR(s, c)

Functions

int strcmp ()
char * strchr ()
int getopt (int argc, char **argv, char *opts)

Variables

int opterr = 1
int optind = 1
int optopt
char * optarg


Define Documentation

#define EOF   (-1)
 

Definition at line 16 of file getopt.c.

Referenced by __fillbuf(), __flushbuf(), __ivaliduser(), _doprnt(), _doscan(), ack_printf(), ack_putchar(), add(), affirmative(), append(), apply_add(), ask(), ask_namematch(), bsClose(), bsGetBit(), bsPutBit(), cachedhcp(), cat(), check_header(), cmdline(), compress(), compressStream(), copy(), copy_ident(), copyexec(), count(), cpp_echo(), crc(), ctags(), d_backup(), d_ncols(), declare_start(), declare_tokens(), declare_types(), diff_recursive(), do_file(), docmd(), dowrite(), e_bwsp(), e_fwsp(), e_gobpa(), e_gobwsp(), e_goepa(), e_gofwsp(), e_gowd(), e_lblankp(), e_search(), ed_fill(), editinput(), egets(), eoln(), ex_gobol(), ex_goeol(), ex_gonl(), ex_gopl(), exchange(), Expand(), extract_image(), f_collect(), f_delblines(), f_indrel(), f_tchars(), fflush(), fgetarg(), fgets(), filbuf(), file_changed(), file_getc(), fill(), fill_buffer(), gzfilebuf::fillbuf(), gzfilebuf::flushbuf(), fmt(), Fold(), format(), fputs(), fread(), fwrite(), get(), get1rec(), get_byte(), Get_Char(), Get_Line(), get_line(), get_string(), get_tag(), get_token(), Getc(), getdesc(), getdiv(), getendif(), gethostent(), getline(), getLong(), getoldopt(), getopt(), gets(), gettable(), getw(), getword(), gnu_printf(), gnu_putchar(), gotoeoln(), gz_open(), gzread(), gzrewind(), gzseek(), gzungetc(), indent(), key(), km_getc(), km_inwait(), lex(), lex_gettoken(), load_crontabs(), lrch(), lread(), lrstr(), macro(), main(), makerewindable(), mattrib(), mcopy(), mdel(), mdir(), mdoctorfat(), mdu(), meta(), mformat(), minfo(), mkstatefile(), mlabel(), mmd(), mmove(), move_to_char(), mpartition(), mshowfat(), myfeof(), netfinger(), nextc(), o_collect(), ok(), output_semantic_actions(), output_stored_text(), output_trailing_text(), gzfilebuf::overflow(), padimage(), parse(), parse_err(), pr_class(), pr_type(), print(), print_name(), printlet(), Process(), prteoln(), puts(), putw(), quote(), rd_num(), rdskip(), rdupto(), read1line(), read_declarations(), read_file(), read_grammar(), read_line(), readout(), readtc(), scan_profile(), scanstr(), sctrin(), searchwhatis(), searchwindex(), gzfilebuf::seekoff(), servxcheck(), setvbuf(), skip_page(), skipwhite(), spool(), strings(), gzfilebuf::sync(), tail(), testStream(), Timed_Get_Char(), TTYget(), uncompressStream(), gzfilebuf::underflow(), Unexpand(), ungetc(), work(), wspfls(), and zsendfile().

#define ERR s,
c   ) 
 

Value:

if(opterr){\
        extern int strlen(), write();\
        char errbuf[2];\
        errbuf[0] = c; errbuf[1] = '\n';\
        (void) write(2, argv[0], (unsigned)strlen(argv[0]));\
        (void) write(2, s, (unsigned)strlen(s));\
        (void) write(2, errbuf, 2);}

Definition at line 17 of file getopt.c.

Referenced by append(), at_intr_wait(), atapi_intr_wait(), atapi_sendpacket(), chk_table(), ckglob(), com_out(), com_out_ext(), com_simple(), deflt(), docmd(), doread(), dowrite(), getone(), getopt(), getrhs(), ins(), join(), makenew(), move(), mvcur(), mvinch(), mvprintw(), mvscanw(), mvwin(), mvwinch(), mvwprintw(), mvwscanw(), newwin(), printw(), scanw(), set(), setterm(), subst(), subwin(), transfer(), w_identify(), w_io_test(), w_reset(), w_specify(), w_transfer(), waddch(), waddstr(), wbox(), wgetch(), wgetstr(), wmove(), wprintw(), wscanw(), and wsetscrreg().

#define NULL   0
 

Definition at line 15 of file getopt.c.


Function Documentation

int getopt int  argc,
char **  argv,
char *  opts
 

Definition at line 34 of file getopt.c.

References c, cp, EOF, ERR, NULL, optarg, optind, optopt, sp, strchr, and strcmp.

Referenced by cpio_options(), getoldopt(), main(), mattrib(), mcopy(), mdel(), mdir(), mdoctorfat(), mdu(), mformat(), minfo(), mlabel(), mmd(), mmove(), mpartition(), mshowfat(), pax_options(), and process_command_line().

char* strchr  ) 
 

int strcmp  ) 
 


Variable Documentation

char* optarg
 

Definition at line 31 of file getopt.c.

int opterr = 1
 

Definition at line 28 of file getopt.c.

Referenced by getopt(), and main().

int optind = 1
 

Definition at line 29 of file getopt.c.

int optopt
 

Definition at line 30 of file getopt.c.

Referenced by getopt().


Generated on Fri Apr 14 23:01:52 2006 for minix by  doxygen 1.4.6