Changeset 457 for trunk/libs/mini-libc
- Timestamp:
- Aug 2, 2018, 11:47:13 AM (6 years ago)
- Location:
- trunk/libs/mini-libc
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/dirent.c
r449 r457 23 23 24 24 #include <dirent.h> 25 #include <hal_ types.h>25 #include <hal_shared_types.h> 26 26 #include <hal_user.h> 27 27 #include <syscalls_numbers.h> -
trunk/libs/mini-libc/fcntl.c
r449 r457 23 23 24 24 #include <fcntl.h> 25 #include <hal_ types.h>25 #include <hal_shared_types.h> 26 26 #include <hal_user.h> 27 27 #include <syscalls_numbers.h> -
trunk/libs/mini-libc/mman.c
r449 r457 23 23 24 24 #include <mman.h> 25 #include <hal_ types.h>25 #include <hal_shared_types.h> 26 26 #include <hal_user.h> 27 27 #include <syscalls_numbers.h> -
trunk/libs/mini-libc/signal.c
r449 r457 1 1 /* 2 * signal.c - User side signals related syscallsimplementation.2 * signal.c - User side signals related library implementation. 3 3 * 4 4 * Author Alain Greiner (2016,2017,2018) … … 23 23 24 24 #include <signal.h> 25 #include <hal_ types.h>25 #include <hal_shared_types.h> 26 26 #include <hal_user.h> 27 27 #include <syscalls_numbers.h> -
trunk/libs/mini-libc/stat.c
r449 r457 1 1 /* 2 * stat.c - User side file stat related syscallsimplementation.2 * stat.c - User side file statistics related library implementation. 3 3 * 4 4 * Author Alain Greiner (2016,2017,2018) … … 24 24 #include <stat.h> 25 25 #include <hal_user.h> 26 #include <hal_ types.h>26 #include <hal_shared_types.h> 27 27 #include <syscalls_numbers.h> 28 28 -
trunk/libs/mini-libc/stdio.c
r445 r457 266 266 if ( count == -1 ) 267 267 { 268 display_string( " stdlib: xprintf failure" );268 display_string( "printf : xprintf failure" ); 269 269 return -1; 270 270 } … … 272 272 { 273 273 string[count] = 0; 274 return write( 1 , &string , count + 1);274 return write( 1 , &string , count ); 275 275 } 276 276 } -
trunk/libs/mini-libc/stdlib.c
r445 r457 23 23 24 24 #include <stdlib.h> 25 #include <hal_ types.h>25 #include <hal_shared_types.h> 26 26 #include <hal_user.h> 27 #include <syscalls_numbers.h> 27 28 #include <almosmkh.h> 28 29 #include <stdio.h> 29 #include <syscalls_numbers.h>30 30 31 31 ////////////////////////// -
trunk/libs/mini-libc/time.c
r449 r457 24 24 #include <time.h> 25 25 #include <hal_user.h> 26 #include <hal_user.h> 27 #include <hal_types.h> 26 #include <hal_shared_types.h> 28 27 #include <syscalls_numbers.h> 29 28 … … 32 31 struct timezone * tz ) 33 32 { 34 return hal_user_syscall( SYS_TIMEOFDAY, // TODO SYS_SIGNAL ?33 return hal_user_syscall( SYS_TIMEOFDAY, 35 34 (reg_t)tv, 36 35 (reg_t)tz, 0, 0 ); -
trunk/libs/mini-libc/unistd.c
r449 r457 23 23 24 24 #include <unistd.h> 25 #include <hal_ types.h>25 #include <hal_shared_types.h> 26 26 #include <hal_user.h> 27 27 #include <syscalls_numbers.h> -
trunk/libs/mini-libc/wait.c
r449 r457 24 24 #include <wait.h> 25 25 #include <hal_user.h> 26 #include <hal_ types.h>26 #include <hal_shared_types.h> 27 27 #include <syscalls_numbers.h> 28 28 -
trunk/libs/mini-libc/wait.h
r449 r457 37 37 * This blocking function returns only when one child process of the calling process 38 38 * changes state (from RUNNING to STOPPED / EXITED / KILLED). It returns the terminating 39 * child process PID, and set in the <status> buffer the newchild process state.39 * child process PID, and set in the <status> buffer the terminating child process state. 40 40 ***************************************************************************************** 41 * @ status : [out] terminating child process state.41 * @ status : [out] pointer on buffer for terminating child process state. 42 42 * @ returns terminating child process pid. 43 43 ****************************************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.