ReactOS 0.4.16-dev-297-gc569aee
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
41extern int errno;
42#endif
43
44#ifndef HAVE_STRERROR
45extern char *sys_errlist[];
46extern int sys_nerr;
47#endif
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
53#ifndef seterrno
54extern int seterrno __PR((int));
55#endif
56extern int geterrno __PR((void));
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* _SCHILY_ERRNO_H */
EXPORT int geterrno()
Definition: geterrno.c:34
#define __PR(a)
Definition: prototyp.h:106
#define errno
Definition: errno.h:18
char * sys_errlist[]
int sys_nerr
EXPORT int seterrno(int err)
Definition: seterrno.c:34