PM: remove obsolete ALARM, PAUSE, TIMES calls
NetBSD libc implements these as wrappers around setitimer(2), sigsuspend(2), and getrusage(2), respectively. Change-Id: I0c5e725b3e1316bddd3a3ff7ef65d57d30afd10d
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
#include <sys/cdefs.h>
|
||||
#include "namespace.h"
|
||||
|
||||
#include <lib.h>
|
||||
#include <sys/times.h>
|
||||
|
||||
#ifdef __weak_alias
|
||||
__weak_alias(times, _times)
|
||||
#endif
|
||||
|
||||
clock_t times(struct tms *buf)
|
||||
{
|
||||
message m;
|
||||
|
||||
m.m4_l5 = 0; /* return this if system is pre-1.6 */
|
||||
if (_syscall(PM_PROC_NR, TIMES, &m) < 0) return( (clock_t) -1);
|
||||
buf->tms_utime = m.m4_l1;
|
||||
buf->tms_stime = m.m4_l2;
|
||||
buf->tms_cutime = m.m4_l3;
|
||||
buf->tms_cstime = m.m4_l4;
|
||||
return(m.m4_l5);
|
||||
}
|
||||
@@ -90,3 +90,7 @@ times(struct tms *tp)
|
||||
return ((clock_t)-1);
|
||||
return ((clock_t)(CONVTCK(t)));
|
||||
}
|
||||
|
||||
#if defined(__minix) && defined(__weak_alias)
|
||||
__weak_alias(times, _times)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user