Browse Source

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.
rs-1.0
Rich Felker 15 years ago
parent
commit
1b538acb0a
  1. 1
      src/time/clock_getres.c
  2. 1
      src/time/clock_gettime.c
  3. 1
      src/time/clock_settime.c

1
src/time/clock_getres.c

@ -1,4 +1,3 @@
#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"

1
src/time/clock_gettime.c

@ -1,4 +1,3 @@
#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"

1
src/time/clock_settime.c

@ -1,4 +1,3 @@
#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include "syscall.h"

Loading…
Cancel
Save