Changeset 1624 for trunk/src/emx/include/getopt.h
- Timestamp:
- Nov 8, 2004, 2:06:04 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/getopt.h
-
Property cvs2svn:cvs-rev
changed from
1.6
to1.7
r1623 r1624 1 1 /* getopt.h,v 1.6 2004/09/14 22:27:33 bird Exp */ 2 2 /** @file 3 * FreeBSD 5. 14 * @changed bird: Added two GNU apis forlibiberty.3 * FreeBSD 5.2 4 * @changed bird: Added one GNU api from libiberty. 5 5 */ 6 6 7 7 /* $NetBSD: getopt.h,v 1.4 2000/07/07 10:43:54 ad Exp $ */ 8 /* $FreeBSD: src/include/getopt.h,v 1. 1 2002/09/29 04:14:30 ericExp $ */8 /* $FreeBSD: src/include/getopt.h,v 1.6 2004/02/24 08:09:20 ache Exp $ */ 9 9 10 10 /*- … … 44 44 */ 45 45 46 47 46 #ifndef _GETOPT_H_ 48 47 #define _GETOPT_H_ 49 48 50 49 #include <sys/cdefs.h> 51 #include <unistd.h>52 50 53 51 /* 54 * Gnu like getopt_long() and BSD4.4 getsubopt()/optreset extensions 52 * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension. 53 * getopt() is declared here too for GNU programs. 55 54 */ 56 #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)57 55 #define no_argument 0 58 56 #define required_argument 1 … … 74 72 75 73 __BEGIN_DECLS 76 int getopt_long __P((int, char * const *, const char *, 77 const struct option *, int *)); 74 int getopt_long(int, char * const *, const char *, 75 const struct option *, int *); 76 int getopt_long_only(int, char * const *, const char *, 77 const struct option *, int *); 78 #ifndef _GETOPT_DECLARED 79 #define _GETOPT_DECLARED 80 int getopt(int, char * const [], const char *); 78 81 79 /* bird - start: these are provided thru libiberty. */ 80 int getopt_long_only __P((int argc, char *const *, const char *, 81 const struct option *, int *)); 82 extern char *optarg; /* getopt(3) external variables */ 83 extern int optind, opterr, optopt; 84 #endif 85 #ifndef _OPTRESET_DECLARED 86 #define _OPTRESET_DECLARED 87 extern int optreset; /* getopt(3) external variable */ 88 #endif 89 90 /* bird - start: this is provided thru libiberty. */ 82 91 int _getopt_internal __P((int, char *const *, const char *, 83 92 const struct option *, int *, int)); … … 85 94 86 95 __END_DECLS 87 #endif88 96 89 97 #endif /* !_GETOPT_H_ */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.