s/qmail  3.3.23
Next generation secure email transport
taia.h
Go to the documentation of this file.
1 /* Public domain. */
2 
3 #ifndef TAIA_H
4 #define TAIA_H
5 
6 #include "tai.h"
7 
8 struct taia {
9  struct tai sec;
10  unsigned long nano; /* 0...999999999 */
11  unsigned long atto; /* 0...999999999 */
12 } ;
13 
14 void taia_tai(const struct taia *,struct tai *);
15 
16 void taia_now(struct taia *);
17 
18 double taia_approx(const struct taia *);
19 double taia_frac(const struct taia *);
20 
21 void taia_add(struct taia *,const struct taia *,const struct taia *);
22 void taia_addsec(struct taia *,const struct taia *,int);
23 void taia_sub(struct taia *,const struct taia *,const struct taia *);
24 void taia_half(struct taia *,const struct taia *);
25 int taia_less(const struct taia *,const struct taia *);
26 
27 #define TAIA_PACK 16
28 void taia_pack(char *,const struct taia *);
29 void taia_unpack(const char *,struct taia *);
30 
31 #define TAIA_FMTFRAC 19
32 unsigned int taia_fmtfrac(char *,const struct taia *);
33 
34 void taia_uint(struct taia *,unsigned int);
35 
36 #endif
unsigned long atto
Definition: taia.h:11
Definition: taia.h:8
struct tai sec
Definition: taia.h:9
unsigned long nano
Definition: taia.h:10
void taia_sub(struct taia *, const struct taia *, const struct taia *)
void taia_half(struct taia *, const struct taia *)
void taia_addsec(struct taia *, const struct taia *, int)
int taia_less(const struct taia *, const struct taia *)
double taia_frac(const struct taia *)
void taia_now(struct taia *)
void taia_pack(char *, const struct taia *)
void taia_add(struct taia *, const struct taia *, const struct taia *)
unsigned int taia_fmtfrac(char *, const struct taia *)
void taia_tai(const struct taia *, struct tai *)
void taia_uint(struct taia *, unsigned int)
Definition: tai.h:8
double taia_approx(const struct taia *)
void taia_unpack(const char *, struct taia *)