diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-10 09:54:23 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-10 09:54:23 -0500 |
commit | 1b538acb0ac8520a8a5fd828add2e52e1d2a41eb (patch) | |
tree | 571395eb5ef0076bedc78c7d2a10e0def30abad1 /src/time | |
parent | 500c969f059dc1b12dc3809d270cb169abbd57d3 (diff) | |
download | musl-1b538acb0ac8520a8a5fd828add2e52e1d2a41eb.tar.gz musl-1b538acb0ac8520a8a5fd828add2e52e1d2a41eb.tar.xz musl-1b538acb0ac8520a8a5fd828add2e52e1d2a41eb.zip |
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.
Diffstat (limited to 'src/time')
-rw-r--r-- | src/time/clock_getres.c | 1 | ||||
-rw-r--r-- | src/time/clock_gettime.c | 1 | ||||
-rw-r--r-- | src/time/clock_settime.c | 1 |
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" |