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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 249 - (view) (download) (as text)
Original Path: sml/branches/SMLNJ/src/runtime/c-libs/posix-error/tbl-errno.c

1 : monnier 249 /* tbl-errno.c
2 :     *
3 :     * COPYRIGHT (c) 1996 AT&T Research.
4 :     *
5 :     * The table of system constants representing the Posix error codes.
6 :     */
7 :    
8 :     #include "ml-unixdep.h"
9 :     #include "ml-base.h"
10 :     #include <errno.h>
11 :    
12 :     PVT sys_const_t tbl[] = {
13 :     {EACCES, "acces"},
14 :     {EAGAIN, "again"},
15 :     #if (defined(EWOULDBLOCK) && (EWOULDBLOCK != EAGAIN))
16 :     {EWOULDBLOCK, "wouldblock"},
17 :     #endif
18 :     {EBADF, "badf"},
19 :     #ifdef EBADMSG
20 :     {EBADMSG, "badmsg"},
21 :     #else
22 :     {0, "badmsg"},
23 :     #endif
24 :     {EBUSY, "busy"},
25 :     #ifdef ECANCELED
26 :     {ECANCELED, "canceled"},
27 :     #else
28 :     {0, "canceled"},
29 :     #endif
30 :     {ECHILD, "child"},
31 :     {EDEADLK, "deadlk"},
32 :     {EDOM, "dom"},
33 :     {EEXIST, "exist"},
34 :     {EFAULT, "fault"},
35 :     {EFBIG, "fbig"},
36 :     {EINPROGRESS, "inprogress"},
37 :     {EINTR, "intr"},
38 :     {EINVAL, "inval"},
39 :     {EIO, "io"},
40 :     {EISDIR, "isdir"},
41 :     {ELOOP, "loop"},
42 :     {EMFILE, "mfile"},
43 :     {EMLINK, "mlink"},
44 :     {EMSGSIZE, "msgsize"},
45 :     {ENAMETOOLONG, "nametoolong"},
46 :     {ENFILE, "nfile"},
47 :     {ENODEV, "nodev"},
48 :     {ENOENT, "noent"},
49 :     {ENOEXEC, "noexec"},
50 :     {ENOLCK, "nolck"},
51 :     {ENOMEM, "nomem"},
52 :     {ENOSPC, "nospc"},
53 :     {ENOSYS, "nosys"},
54 :     {ENOTDIR, "notdir"},
55 :     {ENOTEMPTY, "notempty"},
56 :     #ifdef ENOTSUP
57 :     {ENOTSUP, "notsup"},
58 :     #else
59 :     {0, "notsup"},
60 :     #endif
61 :     {ENOTTY, "notty"},
62 :     {ENXIO, "nxio"},
63 :     {EPERM, "perm"},
64 :     {EPIPE, "pipe"},
65 :     {ERANGE, "range"},
66 :     {EROFS, "rofs"},
67 :     {ESPIPE, "spipe"},
68 :     {ESRCH, "srch"},
69 :     {E2BIG, "toobig"},
70 :     {EXDEV, "xdev"},
71 :     };
72 :    
73 :     sysconst_tbl_t _ErrorNo = {
74 :     sizeof(tbl) / sizeof(sys_const_t),
75 :     tbl
76 :     };

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