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 e86a1ee45aaba6cf9fb57a68b6bc2454bf8e5a02..539d4f94775da678914538b6ef526048431a6e04 100644 (file)
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include "syscall.h"
 
index 6b880a068ef27c5efb9be42392b096a3a1e1a4b0..dab09d50cfc49af32433caa890218301549aa220 100644 (file)
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include "syscall.h"
 
index e880fb33fb28d07533fdc2d45243560280e1868b..a80b94e12293d9dbb2c86a94f49aae2d71764165 100644 (file)
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
 #include <time.h>
 #include "syscall.h"