aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_opts.h
diff options
context:
space:
mode:
authorjozan <jozan@noemail.net>2020-11-04 18:25:53 +0000
committerjozan <jozan@noemail.net>2020-11-04 18:25:53 +0000
commita269125c73e54a72953cda8accda949bba0d8bbd (patch)
treed2e530e5e64523b44a0b3a3996f34189f804566d /src/c_opts.h
parentIn progress (diff)
downloadunixize-a269125c73e54a72953cda8accda949bba0d8bbd.tar.gz
unixize-a269125c73e54a72953cda8accda949bba0d8bbd.tar.bz2
unixize-a269125c73e54a72953cda8accda949bba0d8bbd.tar.xz
unixize-a269125c73e54a72953cda8accda949bba0d8bbd.tar.zst
unixize-a269125c73e54a72953cda8accda949bba0d8bbd.zip
Prompting for confirmation
FossilOrigin-Name: bf69cb11af18c6c4bc824c100d80ade120e14c521db8c9d3389e752fa757a6c7
Diffstat (limited to '')
-rw-r--r--src/c_opts.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/c_opts.h b/src/c_opts.h
index cbe2e54..16b2ce8 100644
--- a/src/c_opts.h
+++ b/src/c_opts.h
@@ -46,9 +46,15 @@
#ifndef __C_OPTS_H__
#define __C_OPTS_H__ value
+#ifdef __linux__
+# include <linux/limits.h>
+#else
+# include <limits.h>
+#endif
+
#include "c_unixize.h"
-#define C_OPTS "hpnRv"
+#define C_OPTS "hinpRv"
struct opts_s {
bool_t recursive;
@@ -56,8 +62,9 @@ struct opts_s {
bool_t pretend;
bool_t hidden;
bool_t hyphen;
+ char dir[PATH_MAX];
};
-void c_opts(struct opts_s*, int, const char*[]);
+void c_get_opts(struct opts_s*, int, const char*[]);
#endif /* ifndef __C_OPTS_H__ */