comparison packages/io/fileio/current/include/dirent.h @ 115:6ed91473a1cd ecos-sw-2000-08-21

Merge from eCos master repository on 2000-08-21-22:40:54-BST
author jlarmour
date Fri, 25 Aug 2000 17:32:38 +0000
parents
children e0c0827131d1
comparison
equal deleted inserted replaced
114:5ad2b71d525e 115:6ed91473a1cd
1 #ifndef CYGONCE_FILEIO_DIRENT_H
2 #define CYGONCE_FILEIO_DIRENT_H
3 /*========================================================================
4 //
5 // dirent.h
6 //
7 // POSIX directory functions
8 //
9 //========================================================================
10 //####COPYRIGHTBEGIN####
11 //
12 // -------------------------------------------
13 // The contents of this file are subject to the Red Hat eCos Public License
14 // Version 1.1 (the "License"); you may not use this file except in
15 // compliance with the License. You may obtain a copy of the License at
16 // http://www.redhat.com/
17 //
18 // Software distributed under the License is distributed on an "AS IS"
19 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
20 // License for the specific language governing rights and limitations under
21 // the License.
22 //
23 // The Original Code is eCos - Embedded Configurable Operating System,
24 // released September 30, 1998.
25 //
26 // The Initial Developer of the Original Code is Red Hat.
27 // Portions created by Red Hat are
28 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
29 // All Rights Reserved.
30 // -------------------------------------------
31 //
32 //####COPYRIGHTEND####
33 //========================================================================
34 //#####DESCRIPTIONBEGIN####
35 //
36 // Author(s): nickg
37 // Contributors:
38 // Date: 2000-06-26
39 // Purpose: This file provides the macros, types and functions
40 // for directory operations required by POSIX 1003.1.
41 // Description: Implementations of the types needed for directory
42 // reading.
43 // Usage: #include <dirent.h>
44 //
45 //####DESCRIPTIONEND####
46 //
47 //======================================================================
48 */
49
50 #include <pkgconf/isoinfra.h>
51
52 #include <sys/types.h>
53 #include <limits.h>
54
55 //======================================================================
56
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60
61 //======================================================================
62 // dirent structure.
63
64 struct dirent
65 {
66 char d_name[NAME_MAX+1];
67 };
68
69 //======================================================================
70 // DIR pointer object.
71
72 typedef void *DIR;
73
74 //======================================================================
75
76 #ifdef __cplusplus
77 } /* extern "C" */
78 #endif
79
80 //======================================================================
81 #endif /* CYGONCE_FILEIO_DIRENT_H multiple inclusion protection */
82 /* EOF dirent.h */