ntpd.c (182007) | ntpd.c (200576) |
---|---|
1/* 2 * ntpd.c - main program for the fixed point NTP daemon 3 */ 4 5#ifdef HAVE_CONFIG_H 6# include <config.h> 7#endif 8 --- 12 unchanged lines hidden (view full) --- 21 22#ifdef HAVE_UNISTD_H 23# include <unistd.h> 24#endif 25#ifdef HAVE_SYS_STAT_H 26# include <sys/stat.h> 27#endif 28#include <stdio.h> | 1/* 2 * ntpd.c - main program for the fixed point NTP daemon 3 */ 4 5#ifdef HAVE_CONFIG_H 6# include <config.h> 7#endif 8 --- 12 unchanged lines hidden (view full) --- 21 22#ifdef HAVE_UNISTD_H 23# include <unistd.h> 24#endif 25#ifdef HAVE_SYS_STAT_H 26# include <sys/stat.h> 27#endif 28#include <stdio.h> |
29#ifndef SYS_WINNT 30# if !defined(VMS) /*wjm*/ 31# ifdef HAVE_SYS_PARAM_H 32# include <sys/param.h> 33# endif 34# endif /* VMS */ 35# ifdef HAVE_SYS_SIGNAL_H 36# include <sys/signal.h> 37# else 38# include <signal.h> | 29#if !defined(VMS) /*wjm*/ 30# ifdef HAVE_SYS_PARAM_H 31# include <sys/param.h> |
39# endif | 32# endif |
40# ifdef HAVE_SYS_IOCTL_H 41# include <sys/ioctl.h> 42# endif /* HAVE_SYS_IOCTL_H */ 43# ifdef HAVE_SYS_RESOURCE_H 44# include <sys/resource.h> 45# endif /* HAVE_SYS_RESOURCE_H */ | 33#endif /* VMS */ 34#ifdef HAVE_SYS_SIGNAL_H 35# include <sys/signal.h> |
46#else 47# include <signal.h> | 36#else 37# include <signal.h> |
48# include <process.h> 49# include <io.h> 50# include <clockstuff.h> 51#include "ntp_iocompletionport.h" 52#endif /* SYS_WINNT */ | 38#endif 39#ifdef HAVE_SYS_IOCTL_H 40# include <sys/ioctl.h> 41#endif /* HAVE_SYS_IOCTL_H */ 42#ifdef HAVE_SYS_RESOURCE_H 43# include <sys/resource.h> 44#endif /* HAVE_SYS_RESOURCE_H */ |
53#if defined(HAVE_RTPRIO) 54# ifdef HAVE_SYS_RESOURCE_H 55# include <sys/resource.h> 56# endif 57# ifdef HAVE_SYS_LOCK_H 58# include <sys/lock.h> 59# endif 60# include <sys/rtprio.h> --- 755 unchanged lines hidden (view full) --- 816 * 817 * Exactly what command-line options are we expecting here? 818 */ 819 init_auth(); 820 init_util(); 821 init_restrict(); 822 init_mon(); 823 init_timer(); | 45#if defined(HAVE_RTPRIO) 46# ifdef HAVE_SYS_RESOURCE_H 47# include <sys/resource.h> 48# endif 49# ifdef HAVE_SYS_LOCK_H 50# include <sys/lock.h> 51# endif 52# include <sys/rtprio.h> --- 755 unchanged lines hidden (view full) --- 808 * 809 * Exactly what command-line options are we expecting here? 810 */ 811 init_auth(); 812 init_util(); 813 init_restrict(); 814 init_mon(); 815 init_timer(); |
824#if defined (HAVE_IO_COMPLETION_PORT) 825 init_io_completion_port(); 826#endif | |
827 init_lib(); 828 init_request(); 829 init_control(); 830 init_peer(); 831#ifdef REFCLOCK 832 init_refclock(); 833#endif 834 set_process_priority(); --- 153 unchanged lines hidden (view full) --- 988 * have select() time out after one second. 989 * System clock updates really aren't time-critical, 990 * and - lacking a hardware reference clock - I have 991 * yet to learn about anything else that is. 992 */ 993#if defined(HAVE_IO_COMPLETION_PORT) 994 995 for (;;) { | 816 init_lib(); 817 init_request(); 818 init_control(); 819 init_peer(); 820#ifdef REFCLOCK 821 init_refclock(); 822#endif 823 set_process_priority(); --- 153 unchanged lines hidden (view full) --- 977 * have select() time out after one second. 978 * System clock updates really aren't time-critical, 979 * and - lacking a hardware reference clock - I have 980 * yet to learn about anything else that is. 981 */ 982#if defined(HAVE_IO_COMPLETION_PORT) 983 984 for (;;) { |
996 int tot_full_recvbufs = GetReceivedBuffers(); | 985 GetReceivedBuffers(); |
997#else /* normal I/O */ 998 999 BLOCK_IO_AND_ALARM(); 1000 was_alarmed = 0; 1001 for (;;) 1002 { 1003# if !defined(HAVE_SIGNALED_IO) 1004 extern fd_set activefds; --- 227 unchanged lines hidden --- | 986#else /* normal I/O */ 987 988 BLOCK_IO_AND_ALARM(); 989 was_alarmed = 0; 990 for (;;) 991 { 992# if !defined(HAVE_SIGNALED_IO) 993 extern fd_set activefds; --- 227 unchanged lines hidden --- |