Ignore:
Timestamp:
Nov 7, 2017, 3:08:12 PM (7 years ago)
Author:
alain
Message:

First implementation of fork/exec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_mkfifo.c

    r304 r407  
    4848    }
    4949
    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 )
    5452    {
    5553        printk("\n[ERROR] in %s : pathname too long\n", __FUNCTION__ );
     
    5755        return -1;
    5856    }
     57
     58    // copy pathname in kernel space
     59    hal_strcpy_from_uspace( kbuf , pathname , CONFIG_VFS_MAX_PATH_LENGTH );
    5960
    6061    // get cluster and local pointer on reference process
Note: See TracChangeset for help on using the changeset viewer.