menu: added new Keywords tag to .desktop files
[barry.git] / wince / wrappers / errno.h
blobe3904c09c71e58a949b1f502c8fc0c703255ef3c
1 ///
2 /// \file errno.h
3 /// Wrapper header file to aid porting to WinCE
4 ///
6 /*
7 Copyright (C) 2012, RealVNC Ltd.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #ifndef __ERRNO_H__
23 #define __ERRNO_H__
25 // Define some standard error numbers which might not be defined on all platforms
26 #ifndef EIO
27 #define EIO 5
28 #endif
29 #ifndef EINVAL
30 #define EINVAL 22
31 #endif
32 #ifndef EACCES
33 #define EACCES 13
34 #endif
35 #ifndef ENODEV
36 #define ENODEV 19
37 #endif
38 #ifndef EBUSY
39 #define EBUSY 16
40 #endif
41 #ifndef EPIPE
42 #define EPIPE 32
43 #endif
44 #ifndef EINTR
45 #define EINTR 4
46 #endif
47 #ifndef ENOMEM
48 #define ENOMEM 12
49 #endif
50 #ifndef ENOSYS
51 #define ENOSYS 38
52 #endif
53 #ifndef ENOENT
54 #define ENOENT 2
55 #endif
56 #ifndef ETIMEDOUT
57 #define ETIMEDOUT 110
58 #endif
59 #ifndef EOVERFLOW
60 #define EOVERFLOW 75
61 #endif
63 char *strerror(int errnum);
65 #endif /* __ERRNO_H__ */