Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/src/lib/djb-ape/unix/error_temp.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include <errno.h>
#include "error.h"

#define X(n) if (e == n) return 1;

int error_temp(e)
int e;
{
  X(error_intr)
  X(error_nomem)
  X(error_txtbsy)
  X(error_io)
  X(error_timeout)
  X(error_wouldblock)
  X(error_again)
#ifdef EDEADLK
  X(EDEADLK)
#endif
#ifdef EBUSY
  X(EBUSY)
#endif
#ifdef ENFILE
  X(ENFILE)
#endif
#ifdef EMFILE
  X(EMFILE)
#endif
#ifdef EFBIG
  X(EFBIG)
#endif
#ifdef ENOSPC
  X(ENOSPC)
#endif
#ifdef ENETDOWN
  X(ENETDOWN)
#endif
#ifdef ENETUNREACH
  X(ENETUNREACH)
#endif
#ifdef ENETRESET
  X(ENETRESET)
#endif
#ifdef ECONNABORTED
  X(ECONNABORTED)
#endif
#ifdef ECONNRESET
  X(ECONNRESET)
#endif
#ifdef ENOBUFS
  X(ENOBUFS)
#endif
#ifdef ETOOMANYREFS
  X(ETOOMANYREFS)
#endif
#ifdef ECONNREFUSED
  X(ECONNREFUSED)
#endif
#ifdef EHOSTDOWN
  X(EHOSTDOWN)
#endif
#ifdef EHOSTUNREACH
  X(EHOSTUNREACH)
#endif
#ifdef EPROCLIM
  X(EPROCLIM)
#endif
#ifdef EUSERS
  X(EUSERS)
#endif
#ifdef EDQUOT
  X(EDQUOT)
#endif
#ifdef ESTALE
  X(ESTALE)
#endif
#ifdef ENOLCK
  X(ENOLCK)
#endif
  return 0;
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.