Document gotcha for --pidns
[untie.git] / cmdline.h
blob6157d68bb887ca7e17998a35cac19cd17bb4a0f6
1 /* cmdline.h */
3 /* File autogenerated by gengetopt version 2.19.1 */
5 #ifndef CMDLINE_H
6 #define CMDLINE_H
8 /* If we use autoconf. */
9 #ifdef HAVE_CONFIG_H
10 #include "config.h"
11 #endif
13 #ifdef __cplusplus
14 extern "C" {
15 #endif /* __cplusplus */
17 #ifndef CMDLINE_PARSER_PACKAGE
18 #define CMDLINE_PARSER_PACKAGE "untie"
19 #endif
21 #ifndef CMDLINE_PARSER_VERSION
22 #define CMDLINE_PARSER_VERSION "0.4"
23 #endif
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 userns_flag; /* New user namespace (default=off). */
36 const char *userns_help; /* New user namespace help description. */
37 int pidns_flag; /* New PID namespace (default=off). */
38 const char *pidns_help; /* New PID namespace help description. */
39 int netns_flag; /* New network namespace (default=off). */
40 const char *netns_help; /* New network namespace help description. */
41 int* mask_arg; /* Pass user defined flag. */
42 char ** mask_orig; /* Pass user defined flag original value given at command line. */
43 int mask_min; /* Pass user defined flag's minimum occurreces */
44 int mask_max; /* Pass user defined flag's maximum occurreces */
45 const char *mask_help; /* Pass user defined flag help description. */
46 char * chroot_arg; /* Chroot in the specified directory. */
47 char * chroot_orig; /* Chroot in the specified directory original value given at command line. */
48 const char *chroot_help; /* Chroot in the specified directory help description. */
49 int uid_arg; /* Change to the specified UID. */
50 char * uid_orig; /* Change to the specified UID original value given at command line. */
51 const char *uid_help; /* Change to the specified UID help description. */
52 char * username_arg; /* Change to the specified username. */
53 char * username_orig; /* Change to the specified username original value given at command line. */
54 const char *username_help; /* Change to the specified username help description. */
55 int* gid_arg; /* Add the specified GID. */
56 char ** gid_orig; /* Add the specified GID original value given at command line. */
57 int gid_min; /* Add the specified GID's minimum occurreces */
58 int gid_max; /* Add the specified GID's maximum occurreces */
59 const char *gid_help; /* Add the specified GID help description. */
60 char ** groupname_arg; /* Add the specified group. */
61 char ** groupname_orig; /* Add the specified group original value given at command line. */
62 int groupname_min; /* Add the specified group's minimum occurreces */
63 int groupname_max; /* Add the specified group's maximum occurreces */
64 const char *groupname_help; /* Add the specified group help description. */
65 int daemonize_flag; /* Run as daemon (default=off). */
66 const char *daemonize_help; /* Run as daemon help description. */
67 int alarm_arg; /* Set an alarm after the specified delay. */
68 char * alarm_orig; /* Set an alarm after the specified delay original value given at command line. */
69 const char *alarm_help; /* Set an alarm after the specified delay help description. */
70 int nice_arg; /* Run as the specified nice level. */
71 char * nice_orig; /* Run as the specified nice level original value given at command line. */
72 const char *nice_help; /* Run as the specified nice level help description. */
73 char * sched_arg; /* Use the specified (possibly RT) scheduling policy. */
74 char * sched_orig; /* Use the specified (possibly RT) scheduling policy original value given at command line. */
75 const char *sched_help; /* Use the specified (possibly RT) scheduling policy help description. */
76 int schedprio_arg; /* Set the priority according to the given scheduler. */
77 char * schedprio_orig; /* Set the priority according to the given scheduler original value given at command line. */
78 const char *schedprio_help; /* Set the priority according to the given scheduler help description. */
79 double timeout_term_arg; /* Delay before sending a SIGTERM to the process. */
80 char * timeout_term_orig; /* Delay before sending a SIGTERM to the process original value given at command line. */
81 const char *timeout_term_help; /* Delay before sending a SIGTERM to the process help description. */
82 double timeout_kill_arg; /* Delay before sending a SIGKILL to the process. */
83 char * timeout_kill_orig; /* Delay before sending a SIGKILL to the process original value given at command line. */
84 const char *timeout_kill_help; /* Delay before sending a SIGKILL to the process help description. */
86 int help_given ; /* Whether help was given. */
87 int version_given ; /* Whether version was given. */
88 int mount_given ; /* Whether mount was given. */
89 int uname_given ; /* Whether uname was given. */
90 int ipc_given ; /* Whether ipc was given. */
91 int userns_given ; /* Whether userns was given. */
92 int pidns_given ; /* Whether pidns was given. */
93 int netns_given ; /* Whether netns was given. */
94 unsigned int mask_given ; /* Whether mask was given. */
95 int chroot_given ; /* Whether chroot was given. */
96 int uid_given ; /* Whether uid was given. */
97 int username_given ; /* Whether username was given. */
98 unsigned int gid_given ; /* Whether gid was given. */
99 unsigned int groupname_given ; /* Whether groupname was given. */
100 int daemonize_given ; /* Whether daemonize was given. */
101 int alarm_given ; /* Whether alarm was given. */
102 int nice_given ; /* Whether nice was given. */
103 int sched_given ; /* Whether sched was given. */
104 int schedprio_given ; /* Whether schedprio was given. */
105 int timeout_term_given ; /* Whether timeout-term was given. */
106 int timeout_kill_given ; /* Whether timeout-kill was given. */
108 char **inputs ; /* unamed options */
109 unsigned inputs_num ; /* unamed options number */
112 extern const char *gengetopt_args_info_purpose;
113 extern const char *gengetopt_args_info_usage;
114 extern const char *gengetopt_args_info_help[];
116 int cmdline_parser (int argc, char * const *argv,
117 struct gengetopt_args_info *args_info);
118 int cmdline_parser2 (int argc, char * const *argv,
119 struct gengetopt_args_info *args_info,
120 int override, int initialize, int check_required);
121 int cmdline_parser_file_save(const char *filename,
122 struct gengetopt_args_info *args_info);
124 void cmdline_parser_print_help(void);
125 void cmdline_parser_print_version(void);
127 void cmdline_parser_init (struct gengetopt_args_info *args_info);
128 void cmdline_parser_free (struct gengetopt_args_info *args_info);
130 int cmdline_parser_required (struct gengetopt_args_info *args_info,
131 const char *prog_name);
134 #ifdef __cplusplus
136 #endif /* __cplusplus */
137 #endif /* CMDLINE_H */