Add chdir() and getcwd()

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@837 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-08-22 23:38:33 +00:00
parent 7ccda13225
commit 709263b6d8
11 changed files with 411 additions and 35 deletions
-2
View File
@@ -134,9 +134,7 @@ EXTERN int vsnprintf(char *buf, size_t size, const char *format, va_list ap);
/* POSIX-like File System Interfaces */
EXTERN int chdir(const char *path);
EXTERN FILE *fdopen(int fd, const char *type);
EXTERN char *getcwd(FAR char *buf, size_t size);
EXTERN int statfs(const char *path, FAR struct statfs *buf);
#undef EXTERN
+6
View File
@@ -136,8 +136,14 @@ EXTERN ssize_t read(int fd, FAR void *buf, size_t nbytes);
EXTERN ssize_t write(int fd, FAR const void *buf, size_t nbytes);
/* Special devices */
EXTERN int pipe(int filedes[2]);
/* Working directory operations */
EXTERN int chdir(FAR const char *path);
EXTERN FAR char *getcwd(FAR char *buf, size_t size);
/* File path operations */
EXTERN int unlink(FAR const char *pathname);