mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user