summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-10 09:54:23 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-10 09:54:23 -0500
commit1b538acb0ac8520a8a5fd828add2e52e1d2a41eb (patch)
tree571395eb5ef0076bedc78c7d2a10e0def30abad1
parent500c969f059dc1b12dc3809d270cb169abbd57d3 (diff)
downloadmusl-1b538acb0ac8520a8a5fd828add2e52e1d2a41eb.tar.gz
fix errno behavior in clock_* functions
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.
-rw-r--r--src/time/clock_getres.c1
-rw-r--r--src/time/clock_gettime.c1
-rw-r--r--src/time/clock_settime.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/time/clock_getres.c b/src/time/clock_getres.c
index e86a1ee4..539d4f94 100644
--- a/src/time/clock_getres.c
+++ b/src/time/clock_getres.c
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"
diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c
index 6b880a06..dab09d50 100644
--- a/src/time/clock_gettime.c
+++ b/src/time/clock_gettime.c
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"
diff --git a/src/time/clock_settime.c b/src/time/clock_settime.c
index e880fb33..a80b94e1 100644
--- a/src/time/clock_settime.c
+++ b/src/time/clock_settime.c
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"