📄 ypprot_err.c
字号:
#ifndef lintstatic char *sccsid = "@(#)ypprot_err.c 4.1 ULTRIX 7/3/90";#endif lint/**************************************************************** * * * Licensed to Digital Equipment Corporation, Maynard, MA * * Copyright 1985 Sun Microsystems, Inc. * * All rights reserved. * * * ****************************************************************/#include <rpc/rpc.h>#include <rpcsvc/yp_prot.h>#include <rpcsvc/ypclnt.h>/* * Maps a yp protocol error code (as defined in * yp_prot.h) to a yp client interface error code (as defined in * ypclnt.h). */intypprot_err(yp_protocol_error) unsigned int yp_protocol_error;{ int reason; switch (yp_protocol_error) { case YP_TRUE: reason = 0; break; case YP_NOMORE: reason = YPERR_NOMORE; break; case YP_NOMAP: reason = YPERR_MAP; break; case YP_NODOM: reason = YPERR_DOMAIN; break; case YP_NOKEY: reason = YPERR_KEY; break; case YP_BADARGS: reason = YPERR_BADARGS; break; case YP_BADDB: reason = YPERR_BADDB; break; case YP_VERS: reason = YPERR_VERS; break; default: reason = YPERR_YPERR; break; } return(reason);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -