summaryrefslogtreecommitdiffstats
path: root/include/slib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/slib.h')
-rw-r--r--include/slib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/slib.h b/include/slib.h
index 9ca3608..fe9ae65 100644
--- a/include/slib.h
+++ b/include/slib.h
@@ -107,6 +107,7 @@ typedef long int SL_TICKET; /* Unique ID for opened files. */
#define SL_EREAD -1036 /* Read error. Check errno. */
#define SL_EWRITE -1037 /* Write error. Check errno. */
#define SL_ESYNC -1038 /* Write error. Check errno. */
+#define SL_ECLOSE -1039 /* Close error. Check errno. */
#define SL_EBADNAME -1040 /* Invalid name. */
#define SL_ESTAT -1041 /* stat of file failed. Check errno. */
@@ -225,6 +226,7 @@ extern "C" {
* robust strn[case]cmp replacement
*/
int sl_strncmp(const char * a, const char * b, size_t n);
+ int sl_ts_strncmp(const char * a, const char * b, size_t n);
int sl_strncasecmp(const char * a, const char * b, size_t n);
@@ -437,6 +439,9 @@ extern "C" {
int sl_read_timeout_fd (int fd, void * buf,
size_t count, int timeout, int is_nonblocking);
+ int sl_read_timeout_fd_once (int fd, void * buf,
+ size_t count, int timeout, int is_nonblocking);
+
int sl_read_timeout (SL_TICKET ticket, void * buf,
size_t count, int timeout, int is_nonblocking);