/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1995 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Include the SVR4/5.0 errno.h
*/
#include "s5errno.h"
/* from UCB 4.1 82/12/28 */
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* XError codes from 4.1
*/
/* math software */
/* non-blocking and interrupt i/o */
/* argument errors */
/* operational errors */
/* */
/* should be rearranged */
/* quotas & mush */
/* Network File System */
/* streams */
/* SystemV IPC */
/* SystemV Record Locking */
/* POSIX */
void maperror()
{
extern int errno;
if (errno == 0)
return;
switch (errno) {
case ENOMSG:
break;
case EIDRM:
break;
case EDEADLK:
break;
case ENOLCK:
break;
case ENOSTR:
break;
case ETIME:
break;
case ENOSR:
break;
case EBADMSG:
break;
case ENOSYS:
break;
case ELOOP:
break;
case ERESTART:
interrupted system calls */
break;
case ENAMETOOLONG:
break;
case ENOTEMPTY:
break;
case EUSERS:
break;
case ENOTSOCK:
break;
case EDESTADDRREQ:
break;
case EMSGSIZE:
break;
case EPROTOTYPE:
break;
case ENOPROTOOPT:
break;
case EPROTONOSUPPORT:
break;
case ESOCKTNOSUPPORT:
break;
case EOPNOTSUPP:
break;
case EPFNOSUPPORT:
break;
case EAFNOSUPPORT:
break;
case EADDRINUSE:
break;
case EADDRNOTAVAIL:
break;
case ENETDOWN:
break;
case ENETUNREACH:
break;
case ENETRESET:
break;
case ECONNABORTED:
break;
case ECONNRESET:
break;
case ENOBUFS:
break;
case EISCONN:
break;
case ENOTCONN:
break;
case ESHUTDOWN:
break;
case ETOOMANYREFS:
break;
case ETIMEDOUT:
break;
case ECONNREFUSED:
break;
case EHOSTDOWN:
break;
case EHOSTUNREACH:
break;
case EALREADY:
break;
case EINPROGRESS:
break;
case ESTALE:
break;
case EDQUOT:
break;
default:
break;
}
return;
}