Changeset 637 for trunk/kernel/syscalls/sys_rmdir.c
- Timestamp:
- Jul 18, 2019, 2:06:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_rmdir.c
r604 r637 2 2 * sys_rmdir.c - Remove a directory from file system. 3 3 * 4 * Author Alain Greiner (2016,2017 )4 * Author Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) 2015 UPMC Sorbonne Universites … … 42 42 process_t * process = this->process; 43 43 44 #if (DEBUG_SYS_RMDIR || CONFIG_INSTRUMENTATION_SYSCALLS) 45 uint64_t tm_start = hal_get_cycles(); 46 #endif 47 44 48 // check pathname length 45 49 if( hal_strlen_from_uspace( pathname ) >= CONFIG_VFS_MAX_PATH_LENGTH ) … … 54 58 55 59 // copy pathname in kernel space 56 hal_strcpy_from_uspace( kbuf , pathname , CONFIG_VFS_MAX_PATH_LENGTH ); 60 hal_strcpy_from_uspace( XPTR( local_cxy , kbuf ), 61 pathname, 62 CONFIG_VFS_MAX_PATH_LENGTH ); 57 63 58 64 // get cluster and local pointer on reference process
Note: See TracChangeset
for help on using the changeset viewer.