sl@0
|
1 |
/*
|
sl@0
|
2 |
* tclErrno.h --
|
sl@0
|
3 |
*
|
sl@0
|
4 |
* This header file contains the various POSIX errno definitions that
|
sl@0
|
5 |
* are used by Tcl. This file is derived from the spec POSIX 2.4 and
|
sl@0
|
6 |
* previous implementations for Berkeley UNIX.
|
sl@0
|
7 |
*
|
sl@0
|
8 |
* Copyright (c) 1982, 1986, 1989 Regents of the University of California.
|
sl@0
|
9 |
* Copyright (c) 1996 Sun Microsystems, Inc.
|
sl@0
|
10 |
*
|
sl@0
|
11 |
* See the file "license.terms" for information on usage and redistribution
|
sl@0
|
12 |
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* RCS: @(#) $Id: tclErrno.h,v 1.3 2002/06/07 08:50:22 dkf Exp $
|
sl@0
|
15 |
*/
|
sl@0
|
16 |
|
sl@0
|
17 |
extern int errno; /* global error number */
|
sl@0
|
18 |
|
sl@0
|
19 |
#define EPERM 1 /* Operation not permitted */
|
sl@0
|
20 |
#define ENOENT 2 /* No such file or directory */
|
sl@0
|
21 |
#define ESRCH 3 /* No such process */
|
sl@0
|
22 |
#define EINTR 4 /* Interrupted system call */
|
sl@0
|
23 |
#define EIO 5 /* Input/output error */
|
sl@0
|
24 |
#define ENXIO 6 /* Device not configured */
|
sl@0
|
25 |
#define E2BIG 7 /* Argument list too long */
|
sl@0
|
26 |
#define ENOEXEC 8 /* Exec format error */
|
sl@0
|
27 |
#define EBADF 9 /* Bad file descriptor */
|
sl@0
|
28 |
#define ECHILD 10 /* No child processes */
|
sl@0
|
29 |
#define EDEADLK 11 /* Resource deadlock avoided */
|
sl@0
|
30 |
/* 11 was EAGAIN */
|
sl@0
|
31 |
#define ENOMEM 12 /* Cannot allocate memory */
|
sl@0
|
32 |
#define EACCES 13 /* Permission denied */
|
sl@0
|
33 |
#define EFAULT 14 /* Bad address */
|
sl@0
|
34 |
#define ENOTBLK 15 /* Block device required */
|
sl@0
|
35 |
#define EBUSY 16 /* Device busy */
|
sl@0
|
36 |
#define EEXIST 17 /* File exists */
|
sl@0
|
37 |
#define EXDEV 18 /* Cross-device link */
|
sl@0
|
38 |
#define ENODEV 19 /* Operation not supported by device */
|
sl@0
|
39 |
#define ENOTDIR 20 /* Not a directory */
|
sl@0
|
40 |
#define EISDIR 21 /* Is a directory */
|
sl@0
|
41 |
#define EINVAL 22 /* Invalid argument */
|
sl@0
|
42 |
#define ENFILE 23 /* Too many open files in system */
|
sl@0
|
43 |
#define EMFILE 24 /* Too many open files */
|
sl@0
|
44 |
#define ENOTTY 25 /* Inappropriate ioctl for device */
|
sl@0
|
45 |
#define ETXTBSY 26 /* Text file busy */
|
sl@0
|
46 |
#define EFBIG 27 /* File too large */
|
sl@0
|
47 |
#define ENOSPC 28 /* No space left on device */
|
sl@0
|
48 |
#define ESPIPE 29 /* Illegal seek */
|
sl@0
|
49 |
#define EROFS 30 /* Read-only file system */
|
sl@0
|
50 |
#define EMLINK 31 /* Too many links */
|
sl@0
|
51 |
#define EPIPE 32 /* Broken pipe */
|
sl@0
|
52 |
#define EDOM 33 /* Numerical argument out of domain */
|
sl@0
|
53 |
#define ERANGE 34 /* Result too large */
|
sl@0
|
54 |
#define EAGAIN 35 /* Resource temporarily unavailable */
|
sl@0
|
55 |
#define EWOULDBLOCK EAGAIN /* Operation would block */
|
sl@0
|
56 |
#define EINPROGRESS 36 /* Operation now in progress */
|
sl@0
|
57 |
#define EALREADY 37 /* Operation already in progress */
|
sl@0
|
58 |
#define ENOTSOCK 38 /* Socket operation on non-socket */
|
sl@0
|
59 |
#define EDESTADDRREQ 39 /* Destination address required */
|
sl@0
|
60 |
#define EMSGSIZE 40 /* Message too long */
|
sl@0
|
61 |
#define EPROTOTYPE 41 /* Protocol wrong type for socket */
|
sl@0
|
62 |
#define ENOPROTOOPT 42 /* Protocol not available */
|
sl@0
|
63 |
#define EPROTONOSUPPORT 43 /* Protocol not supported */
|
sl@0
|
64 |
#define ESOCKTNOSUPPORT 44 /* Socket type not supported */
|
sl@0
|
65 |
#define EOPNOTSUPP 45 /* Operation not supported on socket */
|
sl@0
|
66 |
#define EPFNOSUPPORT 46 /* Protocol family not supported */
|
sl@0
|
67 |
#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */
|
sl@0
|
68 |
#define EADDRINUSE 48 /* Address already in use */
|
sl@0
|
69 |
#define EADDRNOTAVAIL 49 /* Can't assign requested address */
|
sl@0
|
70 |
#define ENETDOWN 50 /* Network is down */
|
sl@0
|
71 |
#define ENETUNREACH 51 /* Network is unreachable */
|
sl@0
|
72 |
#define ENETRESET 52 /* Network dropped connection on reset */
|
sl@0
|
73 |
#define ECONNABORTED 53 /* Software caused connection abort */
|
sl@0
|
74 |
#define ECONNRESET 54 /* Connection reset by peer */
|
sl@0
|
75 |
#define ENOBUFS 55 /* No buffer space available */
|
sl@0
|
76 |
#define EISCONN 56 /* Socket is already connected */
|
sl@0
|
77 |
#define ENOTCONN 57 /* Socket is not connected */
|
sl@0
|
78 |
#define ESHUTDOWN 58 /* Can't send after socket shutdown */
|
sl@0
|
79 |
#define ETOOMANYREFS 59 /* Too many references: can't splice */
|
sl@0
|
80 |
#define ETIMEDOUT 60 /* Connection timed out */
|
sl@0
|
81 |
#define ECONNREFUSED 61 /* Connection refused */
|
sl@0
|
82 |
#define ELOOP 62 /* Too many levels of symbolic links */
|
sl@0
|
83 |
#define ENAMETOOLONG 63 /* File name too long */
|
sl@0
|
84 |
#define EHOSTDOWN 64 /* Host is down */
|
sl@0
|
85 |
#define EHOSTUNREACH 65 /* No route to host */
|
sl@0
|
86 |
#define ENOTEMPTY 66 /* Directory not empty */
|
sl@0
|
87 |
#define EPROCLIM 67 /* Too many processes */
|
sl@0
|
88 |
#define EUSERS 68 /* Too many users */
|
sl@0
|
89 |
#define EDQUOT 69 /* Disc quota exceeded */
|
sl@0
|
90 |
#define ESTALE 70 /* Stale NFS file handle */
|
sl@0
|
91 |
#define EREMOTE 71 /* Too many levels of remote in path */
|
sl@0
|
92 |
#define EBADRPC 72 /* RPC struct is bad */
|
sl@0
|
93 |
#define ERPCMISMATCH 73 /* RPC version wrong */
|
sl@0
|
94 |
#define EPROGUNAVAIL 74 /* RPC prog. not avail */
|
sl@0
|
95 |
#define EPROGMISMATCH 75 /* Program version wrong */
|
sl@0
|
96 |
#define EPROCUNAVAIL 76 /* Bad procedure for program */
|
sl@0
|
97 |
#define ENOLCK 77 /* No locks available */
|
sl@0
|
98 |
#define ENOSYS 78 /* Function not implemented */
|
sl@0
|
99 |
#define EOVERFLOW 79 /* Value too large to be stored in data type */
|