Ignore:
Timestamp:
Jan 13, 2021, 12:40:22 AM (4 months ago)
Author:
alain
Message:

Introduce the socket.c & socket.h files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/unistd.h

    r677 r684  
    7575 * The old process descriptor, and all its threads are blocked, and marked for deletion.
    7676 * Therefore the exec syscall does not return to the calling thread in case of success.
    77  * This function build an exec_info_t structure containing the new process arguments,
    78  * as defined by the <arv> argument, and the new process environment variables,
    79  * as defined by the <envp>  argument.
     77 * This function initializes the exec_info_t structure (embedded in process descriptor),
     78 * and containing the <filename>, <args> and <envs> arguments.
     79 *
    8080 * TODO : the <envs> argument is not supported yet (must be NULL).
    8181 *****************************************************************************************
    8282 * @ filename : string pointer on .elf filename (virtual pointer in user space)
    83  * @ args     : array of pointers on process arguments (strings in user space)
    84  * @ envs     : array of pointers on environment variables (strings in user space)
     83 * @ args     : NULL terminated array of strings pointers on process arguments.
     84 * @ envs     : NULL terminated array of strings pointers on environment variables.
    8585 * @ does not return if success / returns -1 if failure.
    8686 ****************************************************************************************/
     
    201201
    202202/*****************************************************************************************
     203 * This function implements the <sleep> system call.
     204 * It suspends execution of the calling thread until either <seconds> have elapsed,
     205 * or a signal is delivered to the thread and its action is to terminate the thread.
     206 * System activity may lengthen the sleep by an indeterminate amount.
     207 *****************************************************************************************
     208 * @ seconds   : sleep duration in seconds.
     209 * @ return 0 if success / returns number of unslept seconds if signal delivery.
     210 ****************************************************************************************/
     211unsigned int sleep( unsigned int seconds );
     212
     213/*****************************************************************************************
    203214 * This function implements the <sync> system call.
    204215 * It forces all kernel mappers (file caches) to be copied to the IOC device.
Note: See TracChangeset for help on using the changeset viewer.