ReactOS 0.4.16-dev-297-gc569aee
seterrno.c File Reference
#include <schily/standard.h>
#include <schily/errno.h>
#include <schily/schily.h>
Include dependency graph for seterrno.c:

Go to the source code of this file.

Macros

#define _TS_ERRNO   /* Solaris: get thread safe errno value */
 
#define _LIBC_REENTRANT   /* Linux: get thread safe errno value */
 

Functions

EXPORT int seterrno (int err)
 

Macro Definition Documentation

◆ _LIBC_REENTRANT

#define _LIBC_REENTRANT   /* Linux: get thread safe errno value */

Definition at line 23 of file seterrno.c.

◆ _TS_ERRNO

#define _TS_ERRNO   /* Solaris: get thread safe errno value */

Definition at line 20 of file seterrno.c.

Function Documentation

◆ seterrno()

EXPORT int seterrno ( int  err)

Definition at line 34 of file seterrno.c.

36{
37 int old = errno;
38
39 errno = err;
40 return (old);
41}
#define err(...)
#define errno
Definition: errno.h:18

Referenced by _niwrite(), astollb(), eaccess(), errmsgstr(), ffileread(), get_ldate(), searchfileinpath(), searchonefile(), write_one_file(), and xfwrite().