Changeset 473 for trunk/kernel/syscalls


Ignore:
Timestamp:
Aug 21, 2018, 6:01:01 PM (6 years ago)
Author:
alain
Message:

Fix several GCC warning related to the -Wextra compilation option.

Location:
trunk/kernel/syscalls
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/shared_include/shared_stdlib.h

    r445 r473  
    3535exit_statut_t;
    3636
    37 
    38 #define   RAND_MAX   65535
    39 
    40 #ifndef NULL
    41 #define  NULL  (void *)0
    4237#endif
    43 
    44 #endif
  • trunk/kernel/syscalls/sys_alarm.c

    r457 r473  
    3737
    3838    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 );
    4140    return -1;
    4241}
  • trunk/kernel/syscalls/sys_closedir.c

    r457 r473  
    3434int sys_closedir ( DIR * dirp )
    3535{
    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 );
    3837    return -1;
    3938}  // end sys_closedir()
  • trunk/kernel/syscalls/sys_opendir.c

    r457 r473  
    3535                  DIR  ** dirp )
    3636{
    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 );
    3938    return -1;
    4039}  // end sys opendir()
  • trunk/kernel/syscalls/sys_pipe.c

    r457 r473  
    3333    thread_t * this = CURRENT_THREAD;
    3434
    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 );
    3736    return -1;
    3837}
  • trunk/kernel/syscalls/sys_readdir.c

    r457 r473  
    3737                 struct dirent ** dentp )
    3838{
    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 );
    4140    return -1;
    4241}  // end sys_readdir()
  • trunk/kernel/syscalls/sys_signal.c

    r457 r473  
    3333
    3434        thread_t  * this    = CURRENT_THREAD;
     35    process_t * process = this->process;
    3536
    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 );
    3839    return -1;
    3940}
  • trunk/kernel/syscalls/sys_thread_join.c

    r457 r473  
    9696
    9797#if DEBUG_SYSCALLS_ERROR
    98 printk("\n[ERROR] in %s : this thread == target thread\n", __FUNCTION__ );
     98printk("\n[ERROR] in %s : this thread (%x) == target thread(%x)\n",
     99__FUNCTION__, joining_ptr->trdid, trdid );
    99100#endif
    100101        joining_ptr->errno = EDEADLK;
Note: See TracChangeset for help on using the changeset viewer.