Add the uid and gid options
[untie.git] / cmdline.h
blob33933c917fb450ea5a9de08ffaccec92be943030
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.2"
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 int* gid_arg; /* Add the specified GID. */
47 char ** gid_orig; /* Add the specified GID original value given at command line. */
48 int gid_min; /* Add the specified GID's minimum occurreces */
49 int gid_max; /* Add the specified GID's maximum occurreces */
50 const char *gid_help; /* Add the specified GID help description. */
52 int help_given ; /* Whether help was given. */
53 int version_given ; /* Whether version was given. */
54 int mount_given ; /* Whether mount was given. */
55 int uname_given ; /* Whether uname was given. */
56 int ipc_given ; /* Whether ipc was given. */
57 unsigned int mask_given ; /* Whether mask was given. */
58 int chroot_given ; /* Whether chroot was given. */
59 int uid_given ; /* Whether uid was given. */
60 unsigned int gid_given ; /* Whether gid was given. */
62 char **inputs ; /* unamed options */
63 unsigned inputs_num ; /* unamed options number */
64 } ;
66 extern const char *gengetopt_args_info_purpose;
67 extern const char *gengetopt_args_info_usage;
68 extern const char *gengetopt_args_info_help[];
70 int cmdline_parser (int argc, char * const *argv,
71 struct gengetopt_args_info *args_info);
72 int cmdline_parser2 (int argc, char * const *argv,
73 struct gengetopt_args_info *args_info,
74 int override, int initialize, int check_required);
75 int cmdline_parser_file_save(const char *filename,
76 struct gengetopt_args_info *args_info);
78 void cmdline_parser_print_help(void);
79 void cmdline_parser_print_version(void);
81 void cmdline_parser_init (struct gengetopt_args_info *args_info);
82 void cmdline_parser_free (struct gengetopt_args_info *args_info);
84 int cmdline_parser_required (struct gengetopt_args_info *args_info,
85 const char *prog_name);
88 #ifdef __cplusplus
90 #endif /* __cplusplus */
91 #endif /* CMDLINE_H */