From: Harlan Stenn Date: Wed, 28 Jul 1999 02:05:17 +0000 (-0000) Subject: Many files: X-Git-Tag: NTP_4_0_95^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c95dc9ec3f1eb9fe1c13344d8e23ee50a5d62549;p=thirdparty%2Fntp.git Many files: New WinNT port bk: 379e655djXUrr9TYD9nurbSbTZ6F_w --- diff --git a/ports/winnt/include/arpa/inet.h b/ports/winnt/include/arpa/inet.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/arpa/inet.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h new file mode 100644 index 000000000..fe61bf409 --- /dev/null +++ b/ports/winnt/include/config.h @@ -0,0 +1,62 @@ +/* config.h for Windows NT */ + +#ifndef __config +#define __config + +#if defined(_MSC_VER) +#pragma warning(disable : 4127) +#endif + +/* + * Windows NT Configuration Values + */ +#if defined _DEBUG /* Use VC standard macro definitions */ +# define DEBUG 1 +#endif +#if !defined _WIN32_WINNT || _WIN32_WINNT < 0x0400 +# error Please define _WIN32_WINNT in the project settings/makefile +#endif +# define MCAST /* Enable Multicast Support */ /* 98/06/01 */ +# undef OPEN_BCAST_SOCKET /* for ntp_io.c */ /* 98/06/01 *//* 98/06/03 */ +# undef UDP_WILDCARD_DELIVERY /* for ntp_io.c */ + /* 98/06/01 */ +# define REFCLOCK /* from ntpd.mak */ +# define CLOCK_LOCAL /* from ntpd.mak */ +/*# define CLOCK_PARSE */ +/* # define CLOCK_SHM */ /* from ntpd.mak */ /* 98/06/01 */ +# define CLOCK_NMEA +# define CLOCK_PALISADE * from ntpd.mak */ /* 98/06/26 */ +# define CLOCK_DUMBCLOCK +# define CLOCK_TRIMBLEDC +# undef DES /* from libntp.mak */ /* 98/05/28 */ +# undef MD5 /* from libntp.mak */ /* 98/05/28 */ +# define NTP_LITTLE_ENDIAN /* from libntp.mak */ +# define SYSLOG_FILE /* from libntp.mak */ +# define HAVE_PROTOTYPES /* from ntpq.mak */ +# define USE_PROTOTYPES /* for ntp_types.h */ /* 98/05/29 */ +# define SIZEOF_INT 4 /* for ntp_types.h */ +# define SYSV_TIMEOFDAY /* for ntp_unixtime.h */ +//# define HAVE_NET_IF_H +# define QSORT_USES_VOID_P +# define HAVE_MEMMOVE +# define volatile +# define STDC_HEADERS +# define NEED_S_CHAR_TYPEDEF +# define SIZEOF_SIGNED_CHAR 1 +# define HAVE_NO_NICE +# define NOKMEM +# define PRESET_TICK 100159 +# define PRESET_TICKADJ 50 +# define RETSIGTYPE void +# define NTP_POSIX_SOURCE +# define HAVE_SETVBUF +# define HAVE_VSPRINTF +# ifndef STR_SYSTEM +# define STR_SYSTEM "WINDOWS/NT" +# endif +# define HAVE_STDARG_H +#define SIOCGIFFLAGS SIO_GET_INTERFACE_LIST /* used in ntp_io.c */ +#define HAVE_IO_COMPLETION_PORT +struct _RPC_ASYNC_STATE; /* forward declare to stop compiler warning */ + +#endif /* __config */ diff --git a/ports/winnt/include/netdb.h b/ports/winnt/include/netdb.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/netdb.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/netinet/in.h b/ports/winnt/include/netinet/in.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/netinet/in.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/ntp_iocompletionport.h b/ports/winnt/include/ntp_iocompletionport.h new file mode 100644 index 000000000..01a2833eb --- /dev/null +++ b/ports/winnt/include/ntp_iocompletionport.h @@ -0,0 +1,29 @@ +#if !defined __ntp_iocompletionport_h +# define __ntp_iocompletionport_h + +#include "ntp.h" + +# if defined(HAVE_IO_COMPLETION_PORT) + +struct IoCompletionInfo; +struct refclockio; + +typedef int IoCompletionInfoFunction(DWORD Key, struct IoCompletionInfo *, DWORD Bytes); + +typedef struct IoCompletionInfo { + OVERLAPPED overlapped; + IoCompletionInfoFunction * iofunction; +} IoCompletionInfo; + +extern void init_io_completion_port P((void)); +extern void uninit_io_completion_port P((void)); + +extern int io_completion_port_add_clock_io P((struct refclockio * /*rio */)); + +extern void io_completion_port_add_socket P((struct interface *)); + +extern DWORD io_completion_port_sendto P((struct interface *, struct pkt *, int, struct sockaddr_in*)); + +# endif + +#endif diff --git a/ports/winnt/include/ntp_timer.h b/ports/winnt/include/ntp_timer.h new file mode 100644 index 000000000..b8c40309f --- /dev/null +++ b/ports/winnt/include/ntp_timer.h @@ -0,0 +1,12 @@ +#if !defined(__NTP_TIMER_H_) +#define __NTP_TIMER_H_ + +extern void timer_clr_stats P((void)); + +#if defined(SYS_WINNT) +extern HANDLE get_timer_handle P((void)); +#endif + + + +#endif \ No newline at end of file diff --git a/ports/winnt/include/sys/ioctl.h b/ports/winnt/include/sys/ioctl.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/sys/ioctl.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/sys/param.h b/ports/winnt/include/sys/param.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/sys/param.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/sys/resource.h b/ports/winnt/include/sys/resource.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/sys/resource.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/sys/signal.h b/ports/winnt/include/sys/signal.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/sys/signal.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/sys/socket.h b/ports/winnt/include/sys/socket.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/sys/socket.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/sys/time.h b/ports/winnt/include/sys/time.h new file mode 100644 index 000000000..a820e94c6 --- /dev/null +++ b/ports/winnt/include/sys/time.h @@ -0,0 +1,16 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ + +#ifndef SYS_TIME_H +#define SYS_TIME_H + +#include "ntp_types.h" +#include +#include + +extern int gettimeofday (struct timeval *); +extern int settimeofday (struct timeval *); + +#endif /* SYS_TIME_H */ diff --git a/ports/winnt/include/sys/wait.h b/ports/winnt/include/sys/wait.h new file mode 100644 index 000000000..5e1599737 --- /dev/null +++ b/ports/winnt/include/sys/wait.h @@ -0,0 +1,4 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ diff --git a/ports/winnt/include/syslog.h b/ports/winnt/include/syslog.h new file mode 100644 index 000000000..e731c0869 --- /dev/null +++ b/ports/winnt/include/syslog.h @@ -0,0 +1,18 @@ +/************************************************************** + * Dummy Header for Unix to Windows NT portability + * Created for NTP package + **************************************************************/ + +#ifndef SYSLOG_H +#define SYSLOG_H + +#define LOG_EMERG 0 /* system is unusable */ +#define LOG_ALERT 1 /* action must be taken immediately */ +#define LOG_CRIT 2 /* critical conditions */ +#define LOG_ERR 3 /* error conditions */ +#define LOG_WARNING 4 /* warning conditions */ +#define LOG_NOTICE 5 /* normal but signification condition */ +#define LOG_INFO 6 /* informational */ +#define LOG_DEBUG 7 /* debug-level messages */ + +#endif /* SYSLOG_H */ diff --git a/ports/winnt/include/transmitbuff.h b/ports/winnt/include/transmitbuff.h new file mode 100644 index 000000000..3094efe1c --- /dev/null +++ b/ports/winnt/include/transmitbuff.h @@ -0,0 +1,57 @@ +#if !defined __transmitbuff_h +#define __transmitbuff_h + +#include "ntp.h" +#if defined HAVE_IO_COMPLETION_PORT +# include "ntp_iocompletionport.h" +#endif + +#define TRANSMIT_BUF_LENGTH 1024 + +/* + * Format of a transmitbuf. These are used by the asynchronous receive + * routine to store incoming packets and related information. + */ + +typedef struct transmitbuf { + struct transmitbuf *next; /* next buffer in chain */ + +#if defined HAVE_IO_COMPLETION_PORT + IoCompletionInfo iocompletioninfo; + WSABUF wsabuf; +#endif + + /* + * union { + * struct pkt pkt; + * struct ntp_control ctlpkt; + *} pkt; + */ + char pkt[512]; + +} transmitbuf; + + +extern void init_transmitbuff P((void)); + + +/* freetransmitbuf - make a single transmitbuf available for reuse + */ +extern void free_transmit_buffer P((struct transmitbuf *)); + +/* Get a free buffer (typically used so an async + * read can directly place data into the buffer + * + * The buffer is removed from the free list. Make sure + * you put it back with freetransmitbuf() or + */ +extern struct transmitbuf *get_free_transmit_buffer P((void)); + + + + + + + +#endif /* defined __transmitbuff_h */ + diff --git a/ports/winnt/include/win32_io.h b/ports/winnt/include/win32_io.h new file mode 100644 index 000000000..836b180c3 --- /dev/null +++ b/ports/winnt/include/win32_io.h @@ -0,0 +1,201 @@ +#if !defined(_WIN32_IO_) +#define _WIN32_IO_ + +/* Flag definitions for compatibility + * ================================== +*/ + +typedef unsigned char cc_t; +typedef unsigned int speed_t; +typedef unsigned int tcflag_t; + +struct termios + { + tcflag_t c_iflag; /* input mode flags */ + tcflag_t c_oflag; /* output mode flags */ + tcflag_t c_cflag; /* control mode flags */ + tcflag_t c_lflag; /* local mode flags */ + cc_t c_line; /* line discipline */ + /* cc_t c_cc[NCCS]; */ /* control characters */ + speed_t c_ispeed; /* input speed */ + speed_t c_ospeed; /* output speed */ + }; + +/* c_cc characters +#define VINTR 0 +#define VQUIT 1 +#define VERASE 2 +#define VKILL 3 +#define VEOF 4 +#define VTIME 5 +#define VMIN 6 +#define VSWTC 7 +#define VSTART 8 +#define VSTOP 9 +#define VSUSP 10 +#define VEOL 11 +#define VREPRINT 12 +#define VDISCARD 13 +#define VWERASE 14 +#define VLNEXT 15 +#define VEOL2 16 +*/ + +/* c_iflag bits */ +#define IGNBRK 0000001 +#define BRKINT 0000002 +#define IGNPAR 0000004 +#define PARMRK 0000010 +#define INPCK 0000020 +#define ISTRIP 0000040 +#define INLCR 0000100 +#define IGNCR 0000200 +#define ICRNL 0000400 +#define IUCLC 0001000 +#define IXON 0002000 +#define IXANY 0004000 +#define IXOFF 0010000 +#define IMAXBEL 0020000 + +/* c_oflag bits */ +#define OPOST 0000001 +#define OLCUC 0000002 +#define ONLCR 0000004 +#define OCRNL 0000010 +#define ONOCR 0000020 +#define ONLRET 0000040 +#define OFILL 0000100 +#define OFDEL 0000200 +#define NLDLY 0000400 +#define NL0 0000000 +#define NL1 0000400 +#define CRDLY 0003000 +#define CR0 0000000 +#define CR1 0001000 +#define CR2 0002000 +#define CR3 0003000 +#define TABDLY 0014000 +#define TAB0 0000000 +#define TAB1 0004000 +#define TAB2 0010000 +#define TAB3 0014000 +#define XTABS 0014000 +#define BSDLY 0020000 +#define BS0 0000000 +#define BS1 0020000 +#define VTDLY 0040000 +#define VT0 0000000 +#define VT1 0040000 +#define FFDLY 0100000 +#define FF0 0000000 +#define FF1 0100000 + +/* c_cflag bit meaning */ +#define CBAUD 0010017 +#define B0 0000000 /* hang up */ +#define B50 0000001 +#define B75 0000002 +#define B110 0000003 +#define B134 0000004 +#define B150 0000005 +#define B200 0000006 +#define B300 0000007 +#define B600 0000010 +#define B1200 0000011 +#define B1800 0000012 +#define B2400 0000013 +#define B4800 0000014 +#define B9600 0000015 +#define B19200 0000016 +#define B38400 0000017 +#define EXTA B19200 +#define EXTB B38400 +#define CSIZE 0000060 +#define CS5 0000000 +#define CS6 0000020 +#define CS7 0000040 +#define CS8 0000060 +#define CSTOPB 0000100 +#define CREAD 0000200 +#define PARENB 0000400 +#define PARODD 0001000 +#define HUPCL 0002000 +#define CLOCAL 0004000 +#define CBAUDEX 0010000 +#define B57600 0010001 +#define B115200 0010002 +#define B230400 0010003 +#define B460800 0010004 +#define CIBAUD 002003600000 /* input baud rate (not used) */ +#define CRTSCTS 020000000000 /* flow control */ + +/* c_lflag bits */ +#define ISIG 0000001 +#define ICANON 0000002 +#define XCASE 0000004 +#define ECHO 0000010 +#define ECHOE 0000020 +#define ECHOK 0000040 +#define ECHONL 0000100 +#define NOFLSH 0000200 +#define TOSTOP 0000400 +#define ECHOCTL 0001000 +#define ECHOPRT 0002000 +#define ECHOKE 0004000 +#define FLUSHO 0010000 +#define PENDIN 0040000 +#define IEXTEN 0100000 + +/* tcflow() and TCXONC use these */ +#define TCOOFF 0 +#define TCOON 1 +#define TCIOFF 2 +#define TCION 3 + +/* tcflush() and TCFLSH use these */ +#define TCIFLUSH 0 +#define TCOFLUSH 1 +#define TCIOFLUSH 2 + +/* tcsetattr uses these */ +#define TCSANOW 0 +#define TCSADRAIN 1 +#define TCSAFLUSH 2 + +/* modem lines */ +#define TIOCM_LE 0x001 +#define TIOCM_DTR 0x002 +#define TIOCM_RTS 0x004 +#define TIOCM_ST 0x008 +#define TIOCM_SR 0x010 +#define TIOCM_CTS 0x020 +#define TIOCM_CAR 0x040 +#define TIOCM_RNG 0x080 +#define TIOCM_DSR 0x100 +#define TIOCM_CD TIOCM_CAR +#define TIOCM_RI TIOCM_RNG +#define TIOCM_OUT1 0x2000 +#define TIOCM_OUT2 0x4000 + +/* ioctl */ +#define TIOCMGET 0x5415 +#define TIOCMSET 0x5418 +/* +#define cfgetospeed(dcb) dcb->BaudRate +#define cfgetispeed(dcb) dcb->BaudRate +#define cfsetospeed(dcb,speed) (dcb->BaudRate = (speed), 0) +#define cfsetispeed(dcb,speed) (dcb->BaudRate = (speed), 0) + + + +extern BOOL TTY_GETATTR P((int fd, DCB *tio)); +extern BOOL TTY_SETATTR P((int fd, const DCB *tio)); + +*/ + +extern int refclock_open (char *, int, int); +extern int ioctl (int, int, int *); +extern int tcsetattr (int fd, int optional_actions, const struct termios *); +extern int tcgetattr (int fd, struct termios *); +#endif /* defined _WIN32_IO_ */ + diff --git a/ports/winnt/instsrv/Instsrv.dsp b/ports/winnt/instsrv/Instsrv.dsp new file mode 100644 index 000000000..828c06e8a --- /dev/null +++ b/ports/winnt/instsrv/Instsrv.dsp @@ -0,0 +1,102 @@ +# Microsoft Developer Studio Project File - Name="instsrv" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=instsrv - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "Instsrv.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "Instsrv.mak" CFG="instsrv - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "instsrv - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "instsrv - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName ""$/ntp/dev/ports/winnt/instsrv", VVBAAAAA" +# PROP Scc_LocalPath "." +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "instsrv - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /I "." /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "instsrv - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /I "." /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /FR /YX"windows.h" /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "instsrv - Win32 Release" +# Name "instsrv - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\instsrv.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project diff --git a/ports/winnt/instsrv/instsrv.c b/ports/winnt/instsrv/instsrv.c new file mode 100644 index 000000000..5ef044d22 --- /dev/null +++ b/ports/winnt/instsrv/instsrv.c @@ -0,0 +1,459 @@ +/* + * File: instsrv.c + * Purpose: To install a new service and to insert registry entries. + * + */ + +#include +#include +#include +#include + + +#define PERR(api) printf("\n%s: Error %d from %s on line %d", \ + __FILE__, GetLastError(), api, __LINE__); + +#define MSG_FOR_ACCESS_DENIED "You aren't authorized to do this - please see your system Administrator" +#define MSG_1_FOR_BAD_PATH "The fully qualified path name to the .exe must be given, and" +#define MSG_2_FOR_BAD_PATH " the drive letter must be for a fixed disk (e.g., not a net drive)" + +SC_HANDLE schService; +SC_HANDLE schSCManager; +int ok2; + +VOID DisplayHelp(VOID); + +/* --------------------------------------------------------------------------------------- */ + +int InstallService(LPCTSTR serviceName, LPCTSTR serviceExe) +{ + LPCTSTR lpszBinaryPathName = serviceExe; + TCHAR lpszRootPathName[] ="?:\\"; + + if ( (':' != *(lpszBinaryPathName+1)) || ('\\' != *(lpszBinaryPathName+2)) ) + { printf("\n%s",MSG_1_FOR_BAD_PATH); + printf("\n%s\n",MSG_2_FOR_BAD_PATH); + return 1; + } + + #define DRIVE_TYPE_INDETERMINATE 0 + #define ROOT_DIR_DOESNT_EXIST 1 + + *lpszRootPathName = *(lpszBinaryPathName+0) ; + + switch ( GetDriveType(lpszRootPathName) ) + { + case DRIVE_FIXED : + { // OK + break; + } + case ROOT_DIR_DOESNT_EXIST : + { printf("\n%s",MSG_1_FOR_BAD_PATH); + printf("\n the root directory where the .exe is specified to be must exist, and"); + printf("\n%s\n",MSG_2_FOR_BAD_PATH); + return 1; + } + case DRIVE_TYPE_INDETERMINATE : + case DRIVE_REMOVABLE : + case DRIVE_REMOTE : + case DRIVE_CDROM : + case DRIVE_RAMDISK : + { printf("\n%s",MSG_1_FOR_BAD_PATH); + printf("\n%s\n",MSG_2_FOR_BAD_PATH); + return 1; + } + default : + { printf("\n%s",MSG_1_FOR_BAD_PATH); + printf("\n%s\n",MSG_2_FOR_BAD_PATH); + return 1; + } + } + + if (INVALID_HANDLE_VALUE == CreateFile(lpszBinaryPathName, + GENERIC_READ, + FILE_SHARE_READ, + NULL, + OPEN_EXISTING, + FILE_ATTRIBUTE_NORMAL, + NULL)) + { + printf("\n%s",MSG_1_FOR_BAD_PATH); + printf("\n the file must exist, and"); + printf("\n%s\n",MSG_2_FOR_BAD_PATH); + return 1; + } + + schService = CreateService( + schSCManager, // SCManager database + serviceName, // name of service + serviceName, // name to display (new parameter after october beta) + SERVICE_ALL_ACCESS, // desired access + SERVICE_WIN32_OWN_PROCESS, // service type + SERVICE_AUTO_START, // start type + SERVICE_ERROR_NORMAL, // error control type + lpszBinaryPathName, // service's binary + NULL, // no load ordering group + NULL, // no tag identifier + NULL, // no dependencies + NULL, // Local System account + NULL); // null password + + if (NULL == schService) + { switch (GetLastError()) + { + case ERROR_ACCESS_DENIED : + { printf("\n%s",MSG_FOR_ACCESS_DENIED); + break; + } + case ERROR_SERVICE_EXISTS : + { printf("\nThe %s service is already installed",serviceName); + printf("\nRemove it first if you need to re-install a new version\n"); + break; + } + default : + { PERR("CreateService"); + } + } + return 1; + } + else + + CloseServiceHandle(schService); + return 0; +} + +/* --------------------------------------------------------------------------------------- */ + +int RemoveService(LPCTSTR serviceName) +{ + { + #define SZ_ENUM_BUF 4096 + ENUM_SERVICE_STATUS essServiceStatus[SZ_ENUM_BUF]; + DWORD dwBufSize = sizeof(essServiceStatus); + DWORD dwBytesNeeded = 0; + DWORD dwServicesReturned = 0; + DWORD dwResumeHandle = 0; + DWORD dwI = 0; + BOOLEAN bFound = FALSE; + + if (!EnumServicesStatus(schSCManager, + SERVICE_WIN32, + SERVICE_ACTIVE, + (LPENUM_SERVICE_STATUS)&essServiceStatus, + dwBufSize, + &dwBytesNeeded, + &dwServicesReturned, + &dwResumeHandle)) + { switch (GetLastError()) + { + case ERROR_ACCESS_DENIED : + { printf("\n%s",MSG_FOR_ACCESS_DENIED); + break; + } + default : + { PERR("EnumServicesStatus"); + } + } + return 1; + } + + for (dwI=0; dwI 256) + { + printf("\nThe service name cannot be longer than 256 characters\n"); + exit(1); + } + + + + bRemovingService = (!stricmp(argv[1], "remove")); + schSCManager = OpenSCManager( + NULL, // machine (NULL == local) + NULL, // database (NULL == default) + SC_MANAGER_ALL_ACCESS); // access required + + if (NULL == schSCManager) + { switch (GetLastError()) + { + case ERROR_ACCESS_DENIED : + { printf("\n%s",MSG_FOR_ACCESS_DENIED); + break; + } + default : + { PERR("OpenSCManager"); + } + } + return (0); + } + + if (bRemovingService) + { + ok = RemoveService(lpszServName); + } + else + { + /* get the exe name */ + strcpy(lpszExeName,argv[1]); + ok = InstallService(lpszServName,lpszExeName); + } + + CloseServiceHandle(schSCManager); + + if (!bRemovingService) + { + if (ok == 0) + { /* Set the Event-ID message-file name. */ + ok = addSourceToRegistry("NetworkTimeProtocol", lpszExeName); + if (ok == 0) + ok = addKeysToRegistry(); + else return ok; + + if (ok == 0) + { + printf("\nThe \"Network Time Protocol\" service was successfully created.\n"); + printf("\nDon't forget!!! You must now go to the Control Panel and"); + printf("\n use the Services applet to change the account name and"); + printf("\n password that the NTP Service will use when"); + printf("\n it starts."); + printf("\nTo do this: use the Startup button in the Services applet,"); + printf("\n and (for example) specify the desired account and"); + printf("\n correct password."); + printf("\nAlso, use the Services applet to ensure this newly installed"); + printf("\n service starts automatically on bootup.\n"); + return 0; + } + } + else return ok; + } + else return 0; +} + +/* --------------------------------------------------------------------------------------- */ + +VOID DisplayHelp(VOID) +{ + printf("Installs or removes the NTP service.\n"); + printf("To install the NTP service,\n"); + printf("type INSTSRV \n"); + printf("Where:\n"); + printf(" path Absolute path to the NTP service, name.exe. You must\n"); + printf(" use a fully qualified path and the drive letter must be for a\n"); + printf(" fixed, local drive.\n\n"); + printf("For example, INSTSRV i:\\winnt\\system32\\ntpd.exe\n"); + printf("To remove the NTP service,\n"); + printf("type INSTSRV remove \n"); + +} + +/* EOF */ diff --git a/ports/winnt/libntp/libntp.dsp b/ports/winnt/libntp/libntp.dsp new file mode 100644 index 000000000..9cd6d3db0 --- /dev/null +++ b/ports/winnt/libntp/libntp.dsp @@ -0,0 +1,557 @@ +# Microsoft Developer Studio Project File - Name="libntp" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=libntp - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "libntp.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "libntp.mak" CFG="libntp - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "libntp - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "libntp - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName ""$/ntp/dev/ports/winnt/libntp", AWBAAAAA" +# PROP Scc_LocalPath "." +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "libntp - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /I "." /D "NDEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "libntp - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "libntp___Win32_Debug" +# PROP BASE Intermediate_Dir "libntp___Win32_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /I "." /FI"windows.h" /D "_DEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "libntp - Win32 Release" +# Name "libntp - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\libntp\a_md5encrypt.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\adjtime.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\atoint.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\atolfp.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\atouint.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\authencrypt.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\authkeys.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\authparity.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\authreadkeys.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\authusekey.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\binio.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\buftvtots.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\caljulian.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\calleapwhen.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\caltontp.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\calyearstart.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\clocktime.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\clocktypes.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\decodenetnum.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\dofptoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\dolfptoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\emalloc.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\findconfig.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\fptoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\fptoms.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\getopt.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\gpstolfp.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\hextoint.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\hextolfp.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\humandate.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\ieee754io.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\inttoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\iosignal.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\lib_strbuf.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\log.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\machines.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\md5c.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\memmove.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\mfp_mul.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\mfptoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\mfptoms.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\mktime.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\modetoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\mstolfp.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\msutotsf.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\msyslog.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\netof.c +# End Source File +# Begin Source File + +SOURCE=.\nt_clockstuff.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\numtoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\numtohost.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\octtoint.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\prettydate.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\ranny.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\recvbuff.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\refnumtoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\statestr.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\strerror.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\syssignal.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\systime.c +# End Source File +# Begin Source File + +SOURCE=.\transmitbuff.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\tsftomsu.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\tstotv.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\tvtoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\tvtots.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\uglydate.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\uinttoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\utvtoa.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\ymd2yd.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\include\binio.h +# End Source File +# Begin Source File + +SOURCE=..\include\config.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\global.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ieee754io.h +# End Source File +# Begin Source File + +SOURCE=..\include\netinet\in.h +# End Source File +# Begin Source File + +SOURCE=..\include\sys\ioctl.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\iosignal.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\l_stdlib.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\lib_strbuf.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\log.h +# End Source File +# Begin Source File + +SOURCE=.\log.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\md5.h +# End Source File +# Begin Source File + +SOURCE=..\include\netdb.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_calendar.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_control.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_fp.h +# End Source File +# Begin Source File + +SOURCE=..\include\ntp_iocompletionport.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_machine.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_malloc.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_proto.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_refclock.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_stdlib.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_string.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_syslog.h +# End Source File +# Begin Source File + +SOURCE=..\include\ntp_timer.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_types.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_unixtime.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\recvbuff.h +# End Source File +# Begin Source File + +SOURCE=..\include\sys\signal.h +# End Source File +# Begin Source File + +SOURCE=..\include\sys\socket.h +# End Source File +# Begin Source File + +SOURCE=..\include\syslog.h +# End Source File +# Begin Source File + +SOURCE=..\include\sys\time.h +# End Source File +# End Group +# Begin Group "Generated Files" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\messages.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\messages.mc + +!IF "$(CFG)" == "libntp - Win32 Release" + +# PROP Ignore_Default_Tool 1 +# Begin Custom Build - Message Compiler +InputDir=. +InputPath=.\messages.mc +InputName=messages + +BuildCmds= \ + mc -h $(InputDir) -r $(InputDir) -e h $(InputPath) + +"$(InputDir)\$(InputName).rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + $(BuildCmds) + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + $(BuildCmds) + +"$(InputDir)\msg00001.bin" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + $(BuildCmds) +# End Custom Build + +!ELSEIF "$(CFG)" == "libntp - Win32 Debug" + +# PROP Ignore_Default_Tool 1 +# Begin Custom Build - Message Compiler +InputDir=. +InputPath=.\messages.mc +InputName=messages + +BuildCmds= \ + mc -h $(InputDir) -r $(InputDir) -e h $(InputPath) + +"$(InputDir)\$(InputName).rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + $(BuildCmds) + +"$(InputDir)\$(InputName).h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + $(BuildCmds) + +"$(InputDir)\msg00001.bin" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + $(BuildCmds) +# End Custom Build + +!ENDIF + +# End Source File +# End Group +# End Target +# End Project diff --git a/ports/winnt/libntp/log.h b/ports/winnt/libntp/log.h new file mode 100644 index 000000000..99d0e7294 --- /dev/null +++ b/ports/winnt/libntp/log.h @@ -0,0 +1,21 @@ +/* + * log.h - Used only under Windows NT by msyslog.c + * + */ +#ifndef WINNT_LOG_H +#define WINNT_LOG_H + +#include + +/* function declarations */ + +void addSourceToRegistry(LPSTR pszAppname, LPSTR pszMsgDLL); +void reportAnIEvent(DWORD dwIdEvent, WORD cStrings, LPTSTR *pszStrings); +void reportAnWEvent(DWORD dwIdEvent, WORD cStrings, LPTSTR *pszStrings); +void reportAnEEvent(DWORD dwIdEvent, WORD cStrings, LPTSTR *pszStrings); + +#define MAX_MSG_LENGTH 1024 +#define MSG_ID_MASK 0x0000FFFF +#define MAX_INSERT_STRS 8 + +#endif /* WINNT_LOG_H */ diff --git a/ports/winnt/libntp/messages.mc b/ports/winnt/libntp/messages.mc new file mode 100644 index 000000000..3a6bc7d22 --- /dev/null +++ b/ports/winnt/libntp/messages.mc @@ -0,0 +1,161 @@ +; /* +; Microsoft Developer Support +; Copyright (c) 1992 Microsoft Corporation +; +; This file contains the message definitions for the Win32 +; syslog support messages for the nntp firewall + +;------------------------------------------------------------------------- +; HEADER SECTION +; +; The header section defines names and language identifiers for use +; by the message definitions later in this file. The MessageIdTypedef, +; SeverityNames, FacilityNames, and LanguageNames keywords are +; optional and not required. +; +; +MessageIdTypedef=DWORD +; +; The MessageIdTypedef keyword gives a typedef name that is used in a +; type cast for each message code in the generated include file. Each +; message code appears in the include file with the format: #define +; name ((type) 0xnnnnnnnn) The default value for type is empty, and no +; type cast is generated. It is the programmer's responsibility to +; specify a typedef statement in the application source code to define +; the type. The type used in the typedef must be large enough to +; accomodate the entire 32-bit message code. +; +; +SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS + Informational=0x1:STATUS_SEVERITY_INFORMATIONAL + Warning=0x2:STATUS_SEVERITY_WARNING + Error=0x3:STATUS_SEVERITY_ERROR + ) +; +; The SeverityNames keyword defines the set of names that are allowed +; as the value of the Severity keyword in the message definition. The +; set is delimited by left and right parentheses. Associated with each +; severity name is a number that, when shifted left by 30, gives the +; bit pattern to logical-OR with the Facility value and MessageId +; value to form the full 32-bit message code. The default value of +; this keyword is: +; +; SeverityNames=( +; Success=0x0 +; Informational=0x1 +; Warning=0x2 +; Error=0x3 +; ) +; +; Severity values occupy the high two bits of a 32-bit message code. +; Any severity value that does not fit in two bits is an error. The +; severity codes can be given symbolic names by following each value +; with :name +; +; +;FacilityNames=(System=0x0:FACILITY_SYSTEM +; Runtime=0x2:FACILITY_RUNTIME +; Stubs=0x3:FACILITY_STUBS +; Io=0x4:FACILITY_IO_ERROR_CODE +; ) +; +; The FacilityNames keyword defines the set of names that are allowed +; as the value of the Facility keyword in the message definition. The +; set is delimited by left and right parentheses. Associated with each +; facility name is a number that, when shift it left by 16 bits, gives +; the bit pattern to logical-OR with the Severity value and MessageId +; value to form the full 32-bit message code. The default value of +; this keyword is: +; +; FacilityNames=( +; System=0x0FF +; Application=0xFFF +; ) +; +; Facility codes occupy the low order 12 bits of the high order +; 16-bits of a 32-bit message code. Any facility code that does not +; fit in 12 bits is an error. This allows for 4,096 facility codes. +; The first 256 codes are reserved for use by the system software. The +; facility codes can be given symbolic names by following each value +; with :name +; +; +; The LanguageNames keyword defines the set of names that are allowed +; as the value of the Language keyword in the message definition. The +; set is delimited by left and right parentheses. Associated with each +; language name is a number and a file name that are used to name the +; generated resource file that contains the messages for that +; language. The number corresponds to the language identifier to use +; in the resource table. The number is separated from the file name +; with a colon. The initial value of LanguageNames is: +; +; LanguageNames=(English=1:MSG00001) +; +; Any new names in the source file which don't override the built-in +; names are added to the list of valid languages. This allows an +; application to support private languages with descriptive names. +; +; +;------------------------------------------------------------------------- +; MESSAGE DEFINITION SECTION +; +; Following the header section is the body of the Message Compiler +; source file. The body consists of zero or more message definitions. +; Each message definition begins with one or more of the following +; statements: +; +; MessageId = [number|+number] +; Severity = severity_name +; Facility = facility_name +; SymbolicName = name +; +; The MessageId statement marks the beginning of the message +; definition. A MessageID statement is required for each message, +; although the value is optional. If no value is specified, the value +; used is the previous value for the facility plus one. If the value +; is specified as +number then the value used is the previous value +; for the facility, plus the number after the plus sign. Otherwise, if +; a numeric value is given, that value is used. Any MessageId value +; that does not fit in 16 bits is an error. +; +; The Severity and Facility statements are optional. These statements +; specify additional bits to OR into the final 32-bit message code. If +; not specified they default to the value last specified for a message +; definition. The initial values prior to processing the first message +; definition are: +; +; Severity=Success +; Facility=Application +; +; The value associated with Severity and Facility must match one of +; the names given in the FacilityNames and SeverityNames statements in +; the header section. The SymbolicName statement allows you to +; associate a C/C++ symbolic constant with the final 32-bit message +; code. +; */ + +MessageId=0x1 +Severity=Error +Facility=Application +SymbolicName=NTP_ERROR +Language=English +%1 +. + +MessageId=0x2 +Severity=Warning +Facility=Application +SymbolicName=NTP_WARNING +Language=English +%1 + +. +MessageId=0x3 +Severity=Informational +Facility=Application +SymbolicName=NTP_INFO +Language=English +%1 + + + diff --git a/ports/winnt/libntp/nt_clockstuff.c b/ports/winnt/libntp/nt_clockstuff.c new file mode 100644 index 000000000..557b19295 --- /dev/null +++ b/ports/winnt/libntp/nt_clockstuff.c @@ -0,0 +1,223 @@ + + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "ntp_machine.h" +#include "ntp_syslog.h" + +#include +#include +#include "ntp_syslog.h" + +char * set_tod_using = "SetSystemTime"; +extern double drift_comp; + +/* Windows NT versions of gettimeofday and settimeofday + * + * ftime() has internal DayLightSavings related BUGS + * therefore switched to GetSystemTimeAsFileTime() + */ + +/* 100ns intervals between 1/1/1601 and 1/1/1970 as reported by + * SystemTimeToFileTime() + */ + +#define FILETIME_1970 0x019db1ded53e8000 +#define HECTONANOSECONDS 10000000ui64 + +LONGLONG PerfFrequency = 0; +static LONGLONG LastTimerCount = 0; +static ULONGLONG LastTimerTime = 0; +static CRITICAL_SECTION TimerCritialSection; /* lock for LastTimerCount & LastTimerTime */ +static HANDLE ClockThreadHandle = NULL; +static HANDLE TimerThreadExitRequest = NULL; +LONGLONG sys_ticks = 0; /* Diagnostics */ + +extern int debug; +int +gettimeofday( + struct timeval *tv + ) +{ + /* Use the system time (roughly synchronised to the tick, and + * extrapolated using the system performance counter. + */ + + ULONGLONG Count; + LARGE_INTEGER LargeIntNowCount; + ULONGLONG Time; + ULONGLONG NowCount; + LONGLONG TicksElapsed; + LONG time_adjustment; + /* Mark a mark ASAP. The latency to here should + * be reasonably deterministic + */ + if (!QueryPerformanceCounter(&LargeIntNowCount)) { + msyslog(LOG_ERR, "QueryPeformanceCounter failed: %m"); + exit(1); + } + NowCount = LargeIntNowCount.QuadPart; + + /* Get base time we are going to extrapolate from + */ + + EnterCriticalSection(&TimerCritialSection); + Count = LastTimerCount; + Time = LastTimerTime; + LeaveCriticalSection(&TimerCritialSection); + + /* Calculate when now is. + * + * Result = LastTimerTime + (NowCount - LastTimerCount) / PerfFrequency + */ + if (NowCount >= Count) { + TicksElapsed = NowCount - Count; /* linear progression of ticks */ + } + else { + TicksElapsed = NowCount + 1 + ~Count; /* tick counter has wrapped around - I don't think this will ever happen*/ + msyslog(LOG_INFO, "Wraparound %m"); + + } + + if (TicksElapsed < 0) { + TicksElapsed = 5000; // go for the middle for now + msyslog(LOG_INFO, "Negtix %m"); + + } + /* Calculate the new time (in 100's of nano-seconds) + */ + time_adjustment = (long) ((TicksElapsed * HECTONANOSECONDS) / PerfFrequency); + Time += time_adjustment; + + /* Convert the hecto-nano second time to tv format + */ + Time -= FILETIME_1970; + tv->tv_sec = (LONG) ( Time / 10000000ui64); + tv->tv_usec = (LONG) (( Time % 10000000ui64) / 10); + return 0; +} + + +static void CALLBACK +TimerApcFunction( + LPVOID lpArgToCompletionRoutine, + DWORD dwTimerLowValue, + DWORD dwTimerHighValue + ) +{ + (void) lpArgToCompletionRoutine; /* not used */ + sys_ticks++; + if (TryEnterCriticalSection(&TimerCritialSection)) { + QueryPerformanceCounter((LARGE_INTEGER *) &LastTimerCount); + LastTimerTime = ((ULONGLONG) dwTimerHighValue << 32) + + (ULONGLONG) dwTimerLowValue; + LeaveCriticalSection(&TimerCritialSection); + } +} + + +DWORD WINAPI ClockThread(void *arg) +{ + LARGE_INTEGER DueTime; + HANDLE WaitableTimerHandle = CreateWaitableTimer(NULL, FALSE, NULL); + + (void) arg; /* not used */ + /* Reset the Clock to a reasonable increment */ + SetSystemTimeAdjustment(PRESET_TICK, FALSE); + + if (WaitableTimerHandle != NULL) { + DueTime.QuadPart = 0i64; + if (SetWaitableTimer(WaitableTimerHandle, &DueTime, 5L /* ms */, TimerApcFunction, &WaitableTimerHandle, FALSE) != NO_ERROR) { + for(;;) { + if (WaitForSingleObjectEx(TimerThreadExitRequest, INFINITE, TRUE) == WAIT_OBJECT_0) { + break; /* we've been asked to exit */ + } + } + } + CloseHandle(WaitableTimerHandle); + WaitableTimerHandle = NULL; + } + return 0; +} + +static void StartClockThread(void) +{ + DWORD tid; + FILETIME StartTime; + LARGE_INTEGER Freq = { 0, 0 }; + + /* get the performance counter freq*/ + if (QueryPerformanceFrequency(&Freq)) { + PerfFrequency = Freq.QuadPart; + } + + /* init variables with the time now */ + GetSystemTimeAsFileTime(&StartTime); + LastTimerTime = (((ULONGLONG) StartTime.dwHighDateTime) << 32) + (ULONGLONG) StartTime.dwLowDateTime; + + /* init sync objects */ + InitializeCriticalSection(&TimerCritialSection); + TimerThreadExitRequest = CreateEvent(NULL, FALSE, FALSE, NULL); + ClockThreadHandle = CreateThread(NULL, 0, ClockThread, NULL, 0, &tid); + if (ClockThreadHandle != NULL) { + /* remober the thread priority is only within the process class */ + if (!SetThreadPriority(ClockThreadHandle, THREAD_PRIORITY_TIME_CRITICAL)) { + printf("Error setting thread priority\n"); + } + } +} + +static void StopClockThread(void) +{ + if (SetEvent(TimerThreadExitRequest) && + WaitForSingleObject(ClockThreadHandle, 10000L) == 0) { + CloseHandle(TimerThreadExitRequest); + TimerThreadExitRequest = NULL; + + CloseHandle(ClockThreadHandle); + ClockThreadHandle = NULL; + + DeleteCriticalSection(&TimerCritialSection); + } +} + +typedef void (__cdecl *CRuntimeFunction)(void); + +#pragma data_seg(".CRT$XIY") + CRuntimeFunction _StartClockThread = StartClockThread; +#pragma data_seg(".CRT$XTY") + CRuntimeFunction _StopClockThread = StopClockThread; +#pragma data_seg() /* reset */ + + +int +ntp_set_tod( + struct timeval *tv, + void *tzp + ) +{ + SYSTEMTIME st; + struct tm *gmtm; + long x = tv->tv_sec; + long y = tv->tv_usec; + (void) tzp; + + gmtm = gmtime((const time_t *) &x); + st.wSecond = (WORD) gmtm->tm_sec; + st.wMinute = (WORD) gmtm->tm_min; + st.wHour = (WORD) gmtm->tm_hour; + st.wDay = (WORD) gmtm->tm_mday; + st.wMonth = (WORD) (gmtm->tm_mon + 1); + st.wYear = (WORD) (gmtm->tm_year + 1900); + st.wDayOfWeek = (WORD) gmtm->tm_wday; + st.wMilliseconds = (WORD) (y / 1000); + + if (!SetSystemTime(&st)) { + msyslog(LOG_ERR, "SetSystemTime failed: %m\n"); + return -1; + } + return 0; +} + diff --git a/ports/winnt/libntp/transmitbuff.c b/ports/winnt/libntp/transmitbuff.c new file mode 100644 index 000000000..0c5244e63 --- /dev/null +++ b/ports/winnt/libntp/transmitbuff.c @@ -0,0 +1,139 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include "ntp_machine.h" +#include "ntp_fp.h" +#include "ntp_stdlib.h" +#include "ntp_syslog.h" + +#include "transmitbuff.h" + +extern int debug; +/* + * transmitbuf memory management + */ +#define TRANSMIT_INIT 10 /* 10 buffers initially */ +#define TRANSMIT_LOWAT 3 /* when we're down to three buffers get more */ +#define TRANSMIT_INC 5 /* get 5 more at a time */ +#define TRANSMIT_TOOMANY 40 /* this is way too many buffers */ + +/* + * Memory allocation + */ +static volatile u_long full_transmitbufs = 0; /* number of transmitbufs on fulllist */ +static volatile u_long free_transmitbufs = 0; /* number of transmitbufs on freelist */ + +static struct transmitbuf *volatile freelist = NULL; /* free buffers */ +static struct transmitbuf *volatile fulllist = NULL; /* lifo buffers with data */ +static struct transmitbuf *volatile beginlist = NULL; /* fifo buffers with data */ + +static u_long total_transmitbufs = 0; /* total transmitbufs currently in use */ +static u_long lowater_additions = 0; /* number of times we have added memory */ + +static struct transmitbuf initial_bufs[TRANSMIT_INIT]; /* initial allocation */ + + +#if defined(HAVE_SIGNALED_IO) +# define TRANSMIT_BLOCK_IO() BLOCKIO() +# define TRANSMIT_UNBLOCK_IO() UNBLOCKIO() +#elif defined(HAVE_IO_COMPLETION_PORT) +static CRITICAL_SECTION TransmitCritSection; +# define TRANSMIT_BLOCK_IO() EnterCriticalSection(&TransmitCritSection) +# define TRANSMIT_UNBLOCK_IO() LeaveCriticalSection(&TransmitCritSection) +#else +# define TRANSMIT_BLOCK_IO() +# define TRANSMIT_UNBLOCK_IO() +#endif + + +static void +initialise_buffer(struct transmitbuf *buff) +{ + memset((char *) buff, 0, sizeof(struct transmitbuf)); + +#if defined HAVE_IO_COMPLETION_PORT + buff->iocompletioninfo.overlapped.hEvent = CreateEvent(NULL, FALSE,FALSE, NULL); + buff->wsabuf.len = 0; + buff->wsabuf.buf = (char *) &buff->pkt; +#endif +} + + +extern void +init_transmitbuff(void) +{ + int i; + /* + * Init buffer free list and stat counters + */ + freelist = 0; + for (i = 0; i < TRANSMIT_INIT; i++) + { + initialise_buffer(&initial_bufs[i]); + initial_bufs[i].next = (struct transmitbuf *) freelist; + freelist = &initial_bufs[i]; + } + + fulllist = 0; + free_transmitbufs = total_transmitbufs = TRANSMIT_INIT; + full_transmitbufs = lowater_additions = 0; + +#if defined(HAVE_IO_COMPLETION_PORT) + InitializeCriticalSection(&TransmitCritSection); +#endif +} + + +static void +create_buffers(void) +{ + register struct transmitbuf *buf; + int i; + + buf = (struct transmitbuf *) + emalloc(TRANSMIT_INC*sizeof(struct transmitbuf)); + for (i = 0; i < TRANSMIT_INC; i++) + { + initialise_buffer(buf); + buf->next = (struct transmitbuf *) freelist; + freelist = buf; + buf++; + } + + free_transmitbufs += TRANSMIT_INC; + total_transmitbufs += TRANSMIT_INC; + lowater_additions++; +} + + +extern void +free_transmit_buffer( + struct transmitbuf *rb + ) +{ + TRANSMIT_BLOCK_IO(); + rb->next = freelist; + freelist = rb; + free_transmitbufs++; + TRANSMIT_UNBLOCK_IO(); +} + + +extern struct transmitbuf * +get_free_transmit_buffer(void) +{ + struct transmitbuf * buffer = NULL; + TRANSMIT_BLOCK_IO(); + if (free_transmitbufs <= 0) { + create_buffers(); + } + buffer = freelist; + freelist = buffer->next; + buffer->next = NULL; + --free_transmitbufs; + TRANSMIT_UNBLOCK_IO(); + return buffer; +} + diff --git a/ports/winnt/ntp.dsw b/ports/winnt/ntp.dsw new file mode 100644 index 000000000..0af1734ff --- /dev/null +++ b/ports/winnt/ntp.dsw @@ -0,0 +1,148 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "instsrv"=".\instsrv\Instsrv.dsp" - Package Owner=<4> + +Package=<5> +{{{ + begin source code control + "$/ntp-4.0.94b/ports/winnt/instsrv", ASCAAAAA + ..\..\..\ntp-4.0.94\ports\winnt\instsrv + end source code control +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "libntp"=".\libntp\libntp.dsp" - Package Owner=<4> + +Package=<5> +{{{ + begin source code control + "$/ntp-4.0.94b/ports/winnt/libntp", UJHAAAAA + .\libntp + end source code control +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "ntpd"=".\ntpd\ntpd.dsp" - Package Owner=<4> + +Package=<5> +{{{ + begin source code control + "$/ntp-4.0.94b/ports/winnt/ntpd", DKHAAAAA + .\ntpd + end source code control +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name libntp + End Project Dependency +}}} + +############################################################################### + +Project: "ntpdate"=".\ntpdate\ntpdate.dsp" - Package Owner=<4> + +Package=<5> +{{{ + begin source code control + "$/ntp-4.0.94b/ports/winnt/ntpdate", JKHAAAAA + .\ntpdate + end source code control +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name libntp + End Project Dependency +}}} + +############################################################################### + +Project: "ntpdc"=".\ntpdc\ntpdc.dsp" - Package Owner=<4> + +Package=<5> +{{{ + begin source code control + "$/ntp-4.0.94b/ports/winnt/ntpdc", LKHAAAAA + .\ntpdc + end source code control +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name libntp + End Project Dependency +}}} + +############################################################################### + +Project: "ntpq"=".\ntpq\ntpq.dsp" - Package Owner=<4> + +Package=<5> +{{{ + begin source code control + "$/ntp-4.0.94b/ports/winnt/ntpq", NKHAAAAA + .\ntpq + end source code control +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name libntp + End Project Dependency +}}} + +############################################################################### + +Project: "ntptrace"=".\ntptrace\ntptrace.dsp" - Package Owner=<4> + +Package=<5> +{{{ + begin source code control + "$/ntp-4.0.94b/ports/winnt/ntptrace", PKHAAAAA + .\ntptrace + end source code control +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name libntp + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ + begin source code control + "$/ntp-4.0.94b/ports/winnt", WIHAAAAA + . + end source code control +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/ports/winnt/ntpd/ntp_iocompletionport.c b/ports/winnt/ntpd/ntp_iocompletionport.c new file mode 100644 index 000000000..f451f3a0f --- /dev/null +++ b/ports/winnt/ntpd/ntp_iocompletionport.c @@ -0,0 +1,385 @@ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#if defined (HAVE_IO_COMPLETION_PORT) + +#include +#include +#include +#include "ntp_stdlib.h" +#include "syslog.h" +#include "ntp_machine.h" +#include "ntp_fp.h" +#include "ntp.h" +#include "ntpd.h" +#include "ntp_refclock.h" +#include "ntp_iocompletionport.h" +#include "transmitbuff.h" + + +static HANDLE hIoCompletionPort = NULL; +extern int debug; + +static int +OnExitRequest(DWORD Key, struct IoCompletionInfo *Info, DWORD Bytes) +{ + (void) Info; + (void) Bytes; + (void) Key; + return 0; /* auto-fail to request an exit */ +} + +static IoCompletionInfo ExitRequest; +/* This function will add an entry to the I/O completion port + * that will signal the I/O thread to exit (gracefully) + */ +static void +signal_io_completion_port_exit() +{ + ExitRequest.iofunction = OnExitRequest; + if (!PostQueuedCompletionStatus(hIoCompletionPort, 0, 0, &ExitRequest.overlapped)) { + msyslog(LOG_ERR, "Can't request service thread to exit: %m"); + exit(1); + } +} + + + + +static void __cdecl +iocompletionthread(void *NotUsed) +{ + DWORD BytesTransferred = 0; + DWORD Key = 0; + IoCompletionInfo * Overlapped = NULL; + (void) NotUsed; + + /* Set the thread priority high enough so I/O will + * preempt normal recv packet processing, but not + * higher than the timer sync thread. + */ + if (!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL)) { + msyslog(LOG_ERR, "Can't set thread priority: %m"); + } + + for (;;) { + while (GetQueuedCompletionStatus(hIoCompletionPort, &BytesTransferred, &Key, & (LPOVERLAPPED) Overlapped, INFINITE)) { + if (Overlapped != NULL && Overlapped->iofunction != NULL) { + if (!Overlapped->iofunction(Key, Overlapped, BytesTransferred)) { + return ; /* fail */ + } + + } + } + } +} + +/* Create/initialise the I/O creation port + */ +extern void +init_io_completion_port( + void + ) +{ + hIoCompletionPort = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); + if (hIoCompletionPort == NULL) { + msyslog(LOG_ERR, "Can't create I/O completion port: %m"); + exit(1); + } + + + /* Have up to 4 threads servicing I/O + */ + _beginthread(iocompletionthread, 0, NULL); + _beginthread(iocompletionthread, 0, NULL); + _beginthread(iocompletionthread, 0, NULL); + _beginthread(iocompletionthread, 0, NULL); +} + + +extern void +uninit_io_completion_port( + void + ) +{ + if (hIoCompletionPort != NULL) { + /* Get each of the service threads to exit + */ + signal_io_completion_port_exit(); + signal_io_completion_port_exit(); + signal_io_completion_port_exit(); + signal_io_completion_port_exit(); + } +} + + + + +static int +OnIoReadComplete(DWORD i, struct IoCompletionInfo *Info, DWORD Bytes) +{ + struct recvbuf *buff = NULL; + struct refclockio * rio = (struct refclockio *) i; + + /* Convert the overlapped pointer back to a recvbuf pointer. + */ + buff = (struct recvbuf *) ( ((char *) Info) - offsetof(struct recvbuf, iocompletioninfo)); + + if (Bytes > 0) { /* ignore 0 bytes read due to timeout's */ + get_systime(&buff->recv_time); + buff->recv_length = (int) Bytes; + buff->receiver = rio->clock_recv; + buff->dstadr = NULL; + buff->recv_srcclock = rio->srcclock; + add_full_recv_buffer(buff); + buff = NULL; + } + + /* If we used the last buffer, then get another + */ + if (buff == NULL) { + buff = get_free_recv_buffer(); + } + + if (buff != NULL) { + buff->fd = rio->fd; + buff->iocompletioninfo.iofunction = OnIoReadComplete; + if (!ReadFile((HANDLE) buff->fd, &buff->recv_buffer, sizeof(buff->recv_buffer), NULL, &buff->iocompletioninfo.overlapped)) { + DWORD Result = GetLastError(); + switch (Result) { + } + } + } + return 1; +} + + + + +/* Add a reference clock data structures I/O handles to + * the I/O completion port + */ +int +io_completion_port_add_clock_io( + struct refclockio *rio + ) +{ + struct recvbuf *buff = NULL; + if (NULL == CreateIoCompletionPort((HANDLE) rio->fd, hIoCompletionPort, (DWORD) rio, 0)) { + msyslog(LOG_ERR, "Can't add COM port to i/o completion port: %m"); + return 1; + } + + if (NULL != (buff = get_free_recv_buffer())) { + buff->fd = rio->fd; + buff->iocompletioninfo.iofunction = OnIoReadComplete; + if (!ReadFile((HANDLE) buff->fd, &buff->recv_buffer, sizeof(buff->recv_buffer), NULL, &buff->iocompletioninfo.overlapped)) { + DWORD Result = GetLastError(); + switch (Result) { + } + } + } + else return 1; + return 0; +} + + + + + + + +static int +OnSocketRecv(DWORD i, struct IoCompletionInfo *Info, DWORD Bytes) +{ + struct recvbuf *buff = NULL; + struct interface * inter = (struct interface *) i; + + /* Convert the overlapped pointer back to a recvbuf pointer. + */ + buff = (struct recvbuf *) ( ((char *) Info) - offsetof(struct recvbuf, iocompletioninfo)); + + buff->recv_length = (int) Bytes; + get_systime(&buff->recv_time); + buff->receiver = receive; + buff->dstadr = inter; + if (debug > 3) { + char strbuffer[256]; + DWORD strlength = sizeof(strbuffer); + if (0 == WSAAddressToString((struct sockaddr *) &buff->recv_srcadr, buff->AddressLength, NULL, strbuffer, &strlength)) { +#ifdef DEBUG + printf("Received %d bytes from %s\n", Bytes, strbuffer); +#endif + } + + } + + add_full_recv_buffer(buff); + buff = NULL; + + if (NULL != (buff = get_free_recv_buffer())) { + DWORD BytesReceived = 0; + DWORD Flags = 0; + buff->iocompletioninfo.iofunction = OnSocketRecv; + buff->fd = inter->fd; + buff->AddressLength = sizeof(struct sockaddr_in); + if (SOCKET_ERROR == WSARecvFrom(buff->fd, &buff->wsabuff, 1, + &BytesReceived, &Flags, + (struct sockaddr *) &buff->recv_srcadr, &buff->AddressLength, + &buff->iocompletioninfo.overlapped, NULL)) { + DWORD Result = WSAGetLastError(); + switch (Result) { + case NO_ERROR : + case WSA_IO_INCOMPLETE : + case WSA_WAIT_IO_COMPLETION : + case WSA_IO_PENDING : + + break ; + + case WSAENOTSOCK : + msyslog(LOG_ERR, "Can't read from socket, because it isn't a socket: %m"); + break; + + case WSAEFAULT : + msyslog(LOG_ERR, "The buffers parameter is incorrect: %m"); + break; + + default : + /* nop */ ; + + } + } + } + else return 0; + return 1; +} + + + + + +/* Add a socket handle to the I/O completion port, and send an I/O + * read request to the kernel. + * + * Note: As per the winsock documentation, we use WSARecvFrom. Using + * ReadFile() is less efficient. + */ +extern void +io_completion_port_add_socket(struct interface *inter) +{ + struct recvbuf *buff = NULL; + + if (NULL == CreateIoCompletionPort((HANDLE) inter->fd, hIoCompletionPort, (DWORD) inter, 0)) { + msyslog(LOG_ERR, "Can't add socket to i/o completion port: %m"); + exit(1); + } + + if (NULL != (buff = get_free_recv_buffer())) { + DWORD BytesReceived = 0; + DWORD Flags = 0; + buff->iocompletioninfo.iofunction = OnSocketRecv; + buff->fd = inter->fd; + buff->AddressLength = sizeof(struct sockaddr_in); + buff->receiver = receive; + + if (SOCKET_ERROR == WSARecvFrom(buff->fd, &buff->wsabuff, 1, + &BytesReceived, &Flags, + (struct sockaddr *) &buff->recv_srcadr, &buff->AddressLength, + &buff->iocompletioninfo.overlapped, NULL)) { + DWORD Result = WSAGetLastError(); + switch (Result) { + case NO_ERROR : + case WSA_IO_INCOMPLETE : + case WSA_WAIT_IO_COMPLETION : + case WSA_IO_PENDING : + + break ; + + case WSAENOTSOCK : + msyslog(LOG_ERR, "Can't read from socket, because it isn't a socket: %m"); + break; + + case WSAEFAULT : + msyslog(LOG_ERR, "The buffers parameter is incorrect: %m"); + break; + + default : + /* nop */ ; + + } + } + } + +} + + +static int +OnSendToComplete(DWORD Key, struct IoCompletionInfo *Info, DWORD Bytes) +{ + transmitbuf *buff = NULL; + (void) Bytes; + (void) Key; + + buff = (struct transmitbuf *) ( ((char *) Info) - offsetof(struct transmitbuf, iocompletioninfo)); + + free_transmit_buffer(buff); + return 1; +} + +DWORD +io_completion_port_sendto( + struct interface *inter, + struct pkt *pkt, + int len, + struct sockaddr_in* dest) +{ + transmitbuf *buff = NULL; + DWORD Result = ERROR_SUCCESS; + + if (len <= sizeof(buff->pkt)) { + buff = get_free_transmit_buffer(); + if (buff != NULL) { + DWORD BytesSent = 0; + DWORD Flags = 0; + + memcpy(&buff->pkt, pkt, len); + buff->wsabuf.buf = buff->pkt; + buff->wsabuf.len = len; + + + buff->iocompletioninfo.iofunction = OnSendToComplete; + Result = WSASendTo(inter->fd, &buff->wsabuf, 1, &BytesSent, Flags, (struct sockaddr *) dest, sizeof(struct sockaddr_in), &buff->iocompletioninfo.overlapped, NULL); + if (debug > 2) { + char strbuffer[256]; + DWORD strlength = sizeof(strbuffer); + if (0 == WSAAddressToString((LPSOCKADDR) dest, sizeof(*dest), NULL, strbuffer, &strlength)) { +#ifdef DEBUG + printf("SendTo - %d bytes to %s : %d\n", len, strbuffer, Result); +#endif + } + } + + } + else { +#ifdef DEBUG + printf("No more transmit buffers left - data discarded\n"); +#endif + } + } + else { +#ifdef DEBUG + printf("Packet too large\n"); +#endif + exit(1); + } + return Result; +} + + + +#else + static int NonEmptyCompilationUnit; +#endif + diff --git a/ports/winnt/ntpd/ntpd.dsp b/ports/winnt/ntpd/ntpd.dsp new file mode 100644 index 000000000..583adbd25 --- /dev/null +++ b/ports/winnt/ntpd/ntpd.dsp @@ -0,0 +1,600 @@ +# Microsoft Developer Studio Project File - Name="ntpd" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=ntpd - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ntpd.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ntpd.mak" CFG="ntpd - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ntpd - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "ntpd - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName ""$/ntp/dev/ports/winnt/ntpd", JWBAAAAA" +# PROP Scc_LocalPath "." +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ntpd - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "ntpd - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /FI"windows.h" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /FR /YX"windows.h" /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "ntpd - Win32 Release" +# Name "ntpd - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\ntpd\map_vme.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_config.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_control.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_filegen.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_intres.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_io.c +# End Source File +# Begin Source File + +SOURCE=.\ntp_iocompletionport.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_loopfilter.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_monitor.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_peer.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_proto.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_refclock.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_request.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_restrict.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_timer.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntp_util.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\ntpd.c +# End Source File +# Begin Source File + +SOURCE=.\win32_io.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\include\ascii.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\binio.h +# End Source File +# Begin Source File + +SOURCE=..\include\config.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ieee754io.h +# End Source File +# Begin Source File + +SOURCE=..\include\netinet\in.h +# End Source File +# Begin Source File + +SOURCE=..\include\arpa\inet.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\jupiter.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\l_stdlib.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\libntp\log.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\mbg_gps166.h +# End Source File +# Begin Source File + +SOURCE=..\include\netdb.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_calendar.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_control.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_filegen.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_fp.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_if.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_io.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_machine.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_malloc.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_proto.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_refclock.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_request.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_select.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_stdlib.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_string.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_syslog.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_timer.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_types.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntp_unixtime.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\ntpd.h +# End Source File +# Begin Source File + +SOURCE=..\include\sys\param.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\include\recvbuff.h +# End Source File +# Begin Source File + +SOURCE=..\include\sys\socket.h +# End Source File +# Begin Source File + +SOURCE=..\include\syslog.h +# End Source File +# Begin Source File + +SOURCE=..\include\transmitbuff.h +# End Source File +# Begin Source File + +SOURCE=..\include\sys\wait.h +# End Source File +# Begin Source File + +SOURCE=..\include\win32_io.h +# End Source File +# End Group +# Begin Group "Generated Files" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\libntp\messages.rc +# End Source File +# Begin Source File + +SOURCE=..\libntp\MSG00001.bin +# End Source File +# Begin Source File + +SOURCE=.\version.c +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=..\libntp\messages.mc +# End Source File +# End Group +# Begin Group "Reference Clock" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_acts.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_arbiter.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_arc.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_as2201.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_atom.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_bancomm.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_chu.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_conf.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_datum.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_dumbclock.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_gpsvme.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_heath.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_hpgps.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_irig.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_jupiter.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_leitch.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_local.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_msfees.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_mx4200.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_nmea.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_oncore.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_palisade.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_palisade.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_parse.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_pst.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_ptbacts.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_shm.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_tpro.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_trak.c +# End Source File +# Begin Source File + +SOURCE=.\refclock_trimbledc.c + +!IF "$(CFG)" == "ntpd - Win32 Release" + +!ELSEIF "$(CFG)" == "ntpd - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\refclock_trimbledc.h + +!IF "$(CFG)" == "ntpd - Win32 Release" + +!ELSEIF "$(CFG)" == "ntpd - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_true.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_usno.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpd\refclock_wwvb.c +# End Source File +# End Group +# Begin Group "Parse Lib" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\..\..\libparse\clk_computime.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\clk_dcf7000.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\clk_hopf6021.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\clk_meinberg.c + +!IF "$(CFG)" == "ntpd - Win32 Release" + +!ELSEIF "$(CFG)" == "ntpd - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\clk_rawdcf.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\clk_rcc8000.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\clk_schmid.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\clk_trimtaip.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\clk_trimtsip.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\data_mbg.c +# PROP Exclude_From_Build 1 +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\parse.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\libparse\parse_conf.c +# End Source File +# End Group +# Begin Source File + +SOURCE=..\..\..\configure + +!IF "$(CFG)" == "ntpd - Win32 Release" + +USERDEP__CONFI="..\scripts\mkver.bat" +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntpd + +# End Custom Build + +!ELSEIF "$(CFG)" == "ntpd - Win32 Debug" + +USERDEP__CONFI="..\scripts\mkver.bat" +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntpd + +# End Custom Build + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\scripts\mkver.bat +# PROP Exclude_From_Build 1 +# End Source File +# End Target +# End Project diff --git a/ports/winnt/ntpd/ntpd.plg b/ports/winnt/ntpd/ntpd.plg new file mode 100644 index 000000000..4b60afa5c --- /dev/null +++ b/ports/winnt/ntpd/ntpd.plg @@ -0,0 +1,16 @@ + + +
+

