|
|
1.1 root 1: /* llib-ldirent - lint library for -ldirent */
2:
3: /*
4: * $Header: /f/osi/dirent/RCS/llib-ldirent,v 7.0 89/11/23 21:31:00 mrose Rel $
5: *
6: *
7: * $Log: llib-ldirent,v $
8: * Revision 7.0 89/11/23 21:31:00 mrose
9: * Release 6.0
10: *
11: */
12:
13: /*
14: * This package was generously supplied by Doug Gwyn. It is a public domain
15: * implementation of the SVR3 directory access routines.
16: *
17: * I have slightly edited the package to produce a stand-alone library
18: * (normally it updates libc.a). The reason for this, is that the package
19: * is used primarily for ISODE's ftam responder, and it's too much heartburn
20: * to ask someone to reload libc.a just for that (sorry, doug!)
21: *
22: * I've also prepended a "_" to the names to avoid any conflicts with routines
23: * which might already be installed (especially for lint)
24: *
25: */
26:
27:
28: /* LINTLIBRARY */
29:
30: #include "general.h"
31: #include "manifest.h"
32: #include "usr.dirent.h"
33:
34: /* */
35:
36: #ifndef GETDENTS
37: /* open a directory stream */
38:
39: DIR *opendir (name)
40: char *name;
41: {
42: return opendir (name);
43: }
44:
45:
46: /* read next entry from a directory stream */
47:
48: struct dirent *readdir (dp)
49: DIR *dp;
50: {
51: return readdir (dp);
52: }
53:
54:
55: /* report directory stream position */
56:
57: off_t telldir (dp)
58: DIR *dp;
59: {
60: return telldir (dp);
61: }
62:
63:
64: /* reposition a directory stream */
65:
66: void seekdir (dp, loc)
67: DIR *dp;
68: off_t loc;
69: {
70: seekdir (dp, loc);
71: }
72:
73:
74: /* rewind a directory stream */
75:
76: void rewinddir (dp)
77: DIR *dp;
78: {
79: rewinddir (dp);
80: }
81:
82:
83: /* close a directory stream */
84:
85: int closedir (dp)
86: DIR *dp;
87: {
88: return closedir (dp);
89: }
90:
91:
92: /* get directory entries in a FS independent format */
93:
94: int getdents (fd, buffer, n)
95: int fd;
96: char *buffer;
97: unsigned int n;
98: {
99: return getdents (fd, buffer, n);
100: }
101:
102: #endif
103:
104: /* get current working directory name */
105:
106: char *getcwd (buffer, n)
107: char *buffer;
108: int n;
109: {
110: return getcwd (buffer, n);
111: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.