diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-06-02 05:39:48 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-06-02 05:40:06 -0500 |
commit | 09863a10639de265b2299938a292bba15abc570a (patch) | |
tree | 1628e509cdc1915d25e54957275d8c865988d260 /usr.bin/find/getdir.h | |
parent | 93d303d88ac036537c09d8fdc7ff80258826463a (diff) | |
download | userland-09863a10639de265b2299938a292bba15abc570a.tar.gz userland-09863a10639de265b2299938a292bba15abc570a.tar.bz2 userland-09863a10639de265b2299938a292bba15abc570a.tar.xz userland-09863a10639de265b2299938a292bba15abc570a.zip |
usr.bin/find: replace with heirloom find
Diffstat (limited to 'usr.bin/find/getdir.h')
-rw-r--r-- | usr.bin/find/getdir.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/usr.bin/find/getdir.h b/usr.bin/find/getdir.h new file mode 100644 index 0000000..29d107b --- /dev/null +++ b/usr.bin/find/getdir.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2003 Gunnar Ritter + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute + * it freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source distribution. + */ +/* Sccsid @(#)getdir.h 1.4 (gritter) 10/19/03 */ + +#include <sys/types.h> + +struct direc { + unsigned long long d_ino; + char *d_name; +}; + +extern struct getdb *getdb_alloc(const char *, int); +extern void getdb_free(struct getdb *); +extern struct direc *getdir(struct getdb *, int *); |