Build Log

+

+--------------------Configuration: ntpd - Win32 Debug-------------------- +

+

Command Lines

+ + + +

Results

+ntpd.exe - 0 error(s), 0 warning(s) +
+ + diff --git a/ports/winnt/ntpd/refclock_trimbledc.c b/ports/winnt/ntpd/refclock_trimbledc.c new file mode 100644 index 000000000..3eaa09d39 --- /dev/null +++ b/ports/winnt/ntpd/refclock_trimbledc.c @@ -0,0 +1,289 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#if defined(REFCLOCK) && defined(CLOCK_TRIMBLEDC) + +#include "refclock_trimbledc.h" +extern int debug; + +static int trimbledc_start (int, struct peer *); +static void trimbledc_shutdown (int, struct peer *); +static void trimbledc_receive (struct recvbuf *); +static void trimbledc_poll (int, struct peer *); +static void trimbledc_io (char, int, unsigned char *, l_fp*, struct trimbledc_unit *); + + +/* + * Transfer vector + */ +struct refclock refclock_trimbledc = { + trimbledc_start, /* start up driver */ + trimbledc_shutdown, /* shut down driver */ + trimbledc_poll, /* transmit poll message */ + noentry, /* not used */ + noentry, /* initialize driver (not used) */ + noentry, /* not used */ + NOFLAGS /* not used */ +}; + + +/* + * trimbledc_start - open the devices and initialize data for processing + */ +static int +trimbledc_start ( + int unit, + struct peer *peer + ) +{ + register struct trimbledc_unit *up; + struct refclockproc *pp; + int fd; + char gpsdev[20]; + + struct termios tio; +#ifdef SYS_WINNT + (void) sprintf(gpsdev, DEVICE, unit); +#else + (void) sprintf(gpsdev, DEVICE, unit + 1); +#endif + /* + * Open serial port. + */ + fd = refclock_open(gpsdev, SPEED232, LDISC_RAW); + if (fd == -1) { + msyslog(LOG_ERR,"Trimble (%d) start: open %s failed: %m", + unit, gpsdev); + return 0; + } + + msyslog(LOG_NOTICE, "Trimble (%d) fd: %d dev: %s", unit, fd, gpsdev); + + if (tcgetattr(fd, &tio) < 0) { + msyslog(LOG_ERR, + "Trimble (%d) tcgetattr(fd, &tio): %m",unit); + return (0); + } + + tio.c_cflag |= (PARENB|PARODD); + tio.c_iflag &= ~ICRNL; + + if (tcsetattr(fd, TCSANOW, &tio) == -1) { + msyslog(LOG_ERR, "Trimble (%d) tcsetattr(fd, &tio): %m",unit); + return 0; + } + + /* + * Allocate and initialize unit structure + */ + if (!(up = (struct trimbledc_unit *) + emalloc(sizeof(struct trimbledc_unit)))) { + (void) close(fd); + return (0); + } + memset((char *)up, 0, sizeof(struct trimbledc_unit)); + + pp = peer->procptr; + pp->io.clock_recv = trimbledc_receive; + pp->io.srcclock = (caddr_t)peer; + pp->io.datalen = 0; + pp->io.fd = fd; + + if (!io_addclock(&pp->io)) { + (void) close(fd); + free(up); + return (0); + } + + /* + * Initialize miscellaneous variables + */ + pp->unitptr = (caddr_t)up; + pp->clockdesc = DESCRIPTION; + + peer->precision = PRECISION; + peer->sstclktype = CTL_SST_TS_UHF; + peer->minpoll = TRIMBLEDC_MINPOLL; + peer->maxpoll = TRIMBLEDC_MAXPOLL; + memcpy((char *)&pp->refid, REFID, 4); + + up->leap_status = 0; + up->unit = unit; + up->io_ptr[0] = up->io_ptr[1] = 0; + + return 1; +} + + +/* + * trimbledc_shutdown - shut down the clock + */ +static void +trimbledc_shutdown ( + int unit, + struct peer *peer + ) +{ + register struct trimbledc_unit *up; + struct refclockproc *pp; + pp = peer->procptr; + up = (struct trimbledc_unit *)pp->unitptr; + io_closeclock(&pp->io); + free(up); +} + + + +/* + * TSIP_decode - decode the TSIP data packets + */ +static int +trimbledc_decode ( + struct peer *peer + ) +{ +#ifdef DEBUG + double lat, lon, alt; +#endif + int st, ts; + long secint; + double secs; + double secfrac; + unsigned short event = 0; + + register struct trimbledc_unit *up; + struct refclockproc *pp; + + pp = peer->procptr; + up = (struct trimbledc_unit *)pp->unitptr; + + /* + * Check the time packet, decode its contents. + * If the timecode has invalid length or is not in + * proper format, declare bad format and exit. + */ + + if (up->rpt_buf[0] ==0x41) + /* standard time packet - GPS time and GPS week number */ + return 0; + + + refclock_report(peer, CEVNT_BADREPLY); + up->polled = -1; +#ifdef DEBUG + printf("TRIMBLEDC_decode: unit %d: bad packet %02x-%02x event %d len %d\n", + up->unit, up->rpt_buf[0] & 0xff, mb(0) & 0xff, + event, up->rpt_cnt); +#endif + return 0; +} + +/* + * trimbledc__receive - receive data from the serial interface + */ + +static void +trimbledc_receive ( + struct recvbuf *rbufp + ) +{ + register struct trimbledc_unit *up; + struct refclockproc *pp; + struct peer *peer; + + /* + * Initialize pointers and read the timecode and timestamp. + */ + peer = (struct peer *)rbufp->recv_srcclock; + pp = peer->procptr; + up = (struct trimbledc_unit *)pp->unitptr; + + + for (;FALSE;) { + trimbledc_io(pp->sloppyclockflag & CLK_FLAG2, rbufp->recv_length, + &rbufp->recv_buffer, &pp->lastrec, up); + + + + + (void) sprintf(pp->a_lastcode,"%4d %03d %02d:%02d:%02d.%06ld", + pp->year,pp->day,pp->hour,pp->minute, pp->second,pp->usec); + pp->lencode = 24; + + if (!refclock_process(pp)) { + refclock_report(peer, CEVNT_BADTIME); + +#ifdef DEBUG + printf("trimbledc_receive: unit %d: refclock_process failed!\n", + up->unit); +#endif + continue; + } + + record_clock_stats(&peer->srcadr, pp->a_lastcode); + +#ifdef DEBUG + if (debug) + printf("trimbledc_receive: unit %d: %s\n", + up->unit, prettydate(&pp->lastrec)); +#endif + + refclock_receive(peer); + } +} + + +/* + * trimbledc_poll - called by the transmit procedure + * + */ +static void +trimbledc_poll ( + int unit, + struct peer *peer + ) +{ + struct trimbledc_unit *up; + struct refclockproc *pp; + + pp = peer->procptr; + up = (struct trimbledc_unit *)pp->unitptr; + + pp->polls++; + if (up->polled > 0) /* last reply never arrived or error */ + refclock_report(peer, CEVNT_TIMEOUT); + + up->polled = 2; /* synchronous packet + 1 event */ + +#ifdef DEBUG + if (debug) + printf("trimbledc_poll: unit %d: polling %s\n", unit, + (pp->sloppyclockflag & CLK_FLAG2) ? + "synchronous packet" : "event"); +#endif + + if (pp->sloppyclockflag & CLK_FLAG2) + return; /* using synchronous packet input */ + +// if (HW_poll(pp) < 0) + refclock_report(peer, CEVNT_FAULT); +} + + +static void +trimbledc_io ( + char noevents, + int buflen, /* bytes in buffer to process */ + unsigned char *bufp, /* receive buffer */ + l_fp* t_in, /* receive time stamp */ + struct trimbledc_unit *up /* pointer to unit data structure */ + ) +{ + +} + + + + +#endif /* REFCLOCK */ diff --git a/ports/winnt/ntpd/refclock_trimbledc.h b/ports/winnt/ntpd/refclock_trimbledc.h new file mode 100644 index 000000000..f53ff7f7d --- /dev/null +++ b/ports/winnt/ntpd/refclock_trimbledc.h @@ -0,0 +1,97 @@ +/* + * refclock_trimbledc - clock driver for the Trimble Data Collector compatible + * GPS receivers (4000, 4700, 4800, 7400, ...) + * + * Greg Brackley (greg@trimble.co.nz) + */ + +#ifndef _REFCLOCK_TRIMBLEDC_H +#define _REFCLOCK_TRIMBLEDC_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#if defined HAVE_SYS_MODEM_H +#include +#define TIOCMSET MCSETA +#define TIOCMGET MCGETA +#define TIOCM_RTS MRTS +#endif + +#ifdef HAVE_TERMIOS_H +#include +#endif + +#ifdef HAVE_SYS_IOCTL_H +#include +#endif + +#include "ntpd.h" +#include "ntp_io.h" +#include "ntp_control.h" +#include "ntp_refclock.h" +#include "ntp_unixtime.h" +#include "ntp_stdlib.h" + +/* + * GPS Definitions + */ +#define DESCRIPTION "Trimble Data Collector GPS" /* Long name */ +#define PRECISION (-20) /* precision assumed (about 1 us) */ +#define REFID "GPS\0" /* reference ID */ +#define NSAMPLES 1 +#define NSKEEP 1 +#define TRIMBLEDC_MINPOLL 4 +#define TRIMBLEDC_MAXPOLL 4 + +/* + * I/O Definitions + */ +#if !defined SYS_WINNT +#define DEVICE "/dev/trimbledc%d" /* device name and unit */ +#else +#define DEVICE "\\\\.\\COM%d" /* device name and unit */ +#endif +#define SPEED232 B9600 /* uart speed (9600 baud) */ + +#define POLL_AVG 10 /* number of samples to average code delay */ +#define DC_IO_BUFSIZE 512 /* IO buffer */ +#define DC_MAXLEN 260 /* maximum length TSIP packet */ + +/* + * Leap-Insert and Leap-Delete are encoded as follows: + * PALISADE_UTC_TIME set and PALISADE_LEAP_PENDING set: INSERT leap + * PALISADE_UTC_TIME clear and PALISADE_LEAP_PENDING set: DELETE leap + */ + +#define PALISADE_LEAP_WARNING 0x04 /* GPS Leap Warning (see ICD-200) */ +#define PALISADE_LEAP_PENDING 0x02 /* Leap Pending (24 hours) */ +#define PALISADE_UTC_TIME 0x01 /* UTC time available */ + +#define mb(_X_) (up->rpt_buf[(_X_ + 1)]) /* shortcut for buffer access */ + +/* Conversion Definitions */ +#define GPS_PI (3.1415926535898) +#define R2D (180.0/GPS_PI) + +typedef enum TrimbleDcParseState { + + TrimbleParseStateAck, + TrimbleParseStateNak, + TrimbleParseStateData, + +} TrimbleDcParseState; + +struct trimbledc_unit { + int unit; /* NTP refclock unit number */ + int polled; /* flag to detect noreplies */ + char leap_status; /* leap second flag */ + TrimbleDcParseState rpt_status; + short rpt_cnt; + char rpt_buf[DC_MAXLEN]; + char io_buf[DC_IO_BUFSIZE]; + short io_ptr[2]; /* 0 = head, 1 = tail */ +}; + +#endif /* _REFCLOCK_TRIMBLEDC_H */ diff --git a/ports/winnt/ntpd/win32_io.c b/ports/winnt/ntpd/win32_io.c new file mode 100644 index 000000000..a54205fe4 --- /dev/null +++ b/ports/winnt/ntpd/win32_io.c @@ -0,0 +1,265 @@ + +#ifdef HAVE_CONFIG_H +# include +#endif + + +#include +#include "ntp_machine.h" +#include "ntp_stdlib.h" +#include "ntp_syslog.h" +#include "ntp_fp.h" +#include "ntp.h" +#include "ntp_refclock.h" +#include "win32_io.h" + + +/* + * refclock_open - open serial port for reference clock + * + * This routine opens a serial port for I/O and sets default options. It + * returns the file descriptor if success and zero if failure. + */ +int +refclock_open( + char *dev, /* device name pointer */ + int speed, /* serial port speed (code) */ + int flags /* line discipline flags */ + ) +{ + HANDLE Handle = INVALID_HANDLE_VALUE; + COMMTIMEOUTS timeouts; + DCB dcb = {0}; + + // + // open communication port handle + // + Handle = CreateFile(dev, + GENERIC_READ | GENERIC_WRITE, + 0, // no sharing + NULL, // no security + OPEN_EXISTING, + FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, + NULL); // not template + if (Handle == INVALID_HANDLE_VALUE) { + + msyslog(LOG_ERR, "NT_COM: Device %s: CreateFile ", dev); + return -1; + } + + /* Change the input/output buffers to be large. + */ + if (!SetupComm( Handle, 8192, 4096)) { + msyslog(LOG_ERR, "NT_COM: Device %s: SetupComm ", dev); + return -1; + } + + dcb.DCBlength = sizeof(dcb); + if (!GetCommState(Handle, &dcb)) { + // Error getting current DCB settings + msyslog(LOG_ERR, "NT_COM: Device %s: GetCommState ", dev); + return -1; + } + + switch (speed) { + case B300 : dcb.BaudRate = 300; break; + case B1200 : dcb.BaudRate = 1200; break; + case B2400 : dcb.BaudRate = 2400; break; + case B4800 : dcb.BaudRate = 4800; break; + case B9600 : dcb.BaudRate = 9600; break; + case B19200 : dcb.BaudRate = 9600; break; + case B38400 : dcb.BaudRate = 38400; break; + default : + msyslog(LOG_ERR, "NT_COM: Device %s: unsupported baud rate", dev); + return -1; + } + + + dcb.ByteSize = 8; + dcb.fBinary = TRUE; + dcb.fParity = TRUE; + dcb.fOutxCtsFlow = 0; + dcb.fOutxDsrFlow = 0; + dcb.fDtrControl = DTR_CONTROL_DISABLE; + dcb.fDsrSensitivity = 0; + dcb.fTXContinueOnXoff = FALSE; + dcb.fOutX = 0; + dcb.fInX = 0; + dcb.fErrorChar = 0; + dcb.fNull = 0; + dcb.fRtsControl = RTS_CONTROL_DISABLE; // RTS_CONTROL_DISABLE; + dcb.fAbortOnError = 0; + dcb.ByteSize = 8; + dcb.StopBits = ONESTOPBIT; + dcb.Parity = NOPARITY; + dcb.ErrorChar = 0; + dcb.EvtChar = 0; + dcb.EofChar = 0; + + if (!SetCommState(Handle, &dcb)) { + msyslog(LOG_ERR, "NT_COM: Device %s: SetCommState ", dev); + return -1; + } + + timeouts.ReadIntervalTimeout = 20; + timeouts.ReadTotalTimeoutMultiplier = 0; + timeouts.ReadTotalTimeoutConstant = 60000; + timeouts.WriteTotalTimeoutMultiplier = 0; + timeouts.WriteTotalTimeoutConstant = 60000; + + // Error setting time-outs. + if (!SetCommTimeouts(Handle, &timeouts)) { + msyslog(LOG_ERR, "NT_COM: Device %s: SetCommTimeouts ", dev); + return -1; + } + + + return (int) Handle; +} + + +int +ioctl(int fd, + int cmd, + int *x) { + + if ((cmd == TIOCMSET) && (*x & TIOCM_RTS)) { + if (!EscapeCommFunction((HANDLE) fd, SETRTS)) + return -1; + } + else if ((cmd == TIOCMSET) && !(*x & TIOCM_RTS)){ + if (!EscapeCommFunction((HANDLE) fd, CLRRTS)) + return -1; + } + + return 0; +} + + +int +tcsetattr( + int fd, + int optional_actions, + const struct termios * s) +{ + DCB dcb = { 0 }; + HANDLE Handle = (HANDLE) fd; + dcb.DCBlength = sizeof(dcb); + if (!GetCommState(Handle, &dcb)) { + // Error getting current DCB settings + msyslog(LOG_ERR, "NT_COM: GetCommState "); + return FALSE; + } + + switch (max(s->c_ospeed, s->c_ispeed)) { + case B300 : dcb.BaudRate = 300; break; + case B1200 : dcb.BaudRate = 1200; break; + case B2400 : dcb.BaudRate = 9600; break; + case B4800 : dcb.BaudRate = 4800; break; + case B9600 : dcb.BaudRate = 9600; break; + case B19200 : dcb.BaudRate = 9600; break; + case B38400 : dcb.BaudRate = 38400; break; + default : + msyslog(LOG_ERR, "NT_COM: unsupported baud rate"); + return FALSE; + } + + switch (s->c_cflag & CSIZE) { + case CS5 : dcb.ByteSize = 5; break; + case CS6 : dcb.ByteSize = 6; break; + case CS7 : dcb.ByteSize = 7; break; + case CS8 : dcb.ByteSize = 8; break; + default : + msyslog(LOG_ERR, "NT_COM: unsupported word size"); + return FALSE; + } + + if (s->c_cflag & PARENB) { + dcb.fParity = TRUE; + if (s->c_cflag & PARODD) { + dcb.Parity = ODDPARITY; + } + else { + dcb.Parity = EVENPARITY; + } + } + else { + dcb.fParity = FALSE; + dcb.Parity = NOPARITY; + } + + + dcb.fOutxCtsFlow = 0; + dcb.fOutxDsrFlow = 0; + dcb.fDtrControl = DTR_CONTROL_DISABLE; + dcb.fDsrSensitivity = 0; + dcb.fOutX = 0; + dcb.fInX = 0; + dcb.fErrorChar = 0; + dcb.fNull = 0; + dcb.fRtsControl = RTS_CONTROL_DISABLE; + dcb.fAbortOnError = 0; + dcb.ErrorChar = 0; + dcb.EvtChar = 0; + dcb.EofChar = 0; + + if (!SetCommState(Handle, &dcb)) { + msyslog(LOG_ERR, "NT_COM: SetCommState "); + return FALSE; + } + return TRUE; +} + +extern int +tcgetattr( + int fd, struct termios *s) +{ + DCB dcb = { 0 }; + HANDLE Handle = (HANDLE) fd; + dcb.DCBlength = sizeof(dcb); + if (!GetCommState(Handle, &dcb)) { + // Error getting current DCB settings + msyslog(LOG_ERR, "NT_COM: GetCommState "); + return FALSE; + } + + /* Set c_ispeed & c_ospeed + */ + switch (dcb.BaudRate) { + case 300 : s->c_ispeed = s->c_ospeed = B300; break; + case 1200 : s->c_ispeed = s->c_ospeed = B1200; break; + case 2400 : s->c_ispeed = s->c_ospeed = B2400; break; + case 4800 : s->c_ispeed = s->c_ospeed = B4800; break; + case 9600 : s->c_ispeed = s->c_ospeed = B9600; break; + case 19200 : s->c_ispeed = s->c_ospeed = B19200; break; + case 38400 : s->c_ispeed = s->c_ospeed = B38400; break; + default : s->c_ispeed = s->c_ospeed = B9600; + } + + + s->c_cflag = 0; + switch (dcb.ByteSize) { + case 5 : s->c_cflag |= CS5; break; + case 6 : s->c_cflag |= CS6; break; + case 7 : s->c_cflag |= CS7; break; + case 8 : s->c_cflag |= CS8; break; + } + if (dcb.fParity) { + s->c_cflag |= PARENB; + } + switch (dcb.Parity) { + case EVENPARITY : break; + case MARKPARITY : break; + case NOPARITY : break; + case ODDPARITY : s->c_cflag |= PARODD; break; + case SPACEPARITY : break; + } + + s->c_iflag = 0; + s->c_lflag = 0; + s->c_line = 0; + s->c_oflag = 0; + + return TRUE; /* ok */ +} + diff --git a/ports/winnt/ntpdate/ntpdate.dsp b/ports/winnt/ntpdate/ntpdate.dsp new file mode 100644 index 000000000..97c1e11f0 --- /dev/null +++ b/ports/winnt/ntpdate/ntpdate.dsp @@ -0,0 +1,142 @@ +# Microsoft Developer Studio Project File - Name="ntpdate" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=ntpdate - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ntpdate.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ntpdate.mak" CFG="ntpdate - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ntpdate - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "ntpdate - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName ""$/ntp/dev/ports/winnt/ntpdate", OWBAAAAA" +# PROP Scc_LocalPath "." +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ntpdate - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "ntpdate - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# SUBTRACT LINK32 /pdb:none + +!ENDIF + +# Begin Target + +# Name "ntpdate - Win32 Release" +# Name "ntpdate - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\ntpdate\ntpdate.c +# End Source File +# Begin Source File + +SOURCE=.\version.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\ntpdate\ntpdate.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# Begin Source File + +SOURCE=..\..\..\configure + +!IF "$(CFG)" == "ntpdate - Win32 Release" + +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntpdate + +# End Custom Build + +!ELSEIF "$(CFG)" == "ntpdate - Win32 Debug" + +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntpdate + +# End Custom Build + +!ENDIF + +# End Source File +# End Target +# End Project diff --git a/ports/winnt/ntpdc/ntpdc.dsp b/ports/winnt/ntpdc/ntpdc.dsp new file mode 100644 index 000000000..fe6cc0787 --- /dev/null +++ b/ports/winnt/ntpdc/ntpdc.dsp @@ -0,0 +1,145 @@ +# Microsoft Developer Studio Project File - Name="ntpdc" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=ntpdc - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ntpdc.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ntpdc.mak" CFG="ntpdc - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ntpdc - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "ntpdc - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName ""$/ntp/dev/ports/winnt/ntpdc", SWBAAAAA" +# PROP Scc_LocalPath "." +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ntpdc - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "ntpdc - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "ntpdc - Win32 Release" +# Name "ntpdc - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\ntpdc\ntpdc.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpdc\ntpdc_ops.c +# End Source File +# Begin Source File + +SOURCE=.\version.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\ntpdc\ntpdc.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# Begin Source File + +SOURCE=..\..\..\configure + +!IF "$(CFG)" == "ntpdc - Win32 Release" + +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntpdc + +# End Custom Build + +!ELSEIF "$(CFG)" == "ntpdc - Win32 Debug" + +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntpdc + +# End Custom Build + +!ENDIF + +# End Source File +# End Target +# End Project diff --git a/ports/winnt/ntpdc/ntpdc.plg b/ports/winnt/ntpdc/ntpdc.plg new file mode 100644 index 000000000..823951fa9 --- /dev/null +++ b/ports/winnt/ntpdc/ntpdc.plg @@ -0,0 +1,2317 @@ + + +
+

