YAZ  5.23.1
Macros | Functions
errno.c File Reference

errno utilities More...

#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stddef.h>

Go to the source code of this file.


#define _REENTRANT


int yaz_errno (void)
 returns errno More...
void yaz_set_errno (int v)
 sets errno to value More...
void yaz_strerror (char *buf, size_t bufsz)
 returns system error description string More...

Detailed Description

errno utilities

This file unlike other files in YAZ core is thread-aware, due to the use errno.

Definition in file errno.c.

Macro Definition Documentation

#define _REENTRANT

Definition at line 18 of file errno.c.

Function Documentation

int yaz_errno ( void  )
void yaz_set_errno ( int  v)

sets errno to value

verrno value

Definition at line 36 of file errno.c.

Referenced by tcpip_get(), and unix_bind().

void yaz_strerror ( char *  buf,
size_t  bufsz 

returns system error description string

bufbuffer for result
bufszmaximum number of bytes to store

Definition at line 41 of file errno.c.

References yaz_errno().

Referenced by yaz_log().