From: Rich Felker Date: Thu, 10 Mar 2011 14:54:23 +0000 (-0500) Subject: fix errno behavior in clock_* functions X-Git-Tag: v0.7.0~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b538acb0ac8520a8a5fd828add2e52e1d2a41eb;p=oweals%2Fmusl.git 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. --- 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 #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 #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 #include "syscall.h"