runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

subgetopt.h (590B)


      1 /* Public domain. */
      2 
      3 #ifndef SUBGETOPT_H
      4 #define SUBGETOPT_H
      5 
      6 #ifndef SUBGETOPTNOSHORT
      7 #define sgopt subgetopt
      8 #define sgoptarg subgetoptarg
      9 #define sgoptind subgetoptind
     10 #define sgoptpos subgetoptpos
     11 #define sgoptproblem subgetoptproblem
     12 #define sgoptprogname subgetoptprogname
     13 #define sgoptdone subgetoptdone
     14 #endif
     15 
     16 #define SUBGETOPTDONE -1
     17 
     18 extern int subgetopt(int,const char *const *,const char *);
     19 extern const char *subgetoptarg;
     20 extern int subgetoptind;
     21 extern int subgetoptpos;
     22 extern int subgetoptproblem;
     23 extern const char *subgetoptprogname;
     24 extern int subgetoptdone;
     25 
     26 #endif