fix errno behavior in clock_* functions
authorRich Felker <dalias@aerifal.cx>
Thu, 10 Mar 2011 14:54:23 +0000 (09:54 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 10 Mar 2011 14:54:23 +0000 (09:54 -0500)
these functions are specified inconsistent in whether they're
specified to return an error value, or return -1 and set errno.
hopefully now they all match what POSIX requires.

src/time/clock_getres.c
src/time/clock_gettime.c
src/time/clock_settime.c

index e86a1ee..539d4f9 100644 (file)
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include "syscall.h"
 
index 6b880a0..dab09d5 100644 (file)
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include "syscall.h"
 
index e880fb3..a80b94e 100644 (file)
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include "syscall.h"