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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user