Debian Codegraph @

usr/lib/common/aix/getopt.h

raw symbols SCIP
1 /*
2 * Portions Copyright (c) 1987, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Portions Copyright (c) 2003-2022, PostgreSQL Global Development Group
6 */
7
8 /* This code is only used on AIX; Linux uses its own glibc implementation */
9 #ifndef GETOPT_EXT_H
10 #define GETOPT_EXT_H
11
12 /* getopt is provided by unistd, according to POSIX */
13 #include <unistd.h>
14
15 struct option
16 {
17 const char *name;
18 int has_arg;
19 int *flag;
20 int val;
21 };
22
23 #define no_argument 0
24 #define required_argument 1
25 #define optional_argument 2
26
27 int getopt_long(int argc, char *const argv[], const char *optstring,
28 const struct option *longopts, int *longindex);
29
30 #endif /* GETOPT_EXT_H */