VirtualBox

source: kBuild/trunk/src/kmk/vmsdir.h@ 3387

Last change on this file since 3387 was 3140, checked in by bird, 6 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1/* dirent.h for vms
2Copyright (C) 1996-2016 Free Software Foundation, Inc.
3This file is part of GNU Make.
4
5GNU Make is free software; you can redistribute it and/or modify it under the
6terms of the GNU General Public License as published by the Free Software
7Foundation; either version 3 of the License, or (at your option) any later
8version.
9
10GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
11WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License along with
15this program. If not, see <http://www.gnu.org/licenses/>. */
16
17#ifndef VMSDIR_H
18#define VMSDIR_H
19
20#include <rms.h>
21
22#define MAXNAMLEN 255
23
24#ifndef __DECC
25#if !defined (__GNUC__) && !defined (__ALPHA)
26typedef unsigned long u_long;
27typedef unsigned short u_short;
28#endif
29#endif
30
31struct direct
32{
33 off_t d_off;
34 u_long d_fileno;
35 u_short d_reclen;
36 u_short d_namlen;
37 char d_name[MAXNAMLEN + 1];
38};
39
40#undef DIRSIZ
41#define DIRSIZ(dp) \
42 (((sizeof (struct direct) \
43 - (MAXNAMLEN+1) \
44 + ((dp)->d_namlen+1)) \
45 + 3) & ~3)
46
47#define d_ino d_fileno /* compatibility */
48
49
50/*
51 * Definitions for library routines operating on directories.
52 */
53
54typedef struct DIR
55{
56 struct direct dir;
57 char d_result[MAXNAMLEN + 1];
58#if defined (__ALPHA) || defined (__DECC)
59 struct FAB fab;
60#else
61 struct fabdef fab;
62#endif
63} DIR;
64
65#ifndef NULL
66#define NULL 0
67#endif
68
69#define rewinddir(dirp) seekdir((dirp), (long)0)
70
71DIR *opendir ();
72struct direct *readdir (DIR *dfd);
73int closedir (DIR *dfd);
74const char *vmsify (const char *name, int type);
75
76#endif /* VMSDIR_H */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use