1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 >Files and Directories [POSIX Section 5]</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="POSIX Standard Support"
23 HREF="posix-standard-support.html"><LINK
25 TITLE="Process Environment [POSIX Section 4]"
26 HREF="posix-process-environment.html"><LINK
28 TITLE="Input and Output [POSIX Section 6]"
29 HREF="posix-input-and-output.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="posix-process-environment.html"
65 >Chapter 31. POSIX Standard Support</TD
71 HREF="posix-input-and-output.html"
85 NAME="POSIX-FILES-AND-DIRECTORIES">Files and Directories [POSIX Section 5]</H1
91 NAME="AEN13039">Functions Implemented</H2
100 >DIR *opendir( const char *dirname );
101 struct dirent *readdir( DIR *dirp );
102 int readdir_r( DIR *dirp, struct dirent *entry,
103 struct dirent **result );
104 void rewinddir( DIR *dirp );
105 int closedir( DIR *dirp );
106 int chdir( const char *path );
107 char *getcwd( char *buf, size_t size );
108 int open( const char * path , int oflag , ... );
109 int creat( const char * path, mode_t mode );
110 int link( const char *existing, const char *new );
111 int mkdir( const char *path, mode_t mode );
112 int unlink( const char *path );
113 int rmdir( const char *path );
114 int rename( const char *old, const char *new );
115 int stat( const char *path, struct stat *buf );
116 int fstat( int fd, struct stat *buf );
117 int access( const char *path, int amode );
118 long pathconf(const char *path, int name);
119 long fpathconf(int fd, int name);</PRE
129 NAME="AEN13042">Functions Omitted</H2
138 >mode_t umask( mode_t cmask );
139 int mkfifo( const char *path, mode_t mode );
140 int chmod( const char *path, mode_t mode ); // TBA
141 int fchmod( int fd, mode_t mode ); // TBA
142 int chown( const char *path, uid_t owner, gid_t group );
143 int utime( const char *path, const struct utimbuf *times ); // TBA
144 int ftruncate( int fd, off_t length ); // TBA</PRE
154 NAME="AEN13045">Notes</H2
167 the third _mode_ parameter, it will
168 currently be ignored.
173 > Most of the functionality of these functions depends on
174 the underlying filesystem.
192 > mode explicitly, the others are
193 all assumed to be true by default.
198 > The maximum number of open files allowed is supplied by
199 the CYGNUM_FILEIO_NFILE option. The maximum number
200 of file descriptors is supplied by the CYGNUM_FILEIO_NFD
212 SUMMARY="Footer navigation table"
223 HREF="posix-process-environment.html"
241 HREF="posix-input-and-output.html"
251 >Process Environment [POSIX Section 4]</TD
257 HREF="posix-standard-support.html"
265 >Input and Output [POSIX Section 6]</TD