os/ossrv/genericopenlibs/cstdlib/LINCSYS/ERRNO.H
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/LINCSYS/ERRNO.H	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,142 @@
     1.4 +/*
     1.5 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* errno is not a global variable, because that would make using it
    1.19 +* non-reentrant.  Instead, its address is returned by the function __errno.  
    1.20 +* 
    1.21 +*
    1.22 +*/
    1.23 +
    1.24 +
    1.25 +
    1.26 +/**
    1.27 + @file
    1.28 + @publishedAll
    1.29 + @released
    1.30 +*/
    1.31 +
    1.32 +#ifndef _SYS_ERRNO_H_
    1.33 +#define _SYS_ERRNO_H_
    1.34 +
    1.35 +#ifdef __cplusplus
    1.36 +extern "C" {
    1.37 +#endif
    1.38 +
    1.39 +#include <_ansi.h>
    1.40 +
    1.41 +#ifndef _REENT_ONLY
    1.42 +
    1.43 +IMPORT_C int *__errno(void);
    1.44 +#define errno		(*__errno())
    1.45 +#endif
    1.46 +
    1.47 +#define	EPERM 1		/* Not super-user */
    1.48 +#define	ENOENT 2	/* No such file or directory */
    1.49 +#define	ESRCH 3		/* No such process */
    1.50 +#define	EINTR 4		/* Interrupted system call */
    1.51 +#define	EIO 5		/* I/O error */
    1.52 +#define	ENXIO 6		/* No such device or address */
    1.53 +#define	E2BIG 7		/* Arg list too long */
    1.54 +#define	ENOEXEC 8	/* Exec format error */
    1.55 +#define	EBADF 9		/* Bad file number */
    1.56 +#define	ECHILD 10	/* No children */
    1.57 +#define	EAGAIN 11	/* No more processes */
    1.58 +#define	ENOMEM 12	/* Not enough core */
    1.59 +#define	EACCES 13	/* Permission denied */
    1.60 +#define	EFAULT 14	/* Bad address */
    1.61 +#define	ENOTBLK 15	/* Block device required */
    1.62 +#define	EBUSY 16	/* Mount device busy */
    1.63 +#define	EEXIST 17	/* File exists */
    1.64 +#define	EXDEV 18	/* Cross-device link */
    1.65 +#define	ENODEV 19	/* No such device */
    1.66 +#define	ENOTDIR 20	/* Not a directory */
    1.67 +#define	EISDIR 21	/* Is a directory */
    1.68 +#define	EINVAL 22	/* Invalid argument */
    1.69 +#define	ENFILE 23	/* Too many open files in system */
    1.70 +#define	EMFILE 24	/* Too many open files */
    1.71 +#define	ENOTTY 25	/* Not a typewriter */
    1.72 +#define	ETXTBSY 26	/* Text file busy */
    1.73 +#define	EFBIG 27	/* File too large */
    1.74 +#define	ENOSPC 28	/* No space left on device */
    1.75 +#define	ESPIPE 29	/* Illegal seek */
    1.76 +#define	EROFS 30	/* Read only file system */
    1.77 +#define	EMLINK 31	/* Too many links */
    1.78 +#define	EPIPE 32	/* Broken pipe */
    1.79 +#define	EDOM 33		/* Math arg out of domain of func */
    1.80 +#define	ERANGE 34	/* Math result not representable */
    1.81 +#define	ENOMSG 35	/* No message of desired type */
    1.82 +#define	EIDRM 36	/* Identifier removed */
    1.83 +#define	ECHRNG 37	/* Channel number out of range */
    1.84 +#define	EL2NSYNC 38	/* Level 2 not synchronized */
    1.85 +#define	EL3HLT 39	/* Level 3 halted */
    1.86 +#define	EL3RST 40	/* Level 3 reset */
    1.87 +#define	ELNRNG 41	/* Link number out of range */
    1.88 +#define	EUNATCH 42	/* Protocol driver not attached */
    1.89 +#define	ENOCSI 43	/* No CSI structure available */
    1.90 +#define	EL2HLT 44	/* Level 2 halted */
    1.91 +#define	EDEADLK 45	/* Deadlock condition */
    1.92 +#define	ENOLCK 46	/* No record locks available */
    1.93 +/* 47 */
    1.94 +/* 48 */
    1.95 +/* 49 */
    1.96 +#define ENOTSOCK 50	/* Not a socket */
    1.97 +#define EADDRNOTAVAIL 51	/* remote address not available */
    1.98 +#define EAFNOSUPPORT 52	/* address not supported by protocol */
    1.99 +#define EISCONN 53	/* socket is already connected */
   1.100 +#define ECONNREFUSED 54	/* remote server refused connection */
   1.101 +#define EADDRINUSE 55	/* address is already in use */
   1.102 +#define ETIMEDOUT 56	/* connection timed out */
   1.103 +/* 57 */
   1.104 +/* 58 */
   1.105 +/* 59 */
   1.106 +#define ENOSTR 60	/* Device not a stream */
   1.107 +#define ENODATA 61	/* No data (for no delay io) */
   1.108 +#define ETIME 62	/* Timer expired */
   1.109 +#define ENOSR 63	/* Out of streams resources */
   1.110 +#define ENONET 64	/* Machine is not on the network */
   1.111 +#define ENOPKG 65	/* Package not installed */
   1.112 +#define EREMOTE 66	/* The object is remote */
   1.113 +#define ENOLINK 67	/* The link has been severed */
   1.114 +#define EADV 68		/* Advertise error */
   1.115 +#define ESRMNT 69	/* Srmount error */
   1.116 +#define	ECOMM 70	/* Communication error on send */
   1.117 +#define EPROTO 71	/* Protocol error */
   1.118 +/* 72 */
   1.119 +/* 73 */
   1.120 +#define	EMULTIHOP 74	/* Multihop attempted */
   1.121 +#define	ELBIN 75	/* Inode is remote (not really error) */
   1.122 +#define	EDOTDOT 76	/* Cross mount point (not really error) */
   1.123 +#define EBADMSG 77	/* Trying to read unreadable message */
   1.124 +/* 78 */
   1.125 +/* 79 */
   1.126 +#define ENOTUNIQ 80	/* Given log. name not unique */
   1.127 +#define EBADFD 81	/* f.d. invalid for this operation */
   1.128 +#define EREMCHG 82	/* Remote address changed */
   1.129 +#define ELIBACC 83	/* Can't access a needed shared lib */
   1.130 +#define ELIBBAD 84	/* Accessing a corrupted shared lib */
   1.131 +#define ELIBSCN 85	/* .lib section in a.out corrupted */
   1.132 +#define ELIBMAX 86	/* Attempting to link in too many libs */
   1.133 +#define ELIBEXEC 87	/* Attempting to exec a shared library */
   1.134 +#define ENOSYS 88	/* Function not implemented */
   1.135 +#define ENMFILE 89      /* No more files */
   1.136 +#define ENOTEMPTY 90	/* Directory not empty */
   1.137 +#define ENAMETOOLONG 91	/* File or path name too long */
   1.138 +
   1.139 +#define EILSEQ		92	/*invalid wide-character encoding*/
   1.140 +
   1.141 +#define __ELASTERROR 2000	/* Users can add values starting here */
   1.142 +#ifdef __cplusplus
   1.143 +}
   1.144 +#endif
   1.145 +#endif /* _SYS_ERRNO_H */