source: vendor/emx/current/include/sys/dirtree.h

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1/* sys/dirtree.h (emx+gcc) */
2
3#ifndef _SYS_DIRTREE_H
4#define _SYS_DIRTREE_H
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10#if !defined (_TIME_T)
11#define _TIME_T
12typedef unsigned long time_t;
13#endif
14
15struct _dt_node
16{
17 struct _dt_node *next; /* Pointer to next entry of same level */
18 struct _dt_node *sub; /* Pointer to next level (child) */
19 char *name; /* Name */
20 long size; /* File size */
21 long user; /* Available for user */
22 time_t mtime; /* Timestamp for last update */
23 unsigned char attr; /* Attributes */
24};
25
26
27struct _dt_tree
28{
29 struct _dt_node *tree;
30 char *strings;
31};
32
33#define _DT_TREE 0x4000
34#define _DT_NOCPDIR 0x8000
35
36void _dt_free (struct _dt_tree *dt);
37struct _dt_tree *_dt_read (__const__ char *dir, __const__ char *mask,
38 unsigned flags);
39void _dt_sort (struct _dt_tree *dt, __const__ char *spec);
40int _dt_split (__const__ char *src, char *dir, char *mask);
41
42#if defined (__cplusplus)
43}
44#endif
45
46#endif /* not _SYS_DIRTREE_H */
Note: See TracBrowser for help on using the repository browser.