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