Build Log

+

+--------------------Configuration: instsrv - Win32 Release-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP18.tmp" with contents +[ +/nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /I "." /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Release/Instsrv.pch" /YX"windows.h" /Fo"Release/" /Fd"Release/" /FD /c +"D:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c" +] +Creating command line "cl.exe @C:\TEMP\RSP18.tmp" +Creating temporary file "C:\TEMP\RSP19.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /pdb:"Release/Instsrv.pdb" /machine:I386 /out:"Release/Instsrv.exe" +".\Release\instsrv.obj" +] +Creating command line "link.exe @C:\TEMP\RSP19.tmp" +

Output Window

+Compiling... +instsrv.c +C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcasync.h(45) : warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses +D:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(217) : warning C4100: 'pszAppname' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(278) : warning C4057: 'initializing' : 'char *' differs in indirection to slightly different base types from 'unsigned char *' +D:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(333) : warning C4189: 'last_error' : local variable is initialized but not referenced +D:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(335) : warning C4189: 'rv' : local variable is initialized but not referenced +D:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(334) : warning C4189: 'timeout' : local variable is initialized but not referenced +D:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(440) : warning C4715: 'main' : not all control paths return a value +Linking... + + + +

Results

+Instsrv.exe - 0 error(s), 7 warning(s) +

