Changeset 473 for trunk/kernel/syscalls
- Timestamp:
- Aug 21, 2018, 6:01:01 PM (6 years ago)
- Location:
- trunk/kernel/syscalls
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/shared_include/shared_stdlib.h
r445 r473 35 35 exit_statut_t; 36 36 37 38 #define RAND_MAX 6553539 40 #ifndef NULL41 #define NULL (void *)042 37 #endif 43 44 #endif -
trunk/kernel/syscalls/sys_alarm.c
r457 r473 37 37 38 38 printk("\n[ERROR] in %s for thread %x in process %x : not implemented yet\n", 39 __FUNCTION__ , this->trdid , process->pid ); 40 this->errno = EFAULT; 39 __FUNCTION__ , this->trdid , process->pid , cycles ); 41 40 return -1; 42 41 } -
trunk/kernel/syscalls/sys_closedir.c
r457 r473 34 34 int sys_closedir ( DIR * dirp ) 35 35 { 36 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__ ); 37 CURRENT_THREAD->errno = ENOMEM; 36 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__, dirp ); 38 37 return -1; 39 38 } // end sys_closedir() -
trunk/kernel/syscalls/sys_opendir.c
r457 r473 35 35 DIR ** dirp ) 36 36 { 37 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__ ); 38 CURRENT_THREAD->errno = ENOMEM; 37 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__, pathname, dirp ); 39 38 return -1; 40 39 } // end sys opendir() -
trunk/kernel/syscalls/sys_pipe.c
r457 r473 33 33 thread_t * this = CURRENT_THREAD; 34 34 35 printk("\n[ERROR] in %d : not implemented yet\n", __FUNCTION__ ); 36 this->errno = ENOSYS; 35 printk("\n[ERROR] in %d : not implemented yet\n", __FUNCTION__, file_fd ); 37 36 return -1; 38 37 } -
trunk/kernel/syscalls/sys_readdir.c
r457 r473 37 37 struct dirent ** dentp ) 38 38 { 39 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__ ); 40 CURRENT_THREAD->errno = ENOMEM; 39 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__, dirp, dentp ); 41 40 return -1; 42 41 } // end sys_readdir() -
trunk/kernel/syscalls/sys_signal.c
r457 r473 33 33 { 34 34 thread_t * this = CURRENT_THREAD; 35 process_t * process = this->process; 35 36 36 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__ );37 this->errno = EINVAL;37 printk("\n[ERROR] in %s : thread %x in process %x / not implemented yet\n", 38 __FUNCTION__, this->trdid, process->pid, sig_id, handler ); 38 39 return -1; 39 40 } -
trunk/kernel/syscalls/sys_thread_join.c
r457 r473 96 96 97 97 #if DEBUG_SYSCALLS_ERROR 98 printk("\n[ERROR] in %s : this thread == target thread\n", __FUNCTION__ ); 98 printk("\n[ERROR] in %s : this thread (%x) == target thread(%x)\n", 99 __FUNCTION__, joining_ptr->trdid, trdid ); 99 100 #endif 100 101 joining_ptr->errno = EDEADLK;
Note: See TracChangeset
for help on using the changeset viewer.