- Timestamp:
- Aug 21, 2018, 9:51:08 PM (6 years ago)
- Location:
- trunk/kernel/syscalls
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_fork.c
r457 r479 39 39 40 40 ////////////// 41 int sys_fork( )41 int sys_fork( void ) 42 42 { 43 43 process_t * parent_process_ptr; // pointer on local parent process descriptor -
trunk/kernel/syscalls/sys_getpid.c
r23 r479 25 25 26 26 //////////////// 27 int sys_getpid( )27 int sys_getpid( void ) 28 28 { 29 29 return CURRENT_THREAD->process->pid; -
trunk/kernel/syscalls/sys_thread_sleep.c
r438 r479 28 28 29 29 ////////////////////// 30 int sys_thread_sleep( )30 int sys_thread_sleep( void ) 31 31 { 32 32 -
trunk/kernel/syscalls/sys_thread_yield.c
r457 r479 27 27 #include <thread.h> 28 28 29 int sys_thread_yield( )29 int sys_thread_yield( void ) 30 30 { 31 31 -
trunk/kernel/syscalls/sys_undefined.c
r23 r479 28 28 29 29 /////////////////// 30 int sys_undefined( )30 int sys_undefined( void ) 31 31 { 32 32 thread_t * this = CURRENT_THREAD; -
trunk/kernel/syscalls/syscalls.h
r457 r479 58 58 * @ return always 0. 59 59 *****************************************************************************************/ 60 int sys_thread_yield( );60 int sys_thread_yield( void ); 61 61 62 62 /****************************************************************************************** … … 454 454 * @ returns the process PID for the calling thread. 455 455 *****************************************************************************************/ 456 int sys_getpid( );456 int sys_getpid( void ); 457 457 458 458 /****************************************************************************************** … … 470 470 * @ if failure, returns -1 to parent / no child process is created. 471 471 *****************************************************************************************/ 472 int sys_fork( );472 int sys_fork( void ); 473 473 474 474 /****************************************************************************************** … … 601 601 * @ return 0 if success / returns -1 if failure. 602 602 *****************************************************************************************/ 603 int sys_thread_sleep( );603 int sys_thread_sleep( void ); 604 604 605 605 /****************************************************************************************** … … 610 610 * @ return 0 if success / return -1 if failure. 611 611 *****************************************************************************************/ 612 int sys_thread_wakeup( );612 int sys_thread_wakeup( void ); 613 613 614 614 /******************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.