xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/stdc/errno_.c (revision 0a3071956a3a9fdebdbf7f338cf2d439b45fc728)
1 /**
2  * This file contains wrapper functions for macro-defined C routines.
3  *
4  * Copyright: Copyright Sean Kelly 2005 - 2009.
5  * License: Distributed under the
6  *      $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
7  *    (See accompanying file LICENSE)
8  * Authors:   Sean Kelly
9  * Source:    $(DRUNTIMESRC core/stdc/errno.c)
10  */
11 
12 #include <errno.h>
13 
14 
getErrno()15 int getErrno()
16 {
17     return errno;
18 }
19 
20 
setErrno(int val)21 int setErrno( int val )
22 {
23     errno = val;
24     return val;
25 }
26