diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-02-15 19:44:08 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-02-15 19:44:08 +0000 |
| commit | 895aadbcfb7ef37ab2bb5af7cb66574f8e522a81 (patch) | |
| tree | a7743d34a6549d3bf5ac9aa482d97aaadd19fe2a /gnu/lib/libdialog/dir.h | |
| parent | 7f8573b09102c7d0d74c1ace3e0112d7989e6fcb (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libdialog/dir.h')
| -rw-r--r-- | gnu/lib/libdialog/dir.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/lib/libdialog/dir.h b/gnu/lib/libdialog/dir.h new file mode 100644 index 000000000000..3a28f12209ce --- /dev/null +++ b/gnu/lib/libdialog/dir.h @@ -0,0 +1,36 @@ +/* + * include file for dir.c + * + * Copyright (c) 1995, Marc van Kempen + * + * All rights reserved. + * + * This software may be used, modified, copied, distributed, and + * sold, in both source and binary form provided that the above + * copyright and these terms are retained, verbatim, as the first + * lines of this file. Under no circumstances is the author + * responsible for the proper functioning of this software, nor does + * the author assume any responsibility for damages incurred with + * its use. + * + */ + +#include <sys/types.h> +#include <sys/stat.h> +#include <sys/dirent.h> + +typedef struct DirList { /* structure to hold the directory entries */ + char filename[MAXNAMLEN]; /* together with the stat-info per file */ + struct stat filestatus; /* filename, or the name to which it points */ + int link; /* is it a link ? */ + char *linkname; /* the name of the file the link points to */ +} DirList; + +#ifndef TRUE +#define TRUE (1) +#endif +#ifndef FALSE +#define FALSE (0) +#endif + +void get_dir(char *dirname, char *fmask, DirList **dir, int *n); |
