Changed the "stat" related syscalls to have an additional parameter that specified

the size of the stat structure to allow extensions of that structure.
Renamed those syscalls to the new naming scheme.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7496 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-05-10 14:36:05 +00:00
parent 94e11a83bb
commit d93e356b51
7 changed files with 71 additions and 31 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo)
if (attr < 0)
RETURN_AND_SET_ERRNO(attr);
status = sys_read_stat(attr, &stat);
status = _kern_read_stat(attr, &stat, sizeof(struct stat));
if (status == B_OK) {
attrInfo->type = stat.st_type;
attrInfo->size = stat.st_size;
+4 -4
View File
@@ -56,10 +56,10 @@ SYSCALL6(sys_create_entry_ref, 84)
SYSCALL1(sys_unlink, 12)
SYSCALL2(sys_rename, 13)
SYSCALL2(sys_access, 73);
SYSCALL2(sys_read_stat, 74)
SYSCALL3(sys_write_stat, 100)
SYSCALL3(sys_read_path_stat, 14)
SYSCALL4(sys_write_path_stat, 15)
SYSCALL3(_kern_read_stat, 74)
SYSCALL4(_kern_write_stat, 100)
SYSCALL4(_kern_read_path_stat, 14)
SYSCALL5(_kern_write_path_stat, 15)
SYSCALL2(sys_getcwd, 41)
SYSCALL2(sys_setcwd, 42)
SYSCALL1(sys_dup, 61)