-/* $Id$ */
-
/* _PDCLIB_stdinit
This file is part of the Public Domain C Library (PDCLib).
#include <limits.h>
#ifndef REGTEST
-#include <_PDCLIB_io.h>
-#include <_PDCLIB_locale.h>
-#include <_PDCLIB_encoding.h>
+#include "_PDCLIB_io.h"
+#include "_PDCLIB_locale.h"
+#include "_PDCLIB_encoding.h"
extern const _PDCLIB_fileops_t _PDCLIB_fileops;
{ 0x00, 0xFF, 0xFF, 0xFF }
};
-extern const struct _PDCLIB_charcodec _PDCLIB_ascii_codec;
+extern const struct _PDCLIB_charcodec_t _PDCLIB_ascii_codec;
struct _PDCLIB_locale _PDCLIB_global_locale = {
._Codec = &_PDCLIB_ascii_codec,
._Conv = {
},
._CType = &global_ctype[1],
._ErrnoStr = {
- /* no error */ (char *)"",
- /* ERANGE */ (char *)"ERANGE (Range error)",
- /* EDOM */ (char *)"EDOM (Domain error)",
- /* EILSEQ */ (char *)"EILSEQ (Illegal sequence)"
+ "Success"
+ "EPERM (operation not permitted)",
+ "ENOENT (no such file or directory)",
+ "ESRCH (no such process)",
+ "EINTR (interrupted)",
+ "EIO (io error)",
+ "ENXIO (no such device or address)",
+ "E2BIG (argument list too long)",
+ "ENOEXEC (executable format error)",
+ "EBADF (bad file descriptor)",
+ "ECHILD (no child process)",
+ "EAGAIN (resource unavailable try again)",
+ "ENOMEM (not enough memory)",
+ "EACCES (permission denied)",
+ "EFAULT (bad address)",
+ "Unknown error",
+ "EBUSY (device or resource busy)",
+ "EEXIST (file exists)",
+ "EXDEV (cross device link)",
+ "ENODEV (no such device)",
+ "ENOTDIR (not a directory)",
+ "EISDIR (is a directory)",
+ "EINVAL (invalid argument)",
+ "ENFILE (too many files open in system)",
+ "EMFILE (too many files open)",
+ "ENOTTY (inappropriate io control operation)",
+ "Unknown error",
+ "EFBIG (file too large)",
+ "ENOSPC (no space on device)",
+ "ESPIPE (invalid seek)",
+ "EROFS (read only file system)",
+ "EMLINK (too many links)",
+ "EPIPE (broken pipe)",
+ "EDOM (argument out of domain)",
+ "ERANGE (result out of range)",
+ "Unknown error",
+ "EDEADLK (resource deadlock would occur)",
+ "Unknown error",
+ "ENAMETOOLONG (filename too long)",
+ "ENOLCK (no lock available)",
+ "ENOSYS (function not supported)",
+ "ENOTEMPTY (directory not empty)",
+ "EILSEQ (illegal byte sequence)",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "Unknown error",
+ "EADDRINUSE (address in use)",
+ "EADDRNOTAVAIL (address not available)",
+ "EAFNOSUPPORT (address family not supported)",
+ "EALREADY (connection already in progress)",
+ "EBADMSG (bad message)",
+ "ECANCELED (operation canceled)",
+ "ECONNABORTED (connection aborted)",
+ "ECONNREFUSED (connection refused)",
+ "ECONNRESET (connection reset)",
+ "EDESTADDRREQ (destination address required)",
+ "EHOSTUNREACH (host unreachable)",
+ "EIDRM (identifier removed)",
+ "EINPROGRESS (operation in progress)",
+ "EISCONN (already connected)",
+ "ELOOP (too many symbolic link levels)",
+ "EMSGSIZE (message size)",
+ "ENETDOWN (network down)",
+ "ENETRESET (network reset)",
+ "ENETUNREACH (network unreachable)",
+ "ENOBUFS (no buffer space)",
+ "ENODATA (no message available)",
+ "ENOLINK (no link)",
+ "ENOMSG (no message)",
+ "ENOPROTOOPT (no protocol option)",
+ "ENOSR (no stream resources)",
+ "ENOSTR (not a stream)",
+ "ENOTCONN (not connected)",
+ "ENOTRECOVERABLE (state not recoverable)",
+ "ENOTSOCK (not a socket)",
+ "ENOTSUP (not supported)",
+ "EOPNOTSUPP (operation not supported)",
+ "Unknown error",
+ "EOVERFLOW (value too large)",
+ "EOWNERDEAD (owner dead)",
+ "EPROTO (protocol error)",
+ "EPROTONOSUPPORT (protocol not supported)",
+ "EPROTOTYPE (wrong protocol type)",
+ "ETIME (stream timeout)",
+ "ETIMEDOUT (timed out)",
+ "ETXTBSY (text file busy)",
+ "EWOULDBLOCK (operation would block)",
},
};
#endif
#ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
int main( void )
{