+--------------------Configuration: instsrv - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP1B.tmp" with contents +[ +/nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /I "." /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /FR"Debug/" /Fp"Debug/Instsrv.pch" /YX"windows.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c" +] +Creating command line "cl.exe @C:\TEMP\RSP1B.tmp" +Creating temporary file "C:\TEMP\RSP1C.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/Instsrv.pdb" /debug /machine:I386 /out:"Debug/Instsrv.exe" /pdbtype:sept +".\Debug\instsrv.obj" +] +Creating command line "link.exe @C:\TEMP\RSP1C.tmp" +

Output Window

+Compiling... +instsrv.c +c:\program files\microsoft visual studio\vc98\include\rpcasync.h(45) : warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses +d:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(217) : warning C4100: 'pszAppname' : unreferenced formal parameter +d:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(278) : warning C4057: 'initializing' : 'char *' differs in indirection to slightly different base types from 'unsigned char *' +d:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(333) : warning C4189: 'last_error' : local variable is initialized but not referenced +d:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(335) : warning C4189: 'rv' : local variable is initialized but not referenced +d:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(334) : warning C4189: 'timeout' : local variable is initialized but not referenced +d:\ntp-4.0.94b\ports\winnt\instsrv\instsrv.c(440) : warning C4715: 'main' : not all control paths return a value +Linking... + + + +

Results

+Instsrv.exe - 0 error(s), 7 warning(s) +

+--------------------Configuration: libntp - Win32 Release-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP1E.bat" with contents +[ +@echo off +mc -h . -r . -e h .\messages.mc +] +Creating command line "C:\TEMP\RSP1E.bat" +Creating temporary file "C:\TEMP\RSP1F.tmp" with contents +[ +/nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /I "." /D "NDEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Release/libntp.pch" /YX"windows.h" /Fo"Release/" /Fd"Release/" /FD /c +"D:\ntp-4.0.94b\libntp\a_md5encrypt.c" +"D:\ntp-4.0.94b\libntp\adjtime.c" +"D:\ntp-4.0.94b\libntp\atoint.c" +"D:\ntp-4.0.94b\libntp\atolfp.c" +"D:\ntp-4.0.94b\libntp\atouint.c" +"D:\ntp-4.0.94b\libntp\authencrypt.c" +"D:\ntp-4.0.94b\libntp\authkeys.c" +"D:\ntp-4.0.94b\libntp\authparity.c" +"D:\ntp-4.0.94b\libntp\authreadkeys.c" +"D:\ntp-4.0.94b\libntp\authusekey.c" +"D:\ntp-4.0.94b\libntp\binio.c" +"D:\ntp-4.0.94b\libntp\buftvtots.c" +"D:\ntp-4.0.94b\libntp\caljulian.c" +"D:\ntp-4.0.94b\libntp\calleapwhen.c" +"D:\ntp-4.0.94b\libntp\caltontp.c" +"D:\ntp-4.0.94b\libntp\calyearstart.c" +"D:\ntp-4.0.94b\libntp\clocktime.c" +"D:\ntp-4.0.94b\libntp\clocktypes.c" +"D:\ntp-4.0.94b\libntp\decodenetnum.c" +"D:\ntp-4.0.94b\libntp\dofptoa.c" +"D:\ntp-4.0.94b\libntp\dolfptoa.c" +"D:\ntp-4.0.94b\libntp\emalloc.c" +"D:\ntp-4.0.94b\libntp\findconfig.c" +"D:\ntp-4.0.94b\libntp\fptoa.c" +"D:\ntp-4.0.94b\libntp\fptoms.c" +"D:\ntp-4.0.94b\libntp\getopt.c" +"D:\ntp-4.0.94b\libntp\gpstolfp.c" +"D:\ntp-4.0.94b\libntp\hextoint.c" +"D:\ntp-4.0.94b\libntp\hextolfp.c" +"D:\ntp-4.0.94b\libntp\humandate.c" +"D:\ntp-4.0.94b\libntp\ieee754io.c" +"D:\ntp-4.0.94b\libntp\inttoa.c" +"D:\ntp-4.0.94b\libntp\iosignal.c" +"D:\ntp-4.0.94b\libntp\lib_strbuf.c" +"D:\ntp-4.0.94b\libntp\log.c" +"D:\ntp-4.0.94b\libntp\machines.c" +"D:\ntp-4.0.94b\libntp\md5c.c" +"D:\ntp-4.0.94b\libntp\memmove.c" +"D:\ntp-4.0.94b\libntp\mfp_mul.c" +"D:\ntp-4.0.94b\libntp\mfptoa.c" +"D:\ntp-4.0.94b\libntp\mfptoms.c" +"D:\ntp-4.0.94b\libntp\mktime.c" +"D:\ntp-4.0.94b\libntp\modetoa.c" +"D:\ntp-4.0.94b\libntp\mstolfp.c" +"D:\ntp-4.0.94b\libntp\msutotsf.c" +"D:\ntp-4.0.94b\libntp\msyslog.c" +"D:\ntp-4.0.94b\libntp\netof.c" +"D:\ntp-4.0.94b\ports\winnt\libntp\nt_clockstuff.c" +"D:\ntp-4.0.94b\libntp\numtoa.c" +"D:\ntp-4.0.94b\libntp\numtohost.c" +"D:\ntp-4.0.94b\libntp\octtoint.c" +"D:\ntp-4.0.94b\libntp\prettydate.c" +"D:\ntp-4.0.94b\libntp\ranny.c" +"D:\ntp-4.0.94b\libntp\recvbuff.c" +"D:\ntp-4.0.94b\libntp\refnumtoa.c" +"D:\ntp-4.0.94b\libntp\statestr.c" +"D:\ntp-4.0.94b\libntp\strerror.c" +"D:\ntp-4.0.94b\libntp\syssignal.c" +"D:\ntp-4.0.94b\libntp\systime.c" +"D:\ntp-4.0.94b\ports\winnt\libntp\transmitbuff.c" +"D:\ntp-4.0.94b\libntp\tsftomsu.c" +"D:\ntp-4.0.94b\libntp\tstotv.c" +"D:\ntp-4.0.94b\libntp\tvtoa.c" +"D:\ntp-4.0.94b\libntp\tvtots.c" +"D:\ntp-4.0.94b\libntp\uglydate.c" +"D:\ntp-4.0.94b\libntp\uinttoa.c" +"D:\ntp-4.0.94b\libntp\utvtoa.c" +"D:\ntp-4.0.94b\libntp\ymd2yd.c" +] +Creating command line "cl.exe @C:\TEMP\RSP1F.tmp" +Message Compiler +MC: Compiling .\messages.mc +Creating temporary file "C:\TEMP\RSP20.tmp" with contents +[ +/nologo /out:"Release\libntp.lib" +".\Release\a_md5encrypt.obj" +".\Release\adjtime.obj" +".\Release\atoint.obj" +".\Release\atolfp.obj" +".\Release\atouint.obj" +".\Release\authencrypt.obj" +".\Release\authkeys.obj" +".\Release\authparity.obj" +".\Release\authreadkeys.obj" +".\Release\authusekey.obj" +".\Release\binio.obj" +".\Release\buftvtots.obj" +".\Release\caljulian.obj" +".\Release\calleapwhen.obj" +".\Release\caltontp.obj" +".\Release\calyearstart.obj" +".\Release\clocktime.obj" +".\Release\clocktypes.obj" +".\Release\decodenetnum.obj" +".\Release\dofptoa.obj" +".\Release\dolfptoa.obj" +".\Release\emalloc.obj" +".\Release\findconfig.obj" +".\Release\fptoa.obj" +".\Release\fptoms.obj" +".\Release\getopt.obj" +".\Release\gpstolfp.obj" +".\Release\hextoint.obj" +".\Release\hextolfp.obj" +".\Release\humandate.obj" +".\Release\ieee754io.obj" +".\Release\inttoa.obj" +".\Release\iosignal.obj" +".\Release\lib_strbuf.obj" +".\Release\log.obj" +".\Release\machines.obj" +".\Release\md5c.obj" +".\Release\memmove.obj" +".\Release\mfp_mul.obj" +".\Release\mfptoa.obj" +".\Release\mfptoms.obj" +".\Release\mktime.obj" +".\Release\modetoa.obj" +".\Release\mstolfp.obj" +".\Release\msutotsf.obj" +".\Release\msyslog.obj" +".\Release\netof.obj" +".\Release\nt_clockstuff.obj" +".\Release\numtoa.obj" +".\Release\numtohost.obj" +".\Release\octtoint.obj" +".\Release\prettydate.obj" +".\Release\ranny.obj" +".\Release\recvbuff.obj" +".\Release\refnumtoa.obj" +".\Release\statestr.obj" +".\Release\strerror.obj" +".\Release\syssignal.obj" +".\Release\systime.obj" +".\Release\transmitbuff.obj" +".\Release\tsftomsu.obj" +".\Release\tstotv.obj" +".\Release\tvtoa.obj" +".\Release\tvtots.obj" +".\Release\uglydate.obj" +".\Release\uinttoa.obj" +".\Release\utvtoa.obj" +".\Release\ymd2yd.obj" +] +Creating command line "link.exe -lib @C:\TEMP\RSP20.tmp" +

