Changeset 407 for trunk/kernel/syscalls/sys_mkfifo.c
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_mkfifo.c
r304 r407 48 48 } 49 49 50 // get pathname copy in kernel space 51 error = hal_strcpy_from_uspace( kbuf , pathname , CONFIG_VFS_MAX_PATH_LENGTH ); 52 53 if( error ) 50 // check pathname length 51 if( hal_strlen_from_uspace( pathname ) >= CONFIG_VFS_MAX_PATH_LENGTH ) 54 52 { 55 53 printk("\n[ERROR] in %s : pathname too long\n", __FUNCTION__ ); … … 57 55 return -1; 58 56 } 57 58 // copy pathname in kernel space 59 hal_strcpy_from_uspace( kbuf , pathname , CONFIG_VFS_MAX_PATH_LENGTH ); 59 60 60 61 // get cluster and local pointer on reference process
Note: See TracChangeset
for help on using the changeset viewer.