diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-20 05:06:31 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-20 05:06:31 +0200 |
commit | 3207e8b6a4339f39e2261d1f1878e8049b65c23c (patch) | |
tree | 07059a72dc0bc5fe6ef2c47fcc69fb5f584f670b /sys/src/9/port/sysproc.c | |
parent | 7abf926bcf5a4f301a9ab48173093524196fd8ce (diff) |
add _nsec() syscall 53 for binary compatibility with labs distribution
the new syscall is added under the symbol _nsec() for
binary compatibility.
nsec() is still a library function reading /dev/bintime.
Diffstat (limited to 'sys/src/9/port/sysproc.c')
-rw-r--r-- | sys/src/9/port/sysproc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/src/9/port/sysproc.c b/sys/src/9/port/sysproc.c index 5a602112a..fbe4f2fbc 100644 --- a/sys/src/9/port/sysproc.c +++ b/sys/src/9/port/sysproc.c @@ -1182,3 +1182,16 @@ syssemrelease(va_list list) error(Ebadarg); return (uintptr)semrelease(s, addr, delta); } + +/* For binary compatibility */ +uintptr +sys_nsec(va_list list) +{ + vlong *v; + + v = va_arg(list, vlong*); + evenaddr((uintptr)v); + validaddr((uintptr)v, sizeof(vlong), 1); + *v = todget(nil); + return 0; +} |