Output Window

+Compiling... +a_md5encrypt.c +adjtime.c +atoint.c +atolfp.c +atouint.c +authencrypt.c +authkeys.c +D:\ntp-4.0.94b\libntp\authkeys.c(546) : warning C4100: 'length' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\authkeys.c(545) : warning C4100: 'pkt' : unreferenced formal parameter +authparity.c +authreadkeys.c +authusekey.c +D:\ntp-4.0.94b\libntp\authreadkeys.c(173) : warning C4702: unreachable code +D:\ntp-4.0.94b\libntp\authreadkeys.c(177) : warning C4702: unreachable code +D:\ntp-4.0.94b\libntp\authreadkeys.c(179) : warning C4702: unreachable code +D:\ntp-4.0.94b\libntp\authusekey.c(33) : warning C4100: 'keyno' : unreferenced formal parameter +binio.c +D:\ntp-4.0.94b\libntp\authusekey.c(133) : warning C4702: unreachable code +D:\ntp-4.0.94b\libntp\binio.c(30) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(31) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(55) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(56) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(57) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(58) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(80) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(81) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(105) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(106) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(107) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(108) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +buftvtots.c +caljulian.c +D:\ntp-4.0.94b\libntp\caljulian.c(113) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +calleapwhen.c +caltontp.c +calyearstart.c +clocktime.c +clocktypes.c +decodenetnum.c +dofptoa.c +D:\ntp-4.0.94b\libntp\dofptoa.c(56) : warning C4244: '/=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(57) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(65) : warning C4244: '=' : conversion from 'int ' to 'short ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(70) : warning C4244: '=' : conversion from 'int ' to 'short ', possible loss of data +dolfptoa.c +D:\ntp-4.0.94b\libntp\dolfptoa.c(62) : warning C4244: '/=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\libntp\dolfptoa.c(63) : warning C4244: '-=' : conversion from 'int ' to 'unsigned short ', possible loss of data +emalloc.c +findconfig.c +fptoa.c +fptoms.c +getopt.c +gpstolfp.c +hextoint.c +hextolfp.c +humandate.c +ieee754io.c +D:\ntp-4.0.94b\libntp\ieee754io.c(312) : warning C4018: '>' : signed/unsigned mismatch +D:\ntp-4.0.94b\libntp\ieee754io.c(368) : warning C4100: 'offsets' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\ieee754io.c(365) : warning C4100: 'bufpp' : unreferenced formal parameter +inttoa.c +iosignal.c +lib_strbuf.c +log.c +C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcasync.h(45) : warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses +D:\ntp-4.0.94b\libntp\log.c(26) : warning C4100: 'pszAppname' : unreferenced formal parameter +machines.c +D:\ntp-4.0.94b\libntp\machines.c(224) : warning C4013: '_getch' undefined; assuming extern returning int +D:\ntp-4.0.94b\libntp\machines.c(225) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\libntp\machines.c(216) : warning C4100: 'prompt' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\machines.c(243) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +md5c.c +memmove.c +mfp_mul.c +mfptoa.c +mfptoms.c +mktime.c +modetoa.c +mstolfp.c +msutotsf.c +msyslog.c +D:\ntp-4.0.94b\libntp\msyslog.c(90) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\libntp\msyslog.c(95) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +netof.c +nt_clockstuff.c +D:\ntp-4.0.94b\ports\winnt\libntp\nt_clockstuff.c(58) : warning C4013: 'msyslog' undefined; assuming extern returning int +numtoa.c +numtohost.c +octtoint.c +prettydate.c +ranny.c +recvbuff.c +refnumtoa.c +statestr.c +strerror.c +D:\ntp-4.0.94b\libntp\strerror.c(36) : warning C4018: '<' : signed/unsigned mismatch +syssignal.c +systime.c +D:\ntp-4.0.94b\libntp\systime.c(184) : warning C4244: '=' : conversion from 'double ' to 'long ', possible loss of data +D:\ntp-4.0.94b\libntp\systime.c(288) : warning C4115: 'timezone' : named type definition in parentheses +transmitbuff.c +tsftomsu.c +tstotv.c +tvtoa.c +tvtots.c +uglydate.c +uinttoa.c +utvtoa.c +ymd2yd.c +Creating library... + + + +

Results

+libntp.lib - 0 error(s), 41 warning(s) +

+--------------------Configuration: libntp - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP21.bat" with contents +[ +@echo off +mc -h . -r . -e h .\messages.mc +] +Creating command line "C:\TEMP\RSP21.bat" +Creating temporary file "C:\TEMP\RSP22.tmp" with contents +[ +/nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /I "." /FI"windows.h" /D "_DEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Debug/libntp.pch" /YX"windows.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\ntp-4.0.94b\libntp\a_md5encrypt.c" +"D:\ntp-4.0.94b\libntp\adjtime.c" +"D:\ntp-4.0.94b\libntp\atoint.c" +"D:\ntp-4.0.94b\libntp\atolfp.c" +"D:\ntp-4.0.94b\libntp\atouint.c" +"D:\ntp-4.0.94b\libntp\authencrypt.c" +"D:\ntp-4.0.94b\libntp\authkeys.c" +"D:\ntp-4.0.94b\libntp\authparity.c" +"D:\ntp-4.0.94b\libntp\authreadkeys.c" +"D:\ntp-4.0.94b\libntp\authusekey.c" +"D:\ntp-4.0.94b\libntp\binio.c" +"D:\ntp-4.0.94b\libntp\buftvtots.c" +"D:\ntp-4.0.94b\libntp\caljulian.c" +"D:\ntp-4.0.94b\libntp\calleapwhen.c" +"D:\ntp-4.0.94b\libntp\caltontp.c" +"D:\ntp-4.0.94b\libntp\calyearstart.c" +"D:\ntp-4.0.94b\libntp\clocktime.c" +"D:\ntp-4.0.94b\libntp\clocktypes.c" +"D:\ntp-4.0.94b\libntp\decodenetnum.c" +"D:\ntp-4.0.94b\libntp\dofptoa.c" +"D:\ntp-4.0.94b\libntp\dolfptoa.c" +"D:\ntp-4.0.94b\libntp\emalloc.c" +"D:\ntp-4.0.94b\libntp\findconfig.c" +"D:\ntp-4.0.94b\libntp\fptoa.c" +"D:\ntp-4.0.94b\libntp\fptoms.c" +"D:\ntp-4.0.94b\libntp\getopt.c" +"D:\ntp-4.0.94b\libntp\gpstolfp.c" +"D:\ntp-4.0.94b\libntp\hextoint.c" +"D:\ntp-4.0.94b\libntp\hextolfp.c" +"D:\ntp-4.0.94b\libntp\humandate.c" +"D:\ntp-4.0.94b\libntp\ieee754io.c" +"D:\ntp-4.0.94b\libntp\inttoa.c" +"D:\ntp-4.0.94b\libntp\iosignal.c" +"D:\ntp-4.0.94b\libntp\lib_strbuf.c" +"D:\ntp-4.0.94b\libntp\log.c" +"D:\ntp-4.0.94b\libntp\machines.c" +"D:\ntp-4.0.94b\libntp\md5c.c" +"D:\ntp-4.0.94b\libntp\memmove.c" +"D:\ntp-4.0.94b\libntp\mfp_mul.c" +"D:\ntp-4.0.94b\libntp\mfptoa.c" +"D:\ntp-4.0.94b\libntp\mfptoms.c" +"D:\ntp-4.0.94b\libntp\mktime.c" +"D:\ntp-4.0.94b\libntp\modetoa.c" +"D:\ntp-4.0.94b\libntp\mstolfp.c" +"D:\ntp-4.0.94b\libntp\msutotsf.c" +"D:\ntp-4.0.94b\libntp\msyslog.c" +"D:\ntp-4.0.94b\libntp\netof.c" +"D:\ntp-4.0.94b\ports\winnt\libntp\nt_clockstuff.c" +"D:\ntp-4.0.94b\libntp\numtoa.c" +"D:\ntp-4.0.94b\libntp\numtohost.c" +"D:\ntp-4.0.94b\libntp\octtoint.c" +"D:\ntp-4.0.94b\libntp\prettydate.c" +"D:\ntp-4.0.94b\libntp\ranny.c" +"D:\ntp-4.0.94b\libntp\recvbuff.c" +"D:\ntp-4.0.94b\libntp\refnumtoa.c" +"D:\ntp-4.0.94b\libntp\statestr.c" +"D:\ntp-4.0.94b\libntp\strerror.c" +"D:\ntp-4.0.94b\libntp\syssignal.c" +"D:\ntp-4.0.94b\libntp\systime.c" +"D:\ntp-4.0.94b\ports\winnt\libntp\transmitbuff.c" +"D:\ntp-4.0.94b\libntp\tsftomsu.c" +"D:\ntp-4.0.94b\libntp\tstotv.c" +"D:\ntp-4.0.94b\libntp\tvtoa.c" +"D:\ntp-4.0.94b\libntp\tvtots.c" +"D:\ntp-4.0.94b\libntp\uglydate.c" +"D:\ntp-4.0.94b\libntp\uinttoa.c" +"D:\ntp-4.0.94b\libntp\utvtoa.c" +"D:\ntp-4.0.94b\libntp\ymd2yd.c" +] +Creating command line "cl.exe @C:\TEMP\RSP22.tmp" +Message Compiler +MC: Compiling .\messages.mc +Creating temporary file "C:\TEMP\RSP23.tmp" with contents +[ +/nologo /out:"Debug\libntp.lib" +".\Debug\a_md5encrypt.obj" +".\Debug\adjtime.obj" +".\Debug\atoint.obj" +".\Debug\atolfp.obj" +".\Debug\atouint.obj" +".\Debug\authencrypt.obj" +".\Debug\authkeys.obj" +".\Debug\authparity.obj" +".\Debug\authreadkeys.obj" +".\Debug\authusekey.obj" +".\Debug\binio.obj" +".\Debug\buftvtots.obj" +".\Debug\caljulian.obj" +".\Debug\calleapwhen.obj" +".\Debug\caltontp.obj" +".\Debug\calyearstart.obj" +".\Debug\clocktime.obj" +".\Debug\clocktypes.obj" +".\Debug\decodenetnum.obj" +".\Debug\dofptoa.obj" +".\Debug\dolfptoa.obj" +".\Debug\emalloc.obj" +".\Debug\findconfig.obj" +".\Debug\fptoa.obj" +".\Debug\fptoms.obj" +".\Debug\getopt.obj" +".\Debug\gpstolfp.obj" +".\Debug\hextoint.obj" +".\Debug\hextolfp.obj" +".\Debug\humandate.obj" +".\Debug\ieee754io.obj" +".\Debug\inttoa.obj" +".\Debug\iosignal.obj" +".\Debug\lib_strbuf.obj" +".\Debug\log.obj" +".\Debug\machines.obj" +".\Debug\md5c.obj" +".\Debug\memmove.obj" +".\Debug\mfp_mul.obj" +".\Debug\mfptoa.obj" +".\Debug\mfptoms.obj" +".\Debug\mktime.obj" +".\Debug\modetoa.obj" +".\Debug\mstolfp.obj" +".\Debug\msutotsf.obj" +".\Debug\msyslog.obj" +".\Debug\netof.obj" +".\Debug\nt_clockstuff.obj" +".\Debug\numtoa.obj" +".\Debug\numtohost.obj" +".\Debug\octtoint.obj" +".\Debug\prettydate.obj" +".\Debug\ranny.obj" +".\Debug\recvbuff.obj" +".\Debug\refnumtoa.obj" +".\Debug\statestr.obj" +".\Debug\strerror.obj" +".\Debug\syssignal.obj" +".\Debug\systime.obj" +".\Debug\transmitbuff.obj" +".\Debug\tsftomsu.obj" +".\Debug\tstotv.obj" +".\Debug\tvtoa.obj" +".\Debug\tvtots.obj" +".\Debug\uglydate.obj" +".\Debug\uinttoa.obj" +".\Debug\utvtoa.obj" +".\Debug\ymd2yd.obj" +] +Creating command line "link.exe -lib @C:\TEMP\RSP23.tmp" +

Output Window

+Compiling... +a_md5encrypt.c +c:\program files\microsoft visual studio\vc98\include\rpcasync.h(45) : warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses +adjtime.c +atoint.c +atolfp.c +atouint.c +authencrypt.c +authkeys.c +D:\ntp-4.0.94b\libntp\authkeys.c(546) : warning C4100: 'length' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\authkeys.c(545) : warning C4100: 'pkt' : unreferenced formal parameter +authparity.c +authreadkeys.c +authusekey.c +D:\ntp-4.0.94b\libntp\authusekey.c(33) : warning C4100: 'keyno' : unreferenced formal parameter +binio.c +D:\ntp-4.0.94b\libntp\binio.c(30) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(31) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(55) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(56) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(57) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(58) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(80) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(81) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(105) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(106) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(107) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(108) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +buftvtots.c +caljulian.c +D:\ntp-4.0.94b\libntp\caljulian.c(113) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +calleapwhen.c +caltontp.c +calyearstart.c +clocktime.c +clocktypes.c +decodenetnum.c +dofptoa.c +D:\ntp-4.0.94b\libntp\dofptoa.c(56) : warning C4244: '/=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(57) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(65) : warning C4244: '=' : conversion from 'int ' to 'short ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(70) : warning C4244: '=' : conversion from 'int ' to 'short ', possible loss of data +dolfptoa.c +D:\ntp-4.0.94b\libntp\dolfptoa.c(62) : warning C4244: '/=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\libntp\dolfptoa.c(63) : warning C4244: '-=' : conversion from 'int ' to 'unsigned short ', possible loss of data +emalloc.c +findconfig.c +fptoa.c +fptoms.c +getopt.c +gpstolfp.c +hextoint.c +hextolfp.c +humandate.c +ieee754io.c +D:\ntp-4.0.94b\libntp\ieee754io.c(312) : warning C4018: '>' : signed/unsigned mismatch +D:\ntp-4.0.94b\libntp\ieee754io.c(368) : warning C4100: 'offsets' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\ieee754io.c(365) : warning C4100: 'bufpp' : unreferenced formal parameter +inttoa.c +iosignal.c +lib_strbuf.c +log.c +D:\ntp-4.0.94b\libntp\log.c(26) : warning C4100: 'pszAppname' : unreferenced formal parameter +machines.c +D:\ntp-4.0.94b\libntp\machines.c(224) : warning C4013: '_getch' undefined; assuming extern returning int +D:\ntp-4.0.94b\libntp\machines.c(225) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\libntp\machines.c(243) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +md5c.c +memmove.c +mfp_mul.c +mfptoa.c +mfptoms.c +mktime.c +modetoa.c +mstolfp.c +msutotsf.c +msyslog.c +D:\ntp-4.0.94b\libntp\msyslog.c(90) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\libntp\msyslog.c(95) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +netof.c +nt_clockstuff.c +D:\ntp-4.0.94b\ports\winnt\libntp\nt_clockstuff.c(58) : warning C4013: 'msyslog' undefined; assuming extern returning int +numtoa.c +numtohost.c +octtoint.c +prettydate.c +ranny.c +recvbuff.c +refnumtoa.c +statestr.c +strerror.c +D:\ntp-4.0.94b\libntp\strerror.c(36) : warning C4018: '<' : signed/unsigned mismatch +syssignal.c +systime.c +D:\ntp-4.0.94b\libntp\systime.c(184) : warning C4244: '=' : conversion from 'double ' to 'long ', possible loss of data +D:\ntp-4.0.94b\libntp\systime.c(288) : warning C4115: 'timezone' : named type definition in parentheses +transmitbuff.c +tsftomsu.c +tstotv.c +tvtoa.c +tvtots.c +uglydate.c +uinttoa.c +utvtoa.c +ymd2yd.c +Creating library... + + + +

Results

+libntp.lib - 0 error(s), 36 warning(s) +

+--------------------Configuration: libntp - Win32 Release-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP24.bat" with contents +[ +@echo off +mc -h . -r . -e h .\messages.mc +] +Creating command line "C:\TEMP\RSP24.bat" +Creating temporary file "C:\TEMP\RSP25.tmp" with contents +[ +/nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /I "." /D "NDEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Release/libntp.pch" /YX"windows.h" /Fo"Release/" /Fd"Release/" /FD /c +"D:\ntp-4.0.94b\libntp\a_md5encrypt.c" +"D:\ntp-4.0.94b\libntp\adjtime.c" +"D:\ntp-4.0.94b\libntp\atoint.c" +"D:\ntp-4.0.94b\libntp\atolfp.c" +"D:\ntp-4.0.94b\libntp\atouint.c" +"D:\ntp-4.0.94b\libntp\authencrypt.c" +"D:\ntp-4.0.94b\libntp\authkeys.c" +"D:\ntp-4.0.94b\libntp\authparity.c" +"D:\ntp-4.0.94b\libntp\authreadkeys.c" +"D:\ntp-4.0.94b\libntp\authusekey.c" +"D:\ntp-4.0.94b\libntp\binio.c" +"D:\ntp-4.0.94b\libntp\buftvtots.c" +"D:\ntp-4.0.94b\libntp\caljulian.c" +"D:\ntp-4.0.94b\libntp\calleapwhen.c" +"D:\ntp-4.0.94b\libntp\caltontp.c" +"D:\ntp-4.0.94b\libntp\calyearstart.c" +"D:\ntp-4.0.94b\libntp\clocktime.c" +"D:\ntp-4.0.94b\libntp\clocktypes.c" +"D:\ntp-4.0.94b\libntp\decodenetnum.c" +"D:\ntp-4.0.94b\libntp\dofptoa.c" +"D:\ntp-4.0.94b\libntp\dolfptoa.c" +"D:\ntp-4.0.94b\libntp\emalloc.c" +"D:\ntp-4.0.94b\libntp\findconfig.c" +"D:\ntp-4.0.94b\libntp\fptoa.c" +"D:\ntp-4.0.94b\libntp\fptoms.c" +"D:\ntp-4.0.94b\libntp\getopt.c" +"D:\ntp-4.0.94b\libntp\gpstolfp.c" +"D:\ntp-4.0.94b\libntp\hextoint.c" +"D:\ntp-4.0.94b\libntp\hextolfp.c" +"D:\ntp-4.0.94b\libntp\humandate.c" +"D:\ntp-4.0.94b\libntp\ieee754io.c" +"D:\ntp-4.0.94b\libntp\inttoa.c" +"D:\ntp-4.0.94b\libntp\iosignal.c" +"D:\ntp-4.0.94b\libntp\lib_strbuf.c" +"D:\ntp-4.0.94b\libntp\log.c" +"D:\ntp-4.0.94b\libntp\machines.c" +"D:\ntp-4.0.94b\libntp\md5c.c" +"D:\ntp-4.0.94b\libntp\memmove.c" +"D:\ntp-4.0.94b\libntp\mfp_mul.c" +"D:\ntp-4.0.94b\libntp\mfptoa.c" +"D:\ntp-4.0.94b\libntp\mfptoms.c" +"D:\ntp-4.0.94b\libntp\mktime.c" +"D:\ntp-4.0.94b\libntp\modetoa.c" +"D:\ntp-4.0.94b\libntp\mstolfp.c" +"D:\ntp-4.0.94b\libntp\msutotsf.c" +"D:\ntp-4.0.94b\libntp\msyslog.c" +"D:\ntp-4.0.94b\libntp\netof.c" +"D:\ntp-4.0.94b\ports\winnt\libntp\nt_clockstuff.c" +"D:\ntp-4.0.94b\libntp\numtoa.c" +"D:\ntp-4.0.94b\libntp\numtohost.c" +"D:\ntp-4.0.94b\libntp\octtoint.c" +"D:\ntp-4.0.94b\libntp\prettydate.c" +"D:\ntp-4.0.94b\libntp\ranny.c" +"D:\ntp-4.0.94b\libntp\recvbuff.c" +"D:\ntp-4.0.94b\libntp\refnumtoa.c" +"D:\ntp-4.0.94b\libntp\statestr.c" +"D:\ntp-4.0.94b\libntp\strerror.c" +"D:\ntp-4.0.94b\libntp\syssignal.c" +"D:\ntp-4.0.94b\libntp\systime.c" +"D:\ntp-4.0.94b\ports\winnt\libntp\transmitbuff.c" +"D:\ntp-4.0.94b\libntp\tsftomsu.c" +"D:\ntp-4.0.94b\libntp\tstotv.c" +"D:\ntp-4.0.94b\libntp\tvtoa.c" +"D:\ntp-4.0.94b\libntp\tvtots.c" +"D:\ntp-4.0.94b\libntp\uglydate.c" +"D:\ntp-4.0.94b\libntp\uinttoa.c" +"D:\ntp-4.0.94b\libntp\utvtoa.c" +"D:\ntp-4.0.94b\libntp\ymd2yd.c" +] +Creating command line "cl.exe @C:\TEMP\RSP25.tmp" +Message Compiler +MC: Compiling .\messages.mc +Creating temporary file "C:\TEMP\RSP26.tmp" with contents +[ +/nologo /out:"Release\libntp.lib" +".\Release\a_md5encrypt.obj" +".\Release\adjtime.obj" +".\Release\atoint.obj" +".\Release\atolfp.obj" +".\Release\atouint.obj" +".\Release\authencrypt.obj" +".\Release\authkeys.obj" +".\Release\authparity.obj" +".\Release\authreadkeys.obj" +".\Release\authusekey.obj" +".\Release\binio.obj" +".\Release\buftvtots.obj" +".\Release\caljulian.obj" +".\Release\calleapwhen.obj" +".\Release\caltontp.obj" +".\Release\calyearstart.obj" +".\Release\clocktime.obj" +".\Release\clocktypes.obj" +".\Release\decodenetnum.obj" +".\Release\dofptoa.obj" +".\Release\dolfptoa.obj" +".\Release\emalloc.obj" +".\Release\findconfig.obj" +".\Release\fptoa.obj" +".\Release\fptoms.obj" +".\Release\getopt.obj" +".\Release\gpstolfp.obj" +".\Release\hextoint.obj" +".\Release\hextolfp.obj" +".\Release\humandate.obj" +".\Release\ieee754io.obj" +".\Release\inttoa.obj" +".\Release\iosignal.obj" +".\Release\lib_strbuf.obj" +".\Release\log.obj" +".\Release\machines.obj" +".\Release\md5c.obj" +".\Release\memmove.obj" +".\Release\mfp_mul.obj" +".\Release\mfptoa.obj" +".\Release\mfptoms.obj" +".\Release\mktime.obj" +".\Release\modetoa.obj" +".\Release\mstolfp.obj" +".\Release\msutotsf.obj" +".\Release\msyslog.obj" +".\Release\netof.obj" +".\Release\nt_clockstuff.obj" +".\Release\numtoa.obj" +".\Release\numtohost.obj" +".\Release\octtoint.obj" +".\Release\prettydate.obj" +".\Release\ranny.obj" +".\Release\recvbuff.obj" +".\Release\refnumtoa.obj" +".\Release\statestr.obj" +".\Release\strerror.obj" +".\Release\syssignal.obj" +".\Release\systime.obj" +".\Release\transmitbuff.obj" +".\Release\tsftomsu.obj" +".\Release\tstotv.obj" +".\Release\tvtoa.obj" +".\Release\tvtots.obj" +".\Release\uglydate.obj" +".\Release\uinttoa.obj" +".\Release\utvtoa.obj" +".\Release\ymd2yd.obj" +] +Creating command line "link.exe -lib @C:\TEMP\RSP26.tmp" +

