vm.c: Added user_strlcpy() (and the implementation in arch_cpu_user_strlcpy())

which is now used thorough the VFS code instead of user_strncpy().
fd.c: Replaced some return codes.
vfs.c: joined attr_dir_open(), and attr_dir_open_fd(), added sys_/user_
calls to access attributes, and attribute directory.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1455 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2002-10-08 03:24:51 +00:00
parent 11fe0cb8de
commit ef77a305f8
4 changed files with 267 additions and 167 deletions
+8
View File
@@ -2187,6 +2187,14 @@ int user_strncpy(char *to, const char *from, size_t size)
return arch_cpu_user_strncpy(to, from, size, &thread_get_current_thread()->fault_handler);
}
int
user_strlcpy(char *to, const char *from, size_t size)
{
return arch_cpu_user_strlcpy(to, from, size, &thread_get_current_thread()->fault_handler);
}
int user_memset(void *s, char c, size_t count)
{
return arch_cpu_user_memset(s, c, count, &thread_get_current_thread()->fault_handler);