The fs interface functions should now return a "status_t" rather than an "int".
Added syscalls for, and implemented sys_create_link(), sys_remove_dir(). Implemented link(), unlink(), rmdir(). Fixed the inconsistent path buffer handling in the user|sys vfs functions; the path buffer is now exactly SYS_MAX_PATH_LEN from userland (incl. terminating null byte). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@748 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -77,9 +77,9 @@ extern char *getcwd(char *buffer, size_t size);
|
||||
extern int dup(int fd);
|
||||
extern int dup2(int fd1, int fd2);
|
||||
extern int close(int fd);
|
||||
//extern int link(const char *name, const char *new_name);
|
||||
//extern int unlink(const char *name);
|
||||
//extern int rmdir(const char *path);
|
||||
extern int link(const char *name, const char *new_name);
|
||||
extern int unlink(const char *name);
|
||||
extern int rmdir(const char *path);
|
||||
|
||||
extern ssize_t readlink(const char *path, char *buffer, size_t bufferSize);
|
||||
extern int symlink(const char *from, const char *to);
|
||||
|
||||
Reference in New Issue
Block a user