Diff for /src/sys/emulation/posix4/Attic/p1003_1b.c between versions 1.6 and 1.7

version 1.6, 2003/08/07 21:17:19 version 1.7, 2003/11/27 19:11:17
Line 108  int p31b_proc(struct proc *p, pid_t pid, Line 108  int p31b_proc(struct proc *p, pid_t pid,
         return ret;          return ret;
 }  }
   
   
   #if !defined(_KPOSIX_PRIORITY_SCHEDULING)
   
   int syscall_not_present(const char *s);
   
 /* The system calls return ENOSYS if an entry is called that is  /* The system calls return ENOSYS if an entry is called that is
  * not run-time supported.  I am also logging since some programs   * not run-time supported.  I am also logging since some programs
  * start to use this when they shouldn't.  That will be removed if annoying.   * start to use this when they shouldn't.  That will be removed if annoying.
  */   */
intint syscall_not_present(const char *s)
syscall_not_present(struct proc *p, const char *s, struct nosys_args *uap) 
 {  {
           struct proc *p = curproc;
         log(LOG_ERR, "cmd %s pid %d tried to use non-present %s\n",          log(LOG_ERR, "cmd %s pid %d tried to use non-present %s\n",
                         p->p_comm, p->p_pid, s);                          p->p_comm, p->p_pid, s);
   
Line 124  syscall_not_present(struct proc *p, cons Line 129  syscall_not_present(struct proc *p, cons
         return ENOSYS;          return ENOSYS;
 }  }
   
 #if !defined(_KPOSIX_PRIORITY_SCHEDULING)  
   
 /* Not configured but loadable via a module:  /* Not configured but loadable via a module:
  */   */
   
Line 134  static int sched_attach(void) Line 137  static int sched_attach(void)
         return 0;          return 0;
 }  }
   
   #define SYSCALL_NOT_PRESENT_GEN(SC) \
   int SC (struct SC##_args *uap) \
   { \
           return syscall_not_present(#SC); \
   }
   
 SYSCALL_NOT_PRESENT_GEN(sched_setparam)  SYSCALL_NOT_PRESENT_GEN(sched_setparam)
 SYSCALL_NOT_PRESENT_GEN(sched_getparam)  SYSCALL_NOT_PRESENT_GEN(sched_getparam)
 SYSCALL_NOT_PRESENT_GEN(sched_setscheduler)  SYSCALL_NOT_PRESENT_GEN(sched_setscheduler)

Removed from v.1.6  
changed lines
  Added in v.1.7