Home
last modified time | relevance | path

Searched refs:dest_path_len (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.2/kernel/src/syscall/
Dsyscall.c376 int dest_path_len; in sys_chdir() local
379 dest_path_len = strnlen_user(dest_path, PAGE_4K_SIZE); in sys_chdir()
382 dest_path_len = strnlen(dest_path, PAGE_4K_SIZE); in sys_chdir()
385 if (dest_path_len <= 0) in sys_chdir()
387 else if (dest_path_len >= PAGE_4K_SIZE) in sys_chdir()
391 char *path = kmalloc(dest_path_len + 1, 0); in sys_chdir()
396 memset(path, 0, dest_path_len + 1); in sys_chdir()
400 strncpy_from_user(path, dest_path, dest_path_len + 1); in sys_chdir()
403 strncpy(path, dest_path, dest_path_len + 1); in sys_chdir()