comparison src/ndir.h @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents abe6d1db359e
children 804517e16990
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
1 /* This file is part of XEmacs. 1 /* definitions for 4.2BSD-compatible directory access
2
3 This file is part of XEmacs.
2 4
3 XEmacs is free software; you can redistribute it and/or modify it 5 XEmacs is free software; you can redistribute it and/or modify it
4 under the terms of the GNU General Public License as published by the 6 under the terms of the GNU General Public License as published by the
5 Free Software Foundation; either version 2, or (at your option) any 7 Free Software Foundation; either version 2, or (at your option) any
6 later version. 8 later version.
15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 Boston, MA 02111-1307, USA. */ 18 Boston, MA 02111-1307, USA. */
17 19
18 /* Synched up with: FSF 19.30. */ 20 /* Synched up with: FSF 19.30. */
19 21
20 /*
21 <dir.h> -- definitions for 4.2BSD-compatible directory access
22
23 last edit: 09-Jul-1983 D A Gwyn
24 */
25
26 #ifndef INCLUDED_ndir_h_ 22 #ifndef INCLUDED_ndir_h_
27 #define INCLUDED_ndir_h_ 23 #define INCLUDED_ndir_h_
28 24
29 #define DIRBLKSIZ 512 /* size of directory block */ 25 #define DIRBLKSIZ 512 /* size of directory block */
30 #ifdef WIN32_NATIVE 26 #ifdef WIN32_NATIVE
31 #define MAXNAMLEN 255 27 #define MAXNAMLEN 4095
32 #else /* not WIN32_NATIVE */ 28 #else /* not WIN32_NATIVE */
33 #define MAXNAMLEN 15 /* maximum filename length */ 29 #define MAXNAMLEN 15 /* maximum filename length */
34 #endif /* not WIN32_NATIVE */ 30 #endif /* not WIN32_NATIVE */
35 /* NOTE: MAXNAMLEN must be one less than a multiple of 4 */ 31 /* NOTE: MAXNAMLEN must be one less than a multiple of 4 */
36 32
48 int dd_loc; /* offset in block */ 44 int dd_loc; /* offset in block */
49 int dd_size; /* amount of valid data */ 45 int dd_size; /* amount of valid data */
50 char dd_buf[DIRBLKSIZ]; /* directory block */ 46 char dd_buf[DIRBLKSIZ]; /* directory block */
51 } DIR; /* stream data from opendir() */ 47 } DIR; /* stream data from opendir() */
52 48
53 DIR *opendir (const char *filename); 49 #ifdef WIN32_NATIVE
50
51 DIR *mswindows_opendir (const Intbyte *filename);
52 int mswindows_closedir (DIR *dirp);
53 struct direct *mswindows_readdir (DIR *dirp);
54
55 #else /* not WIN32_NATIVE */
56
57 DIR *opendir (const Extbyte *filename);
54 int closedir (DIR *dirp); 58 int closedir (DIR *dirp);
55 struct direct *readdir (DIR *dirp); 59 struct direct *readdir (DIR *dirp);
56 struct direct *readdirver (DIR *dirp); 60 struct direct *readdirver (DIR *dirp);
57 long telldir (DIR *dirp); 61 long telldir (DIR *dirp);
58 void seekdir (DIR *dirp, long loc); 62 void seekdir (DIR *dirp, long loc);
59 63
60 #define rewinddir( dirp ) seekdir( dirp, 0L ) 64 #define rewinddir( dirp ) seekdir( dirp, 0L )
61 65
66 #endif /* WIN32_NATIVE */
67
62 #endif /* INCLUDED_ndir_h_ */ 68 #endif /* INCLUDED_ndir_h_ */