OSSP CVS Repository

ossp - Check-in [2118]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2118
Date: 2002-Apr-29 21:24:41 (local)
2002-Apr-29 19:24:41 (UTC)
User:rse
Branch:
Comment: move to correct position and start with ui64_t integration
Tickets:
Inspections:
Files:
ossp-pkg/tai/tai_lib.c      1.2 -> 1.3     0 inserted, 20 deleted
ossp-pkg/tai/tai_p.h      1.1 -> 1.2     18 inserted, 0 deleted

ossp-pkg/tai/tai_lib.c 1.2 -> 1.3

--- tai_lib.c    2002/04/24 09:07:24     1.2
+++ tai_lib.c    2002/04/29 19:24:41     1.3
@@ -37,26 +37,6 @@
 #include "tai.h"
 #include "tai_p.h"
 
-struct tai_st {
-    int    tai_sec;    /* seconds after the minute [0-61] */
-    int    tai_min;    /* minutes after the hour [0-59] */
-    int    tai_hour;   /* hours since midnight [0-23] */
-    int    tai_mday;   /* day of the month [1-31] */
-    int    tai_mon;    /* months since January [0-11] */
-    int    tai_year;   /* years since 1900 */
-    int    tai_wday;   /* days since Sunday [0-6] */
-    int    tai_yday;   /* days since January 1 [0-365] */
-    int    tai_isdst;  /* Daylight Savings Time flag */
-    long   tai_gmtoff; /* offset from CUT in seconds */
-    char  *tai_zone;   /* timezone abbreviation */
-#if 0
-    int sign;
-    unsigned long long sec;
-    unsigned long nsec;
-    unsigned long asec;
-#endif
-};
-
 tai_rc_t tai_create(tai_t **ptai)
 {
     tai_t *tai;


ossp-pkg/tai/tai_p.h 1.1 -> 1.2

--- tai_p.h      2002/04/18 09:10:45     1.1
+++ tai_p.h      2002/04/29 19:24:41     1.2
@@ -32,6 +32,24 @@
 #include <time.h>
 
 #include "config.h"
+#include "tai_ui64.h"
+
+struct tai_st {
+    tai_ui64_t sec;    /* seconds (integral part) */
+    tai_ui64_t asec;   /* atto-seconds (fractional part) */
+    /* FIXME: obsolete stuff */
+    int    tai_sec;    /* seconds after the minute [0-61] */
+    int    tai_min;    /* minutes after the hour [0-59] */
+    int    tai_hour;   /* hours since midnight [0-23] */
+    int    tai_mday;   /* day of the month [1-31] */
+    int    tai_mon;    /* months since January [0-11] */
+    int    tai_year;   /* years since 1900 */
+    int    tai_wday;   /* days since Sunday [0-6] */
+    int    tai_yday;   /* days since January 1 [0-365] */
+    int    tai_isdst;  /* Daylight Savings Time flag */
+    long   tai_gmtoff; /* offset from CUT in seconds */
+    char  *tai_zone;   /* timezone abbreviation */
+};
 
 /*
  * Private header file for the strftime and strptime localization

CVSTrac 2.0.1