ntp_syscall.h (82498) | ntp_syscall.h (106424) |
---|---|
1/* 2 * ntp_syscall.h - various ways to perform the ntp_adjtime() and ntp_gettime() 3 * system calls. 4 */ 5 6#ifndef NTP_SYSCALL_H 7#define NTP_SYSCALL_H 8 9#ifdef HAVE_CONFIG_H 10#include <config.h> 11#endif 12 13#ifdef HAVE_SYS_TIMEX_H 14# include <sys/timex.h> 15#endif 16 | 1/* 2 * ntp_syscall.h - various ways to perform the ntp_adjtime() and ntp_gettime() 3 * system calls. 4 */ 5 6#ifndef NTP_SYSCALL_H 7#define NTP_SYSCALL_H 8 9#ifdef HAVE_CONFIG_H 10#include <config.h> 11#endif 12 13#ifdef HAVE_SYS_TIMEX_H 14# include <sys/timex.h> 15#endif 16 |
17#ifndef NTP_SYSCALLS_LIBC |
|
17#ifdef NTP_SYSCALLS_STD 18# define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t)) 19# define ntp_gettime(t) syscall(SYS_ntp_gettime, (t)) 20#else /* !NTP_SYSCALLS_STD */ 21# ifdef HAVE___ADJTIMEX 22extern int __adjtimex P((struct timex *)); 23 24# define ntp_adjtime(t) __adjtimex((t)) --- 19 unchanged lines hidden (view full) --- 44 return(result); 45} 46# else /* !HAVE__ADJTIMEX */ 47# ifdef HAVE___NTP_GETTIME 48# define ntp_gettime(t) __ntp_gettime((t)) 49# endif 50# endif /* !HAVE_ADJTIMEX */ 51#endif /* !NTP_SYSCALLS_STD */ | 18#ifdef NTP_SYSCALLS_STD 19# define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t)) 20# define ntp_gettime(t) syscall(SYS_ntp_gettime, (t)) 21#else /* !NTP_SYSCALLS_STD */ 22# ifdef HAVE___ADJTIMEX 23extern int __adjtimex P((struct timex *)); 24 25# define ntp_adjtime(t) __adjtimex((t)) --- 19 unchanged lines hidden (view full) --- 45 return(result); 46} 47# else /* !HAVE__ADJTIMEX */ 48# ifdef HAVE___NTP_GETTIME 49# define ntp_gettime(t) __ntp_gettime((t)) 50# endif 51# endif /* !HAVE_ADJTIMEX */ 52#endif /* !NTP_SYSCALLS_STD */ |
53#endif /* !NTP_SYSCALLS_LIBC */ |
|
52 53#endif /* NTP_SYSCALL_H */ | 54 55#endif /* NTP_SYSCALL_H */ |