summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/index.html2
-rw-r--r--doc/libstddjb/djbtime.html4
-rw-r--r--doc/libstddjb/djbunix.html47
-rw-r--r--doc/upgrade.html8
-rw-r--r--package/info2
-rw-r--r--src/include/skalibs/djbunix.h2
6 files changed, 46 insertions, 19 deletions
diff --git a/doc/index.html b/doc/index.html
index f41a771..117d9f0 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -59,7 +59,7 @@ with a standard C development environment </li>
<h3> Download </h3>
<ul>
- <li> The current released version of skalibs is <a href="skalibs-2.2.1.0.tar.gz">2.2.1.0</a>. </li>
+ <li> The current released version of skalibs is <a href="skalibs-2.3.0.0.tar.gz">2.3.0.0</a>. </li>
<li> Alternatively, you can checkout a copy of the skalibs git repository:
<pre> git clone git://git.skarnet.org/skalibs </pre> </li>
</ul>
diff --git a/doc/libstddjb/djbtime.html b/doc/libstddjb/djbtime.html
index 2fa3071..417fa7d 100644
--- a/doc/libstddjb/djbtime.html
+++ b/doc/libstddjb/djbtime.html
@@ -186,9 +186,9 @@ struct localtmn_s
</p>
<p>
-<code> int localtmn_from_tain (localtmn_t_ref tmn, tain_t const *a, int lo) ; <br />
+<code> int localtmn_from_tain (localtmn_t *tmn, tain_t const *a, int lo) ; <br />
int tain_from_localtmn (tain_t *a, localtmn_t const *tmn) ; <br />
-int localtmn_from_sysclock (localtmn_t_ref tmn, tain_t const *a, int lo) ; <br />
+int localtmn_from_sysclock (localtmn_t *tmn, tain_t const *a, int lo) ; <br />
int sysclock_from_localtmn (tain_t *a, localtmn_t const *tmn) ; </code> <br />
</p>
diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html
index c65a60b..277db31 100644
--- a/doc/libstddjb/djbunix.html
+++ b/doc/libstddjb/djbunix.html
@@ -192,7 +192,7 @@ Returns 1 if it succeeds and 0 if it fails.
<p>
<code> int fd_sanitize (void) </code> <br />
-Ensures stdin and stdout are open. If one of those
+Ensures stdin, stdout and stderr are open. If one of those
file descriptors was closed, it now points to <tt>/dev/null</tt>.
Returns 1 if it succeeds and 0 if it fails.
</p>
@@ -298,19 +298,6 @@ Opens <em>file</em> in write-only, non-blocking mode.
Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
</p>
-<h3> Seek operations </h3>
-
-<p>
-<code> long seek_cur (int fd) </code> <br />
-Returns the current file offset for descriptor <em>fd</em>.
-</p>
-
-<p>
-<code> int seek_set (int fd, long pos) </code> <br />
-Sets the current file offset for <em>fd</em> to <em>pos</em>.
-Returns 0 if it succeeds, or -1 (and sets errno) if it fails.
-</p>
-
<h3> Privilege management </h3>
<p>
@@ -647,6 +634,38 @@ Trivial shortcuts around <tt>openwritenclose_suffix_internal()</tt>. The
reader can easily figure out what they do.
</p>
+<p>
+<code> int openwritevnclose_unsafe_internal (char const *file, siovec_t const *v, unsigned int vlen, uint64 *dev, uint64 *ino, unsigned char dosync) </code> <br />
+Like <tt>openwritenclose_unsafe_internal</tt>, but the content to
+write is taken from a
+<a href="siovec.html">siovec_t</a> scatter/gather array of <em>vlen</em>
+elements instead of a single string.
+</p>
+
+<p>
+<code> int openwritevnclose_unsafe (char const *file, siovec_t const *v, unsigned int vlen) <br />
+int openwritevnclose_unsafe_sync (char const *file, siovec_t const *v, unsigned int vlen) <br />
+int openwritevnclose_unsafe_devino (char const *file, siovec_t const *v, unsigned int vlen, uint64 *dev, uint64 *ino) <br />
+int openwritevnclose_unsafe_devino_sync (char const *file, siovec_t const *v, unsigned int vlen, uint64 *dev, uint64 *ino) </code> <br />
+Trivial wrappers around <tt>openwritevnclose_unsafe_internal()</tt>.
+</p>
+
+<p>
+<code> int openwritevnclose_suffix_internal (char const *file, siovec_t const *v, unsigned int vlen, uint64 *dev, uint64 *ino, unsigned char dosync, char const *suffix) </code> <br />
+Like <tt>openwritenclose_suffix_internal</tt>, but the content to
+write is taken from a
+<a href="siovec.html">siovec_t</a> scatter/gather array of <em>vlen</em>
+elements instead of a single string.
+</p>
+
+<p>
+<code> int openwritenclose_suffix (char const *file, char const *s, unsigned int len, char const *suffix) <br />
+int openwritenclose_suffix_sync (char const *file, char const *s, unsigned int len, char const *suffix) <br />
+int openwritenclose_suffix_devino (char const *file, char const *s, unsigned int len, uint64 *dev, uint64 *ino, char const *suffix) <br />
+int openwritenclose_suffix_devino_sync (char const *file, char const *s, unsigned int len, uint64 *dev, uint64 *ino, char const *suffix) </code> <br />
+Trivial wrappers around <tt>openwritevnclose_suffix_internal()</tt>.
+</p>
+
<h3> Filesystem deletion </h3>
<p>
diff --git a/doc/upgrade.html b/doc/upgrade.html
index 6786c2d..8f819c7 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -17,6 +17,14 @@
<h1> What has changed in skalibs </h1>
+<h2> in 2.3.0.0 </h2>
+
+<ul>
+ <li> buffer_getvall and buffer_putvall have a different interface. (And now work.) </li>
+ <li> buffer_read and buffer_write are now deprecated. </li>
+ <li> various siovec additions, such as siovec_trunc </li>
+</ul>
+
<h2> in 2.2.1.0 </h2>
<ul>
diff --git a/package/info b/package/info
index d89fde2..c9735fd 100644
--- a/package/info
+++ b/package/info
@@ -1,4 +1,4 @@
package=skalibs
-version=2.2.1.0
+version=2.3.0.0
category=prog
package_macro_name=SKALIBS
diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h
index d22740b..387e05a 100644
--- a/src/include/skalibs/djbunix.h
+++ b/src/include/skalibs/djbunix.h
@@ -37,7 +37,7 @@ extern int fd_sync (int) ;
extern int fd_cat (int, int) ;
extern unsigned int fd_catn (int, int, unsigned int) ;
extern int fd_ensure_open (int, int) ;
-#define fd_sanitize() (fd_ensure_open(0, 0) && fd_ensure_open(1, 1) && fd_ensure_open(2, 2))
+#define fd_sanitize() (fd_ensure_open(0, 0) && fd_ensure_open(1, 1) && fd_ensure_open(2, 1))
extern int lock_ex (int) ;
extern int lock_exnb (int) ;
extern int lock_sh (int) ;