⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yperr_string.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#if !defined(lint) && defined(SCCSIDS)static  char sccsid[] = "@(#)yperr_string.c 1.1 92/07/30 Copyr 1990 Sun Micro";#endif#include <rpcsvc/ypclnt.h>/* * This returns a pointer to an error message string appropriate to an input * NIS error code.  An input value of zero will return a success message. * In all cases, the message string will start with a lower case chararacter, * and will be terminated neither by a period (".") nor a newline. */char *yperr_string(code)	int code;{	char *pmesg;		switch (code) {	case 0:  {		pmesg = "NIS operation succeeded";		break;	}			case YPERR_BADARGS:  {		pmesg = "args to NIS function are bad";		break;	}		case YPERR_RPC:  {		pmesg = "RPC failure on NIS operation";		break;	}		case YPERR_DOMAIN:  {		pmesg = "can't bind to a server which serves domain";		break;	}		case YPERR_MAP:  {		pmesg = "no such map in server's domain";		break;	}			case YPERR_KEY:  {		pmesg = "no such key in map";		break;	}		case YPERR_YPERR:  {		pmesg = "internal NIS server or client error";		break;	}		case YPERR_RESRC:  {		pmesg = "local resource allocation failure";		break;	}		case YPERR_NOMORE:  {		pmesg = "no more records in map database";		break;	}		case YPERR_PMAP:  {		pmesg = "can't communicate with portmapper";		break;		}			case YPERR_YPBIND:  {		pmesg = "can't communicate with ypbind";		break;		}			case YPERR_YPSERV:  {		pmesg = "can't communicate with ypserv";		break;		}			case YPERR_NODOM:  {		pmesg = "local domain name not set";		break;	}	case YPERR_BADDB:  {		pmesg = "NIS map data base is bad";		break;	}	case YPERR_VERS:  {		pmesg = "NIS client/server version mismatch";		break;	}	case YPERR_ACCESS: {		pmesg = "permission denied";		break;	}	case YPERR_BUSY: {		pmesg = "database is busy";		break;	}			default:  {		pmesg = "unknown NIS client error code";		break;	}		}	return(pmesg);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -