CONTENTS Title Page Copyright Page Preface 1 Introduction to the DECdts API 1.1 DECdts Time Representation 1.1.1 Absolute Time Representation 1.1.2 Relative Time Representation 1.2 Time Structures 1.2.1 The utc Structure 1.2.2 The tm Structure 1.2.3 The timespec Structure 1.2.4 The reltimespec Structure 1.2.5 The VMS Time Structure 1.3 DECdts API Header Files 1.4 Linking Programs with the DECdts API 1.4.1 Linking Programs on DECnet/OSI for VMS systems 1.4.2 Linking Programs on DECnet/OSI for ULTRIX systems 2 DECdts Portable Applications Programming Interface 2.1 DECdts API Routine Functions utc_abstime utc_addtime utc_anytime utc_anyzone utc_ascanytime utc_ascgmtime utc_asclocaltime utc_ascreltime utc_binreltime utc_bintime utc_boundtime utc_cmpintervaltime utc_cmpmidtime utc_gettime utc_getusertime utc_gmtime utc_gmtzone utc_localtime utc_localzone utc_mkanytime utc_mkascreltime utc_mkasctime utc_mkbinreltime utc_mkbintime utc_mkgmtime utc_mklocaltime utc_mkreltime utc_mkvmsanytime utc_mkvmsgmtime utc_mkvmslocaltime utc_mulftime utc_multime utc_pointtime utc_reltime utc_spantime utc_subtime utc_vmsanytime utc_vmsgmtime utc_vmslocaltime 3 Using the DECdts API Routines 4 Time-Provider Interface 4.1 General TPI Control Flow 4.2 Message Types 4.2.1 The Time Request Message 4.2.2 Time Response Messages 4.2.2.1 The Control Message 4.2.2.2 The Data Message 4.3 Interprocess Communication 4.3.1 Interprocess Communications on VMS Systems 4.3.2 Interprocess Communications on ULTRIX Systems 4.4 Time-Provider Algorithm 4.5 Time Server (DECdts Server Process) Algorithm 4.6 Running the Time-Provider Process 4.7 Time-Provider Interface, User Accessible Definitions 4.8 Sample Time-Provider Programs and External Time-Provider Sources Glossary FIGURES 4-1 DECdts Server/TP Process Message Exchange TABLES 1-1 Absolute Time Structures 1-2 Relative Time Structures 4-1 Time-Provider Programs and Related Time-Provider Suppliers