3 /* File autogenerated by gengetopt version 2.19.1 */
8 /* If we use autoconf. */
15 #endif /* __cplusplus */
17 #ifndef CMDLINE_PARSER_PACKAGE
18 #define CMDLINE_PARSER_PACKAGE "untie"
21 #ifndef CMDLINE_PARSER_VERSION
22 #define CMDLINE_PARSER_VERSION "0.3"
25 struct gengetopt_args_info
27 const char *help_help
; /* Print help and exit help description. */
28 const char *version_help
; /* Print version and exit help description. */
29 int mount_flag
; /* New mount namespace (default=off). */
30 const char *mount_help
; /* New mount namespace help description. */
31 int uname_flag
; /* New uname (default=off). */
32 const char *uname_help
; /* New uname help description. */
33 int ipc_flag
; /* New IPC context (default=off). */
34 const char *ipc_help
; /* New IPC context help description. */
35 int* mask_arg
; /* Pass user defined flag. */
36 char ** mask_orig
; /* Pass user defined flag original value given at command line. */
37 int mask_min
; /* Pass user defined flag's minimum occurreces */
38 int mask_max
; /* Pass user defined flag's maximum occurreces */
39 const char *mask_help
; /* Pass user defined flag help description. */
40 char * chroot_arg
; /* Chroot in the specified directory. */
41 char * chroot_orig
; /* Chroot in the specified directory original value given at command line. */
42 const char *chroot_help
; /* Chroot in the specified directory help description. */
43 int uid_arg
; /* Change to the specified UID. */
44 char * uid_orig
; /* Change to the specified UID original value given at command line. */
45 const char *uid_help
; /* Change to the specified UID help description. */
46 char * username_arg
; /* Change to the specified username. */
47 char * username_orig
; /* Change to the specified username original value given at command line. */
48 const char *username_help
; /* Change to the specified username help description. */
49 int* gid_arg
; /* Add the specified GID. */
50 char ** gid_orig
; /* Add the specified GID original value given at command line. */
51 int gid_min
; /* Add the specified GID's minimum occurreces */
52 int gid_max
; /* Add the specified GID's maximum occurreces */
53 const char *gid_help
; /* Add the specified GID help description. */
54 char ** groupname_arg
; /* Add the specified group. */
55 char ** groupname_orig
; /* Add the specified group original value given at command line. */
56 int groupname_min
; /* Add the specified group's minimum occurreces */
57 int groupname_max
; /* Add the specified group's maximum occurreces */
58 const char *groupname_help
; /* Add the specified group help description. */
59 int daemonize_flag
; /* Run as daemon (default=off). */
60 const char *daemonize_help
; /* Run as daemon help description. */
61 int alarm_arg
; /* Set an alarm after the specified delay. */
62 char * alarm_orig
; /* Set an alarm after the specified delay original value given at command line. */
63 const char *alarm_help
; /* Set an alarm after the specified delay help description. */
64 int nice_arg
; /* Run as the specified nice level. */
65 char * nice_orig
; /* Run as the specified nice level original value given at command line. */
66 const char *nice_help
; /* Run as the specified nice level help description. */
67 char * sched_arg
; /* Use the specified (possibly RT) scheduling policy. */
68 char * sched_orig
; /* Use the specified (possibly RT) scheduling policy original value given at command line. */
69 const char *sched_help
; /* Use the specified (possibly RT) scheduling policy help description. */
70 int schedprio_arg
; /* Set the priority according to the given scheduler. */
71 char * schedprio_orig
; /* Set the priority according to the given scheduler original value given at command line. */
72 const char *schedprio_help
; /* Set the priority according to the given scheduler help description. */
74 int help_given
; /* Whether help was given. */
75 int version_given
; /* Whether version was given. */
76 int mount_given
; /* Whether mount was given. */
77 int uname_given
; /* Whether uname was given. */
78 int ipc_given
; /* Whether ipc was given. */
79 unsigned int mask_given
; /* Whether mask was given. */
80 int chroot_given
; /* Whether chroot was given. */
81 int uid_given
; /* Whether uid was given. */
82 int username_given
; /* Whether username was given. */
83 unsigned int gid_given
; /* Whether gid was given. */
84 unsigned int groupname_given
; /* Whether groupname was given. */
85 int daemonize_given
; /* Whether daemonize was given. */
86 int alarm_given
; /* Whether alarm was given. */
87 int nice_given
; /* Whether nice was given. */
88 int sched_given
; /* Whether sched was given. */
89 int schedprio_given
; /* Whether schedprio was given. */
91 char **inputs
; /* unamed options */
92 unsigned inputs_num
; /* unamed options number */
95 extern const char *gengetopt_args_info_purpose
;
96 extern const char *gengetopt_args_info_usage
;
97 extern const char *gengetopt_args_info_help
[];
99 int cmdline_parser (int argc
, char * const *argv
,
100 struct gengetopt_args_info
*args_info
);
101 int cmdline_parser2 (int argc
, char * const *argv
,
102 struct gengetopt_args_info
*args_info
,
103 int override
, int initialize
, int check_required
);
104 int cmdline_parser_file_save(const char *filename
,
105 struct gengetopt_args_info
*args_info
);
107 void cmdline_parser_print_help(void);
108 void cmdline_parser_print_version(void);
110 void cmdline_parser_init (struct gengetopt_args_info
*args_info
);
111 void cmdline_parser_free (struct gengetopt_args_info
*args_info
);
113 int cmdline_parser_required (struct gengetopt_args_info
*args_info
,
114 const char *prog_name
);
119 #endif /* __cplusplus */
120 #endif /* CMDLINE_H */