diff options
author | tjr <tjr@FreeBSD.org> | 2002-06-02 12:57:41 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-06-02 12:57:41 +0000 |
commit | b93a81cb4e396134e70045351dfc15acda794481 (patch) | |
tree | d8bada3366a884688b15fe8bd60e2b4df8d68afb /usr.bin/find/find.h | |
parent | b4166dc3bde27b9189bad425881efd176645ea65 (diff) | |
download | FreeBSD-src-b93a81cb4e396134e70045351dfc15acda794481.zip FreeBSD-src-b93a81cb4e396134e70045351dfc15acda794481.tar.gz |
Support the SysV-style -exec utility args.. {} + function, required by
SUSv3. This is similar to find foo -print0 | xargs -0 utility args.
Diffstat (limited to 'usr.bin/find/find.h')
-rw-r--r-- | usr.bin/find/find.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.bin/find/find.h b/usr.bin/find/find.h index 1a210d0..2944278 100644 --- a/usr.bin/find/find.h +++ b/usr.bin/find/find.h @@ -70,6 +70,7 @@ typedef struct _plandata *creat_f(struct _option *, char ***); #define F_MTUNKNOWN 0x00002000 #define F_IGNCASE 0x00010000 /* iname ipath iregex */ #define F_EXACTTIME F_IGNCASE /* -[acm]time units syntax */ +#define F_EXECPLUS 0x00020000 /* -exec ... {} + */ /* node definition */ typedef struct _plandata { @@ -94,6 +95,12 @@ typedef struct _plandata { char **_e_argv; /* argv array */ char **_e_orig; /* original strings */ int *_e_len; /* allocated length */ + int _e_pbnum; /* base num. of args. used */ + int _e_ppos; /* number of arguments used */ + int _e_pnummax; /* max. number of arguments */ + int _e_psize; /* number of bytes of args. */ + int _e_pbsize; /* base num. of bytes of args */ + int _e_psizemax; /* max num. of bytes of args */ } ex; char *_a_data[2]; /* array of char pointers */ char *_c_data; /* char pointer */ @@ -117,6 +124,12 @@ typedef struct _plandata { #define e_argv p_un.ex._e_argv #define e_orig p_un.ex._e_orig #define e_len p_un.ex._e_len +#define e_pbnum p_un.ex._e_pbnum +#define e_ppos p_un.ex._e_ppos +#define e_pnummax p_un.ex._e_pnummax +#define e_psize p_un.ex._e_psize +#define e_pbsize p_un.ex._e_pbsize +#define e_psizemax p_un.ex._e_psizemax typedef struct _option { const char *name; /* option name */ |