⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 27

📁 Unix/Linux 网络时间协议版本3 Network Time Protocol Version 3 (NTP) distribution for Unix systems
💻
📖 第 1 页 / 共 5 页
字号:
- !ENDIF - - !IF "$(OS)" == "Windows_NT"- NULL=- !ELSE - NULL=nul- !ENDIF - ################################################################################- # Begin Project- # PROP Target_Last_Scanned "ntptrace - Win32 Debug"- RSC=rc.exe- CPP=cl.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 Target_Dir ""- OUTDIR=.\Release- INTDIR=.\Release- - ALL : "$(OUTDIR)\ntptrace.exe"- - CLEAN : - 	-@erase ".\Release\ntptrace.exe"- 	-@erase ".\Release\ntptrace.obj"- - "$(OUTDIR)" :-     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"- - # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c- # ADD CPP /nologo /MLd /W3 /GX /O2 /I "..\include" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "SYS_WINNT" /YX /c- CPP_PROJ=/nologo /MLd /W3 /GX /O2 /I "..\include" /D "NDEBUG" /D "WIN32" /D\-  "_CONSOLE" /D "SYS_WINNT" /Fp"$(INTDIR)/ntptrace.pch" /YX /Fo"$(INTDIR)/" /c - CPP_OBJS=.\Release/- CPP_SBRS=- # ADD BASE RSC /l 0x409 /d "NDEBUG"- # ADD RSC /l 0x409 /d "NDEBUG"- BSC32=bscmake.exe- # ADD BASE BSC32 /nologo- # ADD BSC32 /nologo- BSC32_FLAGS=/nologo /o"$(OUTDIR)/ntptrace.bsc" - BSC32_SBRS=- 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 /nologo /subsystem:console /machine:I386- # ADD LINK32 ..\lib\windebug\libntp.lib wsock32.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- # SUBTRACT LINK32 /nodefaultlib- LINK32_FLAGS=..\lib\windebug\libntp.lib wsock32.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:"$(OUTDIR)/ntptrace.pdb" /machine:I386\-  /out:"$(OUTDIR)/ntptrace.exe" - LINK32_OBJS= \- 	"$(INTDIR)/ntptrace.obj"- - "$(OUTDIR)\ntptrace.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)-     $(LINK32) @<<-   $(LINK32_FLAGS) $(LINK32_OBJS)- <<- - !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 Target_Dir ""- OUTDIR=.\Debug- INTDIR=.\Debug- - ALL : "$(OUTDIR)\ntptrace.exe" "$(OUTDIR)\ntptrace.bsc"- - CLEAN : - 	-@erase ".\Debug\vc40.pdb"- 	-@erase ".\Debug\vc40.idb"- 	-@erase ".\Debug\ntptrace.bsc"- 	-@erase ".\Debug\ntptrace.sbr"- 	-@erase ".\Debug\ntptrace.exe"- 	-@erase ".\Debug\ntptrace.obj"- 	-@erase ".\Debug\ntptrace.ilk"- 	-@erase ".\Debug\ntptrace.pdb"- - "$(OUTDIR)" :-     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"- - # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c- # ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\include" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "SYS_WINNT" /FR /YX /c- CPP_PROJ=/nologo /MLd /W3 /Gm /GX /Zi /Od /I "..\include" /D "_DEBUG" /D\-  "WIN32" /D "_CONSOLE" /D "SYS_WINNT" /FR"$(INTDIR)/"\-  /Fp"$(INTDIR)/ntptrace.pch" /YX /Fo"$(INTDIR)/" /Fd"$(INTDIR)/" /c - CPP_OBJS=.\Debug/- CPP_SBRS=.\Debug/- # ADD BASE RSC /l 0x409 /d "_DEBUG"- # ADD RSC /l 0x409 /d "_DEBUG"- BSC32=bscmake.exe- # ADD BASE BSC32 /nologo- # ADD BSC32 /nologo- BSC32_FLAGS=/nologo /o"$(OUTDIR)/ntptrace.bsc" - BSC32_SBRS= \- 	"$(INTDIR)/ntptrace.sbr"- - "$(OUTDIR)\ntptrace.bsc" : "$(OUTDIR)" $(BSC32_SBRS)-     $(BSC32) @<<-   $(BSC32_FLAGS) $(BSC32_SBRS)- <<- - 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 /nologo /subsystem:console /debug /machine:I386- # ADD LINK32 ..\lib\windebug\libntp.lib wsock32.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- # SUBTRACT LINK32 /nodefaultlib- LINK32_FLAGS=..\lib\windebug\libntp.lib wsock32.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:"$(OUTDIR)/ntptrace.pdb" /debug /machine:I386\-  /out:"$(OUTDIR)/ntptrace.exe" - LINK32_OBJS= \- 	"$(INTDIR)/ntptrace.obj"- - "$(OUTDIR)\ntptrace.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)-     $(LINK32) @<<-   $(LINK32_FLAGS) $(LINK32_OBJS)- <<- - !ENDIF - - .c{$(CPP_OBJS)}.obj:-    $(CPP) $(CPP_PROJ) $<  - - .cpp{$(CPP_OBJS)}.obj:-    $(CPP) $(CPP_PROJ) $<  - - .cxx{$(CPP_OBJS)}.obj:-    $(CPP) $(CPP_PROJ) $<  - - .c{$(CPP_SBRS)}.sbr:-    $(CPP) $(CPP_PROJ) $<  - - .cpp{$(CPP_SBRS)}.sbr:-    $(CPP) $(CPP_PROJ) $<  - - .cxx{$(CPP_SBRS)}.sbr:-    $(CPP) $(CPP_PROJ) $<  - - ################################################################################- # Begin Target- - # Name "ntptrace - Win32 Release"- # Name "ntptrace - Win32 Debug"- - !IF  "$(CFG)" == "ntptrace - Win32 Release"- - !ELSEIF  "$(CFG)" == "ntptrace - Win32 Debug"- - !ENDIF - - ################################################################################- # Begin Source File- - SOURCE=.\ntptrace.c- DEP_CPP_NTPTR=\- 	{$(INCLUDE)}"\sys\TYPES.H"\- 	".\..\include\ntp_select.h"\- 	".\..\include\ntp_fp.h"\- 	".\..\include\ntp.h"\- 	".\..\include\ntp_io.h"\- 	".\..\include\ntp_unixtime.h"\- 	".\ntptrace.h"\- 	".\..\include\ntp_string.h"\- 	".\..\include\ntp_stdlib.h"\- 	".\..\include\ntp_syslog.h"\- 	".\..\include\ntp_types.h"\- 	".\..\include\ntp_machine.h"\- 	{$(INCLUDE)}"\sys\TIMEB.H"\- 	".\..\include\l_stdlib.h"\- 	- NODEP_CPP_NTPTR=\- 	".\..\include\gizmo_syslog.h"\- 	- - !IF  "$(CFG)" == "ntptrace - Win32 Release"- - - "$(INTDIR)\ntptrace.obj" : $(SOURCE) $(DEP_CPP_NTPTR) "$(INTDIR)"- - - !ELSEIF  "$(CFG)" == "ntptrace - Win32 Debug"- - - "$(INTDIR)\ntptrace.obj" : $(SOURCE) $(DEP_CPP_NTPTR) "$(INTDIR)"- - "$(INTDIR)\ntptrace.sbr" : $(SOURCE) $(DEP_CPP_NTPTR) "$(INTDIR)"- - - !ENDIF - - # End Source File- # End Target- # End Project- ################################################################################--- 0 ----Binary files xntp3-5.86/scripts/wininstall/SETUP.DBG and xntp/scripts/wininstall/SETUP.DBG differBinary files xntp3-5.86/scripts/wininstall/SETUP.INS and xntp/scripts/wininstall/SETUP.INS differdiff -N -x *.mak -c -r xntp3-5.86/scripts/wininstall/SETUP.RUL xntp/scripts/wininstall/SETUP.RUL*** xntp3-5.86/scripts/wininstall/SETUP.RUL	Thu Jan 01 00:01:02 1970--- xntp/scripts/wininstall/SETUP.RUL	Thu Jan 01 00:00:00 1970****************** 1,788 ****- /*---------------------------------------------------------------------------*\-  *  Fileg Name:  SETUP.RUL-  *-  *  Description:  XNTP - NT Install, BIND version by Larry Kahn... using ideas -  *   from Paul Wren's (PIW) version.  Reworked by Greg Schueman for XNTP.-  *- \* ----------------------------------------------------------------------------*/- declare- 	// Constant declarations.- 	#define SPACE_REQUIRED          1300000          // Disk space in bytes.- 	#define APP_NAME                "NetworkTimeProtocol"- 	#define APP_NAME2               "XNTP 3.5f Freeware"- 	#define APPBASE_PATH            "\\var\\ntp\\"- 	#define PRODUCT_VERSION         "3.5fRel"- 	#define DEINSTALL_KEY           "NTP3.5f"- 	#define UNINSTALL_NAME          "NTP"- 	#define PRODUCT_KEY             "xntpd.exe"- 	#define NTP_PORT                123- 	#define ONETIMESOURCE           1- 	#define TWOTIMESOURCES          2- 	#define NOTIMEYET               3- 	- 	// Global variable declarations- 	STRING  svDir, szMsg, szFileSet,szTitle,  szMessage, svUninstLogFile;- 	STRING  szProgram, szParam, szTemp, szTemp2, szAppPath;- 	STRING  svFileName;- 	STRING  svTempStr;-     STRING  svModuleDir;-     STRING  svAnswer;-     STRING  dummy;- 	- 	BOOL    bRemoveNTP, bUpdateModules;- 	- - 	STRING  svNTPAddress;                   // the IP address of "1st" time source- 	STRING  svNTPAddress2;                  // the IP address of "2nd" time source- 	STRING  szDllNTPInst;- 	NUMBER  nReturnValue;-     INT     nReturnValue2;-     INT     nValue;- 	- 	//--------Custom Dialog in Ishield-------------------------- 	BOOL bDone;- 	LIST lNames, lAddrs;- - 	//------- NTPInst.DLL defines------------------------- 	#define k_PrivilegeErr                  1- 	#define k_CreateKeyErr                  2- 	#define k_RestoreKeyErr                 3- 	#define k_ErrUnableToOpenWriteOwner     4- 	#define k_ErrUnableToSetOwner           5- 	#define k_ErrUnableToOpenDAC            6- 	#define k_ErrUnableToWriteDACL          7- 	#define k_OpenKeyError                  8- 	#define k_ModifySetAccountFail          10- 	#define k_SCMErr                        11- 	#define k_SCMpoErr                      12- 	#define k_DeleteServiceFail             13- 	#define k_DeleteKeyFail                 14- 	#define k_DeleteValueFail               15- 	#define k_DirSecurityErr                16- 	#define k_DirSetDACLErr                 17- 	#define k_DirSetSecurityErr             18- 	#define k_SCMpoStopErr                  19- 	#define k_SaveKeyErr                    20- 	#define k_ServiceUnknownErr             50- 	#define k_ServiceDependency             51- 	#define k_ServiceDependencyFail         52- 	#define k_ServiceLogonFail              53- -     #define k_BadPath                       101- 	#define k_AccessDenied                  102- 	#define k_ServiceExists                 103-     #define k_createservicefailed           104-     #define k_removeservicefailed           105- 	#define k_ServicenoExists               106- 	- 	//--------Function declarations----------------------------- 	prototype SetupScreen                   ();- 	prototype CheckRequirements             ();- 	prototype RemoveNTP                     ();- 	prototype UpdateModules                 ();- 	- 	prototype ReportError                   (INT, BYREF STRING);- 	prototype DoConfigType                  ();- 	prototype CreateConfigFiles             (INT);- 	prototype InstallNTPFiles               (STRING, INT);- 	prototype RegisterEventlogMessages	    (STRING);-     prototype CheckForService               ();-     prototype GetImagePath                  (BYREF STRING);-     prototype LaunchAppAndWait              (STRING,STRING, INT);-     prototype ReverseOctet                  (BYREF STRING, STRING);-     prototype FixDirectory                  (BYREF STRING, STRING);-        - - //--------------------------------------------------------------------------- program- - StartHere:-     Disable( BACKGROUND );- -     dummy = "   ";-     // Set default registry tree-     RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);- -     // Set up the installation screen.-     SetupScreen();-     Enable( DIALOGCACHE );- - 	TARGETDIR = SUPPORTDIR;- 	szDllNTPInst = SUPPORTDIR ^ "NTPDLL.DLL";  // NTP-specific helper library- -     svDir = WINSYSDISK + "\\";-     -     // Module locations, XNTP - NT location- 	svModuleDir = WINDISK^"\\win32app\\ntp";- - - OfferReadmeFile:- - if (AskYesNo("Would you like to see the readme file before proceeding? \n",NO ) = YES) then- 	LaunchAppAndWait("NOTEPAD",SUPPORTDIR ^ "README.NT",1);- endif;- 	- CheckForService1:-     // Look for service-     if (CheckForService() != 0) then                    // Not clean install- 	Disable(BACKBUTTON);- 		bUpdateModules = TRUE;- 	szMessage = "Setup has determined that the NTP - NT service is\n" +- 		    "already present.  Do you want to:\n";- 	AskOptions(EXCLUSIVE, szMessage,-                 - 		   "&Remove NTP service", bRemoveNTP,- 		   "&Update NTP to this version", bUpdateModules);- 				   - 	Enable(BACKBUTTON);- 	if (bRemoveNTP) then- 		if (AskYesNo("Are you certain you wish to remove the NTP service\n" +- 				 "and registry entries? \n",NO ) = YES) then- 		   RemoveNTP();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -