--daemonize : the first new feature of 0.3
[untie.git] / cmdline.h
blob05d1668947ff7b0303f35fa2b3ae1e1ecd4d1ee3
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.3"
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* 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. */
62 int help_given ; /* Whether help was given. */
63 int version_given ; /* Whether version was given. */
64 int mount_given ; /* Whether mount was given. */
65 int uname_given ; /* Whether uname was given. */
66 int ipc_given ; /* Whether ipc was given. */
67 unsigned int mask_given ; /* Whether mask was given. */
68 int chroot_given ; /* Whether chroot was given. */
69 int uid_given ; /* Whether uid was given. */
70 int username_given ; /* Whether username was given. */
71 unsigned int gid_given ; /* Whether gid was given. */
72 unsigned int groupname_given ; /* Whether groupname was given. */
73 int daemonize_given ; /* Whether daemonize was given. */
75 char **inputs ; /* unamed options */
76 unsigned inputs_num ; /* unamed options number */
77 } ;
79 extern const char *gengetopt_args_info_purpose;
80 extern const char *gengetopt_args_info_usage;
81 extern const char *gengetopt_args_info_help[];
83 int cmdline_parser (int argc, char * const *argv,
84 struct gengetopt_args_info *args_info);
85 int cmdline_parser2 (int argc, char * const *argv,
86 struct gengetopt_args_info *args_info,
87 int override, int initialize, int check_required);
88 int cmdline_parser_file_save(const char *filename,
89 struct gengetopt_args_info *args_info);
91 void cmdline_parser_print_help(void);
92 void cmdline_parser_print_version(void);
94 void cmdline_parser_init (struct gengetopt_args_info *args_info);
95 void cmdline_parser_free (struct gengetopt_args_info *args_info);
97 int cmdline_parser_required (struct gengetopt_args_info *args_info,
98 const char *prog_name);
101 #ifdef __cplusplus
103 #endif /* __cplusplus */
104 #endif /* CMDLINE_H */