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:
Axel Dörfler
2002-08-13 20:39:25 +00:00
parent 11e946307a
commit 4c405cbdd4
9 changed files with 399 additions and 284 deletions
+3 -3
View File
@@ -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);