git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
vfs.c
diff --git
a/lunaix-os/kernel/fs/vfs.c
b/lunaix-os/kernel/fs/vfs.c
index 4ec74b402208c7cedd9f12c82f076dc4e41e164e..c59584ac57b51b4dea0c53660d5ebb589d2d7134 100644
(file)
--- a/
lunaix-os/kernel/fs/vfs.c
+++ b/
lunaix-os/kernel/fs/vfs.c
@@
-1337,7
+1337,7
@@
__DEFINE_LXSYSCALL2(char*, getcwd, char*, buf, size_t, size)
ret_ptr = buf;
done:
ret_ptr = buf;
done:
-
__current->k_status = errno
;
+
syscall_result(errno)
;
return ret_ptr;
}
return ret_ptr;
}