Changeset 457 for trunk/libs/mini-libc


Ignore:
Timestamp:
Aug 2, 2018, 11:47:13 AM (6 years ago)
Author:
alain
Message:

This version modifies the exec syscall and fixes a large number of small bugs.
The version number has been updated (0.1)

Location:
trunk/libs/mini-libc
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/dirent.c

    r449 r457  
    2323
    2424#include <dirent.h>
    25 #include <hal_types.h>
     25#include <hal_shared_types.h>
    2626#include <hal_user.h>
    2727#include <syscalls_numbers.h>
  • trunk/libs/mini-libc/fcntl.c

    r449 r457  
    2323
    2424#include <fcntl.h>
    25 #include <hal_types.h>
     25#include <hal_shared_types.h>
    2626#include <hal_user.h>
    2727#include <syscalls_numbers.h>
  • trunk/libs/mini-libc/mman.c

    r449 r457  
    2323
    2424#include <mman.h>
    25 #include <hal_types.h>
     25#include <hal_shared_types.h>
    2626#include <hal_user.h>
    2727#include <syscalls_numbers.h>
  • trunk/libs/mini-libc/signal.c

    r449 r457  
    11/*
    2  * signal.c - User side signals related syscalls implementation.
     2 * signal.c - User side signals related library implementation.
    33 *
    44 * Author     Alain Greiner (2016,2017,2018)
     
    2323
    2424#include <signal.h>
    25 #include <hal_types.h>
     25#include <hal_shared_types.h>
    2626#include <hal_user.h>
    2727#include <syscalls_numbers.h>
  • trunk/libs/mini-libc/stat.c

    r449 r457  
    11/*
    2  * stat.c - User side file stat related syscalls implementation.
     2 * stat.c - User side file statistics related library implementation.
    33 *
    44 * Author     Alain Greiner (2016,2017,2018)
     
    2424#include <stat.h>
    2525#include <hal_user.h>
    26 #include <hal_types.h>
     26#include <hal_shared_types.h>
    2727#include <syscalls_numbers.h>
    2828
  • trunk/libs/mini-libc/stdio.c

    r445 r457  
    266266    if ( count == -1 )
    267267    {
    268         display_string( "stdlib : xprintf failure" );
     268        display_string( "printf : xprintf failure" );
    269269        return -1;
    270270    }
     
    272272    {
    273273        string[count] = 0;
    274         return write( 1 , &string , count + 1 );
     274        return write( 1 , &string , count );
    275275    }
    276276}
  • trunk/libs/mini-libc/stdlib.c

    r445 r457  
    2323
    2424#include <stdlib.h>
    25 #include <hal_types.h>
     25#include <hal_shared_types.h>
    2626#include <hal_user.h>
     27#include <syscalls_numbers.h>
    2728#include <almosmkh.h>
    2829#include <stdio.h>
    29 #include <syscalls_numbers.h>
    3030
    3131//////////////////////////
  • trunk/libs/mini-libc/time.c

    r449 r457  
    2424#include <time.h>
    2525#include <hal_user.h>
    26 #include <hal_user.h>
    27 #include <hal_types.h>
     26#include <hal_shared_types.h>
    2827#include <syscalls_numbers.h>
    2928
     
    3231                  struct timezone * tz )
    3332{
    34     return hal_user_syscall( SYS_TIMEOFDAY, // TODO SYS_SIGNAL ?
     33    return hal_user_syscall( SYS_TIMEOFDAY,
    3534                             (reg_t)tv,
    3635                             (reg_t)tz, 0, 0 );
  • trunk/libs/mini-libc/unistd.c

    r449 r457  
    2323
    2424#include <unistd.h>
    25 #include <hal_types.h>
     25#include <hal_shared_types.h>
    2626#include <hal_user.h>
    2727#include <syscalls_numbers.h>
  • trunk/libs/mini-libc/wait.c

    r449 r457  
    2424#include <wait.h>
    2525#include <hal_user.h>
    26 #include <hal_types.h>
     26#include <hal_shared_types.h>
    2727#include <syscalls_numbers.h>
    2828
  • trunk/libs/mini-libc/wait.h

    r449 r457  
    3737 * This blocking function returns only when one child process of the calling process
    3838 * changes state (from RUNNING to STOPPED / EXITED / KILLED). It returns the terminating
    39  * child process PID, and set in the <status> buffer the new child process state.
     39 * child process PID, and set in the <status> buffer the terminating child process state.
    4040 *****************************************************************************************
    41  * @ status    : [out] terminating child process state.
     41 * @ status    : [out] pointer on buffer for terminating child process state.
    4242 * @ returns terminating child process pid.
    4343 ****************************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.