clock_adjtime.c 606 B

12345678910111213141516171819
  1. /*
  2. * clock_adjtime() for uClibc
  3. *
  4. * Copyright (C) 2005 by Peter Kjellerstedt <pkj@axis.com>
  5. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  6. *
  7. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  8. */
  9. #include <sys/syscall.h>
  10. #include <sys/timex.h>
  11. #if defined(__UCLIBC_USE_TIME64__) && defined(__NR_clock_adjtime64)
  12. _syscall2_64(int, clock_adjtime, clockid_t, clock_id, struct timex*, ntx)
  13. #elif defined(__NR_clock_adjtime)
  14. _syscall2(int, clock_adjtime, clockid_t, clock_id, struct timex*, ntx)
  15. #else
  16. #error "clock_adjtime syscall is not defined!"
  17. #endif