HP-UX: has aio_fsync() and fallocate()
[fio.git] / lib / getopt.h
CommitLineData
bf2e821a 1#ifndef _AIX
c00a2289 2#ifndef __hpux
bf2e821a
CC
3
4#include <getopt.h>
5
6#else /* _AIX */
7
8#ifndef _GETOPT_H
9#define _GETOPT_H
10
11struct option {
12 const char *name;
13 int has_arg;
14 int *flag;
15 int val;
16};
17
18enum {
19 no_argument = 0,
20 required_argument = 1,
21 optional_argument = 2,
22};
23
24int getopt_long_only(int, char *const *, const char *, const struct option *, int *);
25
26#endif /* _GETOPT_H */
c00a2289 27#endif /* __hpux */
bf2e821a 28#endif /* _AIX */