ReactOS  0.4.12-dev-90-g2e2e63e
errno.h
Go to the documentation of this file.
1 /* @(#)errno.h 1.7 10/08/24 Copyright 2006-2010 J. Schilling */
2 /*
3  * Error number related definitions
4  *
5  * Copyright (c) 2006-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 _SCHILY_ERRNO_H
20 #define _SCHILY_ERRNO_H
21 
22 #ifndef _SCHILY_MCONFIG_H
23 #include <schily/mconfig.h>
24 #endif
25 
26 #ifdef JOS
27 #include <error.h>
28 
29 #define ENOEXEC EBADHEADER
30 #define EACCES EACCESS
31 #define ENOENT ENOFILE
32 #define EEXIST EEXISTS
33 #else
34 #include <errno.h>
35 
36 #define EMISSDIR ENOENT
37 #define ENDOFFILE EFBIG
38 #endif
39 
40 #ifndef HAVE_ERRNO_DEF
41 extern int errno;
42 #endif
43 
44 #ifndef HAVE_STRERROR
45 extern char *sys_errlist[];
46 extern int sys_nerr;
47 #endif
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
53 #ifndef seterrno
54 extern int seterrno __PR((int));
55 #endif
56 extern int geterrno __PR((void));
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* _SCHILY_ERRNO_H */
int seterrno __PR((int))
int sys_nerr
int errno
EXPORT int seterrno(int err)
Definition: seterrno.c:34
EXPORT int geterrno()
Definition: geterrno.c:34
char * sys_errlist[]