error_temp.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(n) if (e == n) return 1;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     5
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     6
int error_temp(e)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
     7
int e;
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(error_intr)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    10
  X(error_nomem)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    11
  X(error_txtbsy)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    12
  X(error_io)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    13
  X(error_timeout)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    14
  X(error_wouldblock)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    15
  X(error_again)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    16
#ifdef EDEADLK
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    17
  X(EDEADLK)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    18
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    19
#ifdef EBUSY
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    20
  X(EBUSY)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    21
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    22
#ifdef ENFILE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    23
  X(ENFILE)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    24
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    25
#ifdef EMFILE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    26
  X(EMFILE)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    27
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    28
#ifdef EFBIG
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    29
  X(EFBIG)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    30
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    31
#ifdef ENOSPC
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    32
  X(ENOSPC)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    33
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    34
#ifdef ENETDOWN
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    35
  X(ENETDOWN)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    36
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    37
#ifdef ENETUNREACH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    38
  X(ENETUNREACH)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    39
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    40
#ifdef ENETRESET
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    41
  X(ENETRESET)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    42
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    43
#ifdef ECONNABORTED
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    44
  X(ECONNABORTED)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    45
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    46
#ifdef ECONNRESET
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    47
  X(ECONNRESET)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    48
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    49
#ifdef ENOBUFS
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    50
  X(ENOBUFS)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    51
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    52
#ifdef ETOOMANYREFS
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    53
  X(ETOOMANYREFS)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    54
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    55
#ifdef ECONNREFUSED
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    56
  X(ECONNREFUSED)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    57
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    58
#ifdef EHOSTDOWN
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    59
  X(EHOSTDOWN)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    60
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    61
#ifdef EHOSTUNREACH
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    62
  X(EHOSTUNREACH)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    63
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    64
#ifdef EPROCLIM
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    65
  X(EPROCLIM)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    66
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    67
#ifdef EUSERS
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    68
  X(EUSERS)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    69
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    70
#ifdef EDQUOT
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    71
  X(EDQUOT)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    72
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    73
#ifdef ESTALE
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    74
  X(ESTALE)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    75
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    76
#ifdef ENOLCK
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    77
  X(ENOLCK)
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    78
#endif
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    79
  return 0;
c045670f36e9 Imported queue-fix-1.4
tomas@localhost
parents:
diff changeset
    80
}