From 351aae58f2c73749a12e2b19cbb447614a2ee3ff Mon Sep 17 00:00:00 2001
From: Laurent Bercot
- int alarm_timeout (tain_t const *tto)
+ int alarm_timeout (tain const *tto)
Sets a fuse that will raise a SIGALRM after some amount
of time has passed. The amount of time is described in
*tto, which is a relative
-tain_t, i.e. a structure containing
+tain, i.e. a structure containing
a relative TAIN64 time.
Returns 1 on success and 0 (and sets errno) on failure.
- int alarm_deadline (tain_t const *deadline)
+ int alarm_deadline (tain const *deadline)
Sets a fuse that will raise a SIGALRM when the clock reaches
*deadline, which is an absolute time expressed in
TAI64N format.
diff --git a/doc/libstddjb/allreadwrite.html b/doc/libstddjb/allreadwrite.html
index 8003431..9ad14de 100644
--- a/doc/libstddjb/allreadwrite.html
+++ b/doc/libstddjb/allreadwrite.html
@@ -44,7 +44,7 @@ use higher-level APIs such as buffer and
- typedef ssize_t iofunc_t (int fd, char *buf, size_t len)
+ typedef ssize_t io_func (int fd, char *buf, size_t len)
This is the simplified type of IO functions such as
read()
and
@@ -52,7 +52,7 @@ and
- typedef ssize_t iovfunc_t (int fd, struct iovec const *v, unsigned int vlen)
+ typedef ssize_t iov_func (int fd, struct iovec const *v, unsigned int vlen)
This is the simplified type of IO functions such as
readv()
and
@@ -64,7 +64,7 @@ elements instead of a single string.
- typedef size_t alliofunc_t (int fd, char *buf, size_t len)
+ typedef size_t allio_func (int fd, char *buf, size_t len)
This is the type of an IO operation that expects all of its
len bytes to be sent or received, and that will loop around a
lower-level IO function until either len bytes have been
@@ -100,7 +100,7 @@ Returns the inverse of sanitize_read
.
- size_t allreadwrite (iofunc_t *f, int fd, char *s, size_t len)
+ size_t allreadwrite (io_func *f, int fd, char *s, size_t len)
*f must be a basic reading or writing function such as
fd_read or fd_write. allreadwrite() performs
*f on fd, s and len until len
@@ -112,7 +112,7 @@ set errno to EWOULDBLOCK or EAGAIN.
- size_t allreadwritev (iovfunc_t *f, int fd, struct iovec const *v, unsigned int vlen)
+ size_t allreadwritev (iov_func *f, int fd, struct iovec const *v, unsigned int vlen)
Like allreadwrite
but the content to perform IO on is specified as a
scatter/gather array of vlen
@@ -171,7 +171,7 @@ an error occurs.
size_t allwrite (int fd, char const *s, size_t len)
-Equivalent to allreadwrite((iofunc_t *)&fd_write, fd, s, len)
:
+Equivalent to allreadwrite((io_func *)&fd_write, fd, s, len)
:
attempts to write len bytes from s to fd, looping
around fd_write() if necessary, until either len bytes are
written or an error occurs.
diff --git a/doc/libstddjb/djbtime.html b/doc/libstddjb/djbtime.html
index 8d47b5c..bc6b37a 100644
--- a/doc/libstddjb/djbtime.html
+++ b/doc/libstddjb/djbtime.html
@@ -29,7 +29,7 @@ and implemented in the libskarnet.a or libskarnet.so library.
djbtime is a set of functions to convert -tai_t and tain_t structures, and +tai and tain structures, and TAI time, from and to other time formats and user-friendly representations.
@@ -37,13 +37,13 @@ other time formats and user-friendly representations.
- int utc_from_tai (uint64_t *u, tai_t const *t)
+ int utc_from_tai (uint64_t *u, tai const *t)
Converts the absolute TAI64 time in *t to an UTC time, stored in
*u as an unsigned 64-bit integer. *u is actually 2^62
plus the number of seconds since the Epoch.
@@ -62,7 +62,7 @@ returns 2 instead of 1.
- int tai_from_utc (tai_t *t, uint64_t u)
+ int tai_from_utc (tai *t, uint64_t u)
Converts the UTC time in u, stored
as an unsigned 64-bit integer (2^62 plus the number of seconds since
the Epoch), to a TAI64 time in *t.
@@ -73,7 +73,7 @@ error occurs.
- int ntp_from_tain (uint64_t *ntp, tain_t const *a)
+ int ntp_from_tain (uint64_t *ntp, tain const *a)
Converts the absolute TAI64N time in *a to a 64-bit NTP timestamp,
stored in *ntp. The higher 32 bits of *ntp represent a number
of seconds ; the lower 32 bits are the fractional part of the timestamp.
@@ -83,7 +83,7 @@ error occurs (for instance:
- int tain_from_ntp (tain_t *a, uint64_t ntp)
+ int tain_from_ntp (tain *a, uint64_t ntp)
Converts the NTP timestamp in ntp to a TAI64N time in
*a.
The function returns 1 if it succeeds, or 0 (and sets errno) if an
@@ -101,7 +101,7 @@ timezone takes leap seconds into account or not.
- int localtm_from_tai (struct tm *tm, tai_t const *t, int lo)
+ int localtm_from_tai (struct tm *tm, tai const *t, int lo)
Converts the TAI time in *t to broken-down GMT (if
lo is zero) or local (if lo is nonzero) time in
*tm.
@@ -141,7 +141,7 @@ error occurs.
- int tai_from_localtm (tai_t *t, struct tm const *tm)
+ int tai_from_localtm (tai *t, struct tm const *tm)
Converts the broken-down local time in *tm to a TAI value
in *t.
The function returns 1 if it succeeds, or 0 (and sets errno) if an
@@ -157,11 +157,11 @@ error occurs.
- The following functions use the localtmn_t type to hold both + The following functions use the localtmn type to hold both a broken-down time and a nanosecond count:
-typedef struct localtmn_s localtmn_t, *localtmn_t_ref ; +typedef struct localtmn_s localtmn, *localtmn_ref ; struct localtmn_s { struct tm tm ; @@ -174,10 +174,10 @@ struct localtmn_s-
int localtmn_from_tain (localtmn_t *tmn, tain_t const *a, int lo) ;
-int tain_from_localtmn (tain_t *a, localtmn_t const *tmn) ;
-int localtmn_from_sysclock (localtmn_t *tmn, tain_t const *a, int lo) ;
-int sysclock_from_localtmn (tain_t *a, localtmn_t const *tmn) ;
+int localtmn_from_tain (localtmn *tmn, tain const *a, int lo) ;
+int tain_from_localtmn (tain *a, localtmn const *tmn) ;
+int localtmn_from_sysclock (localtmn *tmn, tain const *a, int lo) ;
+int sysclock_from_localtmn (tain *a, localtmn const *tmn) ;