Mercurial > projects > ldc
comparison druntime/src/common/stdc/errno.c @ 759:d3eb054172f9
Added copy of druntime from DMD 2.020 modified for LDC.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 11 Nov 2008 01:52:37 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
758:f04dde6e882c | 759:d3eb054172f9 |
---|---|
1 /** | |
2 * This file contains wrapper functions for macro-defined C rouines. | |
3 * | |
4 * Copyright: Copyright (c) 2005-2008, The D Runtime Project | |
5 * License: BSD Style, see LICENSE | |
6 * Authors: Sean Kelly | |
7 */ | |
8 #include <errno.h> | |
9 | |
10 | |
11 int getErrno() | |
12 { | |
13 return errno; | |
14 } | |
15 | |
16 | |
17 int setErrno( int val ) | |
18 { | |
19 errno = val; | |
20 return val; | |
21 } |