Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/c-libs/posix-error/tbl-errno.c
ViewVC logotype

View of /sml/trunk/src/runtime/c-libs/posix-error/tbl-errno.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (download) (as text) (annotate)
Thu Jun 1 18:34:03 2000 UTC (20 years, 2 months ago) by monnier
File size: 1427 byte(s)
bring revisions from the vendor branch to the trunk
/* tbl-errno.c
 *
 * COPYRIGHT (c) 1996 AT&T Research.
 *
 * The table of system constants representing the Posix error codes.
 */

#include "ml-unixdep.h"
#include "ml-base.h"
#include <errno.h>

PVT sys_const_t tbl[] = {
	{EACCES,	"acces"},
	{EAGAIN,	"again"},
#if (defined(EWOULDBLOCK) && (EWOULDBLOCK != EAGAIN))
	{EWOULDBLOCK,	"wouldblock"},
#endif
	{EBADF,		"badf"},
#ifdef EBADMSG
	{EBADMSG,	"badmsg"},
#else
	{0,		"badmsg"},
#endif
	{EBUSY,		"busy"},
#ifdef ECANCELED
	{ECANCELED,	"canceled"},
#else
	{0,		"canceled"},
#endif
	{ECHILD,	"child"},
	{EDEADLK,	"deadlk"},
	{EDOM,		"dom"},
	{EEXIST,	"exist"},
	{EFAULT,	"fault"},
	{EFBIG,		"fbig"},
	{EINPROGRESS,	"inprogress"},
	{EINTR,		"intr"},
	{EINVAL,	"inval"},
	{EIO,		"io"},
	{EISDIR,	"isdir"},
	{ELOOP,		"loop"},
	{EMFILE,	"mfile"},
	{EMLINK,	"mlink"},
	{EMSGSIZE,	"msgsize"},
	{ENAMETOOLONG,	"nametoolong"},
	{ENFILE,	"nfile"},
	{ENODEV,	"nodev"},
	{ENOENT,	"noent"},
	{ENOEXEC,	"noexec"},
	{ENOLCK,	"nolck"},
	{ENOMEM,	"nomem"},
	{ENOSPC,	"nospc"},
	{ENOSYS,	"nosys"},
	{ENOTDIR,	"notdir"},
	{ENOTEMPTY,	"notempty"},
#ifdef ENOTSUP
	{ENOTSUP,	"notsup"},
#else
	{0,		"notsup"},
#endif
	{ENOTTY,	"notty"},
	{ENXIO,		"nxio"},
	{EPERM,		"perm"},
	{EPIPE,		"pipe"},
	{ERANGE,	"range"},
	{EROFS,		"rofs"},
	{ESPIPE,	"spipe"},
	{ESRCH,		"srch"},
	{E2BIG,		"toobig"},
	{EXDEV,		"xdev"},
    };

sysconst_tbl_t	_ErrorNo = {
	sizeof(tbl) / sizeof(sys_const_t),
	tbl
    };

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0