17c478bdstevel@tonic-gate/*
27c478bdstevel@tonic-gate * CDDL HEADER START
37c478bdstevel@tonic-gate *
47c478bdstevel@tonic-gate * The contents of this file are subject to the terms of the
57c478bdstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only
67c478bdstevel@tonic-gate * (the "License").  You may not use this file except in compliance
77c478bdstevel@tonic-gate * with the License.
87c478bdstevel@tonic-gate *
97c478bdstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bdstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
117c478bdstevel@tonic-gate * See the License for the specific language governing permissions
127c478bdstevel@tonic-gate * and limitations under the License.
137c478bdstevel@tonic-gate *
147c478bdstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
157c478bdstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bdstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
177c478bdstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
187c478bdstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bdstevel@tonic-gate *
207c478bdstevel@tonic-gate * CDDL HEADER END
217c478bdstevel@tonic-gate */
227c478bdstevel@tonic-gate/*
237c478bdstevel@tonic-gate * Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
247c478bdstevel@tonic-gate * Use is subject to license terms.
257c478bdstevel@tonic-gate */
267c478bdstevel@tonic-gate
277c478bdstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
287c478bdstevel@tonic-gate
297c478bdstevel@tonic-gate/*
307c478bdstevel@tonic-gate * If error codes are added or changed here, they should be updated in
317c478bdstevel@tonic-gate * /usr/src/lib/libc/gen/common/errlst.c as well.
327c478bdstevel@tonic-gate */
337c478bdstevel@tonic-gate
347c478bdstevel@tonic-gate/*
357c478bdstevel@tonic-gate * Error codes
367c478bdstevel@tonic-gate */
377c478bdstevel@tonic-gate
387c478bdstevel@tonic-gate#ifndef _sys_errno_h
397c478bdstevel@tonic-gate#define _sys_errno_h
407c478bdstevel@tonic-gate
417c478bdstevel@tonic-gate#define	EPERM		1		/* Not owner */
427c478bdstevel@tonic-gate#define	ENOENT		2		/* No such file or directory */
437c478bdstevel@tonic-gate#define	ESRCH		3		/* No such process */
447c478bdstevel@tonic-gate#define	EINTR		4		/* Interrupted system call */
457c478bdstevel@tonic-gate#define	EIO		5		/* I/O error */
467c478bdstevel@tonic-gate#define	ENXIO		6		/* No such device or address */
477c478bdstevel@tonic-gate#define	E2BIG		7		/* Arg list too long */
487c478bdstevel@tonic-gate#define	ENOEXEC		8		/* Exec format error */
497c478bdstevel@tonic-gate#define	EBADF		9		/* Bad file number */
507c478bdstevel@tonic-gate#define	ECHILD		10		/* No children */
517c478bdstevel@tonic-gate#define	EAGAIN		11		/* No more processes */
527c478bdstevel@tonic-gate#define	ENOMEM		12		/* Not enough core */
537c478bdstevel@tonic-gate#define	EACCES		13		/* Permission denied */
547c478bdstevel@tonic-gate#define	EFAULT		14		/* Bad address */
557c478bdstevel@tonic-gate#define	ENOTBLK		15		/* Block device required */
567c478bdstevel@tonic-gate#define	EBUSY		16		/* Mount device busy */
577c478bdstevel@tonic-gate#define	EEXIST		17		/* File exists */
587c478bdstevel@tonic-gate#define	EXDEV		18		/* Cross-device link */
597c478bdstevel@tonic-gate#define	ENODEV		19		/* No such device */
607c478bdstevel@tonic-gate#define	ENOTDIR		20		/* Not a directory*/
617c478bdstevel@tonic-gate#define	EISDIR		21		/* Is a directory */
627c478bdstevel@tonic-gate#define	EINVAL		22		/* Invalid argument */
637c478bdstevel@tonic-gate#define	ENFILE		23		/* File table overflow */
647c478bdstevel@tonic-gate#define	EMFILE		24		/* Too many open files */
657c478bdstevel@tonic-gate#define	ENOTTY		25		/* Not a typewriter */
667c478bdstevel@tonic-gate#define	ETXTBSY		26		/* Text file busy */
677c478bdstevel@tonic-gate#define	EFBIG		27		/* File too large */
687c478bdstevel@tonic-gate#define	ENOSPC		28		/* No space left on device */
697c478bdstevel@tonic-gate#define	ESPIPE		29		/* Illegal seek */
707c478bdstevel@tonic-gate#define	EROFS		30		/* Read-only file system */
717c478bdstevel@tonic-gate#define	EMLINK		31		/* Too many links */
727c478bdstevel@tonic-gate#define	EPIPE		32		/* Broken pipe */
737c478bdstevel@tonic-gate
747c478bdstevel@tonic-gate/* math software */
757c478bdstevel@tonic-gate#define	EDOM		33		/* Argument too large */
767c478bdstevel@tonic-gate#define	ERANGE		34		/* Result too large */
777c478bdstevel@tonic-gate
787c478bdstevel@tonic-gate/* non-blocking and interrupt i/o */
797c478bdstevel@tonic-gate#define	EWOULDBLOCK	35		/* Operation would block */
807c478bdstevel@tonic-gate#define	EINPROGRESS	36		/* Operation now in progress */
817c478bdstevel@tonic-gate#define	EALREADY	37		/* Operation already in progress */
827c478bdstevel@tonic-gate/* ipc/network software */
837c478bdstevel@tonic-gate
847c478bdstevel@tonic-gate	/* argument errors */
857c478bdstevel@tonic-gate#define	ENOTSOCK	38		/* Socket operation on non-socket */
867c478bdstevel@tonic-gate#define	EDESTADDRREQ	39		/* Destination address required */
877c478bdstevel@tonic-gate#define	EMSGSIZE	40		/* Message too long */
887c478bdstevel@tonic-gate#define	EPROTOTYPE	41		/* Protocol wrong type for socket */
897c478bdstevel@tonic-gate#define	ENOPROTOOPT	42		/* Protocol not available */
907c478bdstevel@tonic-gate#define	EPROTONOSUPPORT	43		/* Protocol not supported */
917c478bdstevel@tonic-gate#define	ESOCKTNOSUPPORT	44		/* Socket type not supported */
927c478bdstevel@tonic-gate#define	EOPNOTSUPP	45		/* Operation not supported on socket */
937c478bdstevel@tonic-gate#define	EPFNOSUPPORT	46		/* Protocol family not supported */
947c478bdstevel@tonic-gate#define	EAFNOSUPPORT	47		/* Address family not supported by protocol family */
957c478bdstevel@tonic-gate#define	EADDRINUSE	48		/* Address already in use */
967c478bdstevel@tonic-gate#define	EADDRNOTAVAIL	49		/* Can't assign requested address */
977c478bdstevel@tonic-gate
987c478bdstevel@tonic-gate	/* operational errors */
997c478bdstevel@tonic-gate#define	ENETDOWN	50		/* Network is down */
1007c478bdstevel@tonic-gate#define	ENETUNREACH	51		/* Network is unreachable */
1017c478bdstevel@tonic-gate#define	ENETRESET	52		/* Network dropped connection on reset */
1027c478bdstevel@tonic-gate#define	ECONNABORTED	53		/* Software caused connection abort */
1037c478bdstevel@tonic-gate#define	ECONNRESET	54		/* Connection reset by peer */
1047c478bdstevel@tonic-gate#define	ENOBUFS		55		/* No buffer space available */
1057c478bdstevel@tonic-gate#define	EISCONN		56		/* Socket is already connected */
1067c478bdstevel@tonic-gate#define	ENOTCONN	57		/* Socket is not connected */
1077c478bdstevel@tonic-gate#define	ESHUTDOWN	58		/* Can't send after socket shutdown */
1087c478bdstevel@tonic-gate#define	ETOOMANYREFS	59		/* Too many references: can't splice */
1097c478bdstevel@tonic-gate#define	ETIMEDOUT	60		/* Connection timed out */
1107c478bdstevel@tonic-gate#define	ECONNREFUSED	61		/* Connection refused */
1117c478bdstevel@tonic-gate
1127c478bdstevel@tonic-gate	/* */
1137c478bdstevel@tonic-gate#define	ELOOP		62		/* Too many levels of symbolic links */
1147c478bdstevel@tonic-gate#define	ENAMETOOLONG	63		/* File name too long */
1157c478bdstevel@tonic-gate
1167c478bdstevel@tonic-gate/* should be rearranged */
1177c478bdstevel@tonic-gate#define	EHOSTDOWN	64		/* Host is down */
1187c478bdstevel@tonic-gate#define	EHOSTUNREACH	65		/* No route to host */
1197c478bdstevel@tonic-gate#define	ENOTEMPTY	66		/* Directory not empty */
1207c478bdstevel@tonic-gate
1217c478bdstevel@tonic-gate/* quotas & mush */
1227c478bdstevel@tonic-gate#define	EPROCLIM	67		/* Too many processes */
1237c478bdstevel@tonic-gate#define	EUSERS		68		/* Too many users */
1247c478bdstevel@tonic-gate#define	EDQUOT		69		/* Disc quota exceeded */
1257c478bdstevel@tonic-gate
1267c478bdstevel@tonic-gate/* Network File System */
1277c478bdstevel@tonic-gate#define	ESTALE		70		/* Stale NFS file handle */
1287c478bdstevel@tonic-gate#define	EREMOTE		71		/* Too many levels of remote in path */
1297c478bdstevel@tonic-gate
1307c478bdstevel@tonic-gate/* streams */
1317c478bdstevel@tonic-gate#define	ENOSTR		72		/* Device is not a stream */
1327c478bdstevel@tonic-gate#define	ETIME		73		/* Timer expired */
1337c478bdstevel@tonic-gate#define	ENOSR		74		/* Out of streams resources */
1347c478bdstevel@tonic-gate#define	ENOMSG		75		/* No message of desired type */
1357c478bdstevel@tonic-gate#define	EBADMSG		76		/* Trying to read unreadable message */
1367c478bdstevel@tonic-gate
1377c478bdstevel@tonic-gate/* SystemV IPC */
1387c478bdstevel@tonic-gate#define EIDRM		77		/* Identifier removed */
1397c478bdstevel@tonic-gate
1407c478bdstevel@tonic-gate/* SystemV Record Locking */
1417c478bdstevel@tonic-gate#define EDEADLK		78		/* Deadlock condition. */
1427c478bdstevel@tonic-gate#define ENOLCK		79		/* No record locks available. */
1437c478bdstevel@tonic-gate
1447c478bdstevel@tonic-gate/* POSIX */
1457c478bdstevel@tonic-gate#define ENOSYS		90		/* function not implemented */
1467c478bdstevel@tonic-gate
1477c478bdstevel@tonic-gate#endif /*!_sys_errno_h*/
148