Output Window

+Compiling... +a_md5encrypt.c +adjtime.c +atoint.c +atolfp.c +atouint.c +authencrypt.c +authkeys.c +D:\ntp-4.0.94b\libntp\authkeys.c(546) : warning C4100: 'length' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\authkeys.c(545) : warning C4100: 'pkt' : unreferenced formal parameter +authparity.c +authreadkeys.c +authusekey.c +D:\ntp-4.0.94b\libntp\authreadkeys.c(173) : warning C4702: unreachable code +D:\ntp-4.0.94b\libntp\authreadkeys.c(177) : warning C4702: unreachable code +D:\ntp-4.0.94b\libntp\authreadkeys.c(179) : warning C4702: unreachable code +D:\ntp-4.0.94b\libntp\authusekey.c(33) : warning C4100: 'keyno' : unreferenced formal parameter +binio.c +D:\ntp-4.0.94b\libntp\authusekey.c(133) : warning C4702: unreachable code +D:\ntp-4.0.94b\libntp\binio.c(30) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(31) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(55) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(56) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(57) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(58) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(80) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(81) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(105) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(106) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(107) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(108) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +buftvtots.c +caljulian.c +D:\ntp-4.0.94b\libntp\caljulian.c(113) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +calleapwhen.c +caltontp.c +calyearstart.c +clocktime.c +clocktypes.c +decodenetnum.c +dofptoa.c +D:\ntp-4.0.94b\libntp\dofptoa.c(56) : warning C4244: '/=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(57) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(65) : warning C4244: '=' : conversion from 'int ' to 'short ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(70) : warning C4244: '=' : conversion from 'int ' to 'short ', possible loss of data +dolfptoa.c +D:\ntp-4.0.94b\libntp\dolfptoa.c(62) : warning C4244: '/=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\libntp\dolfptoa.c(63) : warning C4244: '-=' : conversion from 'int ' to 'unsigned short ', possible loss of data +emalloc.c +findconfig.c +fptoa.c +fptoms.c +getopt.c +gpstolfp.c +hextoint.c +hextolfp.c +humandate.c +ieee754io.c +D:\ntp-4.0.94b\libntp\ieee754io.c(312) : warning C4018: '>' : signed/unsigned mismatch +D:\ntp-4.0.94b\libntp\ieee754io.c(368) : warning C4100: 'offsets' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\ieee754io.c(365) : warning C4100: 'bufpp' : unreferenced formal parameter +inttoa.c +iosignal.c +lib_strbuf.c +log.c +C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcasync.h(45) : warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses +D:\ntp-4.0.94b\libntp\log.c(26) : warning C4100: 'pszAppname' : unreferenced formal parameter +machines.c +D:\ntp-4.0.94b\libntp\machines.c(224) : warning C4013: '_getch' undefined; assuming extern returning int +D:\ntp-4.0.94b\libntp\machines.c(225) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\libntp\machines.c(216) : warning C4100: 'prompt' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\machines.c(243) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +md5c.c +memmove.c +mfp_mul.c +mfptoa.c +mfptoms.c +mktime.c +modetoa.c +mstolfp.c +msutotsf.c +msyslog.c +D:\ntp-4.0.94b\libntp\msyslog.c(90) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\libntp\msyslog.c(95) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +netof.c +nt_clockstuff.c +D:\ntp-4.0.94b\ports\winnt\libntp\nt_clockstuff.c(58) : warning C4013: 'msyslog' undefined; assuming extern returning int +numtoa.c +numtohost.c +octtoint.c +prettydate.c +ranny.c +recvbuff.c +refnumtoa.c +statestr.c +strerror.c +D:\ntp-4.0.94b\libntp\strerror.c(36) : warning C4018: '<' : signed/unsigned mismatch +syssignal.c +systime.c +D:\ntp-4.0.94b\libntp\systime.c(184) : warning C4244: '=' : conversion from 'double ' to 'long ', possible loss of data +D:\ntp-4.0.94b\libntp\systime.c(288) : warning C4115: 'timezone' : named type definition in parentheses +transmitbuff.c +tsftomsu.c +tstotv.c +tvtoa.c +tvtots.c +uglydate.c +uinttoa.c +utvtoa.c +ymd2yd.c +Creating library... +

+--------------------Configuration: ntpd - Win32 Release-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP27.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntpd +] +Creating command line "C:\TEMP\RSP27.bat" +Creating command line "rc.exe /l 0x409 /fo"Release/messages.res" /i "\ntp-4.0.94b\ports\winnt\libntp" /d "NDEBUG" "D:\ntp-4.0.94b\ports\winnt\libntp\messages.rc"" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP28.tmp" with contents +[ +/nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Release/ntpd.pch" /YX"windows.h" /Fo"Release/" /Fd"Release/" /FD /c +"D:\ntp-4.0.94b\ntpd\map_vme.c" +"D:\ntp-4.0.94b\ntpd\ntp_config.c" +"D:\ntp-4.0.94b\ntpd\ntp_control.c" +"D:\ntp-4.0.94b\ntpd\ntp_filegen.c" +"D:\ntp-4.0.94b\ntpd\ntp_intres.c" +"D:\ntp-4.0.94b\ntpd\ntp_io.c" +"D:\ntp-4.0.94b\ports\winnt\ntpd\ntp_iocompletionport.c" +"D:\ntp-4.0.94b\ntpd\ntp_loopfilter.c" +"D:\ntp-4.0.94b\ntpd\ntp_monitor.c" +"D:\ntp-4.0.94b\ntpd\ntp_peer.c" +"D:\ntp-4.0.94b\ntpd\ntp_proto.c" +"D:\ntp-4.0.94b\ntpd\ntp_refclock.c" +"D:\ntp-4.0.94b\ntpd\ntp_request.c" +"D:\ntp-4.0.94b\ntpd\ntp_restrict.c" +"D:\ntp-4.0.94b\ntpd\ntp_timer.c" +"D:\ntp-4.0.94b\ntpd\ntp_util.c" +"D:\ntp-4.0.94b\ntpd\ntpd.c" +"D:\ntp-4.0.94b\ports\winnt\ntpd\win32_io.c" +"D:\ntp-4.0.94b\ports\winnt\ntpd\version.c" +"D:\ntp-4.0.94b\ntpd\refclock_acts.c" +"D:\ntp-4.0.94b\ntpd\refclock_arbiter.c" +"D:\ntp-4.0.94b\ntpd\refclock_arc.c" +"D:\ntp-4.0.94b\ntpd\refclock_as2201.c" +"D:\ntp-4.0.94b\ntpd\refclock_atom.c" +"D:\ntp-4.0.94b\ntpd\refclock_bancomm.c" +"D:\ntp-4.0.94b\ntpd\refclock_chu.c" +"D:\ntp-4.0.94b\ntpd\refclock_conf.c" +"D:\ntp-4.0.94b\ntpd\refclock_datum.c" +"D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c" +"D:\ntp-4.0.94b\ntpd\refclock_gpsvme.c" +"D:\ntp-4.0.94b\ntpd\refclock_heath.c" +"D:\ntp-4.0.94b\ntpd\refclock_hpgps.c" +"D:\ntp-4.0.94b\ntpd\refclock_irig.c" +"D:\ntp-4.0.94b\ntpd\refclock_jupiter.c" +"D:\ntp-4.0.94b\ntpd\refclock_leitch.c" +"D:\ntp-4.0.94b\ntpd\refclock_local.c" +"D:\ntp-4.0.94b\ntpd\refclock_msfees.c" +"D:\ntp-4.0.94b\ntpd\refclock_mx4200.c" +"D:\ntp-4.0.94b\ntpd\refclock_nmea.c" +"D:\ntp-4.0.94b\ntpd\refclock_oncore.c" +"D:\ntp-4.0.94b\ntpd\refclock_palisade.c" +"D:\ntp-4.0.94b\ntpd\refclock_parse.c" +"D:\ntp-4.0.94b\ntpd\refclock_pst.c" +"D:\ntp-4.0.94b\ntpd\refclock_ptbacts.c" +"D:\ntp-4.0.94b\ntpd\refclock_shm.c" +"D:\ntp-4.0.94b\ntpd\refclock_tpro.c" +"D:\ntp-4.0.94b\ntpd\refclock_trak.c" +"D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c" +"D:\ntp-4.0.94b\ntpd\refclock_true.c" +"D:\ntp-4.0.94b\ntpd\refclock_usno.c" +"D:\ntp-4.0.94b\ntpd\refclock_wwvb.c" +"D:\ntp-4.0.94b\libparse\clk_computime.c" +"D:\ntp-4.0.94b\libparse\clk_dcf7000.c" +"D:\ntp-4.0.94b\libparse\clk_hopf6021.c" +"D:\ntp-4.0.94b\libparse\clk_meinberg.c" +"D:\ntp-4.0.94b\libparse\clk_rawdcf.c" +"D:\ntp-4.0.94b\libparse\clk_rcc8000.c" +"D:\ntp-4.0.94b\libparse\clk_schmid.c" +"D:\ntp-4.0.94b\libparse\clk_trimtaip.c" +"D:\ntp-4.0.94b\libparse\clk_trimtsip.c" +"D:\ntp-4.0.94b\libparse\parse.c" +"D:\ntp-4.0.94b\libparse\parse_conf.c" +] +Creating command line "cl.exe @C:\TEMP\RSP28.tmp" +Creating temporary file "C:\TEMP\RSP29.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /subsystem:console /incremental:no /pdb:"Release/ntpd.pdb" /machine:I386 /out:"Release/ntpd.exe" +".\Release\map_vme.obj" +".\Release\ntp_config.obj" +".\Release\ntp_control.obj" +".\Release\ntp_filegen.obj" +".\Release\ntp_intres.obj" +".\Release\ntp_io.obj" +".\Release\ntp_iocompletionport.obj" +".\Release\ntp_loopfilter.obj" +".\Release\ntp_monitor.obj" +".\Release\ntp_peer.obj" +".\Release\ntp_proto.obj" +".\Release\ntp_refclock.obj" +".\Release\ntp_request.obj" +".\Release\ntp_restrict.obj" +".\Release\ntp_timer.obj" +".\Release\ntp_util.obj" +".\Release\ntpd.obj" +".\Release\win32_io.obj" +".\Release\version.obj" +".\Release\refclock_acts.obj" +".\Release\refclock_arbiter.obj" +".\Release\refclock_arc.obj" +".\Release\refclock_as2201.obj" +".\Release\refclock_atom.obj" +".\Release\refclock_bancomm.obj" +".\Release\refclock_chu.obj" +".\Release\refclock_conf.obj" +".\Release\refclock_datum.obj" +".\Release\refclock_dumbclock.obj" +".\Release\refclock_gpsvme.obj" +".\Release\refclock_heath.obj" +".\Release\refclock_hpgps.obj" +".\Release\refclock_irig.obj" +".\Release\refclock_jupiter.obj" +".\Release\refclock_leitch.obj" +".\Release\refclock_local.obj" +".\Release\refclock_msfees.obj" +".\Release\refclock_mx4200.obj" +".\Release\refclock_nmea.obj" +".\Release\refclock_oncore.obj" +".\Release\refclock_palisade.obj" +".\Release\refclock_parse.obj" +".\Release\refclock_pst.obj" +".\Release\refclock_ptbacts.obj" +".\Release\refclock_shm.obj" +".\Release\refclock_tpro.obj" +".\Release\refclock_trak.obj" +".\Release\refclock_trimbledc.obj" +".\Release\refclock_true.obj" +".\Release\refclock_usno.obj" +".\Release\refclock_wwvb.obj" +".\Release\clk_computime.obj" +".\Release\clk_dcf7000.obj" +".\Release\clk_hopf6021.obj" +".\Release\clk_meinberg.obj" +".\Release\clk_rawdcf.obj" +".\Release\clk_rcc8000.obj" +".\Release\clk_schmid.obj" +".\Release\clk_trimtaip.obj" +".\Release\clk_trimtsip.obj" +".\Release\parse.obj" +".\Release\parse_conf.obj" +".\Release\messages.res" +"\ntp-4.0.94b\ports\winnt\libntp\Release\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP29.tmp" +

Output Window

+Compiling resources... +Compiling... +map_vme.c +ntp_config.c +D:\ntp-4.0.94b\ntpd\ntp_config.c(1920) : warning C4100: 'sig' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_config.c(2183) : warning C4505: 'catchchild' : unreferenced local function has been removed + D:\ntp-4.0.94b\ntpd\ntp_config.c(415) : see declaration of 'catchchild' +ntp_control.c +D:\ntp-4.0.94b\ntpd\ntp_config.c(1958) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_config.c(2171) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_control.c(678) : warning C4244: 'return' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_control.c(1675) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1674) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1706) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1705) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1772) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1771) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1882) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1881) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1990) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1989) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(2106) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(2105) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(2288) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_control.c(2568) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_control.c(2610) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_control.c(2619) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +ntp_filegen.c +D:\ntp-4.0.94b\ntpd\ntp_control.c(1936) : warning C4701: local variable 'val' may be used without having been initialized +D:\ntp-4.0.94b\ntpd\ntp_control.c(2591) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_filegen.c(320) : warning C4244: '-=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_filegen.c(382) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_filegen.c(383) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned char ', possible loss of data +ntp_intres.c +D:\ntp-4.0.94b\ntpd\ntp_intres.c(517) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpd\ntp_intres.c(522) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpd\ntp_intres.c(594) : warning C4018: '==' : signed/unsigned mismatch +ntp_io.c +D:\ntp-4.0.94b\ntpd\ntp_io.c(149) : warning C4013: 'init_transmitbuff' undefined; assuming extern returning int +D:\ntp-4.0.94b\ntpd\ntp_io.c(231) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(395) : warning C4057: 'function' : 'unsigned long *' differs in indirection to slightly different base types from 'int *' +D:\ntp-4.0.94b\ntpd\ntp_io.c(509) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(576) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(638) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(502) : warning C4101: 'TODO_FillInTheNameWithSomeThingReasonble' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntp_io.c(944) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpd\ntp_io.c(1180) : warning C4244: 'initializing' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(1139) : warning C4101: 'cc' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntp_io.c(1657) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpd\ntp_io.c(1697) : warning C4018: '==' : signed/unsigned mismatch +ntp_iocompletionport.c +D:\ntp-4.0.94b\ports\winnt\ntpd\ntp_iocompletionport.c(230) : warning C4057: 'function' : 'int *' differs in indirection to slightly different base types from 'unsigned long *' +D:\ntp-4.0.94b\ports\winnt\ntpd\ntp_iocompletionport.c(289) : warning C4057: 'function' : 'int *' differs in indirection to slightly different base types from 'unsigned long *' +ntp_loopfilter.c +ntp_monitor.c +D:\ntp-4.0.94b\ntpd\ntp_monitor.c(282) : warning C4244: '=' : conversion from 'const int ' to 'unsigned char ', possible loss of data +ntp_peer.c +D:\ntp-4.0.94b\ntpd\ntp_peer.c(111) : warning C4211: nonstandard extension used : redefined extern to static +D:\ntp-4.0.94b\ntpd\ntp_peer.c(249) : warning C4100: 'fd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_peer.c(536) : warning C4244: '=' : conversion from 'const int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_peer.c(613) : warning C4244: '=' : conversion from 'const int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_peer.c(624) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +ntp_proto.c +D:\ntp-4.0.94b\ntpd\ntp_proto.c(770) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(930) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(975) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(1016) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(1064) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(1097) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(1146) : warning C4018: '<' : signed/unsigned mismatch +ntp_refclock.c +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(126) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(127) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(226) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(366) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(712) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(945) : warning C4100: 'flags' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(944) : warning C4100: 'fd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(1321) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +ntp_request.c +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(117) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(216) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(1203) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(1303) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_request.c(729) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_request.c(748) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_request.c(2253) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +ntp_restrict.c +ntp_timer.c +ntp_util.c +ntpd.c +D:\ntp-4.0.94b\ntpd\ntpd.c(302) : warning C4101: 'cp' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntpd.c(304) : warning C4101: 'rbuf' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntpd.c(303) : warning C4101: 'rbuflist' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntpd.c(477) : warning C4101: 'rbuflist' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntpd.c(1086) : warning C4505: 'no_debug' : unreferenced local function has been removed + D:\ntp-4.0.94b\ntpd\ntpd.c(167) : see declaration of 'no_debug' +win32_io.c +D:\ntp-4.0.94b\ntpd\ntpd.c(484) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntpd.c(873) : warning C4702: unreachable code +D:\ntp-4.0.94b\ports\winnt\ntpd\win32_io.c(27) : warning C4100: 'flags' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\win32_io.c(142) : warning C4100: 'optional_actions' : unreferenced formal parameter +version.c +refclock_acts.c +refclock_arbiter.c +refclock_arc.c +refclock_as2201.c +refclock_atom.c +refclock_bancomm.c +refclock_chu.c +refclock_conf.c +refclock_datum.c +refclock_dumbclock.c +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(174) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(223) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(342) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +refclock_gpsvme.c +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(119) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(126) : warning C4706: assignment within conditional expression +refclock_heath.c +refclock_hpgps.c +refclock_irig.c +refclock_jupiter.c +refclock_leitch.c +refclock_local.c +D:\ntp-4.0.94b\ntpd\refclock_local.c(151) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\refclock_local.c(181) : warning C4100: 'unit' : unreferenced formal parameter +refclock_msfees.c +refclock_mx4200.c +refclock_nmea.c +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(141) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(177) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(329) : warning C4100: 'unit' : unreferenced formal parameter +refclock_oncore.c +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(100) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(107) : warning C4706: assignment within conditional expression +refclock_palisade.c +D:\ntp-4.0.94b\ntpd\refclock_palisade.c(249) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\refclock_palisade.c(343) : warning C4310: cast truncates constant value +D:\ntp-4.0.94b\ntpd\refclock_palisade.c(601) : warning C4100: 'unit' : unreferenced formal parameter +refclock_parse.c +refclock_pst.c +refclock_ptbacts.c +refclock_shm.c +refclock_tpro.c +refclock_trak.c +refclock_trimbledc.c +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(124) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(151) : warning C4101: 'secs' : unreferenced local variable +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(150) : warning C4101: 'secint' : unreferenced local variable +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(152) : warning C4101: 'secfrac' : unreferenced local variable +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(149) : warning C4101: 'st' : unreferenced local variable +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(149) : warning C4101: 'ts' : unreferenced local variable +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(153) : warning C4189: 'event' : local variable is initialized but not referenced +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(204) : warning C4244: 'function' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(205) : warning C4047: 'function' : 'unsigned char *' differs in levels of indirection from 'unsigned char (*)[500]' +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(205) : warning C4024: 'trimbledc_io' : different types for formal and actual parameter 3 +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(243) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(280) : warning C4100: 'up' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(279) : warning C4100: 't_in' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(278) : warning C4100: 'bufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(277) : warning C4100: 'buflen' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(276) : warning C4100: 'noevents' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(290) : warning C4505: 'trimbledc_decode' : unreferenced local function has been removed + D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(142) : see declaration of 'trimbledc_decode' +refclock_true.c +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(81) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ports\winnt\ntpd\refclock_trimbledc.c(205) : warning C4761: integral size mismatch in argument; conversion supplied +refclock_usno.c +refclock_wwvb.c +clk_computime.c +clk_dcf7000.c +clk_hopf6021.c +clk_meinberg.c +clk_rawdcf.c +clk_rcc8000.c +clk_schmid.c +clk_trimtaip.c +clk_trimtsip.c +parse.c +parse_conf.c +Linking... + + + +

Results

+ntpd.exe - 0 error(s), 155 warning(s) +

