File: dirent_vms.h

package info (click to toggle)
libforms 1.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,192 kB
  • sloc: ansic: 98,419; sh: 11,156; makefile: 959
file content (70 lines) | stat: -rw-r--r-- 2,038 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 *
 *  This file is part of the XForms library package.
 *
 * XForms is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1, or
 * (at your option) any later version.
 *
 * XForms is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with XForms. If not, see <http://www.gnu.org/licenses/>.
 */


/*
**  Header file for VMS readdir() routines.
**  Written by Rich Salz, <rsalz@bbn.com> in August, 1990.
**  This code has no copyright.
**
**  Feb'95 --   eliminate reliance on <descrip.h>; safeguard multiple
**      inclusion; fully prototype the routines provided.   [pr]
*/

#ifndef DIRENT_H
#define DIRENT_H

/* Data structure returned by READDIR(). */
struct dirent {
    char    d_name[100];        /* File name        */
    int     vms_verscount;      /* Number of versions   */
    short   vms_versions[64];   /* Version numbers  */
};

/* Handle returned by opendir(), used by the other routines.  You
 * are not supposed to care what's inside this structure. */
typedef struct _dirdesc {
    unsigned long   context;
    int         count;
    int         vms_wantversions;
    char        *pattern;
    struct dirent   entry;
                /* pattern string descriptor */
    struct { unsigned short len, mbz; char *adr; } pat;
} DIR;


#define rewinddir(dirp)     seekdir((dirp), 0L)


extern DIR      *opendir(const char *);
extern struct dirent    *readdir(DIR *);
extern long     telldir(DIR *);
extern void     seekdir(DIR *,long);
extern void     closedir(DIR *);
extern int      vmsreaddirversions(DIR *,int);

#endif  /* DIRENT_H */


/*
 * Local variables:
 * tab-width: 4
 * indent-tabs-mode: nil
 * End:
 */