1
0
Files
irix-657m-src/irix/kern/sys/errno.h
2022-09-29 17:59:04 +03:00

277 lines
11 KiB
C

/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef _SVC_ERRNO_H /* wrapper symbol for kernel use */
#define _SVC_ERRNO_H /* subject to change without notice */
#ident "$Revision: 3.42 $"
/*
* PROPRIETARY NOTICE (Combined)
*
* This source code is unpublished proprietary information
* constituting, or derived under license from AT&T's Unix(r) System V.
* In addition, portions of such source code were derived from Berkeley
* 4.3 BSD under license from the Regents of the University of
* California.
*
*
*
* Copyright Notice
*
* Notice of copyright on this source code product does not indicate
* publication.
*
* (c) 1986,1987,1988,1989 Sun Microsystems, Inc.
* (c) 1983,1984,1985,1986,1987,1988,1989 AT&T.
* All rights reserved.
*/
#include <standards.h>
#if defined(_KERNEL)
#define __KBASE 1000 /* Base for kernel-internal errnos */
#else /* !_KERNEL */
#define __IRIXBASE 1000 /* Base for SGI added error numbers */
#define __FTNBASE 4000 /* Base for Fortran and FFIO library errors */
#define __FTNLAST 5999 /* end for Fortran and FFIO library errors */
#endif /* _KERNEL */
/*
* Error codes
*/
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
#define EINTR 4 /* Interrupted function call */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define E2BIG 7 /* Arg list too long */
#define ENOEXEC 8 /* Exec format error */
#define EBADF 9 /* Bad file number */
#define ECHILD 10 /* No child processes */
#define EAGAIN 11 /* Resource temporarily unavailable */
#define ENOMEM 12 /* Not enough space */
#define EACCES 13 /* Permission denied */
#define EFAULT 14 /* Bad address */
#define ENOTBLK 15 /* Block device required */
#define EBUSY 16 /* Resource busy */
#define EEXIST 17 /* File exists */
#define EXDEV 18 /* Improper link */
#define ENODEV 19 /* No such device */
#define ENOTDIR 20 /* Not a directory */
#define EISDIR 21 /* Is a directory */
#define EINVAL 22 /* Invalid argument */
#define ENFILE 23 /* File table overflow */
#define EMFILE 24 /* Too many open files */
#define ENOTTY 25 /* Inappropriate I/O control operation */
#define ETXTBSY 26 /* Text file busy */
#define EFBIG 27 /* File too large */
#define ENOSPC 28 /* No space left on device */
#define ESPIPE 29 /* Illegal seek */
#define EROFS 30 /* Read only file system */
#define EMLINK 31 /* Too many links */
#define EPIPE 32 /* Broken pipe */
#define EDOM 33 /* Domain error */
#define ERANGE 34 /* Result too large */
#define ENOMSG 35 /* No message of desired type */
#define EIDRM 36 /* Identifier removed */
#define ECHRNG 37 /* Channel number out of range */
#define EL2NSYNC 38 /* Level 2 not synchronized */
#define EL3HLT 39 /* Level 3 halted */
#define EL3RST 40 /* Level 3 reset */
#define ELNRNG 41 /* Link number out of range */
#define EUNATCH 42 /* Protocol driver not attached */
#define ENOCSI 43 /* No CSI structure available */
#define EL2HLT 44 /* Level 2 halted */
#define EDEADLK 45 /* Resource deadlock avoided */
#define ENOLCK 46 /* No locks available */
#define ECKPT 47 /* POSIX checkpoint/restart error */
/* Convergent Error Returns */
#define EBADE 50 /* invalid exchange */
#define EBADR 51 /* invalid request descriptor */
#define EXFULL 52 /* exchange full */
#define ENOANO 53 /* no anode */
#define EBADRQC 54 /* invalid request code */
#define EBADSLT 55 /* invalid slot */
#define EDEADLOCK 56 /* file locking deadlock error */
#define EBFONT 57 /* bad font file fmt */
/* stream problems */
#define ENOSTR 60 /* Device not a stream */
#define ENODATA 61 /* no data (for no delay io) */
#define ETIME 62 /* timer expired */
#define ENOSR 63 /* out of streams resources */
#define ENONET 64 /* Machine is not on the network */
#define ENOPKG 65 /* Package not installed */
#define EREMOTE 66 /* The object is remote */
#define ENOLINK 67 /* the link has been severed */
#define EADV 68 /* advertise error */
#define ESRMNT 69 /* srmount error */
#define ECOMM 70 /* Communication error on send */
#define EPROTO 71 /* Protocol error */
#define EMULTIHOP 74 /* multihop attempted */
#define EBADMSG 77 /* Bad message */
#define ENAMETOOLONG 78 /* Filename too long */
#define EOVERFLOW 79 /* value too large to be stored in data type */
#define ENOTUNIQ 80 /* given log. name not unique */
#define EBADFD 81 /* f.d. invalid for this operation */
#define EREMCHG 82 /* Remote address changed */
/* shared library problems */
#define ELIBACC 83 /* Can't access a needed shared lib. */
#define ELIBBAD 84 /* Accessing a corrupted shared lib. */
#define ELIBSCN 85 /* .lib section in a.out corrupted. */
#define ELIBMAX 86 /* Attempting to link in too many libs. */
#define ELIBEXEC 87 /* Attempting to exec a shared library. */
#define EILSEQ 88 /* Illegal byte sequence. */
#define ENOSYS 89 /* Function not implemented */
#define ELOOP 90 /* Symbolic link loop */
#define ERESTART 91 /* Restartable system call */
#define ESTRPIPE 92 /* if pipe/FIFO, don't sleep in stream head */
#define ENOTEMPTY 93 /* Directory not empty */
#define EUSERS 94 /* Too many users (for UFS) */
/* BSD Networking Software */
/* argument errors */
#define ENOTSOCK 95 /* Socket operation on non-socket */
#define EDESTADDRREQ 96 /* Destination address required */
#define EMSGSIZE 97 /* Inappropriate message buffer length */
#define EPROTOTYPE 98 /* Protocol wrong type for socket */
#define ENOPROTOOPT 99 /* Protocol not available */
#define EPROTONOSUPPORT 120 /* Protocol not supported */
#define ESOCKTNOSUPPORT 121 /* Socket type not supported */
#define EOPNOTSUPP 122 /* Operation not supported on socket */
#define EPFNOSUPPORT 123 /* Protocol family not supported */
#define EAFNOSUPPORT 124 /* Address family not supported by
protocol family */
#define EADDRINUSE 125 /* Address already in use */
#define EADDRNOTAVAIL 126 /* Can't assign requested address */
/* operational errors */
#define ENETDOWN 127 /* Network is down */
#define ENETUNREACH 128 /* Network is unreachable */
#define ENETRESET 129 /* Network dropped connection because
of reset */
#define ECONNABORTED 130 /* Software caused connection abort */
#define ECONNRESET 131 /* Connection reset by peer */
#define ENOBUFS 132 /* No buffer space available */
#define EISCONN 133 /* Socket is already connected */
#define ENOTCONN 134 /* Socket is not connected */
/* XENIX has 135 - 142 */
#define ESHUTDOWN 143 /* Can't send after socket shutdown */
#define ETOOMANYREFS 144 /* Too many references: can't splice */
#define ETIMEDOUT 145 /* Connection timed out */
#define ECONNREFUSED 146 /* Connection refused */
#define EHOSTDOWN 147 /* Host is down */
#define EHOSTUNREACH 148 /* No route to host */
#if _SGIAPI
#define LASTERRNO ENOTCONN /* used by nfs kernel and also decnet code */
#endif
#if defined(_KERNEL)
#define EWOULDBLOCK __KBASE+101 /* Operation would block */
#else /* !_KERNEL */
#define EWOULDBLOCK EAGAIN
#endif /* _KERNEL */
#define EALREADY 149 /* operation already in progress */
#define EINPROGRESS 150 /* operation now in progress */
/* SUN Network File System */
#define ESTALE 151 /* Stale NFS file handle */
/* Pyramid's AIO Compatibility - raw disk async I/O */
#define EIORESID 500 /* block not fully transferred */
/* XENIX error numbers */
#define EUCLEAN 135 /* Structure needs cleaning */
#define ENOTNAM 137 /* Not a XENIX named type file */
#define ENAVAIL 138 /* No XENIX semaphores available */
#define EISNAM 139 /* Is a named type file */
#define EREMOTEIO 140 /* Remote I/O error */
#define EINIT 141 /* Reserved for future */
#define EREMDEV 142 /* Error 142 */
#define ECANCELED 158 /* AIO operation canceled */
/* IRIX5 error numbers with no SVR4 equivalents */
/* Note: New IRIX5 error numbers begin at 1000 */
/* Error numbers for ShareII product */
#define ENOLIMFILE 1001 /* share database not open */
#define EPROCLIM 1002 /* process limit reached */
#define EDISJOINT 1003 /* Lnode hierarchy is disjoint */
#define ENOLOGIN 1004 /* Login not allowed for user */
#define ELOGINLIM 1005 /* Login limit reached */
#define EGROUPLOOP 1006 /* Loop in lnode hierarchy */
#define ENOATTACH 1007 /* Attach to lnode not allowed */
#define ENOTSUP 1008 /* Not supported (POSIX 1003.1b) */
#define ENOATTR 1009 /* Attribute not found */
#define EFSCORRUPTED 1010 /* Filesystem is corrupted */
#define EDIRCORRUPTED 1010 /* Old version of EFSCORRUPTED */
#define EWRONGFS 1011 /* Mount with wrong filesystem type */
#define EDQUOT 1133 /* cruft this to be __IRIXBASE + IRIX4 value */
#define ENFSREMOTE 1135 /* -- ditto -- */
/*
* Error numbers for REACT/Pro product
*/
#define ECONTROLLER 1300 /* controlling proccess can not be controlled */
#define ENOTCONTROLLER 1301 /* process not a frs controlling process */
#define EENQUEUED 1302 /* process is under control of frame scheduler */
#define ENOTENQUEUED 1303 /* process is not control of frame scheduler */
#define EJOINED 1304 /* process already joined to a frame scheduler */
#define ENOTJOINED 1305 /* process has not joined a frame scheduler */
#define ENOPROC 1306 /* process not found */
#define EMUSTRUN 1307 /* process is set mustrun */
#define ENOTSTOPPED 1308 /* not in stopped state */
#define ECLOCKCPU 1309 /* operation not allowed on clock cpu */
#define EINVALSTATE 1310 /* Invalid state for requested operation */
#define ENOEXIST 1311 /* does not exist */
#define EENDOFMINOR 1312 /* end of minor */
#define EBUFSIZE 1313 /* Inappropriate buffer length */
#define EEMPTY 1314 /* empty major or minor */
#define ENOINTRGROUP 1315 /* no available interrupt group */
#define EINVALMODE 1316 /* Invalid mode */
#define ECANTEXTENT 1317 /* Non extendable timing source */
#define EINVALTIME 1318 /* Time is out of range */
#define EDESTROYED 1319 /* Destroyed or being destroyed */
/*
* Error numbers for RSVP and packet scheduling
*/
#define EBDHDL 1400 /* bad handle */
#define EDELAY 1401 /* delay bound violation */
#define ENOBWD 1402 /* insufficient bandwidth */
#define EBADRSPEC 1403 /* illegal RSPEC param */
#define EBADTSPEC 1404 /* illegal TSPEC param */
#define EBADFILT 1405 /* illegal filter */
/*
* Nexus failure codes
* These shouldn't be user-visible
*/
#define EMIGRATED 1500 /* Object relocated from called cell */
#define EMIGRATING 1501 /* Object relocating from cell */
#define ECELLDOWN 1502 /* rpc failed due to cell failure */
/* Miser errnos */
#define EMEMRETRY 1600 /* Retry the system call */
#endif /* _SVC_ERRNO_H */