ReactOS
0.4.16-dev-106-g10b08aa
seterrno.c
Go to the documentation of this file.
1
/* @(#)seterrno.c 1.13 10/08/23 Copyright 1985, 1995-2010 J. Schilling */
2
/*
3
* Set error number
4
*
5
* Copyright (c) 1985, 1995-2010 J. Schilling
6
*/
7
/*
8
* The contents of this file are subject to the terms of the
9
* Common Development and Distribution License, Version 1.0 only
10
* (the "License"). You may not use this file except in compliance
11
* with the License.
12
*
13
* See the file CDDL.Schily.txt in this distribution for details.
14
*
15
* When distributing Covered Code, include this CDDL HEADER in each
16
* file and include the License file CDDL.Schily.txt from this distribution.
17
*/
18
19
#ifndef _TS_ERRNO
20
#define _TS_ERRNO
/* Solaris: get thread safe errno value */
21
#endif
22
#ifndef _LIBC_REENTRANT
23
#define _LIBC_REENTRANT
/* Linux: get thread safe errno value */
24
#endif
25
#include <
schily/standard.h
>
26
#include <
schily/errno.h
>
27
#include <
schily/schily.h
>
28
29
#ifdef seterrno
30
#undef seterrno
31
#endif
32
33
EXPORT
int
34
seterrno
(
err
)
35
int
err
;
36
{
37
int
old =
errno
;
38
39
errno
=
err
;
40
return
(old);
41
}
err
#define err(...)
Definition:
reactos_support_code.h:30
schily.h
errno
#define errno
Definition:
errno.h:18
errno.h
seterrno
EXPORT int seterrno(int err)
Definition:
seterrno.c:34
standard.h
EXPORT
Definition:
spec2def.c:21
sdk
tools
mkisofs
schilytools
libschily
seterrno.c
Generated on Tue Oct 8 2024 06:17:36 for ReactOS by
1.9.6