error_str.c
author tomas@localhost
Thu, 01 Nov 2007 14:46:11 +0100
changeset 0 c045670f36e9
permissions -rw-r--r--
Imported queue-fix-1.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     1
#include <errno.h>
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     2
#include "error.h"
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     3
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     4
#define X(e,s) if (i == e) return s;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     5
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     6
char *error_str(i)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     7
int i;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     8
{
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     9
  X(0,"no error")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    10
  X(error_intr,"interrupted system call")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    11
  X(error_nomem,"out of memory")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    12
  X(error_noent,"file does not exist")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    13
  X(error_txtbsy,"text busy")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    14
  X(error_io,"input/output error")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    15
  X(error_exist,"file already exists")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    16
  X(error_timeout,"timed out")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    17
  X(error_inprogress,"operation in progress")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    18
  X(error_again,"temporary failure")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    19
  X(error_wouldblock,"input/output would block")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    20
  X(error_pipe,"broken pipe")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    21
  X(error_perm,"permission denied")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    22
  X(error_acces,"access denied")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    23
#ifdef ESRCH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    24
  X(ESRCH,"no such process")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    25
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    26
#ifdef ENXIO
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    27
  X(ENXIO,"device not configured")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    28
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    29
#ifdef E2BIG
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    30
  X(E2BIG,"argument list too long")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    31
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    32
#ifdef ENOEXEC
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    33
  X(ENOEXEC,"exec format error")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    34
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    35
#ifdef EBADF
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    36
  X(EBADF,"file descriptor not open")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    37
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    38
#ifdef ECHILD
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    39
  X(ECHILD,"no child processes")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    40
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    41
#ifdef EDEADLK
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    42
  X(EDEADLK,"operation would cause deadlock")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    43
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    44
#ifdef EFAULT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    45
  X(EFAULT,"bad address")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    46
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    47
#ifdef ENOTBLK
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    48
  X(ENOTBLK,"not a block device")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    49
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    50
#ifdef EBUSY
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    51
  X(EBUSY,"device busy")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    52
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    53
#ifdef EXDEV
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    54
  X(EXDEV,"cross-device link")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    55
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    56
#ifdef ENODEV
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    57
  X(ENODEV,"device does not support operation")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    58
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    59
#ifdef ENOTDIR
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    60
  X(ENOTDIR,"not a directory")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    61
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    62
#ifdef EISDIR
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    63
  X(EISDIR,"is a directory")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    64
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    65
#ifdef EINVAL
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    66
  X(EINVAL,"invalid argument")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    67
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    68
#ifdef ENFILE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    69
  X(ENFILE,"system cannot open more files")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    70
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    71
#ifdef EMFILE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    72
  X(EMFILE,"process cannot open more files")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    73
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    74
#ifdef ENOTTY
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    75
  X(ENOTTY,"not a tty")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    76
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    77
#ifdef EFBIG
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    78
  X(EFBIG,"file too big")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    79
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    80
#ifdef ENOSPC
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    81
  X(ENOSPC,"out of disk space")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    82
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    83
#ifdef ESPIPE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    84
  X(ESPIPE,"unseekable descriptor")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    85
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    86
#ifdef EROFS
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    87
  X(EROFS,"read-only file system")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    88
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    89
#ifdef EMLINK
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    90
  X(EMLINK,"too many links")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    91
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    92
#ifdef EDOM
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    93
  X(EDOM,"input out of range")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    94
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    95
#ifdef ERANGE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    96
  X(ERANGE,"output out of range")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    97
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    98
#ifdef EALREADY
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    99
  X(EALREADY,"operation already in progress")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   100
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   101
#ifdef ENOTSOCK
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   102
  X(ENOTSOCK,"not a socket")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   103
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   104
#ifdef EDESTADDRREQ
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   105
  X(EDESTADDRREQ,"destination address required")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   106
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   107
#ifdef EMSGSIZE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   108
  X(EMSGSIZE,"message too long")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   109
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   110
#ifdef EPROTOTYPE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   111
  X(EPROTOTYPE,"incorrect protocol type")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   112
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   113
#ifdef ENOPROTOOPT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   114
  X(ENOPROTOOPT,"protocol not available")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   115
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   116
#ifdef EPROTONOSUPPORT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   117
  X(EPROTONOSUPPORT,"protocol not supported")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   118
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   119
#ifdef ESOCKTNOSUPPORT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   120
  X(ESOCKTNOSUPPORT,"socket type not supported")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   121
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   122
#ifdef EOPNOTSUPP
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   123
  X(EOPNOTSUPP,"operation not supported")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   124
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   125
#ifdef EPFNOSUPPORT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   126
  X(EPFNOSUPPORT,"protocol family not supported")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   127
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   128
#ifdef EAFNOSUPPORT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   129
  X(EAFNOSUPPORT,"address family not supported")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   130
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   131
#ifdef EADDRINUSE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   132
  X(EADDRINUSE,"address already used")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   133
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   134
#ifdef EADDRNOTAVAIL
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   135
  X(EADDRNOTAVAIL,"address not available")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   136
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   137
#ifdef ENETDOWN
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   138
  X(ENETDOWN,"network down")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   139
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   140
#ifdef ENETUNREACH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   141
  X(ENETUNREACH,"network unreachable")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   142
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   143
#ifdef ENETRESET
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   144
  X(ENETRESET,"network reset")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   145
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   146
#ifdef ECONNABORTED
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   147
  X(ECONNABORTED,"connection aborted")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   148
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   149
#ifdef ECONNRESET
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   150
  X(ECONNRESET,"connection reset")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   151
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   152
#ifdef ENOBUFS
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   153
  X(ENOBUFS,"out of buffer space")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   154
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   155
#ifdef EISCONN
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   156
  X(EISCONN,"already connected")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   157
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   158
#ifdef ENOTCONN
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   159
  X(ENOTCONN,"not connected")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   160
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   161
#ifdef ESHUTDOWN
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   162
  X(ESHUTDOWN,"socket shut down")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   163
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   164
#ifdef ETOOMANYREFS
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   165
  X(ETOOMANYREFS,"too many references")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   166
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   167
#ifdef ECONNREFUSED
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   168
  X(ECONNREFUSED,"connection refused")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   169
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   170
#ifdef ELOOP
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   171
  X(ELOOP,"symbolic link loop")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   172
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   173
#ifdef ENAMETOOLONG
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   174
  X(ENAMETOOLONG,"file name too long")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   175
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   176
#ifdef EHOSTDOWN
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   177
  X(EHOSTDOWN,"host down")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   178
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   179
#ifdef EHOSTUNREACH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   180
  X(EHOSTUNREACH,"host unreachable")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   181
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   182
#ifdef ENOTEMPTY
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   183
  X(ENOTEMPTY,"directory not empty")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   184
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   185
#ifdef EPROCLIM
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   186
  X(EPROCLIM,"too many processes")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   187
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   188
#ifdef EUSERS
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   189
  X(EUSERS,"too many users")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   190
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   191
#ifdef EDQUOT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   192
  X(EDQUOT,"disk quota exceeded")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   193
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   194
#ifdef ESTALE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   195
  X(ESTALE,"stale NFS file handle")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   196
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   197
#ifdef EREMOTE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   198
  X(EREMOTE,"too many levels of remote in path")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   199
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   200
#ifdef EBADRPC
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   201
  X(EBADRPC,"RPC structure is bad")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   202
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   203
#ifdef ERPCMISMATCH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   204
  X(ERPCMISMATCH,"RPC version mismatch")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   205
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   206
#ifdef EPROGUNAVAIL
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   207
  X(EPROGUNAVAIL,"RPC program unavailable")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   208
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   209
#ifdef EPROGMISMATCH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   210
  X(EPROGMISMATCH,"program version mismatch")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   211
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   212
#ifdef EPROCUNAVAIL
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   213
  X(EPROCUNAVAIL,"bad procedure for program")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   214
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   215
#ifdef ENOLCK
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   216
  X(ENOLCK,"no locks available")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   217
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   218
#ifdef ENOSYS
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   219
  X(ENOSYS,"system call not available")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   220
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   221
#ifdef EFTYPE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   222
  X(EFTYPE,"bad file type")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   223
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   224
#ifdef EAUTH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   225
  X(EAUTH,"authentication error")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   226
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   227
#ifdef ENEEDAUTH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   228
  X(ENEEDAUTH,"not authenticated")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   229
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   230
#ifdef ENOSTR
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   231
  X(ENOSTR,"not a stream device")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   232
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   233
#ifdef ETIME
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   234
  X(ETIME,"timer expired")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   235
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   236
#ifdef ENOSR
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   237
  X(ENOSR,"out of stream resources")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   238
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   239
#ifdef ENOMSG
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   240
  X(ENOMSG,"no message of desired type")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   241
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   242
#ifdef EBADMSG
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   243
  X(EBADMSG,"bad message type")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   244
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   245
#ifdef EIDRM
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   246
  X(EIDRM,"identifier removed")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   247
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   248
#ifdef ENONET
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   249
  X(ENONET,"machine not on network")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   250
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   251
#ifdef ERREMOTE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   252
  X(ERREMOTE,"object not local")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   253
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   254
#ifdef ENOLINK
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   255
  X(ENOLINK,"link severed")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   256
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   257
#ifdef EADV
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   258
  X(EADV,"advertise error")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   259
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   260
#ifdef ESRMNT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   261
  X(ESRMNT,"srmount error")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   262
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   263
#ifdef ECOMM
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   264
  X(ECOMM,"communication error")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   265
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   266
#ifdef EPROTO
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   267
  X(EPROTO,"protocol error")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   268
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   269
#ifdef EMULTIHOP
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   270
  X(EMULTIHOP,"multihop attempted")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   271
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   272
#ifdef EREMCHG
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   273
  X(EREMCHG,"remote address changed")
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   274
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   275
  return "unknown error";
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
   276
}