+--------------------Configuration: libntp - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP2B.bat" with contents +[ +@echo off +mc -h . -r . -e h .\messages.mc +] +Creating command line "C:\TEMP\RSP2B.bat" +Creating temporary file "C:\TEMP\RSP2C.tmp" with contents +[ +/nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /I "." /FI"windows.h" /D "_DEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Debug/libntp.pch" /YX"windows.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\ntp-4.0.94b\libntp\a_md5encrypt.c" +"D:\ntp-4.0.94b\libntp\adjtime.c" +"D:\ntp-4.0.94b\libntp\atoint.c" +"D:\ntp-4.0.94b\libntp\atolfp.c" +"D:\ntp-4.0.94b\libntp\atouint.c" +"D:\ntp-4.0.94b\libntp\authencrypt.c" +"D:\ntp-4.0.94b\libntp\authkeys.c" +"D:\ntp-4.0.94b\libntp\authparity.c" +"D:\ntp-4.0.94b\libntp\authreadkeys.c" +"D:\ntp-4.0.94b\libntp\authusekey.c" +"D:\ntp-4.0.94b\libntp\binio.c" +"D:\ntp-4.0.94b\libntp\buftvtots.c" +"D:\ntp-4.0.94b\libntp\caljulian.c" +"D:\ntp-4.0.94b\libntp\calleapwhen.c" +"D:\ntp-4.0.94b\libntp\caltontp.c" +"D:\ntp-4.0.94b\libntp\calyearstart.c" +"D:\ntp-4.0.94b\libntp\clocktime.c" +"D:\ntp-4.0.94b\libntp\clocktypes.c" +"D:\ntp-4.0.94b\libntp\decodenetnum.c" +"D:\ntp-4.0.94b\libntp\dofptoa.c" +"D:\ntp-4.0.94b\libntp\dolfptoa.c" +"D:\ntp-4.0.94b\libntp\emalloc.c" +"D:\ntp-4.0.94b\libntp\findconfig.c" +"D:\ntp-4.0.94b\libntp\fptoa.c" +"D:\ntp-4.0.94b\libntp\fptoms.c" +"D:\ntp-4.0.94b\libntp\getopt.c" +"D:\ntp-4.0.94b\libntp\gpstolfp.c" +"D:\ntp-4.0.94b\libntp\hextoint.c" +"D:\ntp-4.0.94b\libntp\hextolfp.c" +"D:\ntp-4.0.94b\libntp\humandate.c" +"D:\ntp-4.0.94b\libntp\ieee754io.c" +"D:\ntp-4.0.94b\libntp\inttoa.c" +"D:\ntp-4.0.94b\libntp\iosignal.c" +"D:\ntp-4.0.94b\libntp\lib_strbuf.c" +"D:\ntp-4.0.94b\libntp\log.c" +"D:\ntp-4.0.94b\libntp\machines.c" +"D:\ntp-4.0.94b\libntp\md5c.c" +"D:\ntp-4.0.94b\libntp\memmove.c" +"D:\ntp-4.0.94b\libntp\mfp_mul.c" +"D:\ntp-4.0.94b\libntp\mfptoa.c" +"D:\ntp-4.0.94b\libntp\mfptoms.c" +"D:\ntp-4.0.94b\libntp\mktime.c" +"D:\ntp-4.0.94b\libntp\modetoa.c" +"D:\ntp-4.0.94b\libntp\mstolfp.c" +"D:\ntp-4.0.94b\libntp\msutotsf.c" +"D:\ntp-4.0.94b\libntp\msyslog.c" +"D:\ntp-4.0.94b\libntp\netof.c" +"D:\ntp-4.0.94b\ports\winnt\libntp\nt_clockstuff.c" +"D:\ntp-4.0.94b\libntp\numtoa.c" +"D:\ntp-4.0.94b\libntp\numtohost.c" +"D:\ntp-4.0.94b\libntp\octtoint.c" +"D:\ntp-4.0.94b\libntp\prettydate.c" +"D:\ntp-4.0.94b\libntp\ranny.c" +"D:\ntp-4.0.94b\libntp\recvbuff.c" +"D:\ntp-4.0.94b\libntp\refnumtoa.c" +"D:\ntp-4.0.94b\libntp\statestr.c" +"D:\ntp-4.0.94b\libntp\strerror.c" +"D:\ntp-4.0.94b\libntp\syssignal.c" +"D:\ntp-4.0.94b\libntp\systime.c" +"D:\ntp-4.0.94b\ports\winnt\libntp\transmitbuff.c" +"D:\ntp-4.0.94b\libntp\tsftomsu.c" +"D:\ntp-4.0.94b\libntp\tstotv.c" +"D:\ntp-4.0.94b\libntp\tvtoa.c" +"D:\ntp-4.0.94b\libntp\tvtots.c" +"D:\ntp-4.0.94b\libntp\uglydate.c" +"D:\ntp-4.0.94b\libntp\uinttoa.c" +"D:\ntp-4.0.94b\libntp\utvtoa.c" +"D:\ntp-4.0.94b\libntp\ymd2yd.c" +] +Creating command line "cl.exe @C:\TEMP\RSP2C.tmp" +Message Compiler +MC: Compiling .\messages.mc +Creating temporary file "C:\TEMP\RSP2D.tmp" with contents +[ +/nologo /out:"Debug\libntp.lib" +".\Debug\a_md5encrypt.obj" +".\Debug\adjtime.obj" +".\Debug\atoint.obj" +".\Debug\atolfp.obj" +".\Debug\atouint.obj" +".\Debug\authencrypt.obj" +".\Debug\authkeys.obj" +".\Debug\authparity.obj" +".\Debug\authreadkeys.obj" +".\Debug\authusekey.obj" +".\Debug\binio.obj" +".\Debug\buftvtots.obj" +".\Debug\caljulian.obj" +".\Debug\calleapwhen.obj" +".\Debug\caltontp.obj" +".\Debug\calyearstart.obj" +".\Debug\clocktime.obj" +".\Debug\clocktypes.obj" +".\Debug\decodenetnum.obj" +".\Debug\dofptoa.obj" +".\Debug\dolfptoa.obj" +".\Debug\emalloc.obj" +".\Debug\findconfig.obj" +".\Debug\fptoa.obj" +".\Debug\fptoms.obj" +".\Debug\getopt.obj" +".\Debug\gpstolfp.obj" +".\Debug\hextoint.obj" +".\Debug\hextolfp.obj" +".\Debug\humandate.obj" +".\Debug\ieee754io.obj" +".\Debug\inttoa.obj" +".\Debug\iosignal.obj" +".\Debug\lib_strbuf.obj" +".\Debug\log.obj" +".\Debug\machines.obj" +".\Debug\md5c.obj" +".\Debug\memmove.obj" +".\Debug\mfp_mul.obj" +".\Debug\mfptoa.obj" +".\Debug\mfptoms.obj" +".\Debug\mktime.obj" +".\Debug\modetoa.obj" +".\Debug\mstolfp.obj" +".\Debug\msutotsf.obj" +".\Debug\msyslog.obj" +".\Debug\netof.obj" +".\Debug\nt_clockstuff.obj" +".\Debug\numtoa.obj" +".\Debug\numtohost.obj" +".\Debug\octtoint.obj" +".\Debug\prettydate.obj" +".\Debug\ranny.obj" +".\Debug\recvbuff.obj" +".\Debug\refnumtoa.obj" +".\Debug\statestr.obj" +".\Debug\strerror.obj" +".\Debug\syssignal.obj" +".\Debug\systime.obj" +".\Debug\transmitbuff.obj" +".\Debug\tsftomsu.obj" +".\Debug\tstotv.obj" +".\Debug\tvtoa.obj" +".\Debug\tvtots.obj" +".\Debug\uglydate.obj" +".\Debug\uinttoa.obj" +".\Debug\utvtoa.obj" +".\Debug\ymd2yd.obj" +] +Creating command line "link.exe -lib @C:\TEMP\RSP2D.tmp" +

Output Window

+Compiling... +a_md5encrypt.c +adjtime.c +atoint.c +atolfp.c +atouint.c +authencrypt.c +authkeys.c +D:\ntp-4.0.94b\libntp\authkeys.c(546) : warning C4100: 'length' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\authkeys.c(545) : warning C4100: 'pkt' : unreferenced formal parameter +authparity.c +authreadkeys.c +authusekey.c +D:\ntp-4.0.94b\libntp\authusekey.c(33) : warning C4100: 'keyno' : unreferenced formal parameter +binio.c +D:\ntp-4.0.94b\libntp\binio.c(30) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(31) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(55) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(56) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(57) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(58) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(80) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(81) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(105) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(106) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(107) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\binio.c(108) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +buftvtots.c +caljulian.c +D:\ntp-4.0.94b\libntp\caljulian.c(113) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +calleapwhen.c +caltontp.c +calyearstart.c +clocktime.c +clocktypes.c +decodenetnum.c +dofptoa.c +D:\ntp-4.0.94b\libntp\dofptoa.c(56) : warning C4244: '/=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(57) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(65) : warning C4244: '=' : conversion from 'int ' to 'short ', possible loss of data +D:\ntp-4.0.94b\libntp\dofptoa.c(70) : warning C4244: '=' : conversion from 'int ' to 'short ', possible loss of data +dolfptoa.c +D:\ntp-4.0.94b\libntp\dolfptoa.c(62) : warning C4244: '/=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\libntp\dolfptoa.c(63) : warning C4244: '-=' : conversion from 'int ' to 'unsigned short ', possible loss of data +emalloc.c +findconfig.c +fptoa.c +fptoms.c +getopt.c +gpstolfp.c +hextoint.c +hextolfp.c +humandate.c +ieee754io.c +D:\ntp-4.0.94b\libntp\ieee754io.c(312) : warning C4018: '>' : signed/unsigned mismatch +D:\ntp-4.0.94b\libntp\ieee754io.c(368) : warning C4100: 'offsets' : unreferenced formal parameter +D:\ntp-4.0.94b\libntp\ieee754io.c(365) : warning C4100: 'bufpp' : unreferenced formal parameter +inttoa.c +iosignal.c +lib_strbuf.c +log.c +D:\ntp-4.0.94b\libntp\log.c(26) : warning C4100: 'pszAppname' : unreferenced formal parameter +machines.c +D:\ntp-4.0.94b\libntp\machines.c(224) : warning C4013: '_getch' undefined; assuming extern returning int +D:\ntp-4.0.94b\libntp\machines.c(225) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\libntp\machines.c(243) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +md5c.c +memmove.c +mfp_mul.c +mfptoa.c +mfptoms.c +mktime.c +modetoa.c +mstolfp.c +msutotsf.c +msyslog.c +D:\ntp-4.0.94b\libntp\msyslog.c(90) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\libntp\msyslog.c(95) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +netof.c +nt_clockstuff.c +D:\ntp-4.0.94b\ports\winnt\libntp\nt_clockstuff.c(58) : warning C4013: 'msyslog' undefined; assuming extern returning int +numtoa.c +numtohost.c +octtoint.c +prettydate.c +ranny.c +recvbuff.c +refnumtoa.c +statestr.c +strerror.c +D:\ntp-4.0.94b\libntp\strerror.c(36) : warning C4018: '<' : signed/unsigned mismatch +syssignal.c +systime.c +D:\ntp-4.0.94b\libntp\systime.c(184) : warning C4244: '=' : conversion from 'double ' to 'long ', possible loss of data +D:\ntp-4.0.94b\libntp\systime.c(288) : warning C4115: 'timezone' : named type definition in parentheses +transmitbuff.c +tsftomsu.c +tstotv.c +tvtoa.c +tvtots.c +uglydate.c +uinttoa.c +utvtoa.c +ymd2yd.c +Creating library... +

+--------------------Configuration: ntpd - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP2E.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntpd +] +Creating command line "C:\TEMP\RSP2E.bat" +Creating command line "rc.exe /l 0x409 /fo"Debug/messages.res" /i "\ntp-4.0.94b\ports\winnt\libntp" /d "_DEBUG" "D:\ntp-4.0.94b\ports\winnt\libntp\messages.rc"" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP2F.tmp" with contents +[ +/nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /FI"windows.h" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /FR"Debug/" /Fp"Debug/ntpd.pch" /YX"windows.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\ntp-4.0.94b\ntpd\map_vme.c" +"D:\ntp-4.0.94b\ntpd\ntp_config.c" +"D:\ntp-4.0.94b\ntpd\ntp_control.c" +"D:\ntp-4.0.94b\ntpd\ntp_filegen.c" +"D:\ntp-4.0.94b\ntpd\ntp_intres.c" +"D:\ntp-4.0.94b\ntpd\ntp_io.c" +"D:\ntp-4.0.94b\ports\winnt\ntpd\ntp_iocompletionport.c" +"D:\ntp-4.0.94b\ntpd\ntp_loopfilter.c" +"D:\ntp-4.0.94b\ntpd\ntp_monitor.c" +"D:\ntp-4.0.94b\ntpd\ntp_peer.c" +"D:\ntp-4.0.94b\ntpd\ntp_proto.c" +"D:\ntp-4.0.94b\ntpd\ntp_refclock.c" +"D:\ntp-4.0.94b\ntpd\ntp_request.c" +"D:\ntp-4.0.94b\ntpd\ntp_restrict.c" +"D:\ntp-4.0.94b\ntpd\ntp_timer.c" +"D:\ntp-4.0.94b\ntpd\ntp_util.c" +"D:\ntp-4.0.94b\ntpd\ntpd.c" +"D:\ntp-4.0.94b\ports\winnt\ntpd\win32_io.c" +"D:\ntp-4.0.94b\ports\winnt\ntpd\version.c" +"D:\ntp-4.0.94b\ntpd\refclock_acts.c" +"D:\ntp-4.0.94b\ntpd\refclock_arbiter.c" +"D:\ntp-4.0.94b\ntpd\refclock_arc.c" +"D:\ntp-4.0.94b\ntpd\refclock_as2201.c" +"D:\ntp-4.0.94b\ntpd\refclock_atom.c" +"D:\ntp-4.0.94b\ntpd\refclock_bancomm.c" +"D:\ntp-4.0.94b\ntpd\refclock_chu.c" +"D:\ntp-4.0.94b\ntpd\refclock_conf.c" +"D:\ntp-4.0.94b\ntpd\refclock_datum.c" +"D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c" +"D:\ntp-4.0.94b\ntpd\refclock_gpsvme.c" +"D:\ntp-4.0.94b\ntpd\refclock_heath.c" +"D:\ntp-4.0.94b\ntpd\refclock_hpgps.c" +"D:\ntp-4.0.94b\ntpd\refclock_irig.c" +"D:\ntp-4.0.94b\ntpd\refclock_jupiter.c" +"D:\ntp-4.0.94b\ntpd\refclock_leitch.c" +"D:\ntp-4.0.94b\ntpd\refclock_local.c" +"D:\ntp-4.0.94b\ntpd\refclock_msfees.c" +"D:\ntp-4.0.94b\ntpd\refclock_mx4200.c" +"D:\ntp-4.0.94b\ntpd\refclock_nmea.c" +"D:\ntp-4.0.94b\ntpd\refclock_oncore.c" +"D:\ntp-4.0.94b\ntpd\refclock_palisade.c" +"D:\ntp-4.0.94b\ntpd\refclock_parse.c" +"D:\ntp-4.0.94b\ntpd\refclock_pst.c" +"D:\ntp-4.0.94b\ntpd\refclock_ptbacts.c" +"D:\ntp-4.0.94b\ntpd\refclock_shm.c" +"D:\ntp-4.0.94b\ntpd\refclock_tpro.c" +"D:\ntp-4.0.94b\ntpd\refclock_trak.c" +"D:\ntp-4.0.94b\ntpd\refclock_true.c" +"D:\ntp-4.0.94b\ntpd\refclock_usno.c" +"D:\ntp-4.0.94b\ntpd\refclock_wwvb.c" +"D:\ntp-4.0.94b\libparse\clk_computime.c" +"D:\ntp-4.0.94b\libparse\clk_dcf7000.c" +"D:\ntp-4.0.94b\libparse\clk_hopf6021.c" +"D:\ntp-4.0.94b\libparse\clk_rawdcf.c" +"D:\ntp-4.0.94b\libparse\clk_rcc8000.c" +"D:\ntp-4.0.94b\libparse\clk_schmid.c" +"D:\ntp-4.0.94b\libparse\clk_trimtaip.c" +"D:\ntp-4.0.94b\libparse\clk_trimtsip.c" +"D:\ntp-4.0.94b\libparse\parse.c" +"D:\ntp-4.0.94b\libparse\parse_conf.c" +] +Creating command line "cl.exe @C:\TEMP\RSP2F.tmp" +Creating temporary file "C:\TEMP\RSP30.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/ntpd.pdb" /debug /machine:I386 /out:"Debug/ntpd.exe" /pdbtype:sept +".\Debug\map_vme.obj" +".\Debug\ntp_config.obj" +".\Debug\ntp_control.obj" +".\Debug\ntp_filegen.obj" +".\Debug\ntp_intres.obj" +".\Debug\ntp_io.obj" +".\Debug\ntp_iocompletionport.obj" +".\Debug\ntp_loopfilter.obj" +".\Debug\ntp_monitor.obj" +".\Debug\ntp_peer.obj" +".\Debug\ntp_proto.obj" +".\Debug\ntp_refclock.obj" +".\Debug\ntp_request.obj" +".\Debug\ntp_restrict.obj" +".\Debug\ntp_timer.obj" +".\Debug\ntp_util.obj" +".\Debug\ntpd.obj" +".\Debug\win32_io.obj" +".\Debug\version.obj" +".\Debug\refclock_acts.obj" +".\Debug\refclock_arbiter.obj" +".\Debug\refclock_arc.obj" +".\Debug\refclock_as2201.obj" +".\Debug\refclock_atom.obj" +".\Debug\refclock_bancomm.obj" +".\Debug\refclock_chu.obj" +".\Debug\refclock_conf.obj" +".\Debug\refclock_datum.obj" +".\Debug\refclock_dumbclock.obj" +".\Debug\refclock_gpsvme.obj" +".\Debug\refclock_heath.obj" +".\Debug\refclock_hpgps.obj" +".\Debug\refclock_irig.obj" +".\Debug\refclock_jupiter.obj" +".\Debug\refclock_leitch.obj" +".\Debug\refclock_local.obj" +".\Debug\refclock_msfees.obj" +".\Debug\refclock_mx4200.obj" +".\Debug\refclock_nmea.obj" +".\Debug\refclock_oncore.obj" +".\Debug\refclock_palisade.obj" +".\Debug\refclock_parse.obj" +".\Debug\refclock_pst.obj" +".\Debug\refclock_ptbacts.obj" +".\Debug\refclock_shm.obj" +".\Debug\refclock_tpro.obj" +".\Debug\refclock_trak.obj" +".\Debug\refclock_true.obj" +".\Debug\refclock_usno.obj" +".\Debug\refclock_wwvb.obj" +".\Debug\clk_computime.obj" +".\Debug\clk_dcf7000.obj" +".\Debug\clk_hopf6021.obj" +".\Debug\clk_rawdcf.obj" +".\Debug\clk_rcc8000.obj" +".\Debug\clk_schmid.obj" +".\Debug\clk_trimtaip.obj" +".\Debug\clk_trimtsip.obj" +".\Debug\parse.obj" +".\Debug\parse_conf.obj" +".\Debug\messages.res" +"\ntp-4.0.94b\ports\winnt\libntp\Debug\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP30.tmp" +

Output Window

+Compiling resources... +Compiling... +map_vme.c +c:\program files\microsoft visual studio\vc98\include\rpcasync.h(45) : warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses +ntp_config.c +D:\ntp-4.0.94b\ntpd\ntp_config.c(1920) : warning C4100: 'sig' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_config.c(2183) : warning C4505: 'catchchild' : unreferenced local function has been removed + D:\ntp-4.0.94b\ntpd\ntp_config.c(415) : see declaration of 'catchchild' +ntp_control.c +D:\ntp-4.0.94b\ntpd\ntp_config.c(1958) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_config.c(2171) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_control.c(678) : warning C4244: 'return' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_control.c(1675) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1674) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1706) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1705) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1772) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1771) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1882) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1881) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1990) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(1989) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(2106) : warning C4100: 'restrict_mask' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(2105) : warning C4100: 'rbufp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_control.c(2288) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_control.c(2568) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_control.c(2610) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_control.c(2619) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +ntp_filegen.c +D:\ntp-4.0.94b\ntpd\ntp_control.c(1936) : warning C4701: local variable 'val' may be used without having been initialized +D:\ntp-4.0.94b\ntpd\ntp_control.c(2591) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_filegen.c(320) : warning C4244: '-=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_filegen.c(382) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_filegen.c(383) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned char ', possible loss of data +ntp_intres.c +D:\ntp-4.0.94b\ntpd\ntp_intres.c(517) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpd\ntp_intres.c(522) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpd\ntp_intres.c(594) : warning C4018: '==' : signed/unsigned mismatch +ntp_io.c +D:\ntp-4.0.94b\ntpd\ntp_io.c(149) : warning C4013: 'init_transmitbuff' undefined; assuming extern returning int +D:\ntp-4.0.94b\ntpd\ntp_io.c(231) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(395) : warning C4057: 'function' : 'unsigned long *' differs in indirection to slightly different base types from 'int *' +D:\ntp-4.0.94b\ntpd\ntp_io.c(509) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(576) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(638) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(502) : warning C4101: 'TODO_FillInTheNameWithSomeThingReasonble' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntp_io.c(944) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpd\ntp_io.c(1180) : warning C4244: 'initializing' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_io.c(1139) : warning C4101: 'cc' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntp_io.c(1657) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpd\ntp_io.c(1697) : warning C4018: '==' : signed/unsigned mismatch +ntp_iocompletionport.c +D:\ntp-4.0.94b\ports\winnt\ntpd\ntp_iocompletionport.c(230) : warning C4057: 'function' : 'int *' differs in indirection to slightly different base types from 'unsigned long *' +D:\ntp-4.0.94b\ports\winnt\ntpd\ntp_iocompletionport.c(289) : warning C4057: 'function' : 'int *' differs in indirection to slightly different base types from 'unsigned long *' +ntp_loopfilter.c +ntp_monitor.c +D:\ntp-4.0.94b\ntpd\ntp_monitor.c(282) : warning C4244: '=' : conversion from 'const int ' to 'unsigned char ', possible loss of data +ntp_peer.c +D:\ntp-4.0.94b\ntpd\ntp_peer.c(111) : warning C4211: nonstandard extension used : redefined extern to static +D:\ntp-4.0.94b\ntpd\ntp_peer.c(249) : warning C4100: 'fd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_peer.c(536) : warning C4244: '=' : conversion from 'const int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_peer.c(613) : warning C4244: '=' : conversion from 'const int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_peer.c(624) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +ntp_proto.c +D:\ntp-4.0.94b\ntpd\ntp_proto.c(770) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(930) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(975) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(1016) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(1064) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(1097) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_proto.c(1146) : warning C4018: '<' : signed/unsigned mismatch +ntp_refclock.c +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(126) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(127) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(226) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(366) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(712) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(945) : warning C4100: 'flags' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(944) : warning C4100: 'fd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(1321) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +ntp_request.c +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(117) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(216) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(1203) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_refclock.c(1303) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\ntp_request.c(729) : warning C4244: '=' : conversion from 'unsigned int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_request.c(748) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpd\ntp_request.c(2253) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +ntp_restrict.c +ntp_timer.c +ntp_util.c +ntpd.c +D:\ntp-4.0.94b\ntpd\ntpd.c(302) : warning C4101: 'cp' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntpd.c(304) : warning C4101: 'rbuf' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntpd.c(303) : warning C4101: 'rbuflist' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntpd.c(477) : warning C4101: 'rbuflist' : unreferenced local variable +D:\ntp-4.0.94b\ntpd\ntpd.c(911) : warning C4100: 'sig' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntpd.c(929) : warning C4100: 'sig' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\ntpd.c(1086) : warning C4505: 'moredebug' : unreferenced local function has been removed + D:\ntp-4.0.94b\ntpd\ntpd.c(164) : see declaration of 'moredebug' +D:\ntp-4.0.94b\ntpd\ntpd.c(1086) : warning C4505: 'lessdebug' : unreferenced local function has been removed + D:\ntp-4.0.94b\ntpd\ntpd.c(165) : see declaration of 'lessdebug' +win32_io.c +D:\ntp-4.0.94b\ntpd\ntpd.c(484) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ports\winnt\ntpd\win32_io.c(27) : warning C4100: 'flags' : unreferenced formal parameter +D:\ntp-4.0.94b\ports\winnt\ntpd\win32_io.c(142) : warning C4100: 'optional_actions' : unreferenced formal parameter +version.c +refclock_acts.c +refclock_arbiter.c +refclock_arc.c +refclock_as2201.c +refclock_atom.c +refclock_bancomm.c +refclock_chu.c +refclock_conf.c +refclock_datum.c +refclock_dumbclock.c +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(174) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(223) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(342) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +refclock_gpsvme.c +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(119) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\refclock_dumbclock.c(126) : warning C4706: assignment within conditional expression +refclock_heath.c +refclock_hpgps.c +refclock_irig.c +refclock_jupiter.c +refclock_leitch.c +refclock_local.c +D:\ntp-4.0.94b\ntpd\refclock_local.c(151) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\refclock_local.c(181) : warning C4100: 'unit' : unreferenced formal parameter +refclock_msfees.c +refclock_mx4200.c +refclock_nmea.c +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(141) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(177) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(329) : warning C4100: 'unit' : unreferenced formal parameter +refclock_oncore.c +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(100) : warning C4706: assignment within conditional expression +D:\ntp-4.0.94b\ntpd\refclock_nmea.c(107) : warning C4706: assignment within conditional expression +refclock_palisade.c +D:\ntp-4.0.94b\ntpd\refclock_palisade.c(249) : warning C4100: 'unit' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpd\refclock_palisade.c(343) : warning C4310: cast truncates constant value +refclock_parse.c +refclock_pst.c +refclock_ptbacts.c +refclock_shm.c +refclock_tpro.c +refclock_trak.c +refclock_true.c +refclock_usno.c +refclock_wwvb.c +clk_computime.c +clk_dcf7000.c +clk_hopf6021.c +clk_rawdcf.c +clk_rcc8000.c +clk_schmid.c +clk_trimtaip.c +clk_trimtsip.c +parse.c +parse_conf.c +Linking... + + + +

