[MKISOFS]
[reactos.git] / reactos / sdk / tools / mkisofs / schilytools / libschily / geterrno.c
1 /* @(#)geterrno.c 1.14 10/08/23 Copyright 1985, 1995-2010 J. Schilling */
2 /*
3 * Get 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/errno.h>
26 #include <schily/standard.h>
27 #include <schily/schily.h>
28
29 #ifdef geterrno
30 #undef geterrno
31 #endif
32
33 EXPORT int
34 geterrno()
35
36 {
37 return (errno);
38 }