Ignore:
Timestamp:
Nov 19, 2020, 11:45:52 PM (3 years ago)
Author:
alain
Message:

1) Introduce up to 4 command lines arguments in the KSH "load" command.
These arguments are transfered to the user process through the
argc/argv mechanism, using the user space "args" vseg.

2) Introduce the named and anonymous "pipes", for inter-process communication
through the pipe() and mkfifo() syscalls.

3) Introduce the "chat" application to validate the two above mechanisms.

4) Improve printk() and assert() fonctions in printk.c.

File:
1 edited

Legend:

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

    r614 r670  
    22 * sys_closedir.c - Close an open VFS directory.
    33 *
    4  * Author    Alain Greiner  (2016,2017,2018)
     4 * Author    Alain Greiner  (2016,2017,2018,2019,20120)
    55 *
    66 * Copyright (c) UPMC Sorbonne Universites
     
    3737{
    3838    xptr_t         dir_xp;       // extended pointer on user_dir_t structure
    39     user_dir_t   * dir_ptr;      // lcal pointer on user_dir_t structure
     39    user_dir_t   * dir_ptr;      // local pointer on user_dir_t structure
    4040    cxy_t          dir_cxy;      // cluster identifier (inode cluster)
    4141
     
    4343        process_t * process = this->process;   // client process
    4444
    45 #if (DEBUG_SYS_CLOSEDIR || CONFIG_INSTRUMENTATION_SYSCALLS)
     45#if DEBUG_SYS_CLOSEDIR || DEBUG_SYSCALLS_ERROR || CONFIG_INSTRUMENTATION_SYSCALLS
    4646uint64_t     tm_start = hal_get_cycles();
    4747#endif
     
    6060
    6161#if DEBUG_SYSCALLS_ERROR
    62 printk("\n[ERROR] in %s / thread[%x,%x] : DIR pointer %x not registered\n",
     62if( DEBUG_SYSCALLS_ERROR < (uint32_t)tm_start )
     63printk("\n[ERROR] in %s : thread[%x,%x] / DIR pointer %x not registered\n",
    6364__FUNCTION__ , process->pid , this->trdid, dirp );
    6465#endif
     
    6768        }       
    6869
    69     // get cluster and localpointer for user_dir_t structure
     70    // get cluster and local pointer for user_dir_t structure
    7071    dir_ptr = GET_PTR( dir_xp );
    7172    dir_cxy = GET_CXY( dir_xp );
Note: See TracChangeset for help on using the changeset viewer.