Results

+ntpd.exe - 0 error(s), 132 warning(s) +

+--------------------Configuration: ntpdate - Win32 Release-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP32.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntpdate +] +Creating command line "C:\TEMP\RSP32.bat" +Creating temporary file "C:\TEMP\RSP33.tmp" with contents +[ +/nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Release/ntpdate.pch" /YX"windows.h" /Fo"Release/" /Fd"Release/" /FD /c +"D:\ntp-4.0.94b\ntpdate\ntpdate.c" +"D:\ntp-4.0.94b\ports\winnt\ntpdate\version.c" +] +Creating command line "cl.exe @C:\TEMP\RSP33.tmp" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP34.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:console /incremental:no /pdb:"Release/ntpdate.pdb" /machine:I386 /out:"Release/ntpdate.exe" +".\Release\ntpdate.obj" +".\Release\version.obj" +"\ntp-4.0.94b\ports\winnt\libntp\Release\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP34.tmp" +

Output Window

+Compiling... +ntpdate.c +D:\ntp-4.0.94b\ntpdate\ntpdate.c(892) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'dw2' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'dw1' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'dwUser' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'uMsg' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'uTimerID' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdate\ntpdate.c(1552) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpdate\ntpdate.c(1506) : warning C4101: 'rb' : unreferenced local variable +D:\ntp-4.0.94b\ntpdate\ntpdate.c(1505) : warning C4101: 'i' : unreferenced local variable +version.c +Linking... + + + +

Results

+ntpdate.exe - 0 error(s), 9 warning(s) +

+--------------------Configuration: ntpdate - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP36.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntpdate +] +Creating command line "C:\TEMP\RSP36.bat" +Creating temporary file "C:\TEMP\RSP37.tmp" with contents +[ +/nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Debug/ntpdate.pch" /YX"windows.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\ntp-4.0.94b\ntpdate\ntpdate.c" +"D:\ntp-4.0.94b\ports\winnt\ntpdate\version.c" +] +Creating command line "cl.exe @C:\TEMP\RSP37.tmp" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP38.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/ntpdate.pdb" /debug /machine:I386 /out:"Debug/ntpdate.exe" /pdbtype:sept +".\Debug\ntpdate.obj" +".\Debug\version.obj" +"\ntp-4.0.94b\ports\winnt\libntp\Debug\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP38.tmp" +

Output Window

+Compiling... +ntpdate.c +d:\ntp-4.0.94b\ntpdate\ntpdate.c(892) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +d:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'dw2' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'dw1' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'dwUser' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'uMsg' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdate\ntpdate.c(1340) : warning C4100: 'uTimerID' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdate\ntpdate.c(1552) : warning C4018: '==' : signed/unsigned mismatch +d:\ntp-4.0.94b\ntpdate\ntpdate.c(1506) : warning C4101: 'rb' : unreferenced local variable +d:\ntp-4.0.94b\ntpdate\ntpdate.c(1505) : warning C4101: 'i' : unreferenced local variable +version.c +Linking... + + + +

Results

+ntpdate.exe - 0 error(s), 9 warning(s) +

+--------------------Configuration: ntpdc - Win32 Release-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP3A.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntpdc +] +Creating command line "C:\TEMP\RSP3A.bat" +Creating temporary file "C:\TEMP\RSP3B.tmp" with contents +[ +/nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Release/ntpdc.pch" /YX"windows.h" /Fo"Release/" /Fd"Release/" /FD /c +"D:\ntp-4.0.94b\ntpdc\ntpdc.c" +"D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c" +"D:\ntp-4.0.94b\ports\winnt\ntpdc\version.c" +] +Creating command line "cl.exe @C:\TEMP\RSP3B.tmp" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP3C.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /incremental:no /pdb:"Release/ntpdc.pdb" /machine:I386 /out:"Release/ntpdc.exe" +".\Release\ntpdc.obj" +".\Release\ntpdc_ops.obj" +".\Release\version.obj" +"\ntp-4.0.94b\ports\winnt\libntp\Release\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP3C.tmp" +

Output Window

+Compiling... +ntpdc.c +D:\ntp-4.0.94b\ntpdc\ntpdc.c(559) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpdc\ntpdc.c(848) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpdc\ntpdc.c(941) : warning C4100: 'sig' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc.c(1286) : warning C4090: 'function' : different 'const' qualifiers +D:\ntp-4.0.94b\ntpdc\ntpdc.c(1286) : warning C4022: 'qsort' : pointer mismatch for actual parameter 1 +D:\ntp-4.0.94b\ntpdc\ntpdc.c(1603) : warning C4100: 'fp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc.c(1602) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc.c(1618) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc.c(1683) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ntpdc\ntpdc.c(1690) : warning C4505: 'abortcmd' : unreferenced local function has been removed + D:\ntp-4.0.94b\ntpdc\ntpdc.c(62) : see declaration of 'abortcmd' +ntpdc_ops.c +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(291) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(352) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(750) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(829) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(887) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(941) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(994) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(1325) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(1735) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(1818) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(1867) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(2042) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(2352) : warning C4100: 'pcmd' : unreferenced formal parameter +version.c +Linking... + + + +

Results

+ntpdc.exe - 0 error(s), 23 warning(s) +

+--------------------Configuration: ntpdc - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP3E.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntpdc +] +Creating command line "C:\TEMP\RSP3E.bat" +Creating temporary file "C:\TEMP\RSP3F.tmp" with contents +[ +/nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Debug/ntpdc.pch" /YX"windows.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\ntp-4.0.94b\ntpdc\ntpdc.c" +"D:\ntp-4.0.94b\ntpdc\ntpdc_ops.c" +"D:\ntp-4.0.94b\ports\winnt\ntpdc\version.c" +] +Creating command line "cl.exe @C:\TEMP\RSP3F.tmp" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP40.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/ntpdc.pdb" /debug /machine:I386 /out:"Debug/ntpdc.exe" /pdbtype:sept +".\Debug\ntpdc.obj" +".\Debug\ntpdc_ops.obj" +".\Debug\version.obj" +"\ntp-4.0.94b\ports\winnt\libntp\Debug\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP40.tmp" +

Output Window

+Compiling... +ntpdc.c +d:\ntp-4.0.94b\ntpdc\ntpdc.c(559) : warning C4018: '==' : signed/unsigned mismatch +d:\ntp-4.0.94b\ntpdc\ntpdc.c(848) : warning C4018: '==' : signed/unsigned mismatch +d:\ntp-4.0.94b\ntpdc\ntpdc.c(941) : warning C4100: 'sig' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc.c(1286) : warning C4090: 'function' : different 'const' qualifiers +d:\ntp-4.0.94b\ntpdc\ntpdc.c(1286) : warning C4022: 'qsort' : pointer mismatch for actual parameter 1 +d:\ntp-4.0.94b\ntpdc\ntpdc.c(1603) : warning C4100: 'fp' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc.c(1602) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc.c(1618) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc.c(1683) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +d:\ntp-4.0.94b\ntpdc\ntpdc.c(1690) : warning C4505: 'abortcmd' : unreferenced local function has been removed + d:\ntp-4.0.94b\ntpdc\ntpdc.c(62) : see declaration of 'abortcmd' +ntpdc_ops.c +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(291) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(352) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(750) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(829) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(887) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(941) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(994) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(1325) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(1735) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(1818) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(1867) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(2042) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpdc\ntpdc_ops.c(2352) : warning C4100: 'pcmd' : unreferenced formal parameter +version.c +Linking... + + + +

Results

+ntpdc.exe - 0 error(s), 23 warning(s) +

+--------------------Configuration: ntpq - Win32 Release-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP42.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntpq +] +Creating command line "C:\TEMP\RSP42.bat" +Creating temporary file "C:\TEMP\RSP43.tmp" with contents +[ +/nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Release/ntpq.pch" /YX"windows.h" /Fo"Release/" /Fd"Release/" /FD /c +"D:\ntp-4.0.94b\ntpq\ntpq.c" +"D:\ntp-4.0.94b\ntpq\ntpq_ops.c" +"D:\ntp-4.0.94b\ports\winnt\ntpq\version.c" +] +Creating command line "cl.exe @C:\TEMP\RSP43.tmp" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP44.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /incremental:no /pdb:"Release/ntpq.pdb" /machine:I386 /out:"Release/ntpq.exe" +".\Release\ntpq.obj" +".\Release\ntpq_ops.obj" +".\Release\version.obj" +"\ntp-4.0.94b\ports\winnt\libntp\Release\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP44.tmp" +

Output Window

+Compiling... +ntpq.c +D:\ntp-4.0.94b\ntpq\ntpq.c(739) : warning C4018: '==' : signed/unsigned mismatch +D:\ntp-4.0.94b\ntpq\ntpq.c(1063) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1282) : warning C4100: 'sig' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(1654) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1656) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1657) : warning C4244: '+=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1672) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1679) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1681) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1682) : warning C4244: '+=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1685) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1686) : warning C4244: '+=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1689) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1690) : warning C4244: '+=' : conversion from 'int ' to 'unsigned short ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1703) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1705) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1706) : warning C4244: '+=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1711) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1713) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1714) : warning C4244: '+=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1719) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1721) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1722) : warning C4244: '+=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(1907) : warning C4090: 'function' : different 'const' qualifiers +D:\ntp-4.0.94b\ntpq\ntpq.c(1907) : warning C4022: 'qsort' : pointer mismatch for actual parameter 1 +D:\ntp-4.0.94b\ntpq\ntpq.c(2086) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(2150) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(2233) : warning C4100: 'fp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(2232) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(2248) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(2264) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(2279) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(2395) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(2443) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(2666) : warning C4100: 'datatype' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq.c(3035) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq.c(3096) : warning C4505: 'abortcmd' : unreferenced local function has been removed + D:\ntp-4.0.94b\ntpq\ntpq.c(223) : see declaration of 'abortcmd' +ntpq_ops.c +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(453) : warning C4100: 'fp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(467) : warning C4100: 'fp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(481) : warning C4100: 'fp' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(480) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(494) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(934) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1055) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1070) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1085) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1099) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1348) : warning C4244: '=' : conversion from 'const int ' to 'char ', possible loss of data +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1294) : warning C4100: 'associd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1572) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1586) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1632) : warning C4100: 'pcmd' : unreferenced formal parameter +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1646) : warning C4100: 'pcmd' : unreferenced formal parameter +version.c +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'srcadr' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'stratum' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1445) : warning C4701: local variable 'hpoll' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1445) : warning C4701: local variable 'ppoll' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'reach' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'estdelay' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'estoffset' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'estjitter' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'estdisp' may be used without having been initialized +D:\ntp-4.0.94b\ntpq\ntpq_ops.c(1439) : warning C4701: local variable 'srcport' may be used without having been initialized +Linking... + + + +

Results

+ntpq.exe - 0 error(s), 63 warning(s) +

+--------------------Configuration: ntpq - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP46.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntpq +] +Creating command line "C:\TEMP\RSP46.bat" +Creating temporary file "C:\TEMP\RSP47.tmp" with contents +[ +/nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Debug/ntpq.pch" /YX"windows.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\ntp-4.0.94b\ntpq\ntpq.c" +"D:\ntp-4.0.94b\ntpq\ntpq_ops.c" +"D:\ntp-4.0.94b\ports\winnt\ntpq\version.c" +] +Creating command line "cl.exe @C:\TEMP\RSP47.tmp" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP48.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/ntpq.pdb" /debug /machine:I386 /out:"Debug/ntpq.exe" /pdbtype:sept +".\Debug\ntpq.obj" +".\Debug\ntpq_ops.obj" +".\Debug\version.obj" +"\ntp-4.0.94b\ports\winnt\libntp\Debug\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP48.tmp" +

Output Window

+Compiling... +ntpq.c +d:\ntp-4.0.94b\ntpq\ntpq.c(739) : warning C4018: '==' : signed/unsigned mismatch +d:\ntp-4.0.94b\ntpq\ntpq.c(1063) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1282) : warning C4100: 'sig' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(1654) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1656) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1657) : warning C4244: '+=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1672) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1679) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1681) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1682) : warning C4244: '+=' : conversion from 'int ' to 'unsigned short ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1685) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1686) : warning C4244: '+=' : conversion from 'int ' to 'unsigned short ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1689) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1690) : warning C4244: '+=' : conversion from 'int ' to 'unsigned short ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1703) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1705) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1706) : warning C4244: '+=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1711) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1713) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1714) : warning C4244: '+=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1719) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1721) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1722) : warning C4244: '+=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(1907) : warning C4090: 'function' : different 'const' qualifiers +d:\ntp-4.0.94b\ntpq\ntpq.c(1907) : warning C4022: 'qsort' : pointer mismatch for actual parameter 1 +d:\ntp-4.0.94b\ntpq\ntpq.c(2086) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(2150) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(2233) : warning C4100: 'fp' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(2232) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(2248) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(2264) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(2279) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(2395) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(2443) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(2666) : warning C4100: 'datatype' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq.c(3035) : warning C4244: '=' : conversion from 'int ' to 'char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq.c(3096) : warning C4505: 'abortcmd' : unreferenced local function has been removed + d:\ntp-4.0.94b\ntpq\ntpq.c(223) : see declaration of 'abortcmd' +ntpq_ops.c +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(453) : warning C4100: 'fp' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(467) : warning C4100: 'fp' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(481) : warning C4100: 'fp' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(480) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(494) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(934) : warning C4244: '=' : conversion from 'int ' to 'unsigned char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1055) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1070) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1085) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1099) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1348) : warning C4244: '=' : conversion from 'const int ' to 'char ', possible loss of data +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1294) : warning C4100: 'associd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1572) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1586) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1632) : warning C4100: 'pcmd' : unreferenced formal parameter +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1646) : warning C4100: 'pcmd' : unreferenced formal parameter +version.c +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'srcadr' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'stratum' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1445) : warning C4701: local variable 'hpoll' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1445) : warning C4701: local variable 'ppoll' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'reach' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'estdelay' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'estoffset' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'estjitter' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1459) : warning C4701: local variable 'estdisp' may be used without having been initialized +d:\ntp-4.0.94b\ntpq\ntpq_ops.c(1439) : warning C4701: local variable 'srcport' may be used without having been initialized +Linking... + + + +

Results

+ntpq.exe - 0 error(s), 63 warning(s) +

+--------------------Configuration: ntptrace - Win32 Release-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP4A.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntptrace +] +Creating command line "C:\TEMP\RSP4A.bat" +Creating temporary file "C:\TEMP\RSP4B.tmp" with contents +[ +/nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Release/ntptrace.pch" /YX"windows.h" /Fo"Release/" /Fd"Release/" /FD /c +"D:\ntp-4.0.94b\ntptrace\ntptrace.c" +"D:\ntp-4.0.94b\ports\winnt\ntptrace\version.c" +] +Creating command line "cl.exe @C:\TEMP\RSP4B.tmp" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP4C.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /incremental:no /pdb:"Release/ntptrace.pdb" /machine:I386 /out:"Release/ntptrace.exe" +".\Release\ntptrace.obj" +".\Release\version.obj" +"\ntp-4.0.94b\ports\winnt\libntp\Release\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP4C.tmp" +

Output Window

+Compiling... +ntptrace.c +D:\ntp-4.0.94b\ntptrace\ntptrace.c(102) : warning C4100: 'x' : unreferenced formal parameter +D:\ntp-4.0.94b\ntptrace\ntptrace.c(588) : warning C4018: '==' : signed/unsigned mismatch +version.c +Linking... + + + +

Results

+ntptrace.exe - 0 error(s), 2 warning(s) +

+--------------------Configuration: ntptrace - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\TEMP\RSP4E.bat" with contents +[ +@echo off +echo Using environment var PERL (d:\prg\perl) +d:\prg\perl\bin\perl ..\scripts\mkver.bat -P ntptrace +] +Creating command line "C:\TEMP\RSP4E.bat" +Creating temporary file "C:\TEMP\RSP4F.tmp" with contents +[ +/nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /Fp"Debug/ntptrace.pch" /YX"windows.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\ntp-4.0.94b\ntptrace\ntptrace.c" +"D:\ntp-4.0.94b\ports\winnt\ntptrace\version.c" +] +Creating command line "cl.exe @C:\TEMP\RSP4F.tmp" +Performing Custom Build Step on ..\..\..\configure +Using environment var PERL (d:\prg\perl) +Creating temporary file "C:\TEMP\RSP50.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/ntptrace.pdb" /debug /machine:I386 /out:"Debug/ntptrace.exe" /pdbtype:sept +".\Debug\ntptrace.obj" +".\Debug\version.obj" +"\ntp-4.0.94b\ports\winnt\libntp\Debug\libntp.lib" +] +Creating command line "link.exe @C:\TEMP\RSP50.tmp" +

Output Window

+Compiling... +ntptrace.c +d:\ntp-4.0.94b\ntptrace\ntptrace.c(102) : warning C4100: 'x' : unreferenced formal parameter +d:\ntp-4.0.94b\ntptrace\ntptrace.c(588) : warning C4018: '==' : signed/unsigned mismatch +version.c +Linking... + + + +

Results

+ntptrace.exe - 0 error(s), 2 warning(s) +
+ + diff --git a/ports/winnt/ntpq/ntpq.dsp b/ports/winnt/ntpq/ntpq.dsp new file mode 100644 index 000000000..b067c5590 --- /dev/null +++ b/ports/winnt/ntpq/ntpq.dsp @@ -0,0 +1,145 @@ +# Microsoft Developer Studio Project File - Name="ntpq" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=ntpq - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ntpq.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ntpq.mak" CFG="ntpq - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ntpq - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "ntpq - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName ""$/ntp/dev/ports/winnt/ntpq", WWBAAAAA" +# PROP Scc_LocalPath "." +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ntpq - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "ntpq - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "ntpq - Win32 Release" +# Name "ntpq - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\ntpq\ntpq.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntpq\ntpq_ops.c +# End Source File +# Begin Source File + +SOURCE=.\version.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\ntpq\ntpq.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# Begin Source File + +SOURCE=..\..\..\configure + +!IF "$(CFG)" == "ntpq - Win32 Release" + +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntpq + +# End Custom Build + +!ELSEIF "$(CFG)" == "ntpq - Win32 Debug" + +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntpq + +# End Custom Build + +!ENDIF + +# End Source File +# End Target +# End Project diff --git a/ports/winnt/ntptrace/ntptrace.dsp b/ports/winnt/ntptrace/ntptrace.dsp new file mode 100644 index 000000000..e4a186f48 --- /dev/null +++ b/ports/winnt/ntptrace/ntptrace.dsp @@ -0,0 +1,149 @@ +# Microsoft Developer Studio Project File - Name="ntptrace" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=ntptrace - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ntptrace.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ntptrace.mak" CFG="ntptrace - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ntptrace - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "ntptrace - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName ""$/ntp/dev/ports/winnt/ntptrace", AXBAAAAA" +# PROP Scc_LocalPath "." +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ntptrace - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W4 /GX /O2 /I "..\..\..\include" /I "..\include" /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "ntptrace - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "..\..\..\include" /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "SYS_WINNT" /D "HAVE_CONFIG_H" /D _WIN32_WINNT=0x400 /YX"windows.h" /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "ntptrace - Win32 Release" +# Name "ntptrace - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\ntptrace\ntptrace.c +# End Source File +# Begin Source File + +SOURCE=.\version.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\include\sys\ioctl.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\ntptrace\ntptrace.h +# End Source File +# Begin Source File + +SOURCE=..\include\sys\resource.h +# End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# Begin Source File + +SOURCE=..\..\..\configure + +!IF "$(CFG)" == "ntptrace - Win32 Release" + +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntptrace + +# End Custom Build + +!ELSEIF "$(CFG)" == "ntptrace - Win32 Debug" + +# Begin Custom Build +ProjDir=. +InputPath=..\..\..\configure + +"$(ProjDir)\version.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)" + echo Using environment var PERL ($(PERL)) + $(PERL)\bin\perl ..\scripts\mkver.bat -P ntptrace + +# End Custom Build + +!ENDIF + +# End Source File +# End Target +# End Project diff --git a/ports/winnt/scripts/mkver.bat b/ports/winnt/scripts/mkver.bat new file mode 100755 index 000000000..012424498 --- /dev/null +++ b/ports/winnt/scripts/mkver.bat @@ -0,0 +1,100 @@ +@rem = '--*-Perl-*--'; +@rem = ' +@echo off +perl -S %0.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 +goto endofperl +@rem '; +###################################################################### +# +# Revision: mkver.bat +# Author: Greg Schueman +# Date: 05/03/1996 +# Purpose: Provide a perl script for NT to replace the +# mkversion shell script. +# +# +# +# Subroutines: +# print_help +# +# +# +###################################################################### + +use English; +use Getopt::Long; + +#********************************************************************* +# Program Dependency Requirements +#********************************************************************* + +#********************************************************************* +# Set Environment +#********************************************************************* +$PROGRAM = $0; +$USAGE = "Usage: ${PROGRAM} [ -P -H ]\n"; + + +#********************************************************************* +# Subroutine Print Help +#********************************************************************* + +sub print_help +{ + print STDERR $USAGE; + print STDERR " -P --Program Name Database Name\n"; + print STDERR " -H --Help Help on options\n"; + print STDERR "\n"; +} # print_help end + + + +#********************************************************************* +# Main program +#********************************************************************* + +# +# Process runtime options +# +$result = GetOptions('help|H', 'prog|P=s'); + +if ($opt_help == 1) +{ + print_help(); + exit(); +}; + + +if (length($opt_prog) > 0) + { $GENERATED_PROGRAM=$opt_prog; } +else + { die "Program Name parameter required."; } + +# +# Program logic +# + +$DATE = localtime; +chomp $DATE; +$RUN = "0"; # Not working yet + +open( INPUT, '<..\..\..\configure' ); +open( OUTPUT, '>version.c' ); + +while ($_ = ) +{ +# if (/^[0-9a-zA-Z_]*=/) + if (/^VERSION=/) + { + $FLAGS = $POSTMATCH; + } +} +chomp $FLAGS; + +print OUTPUT "char * Version = \"$GENERATED_PROGRAM $FLAGS $DATE ($RUN)\" ;"; + +close( OUTPUT ); +close( INPUT ); + +__END__ +:endofperl