📄 ypprot_err.c
字号:
#if !defined(lint) && defined(SCCSIDS)static char sccsid[] = "@(#)ypprot_err.c 1.1 92/07/30 Copyr 1990 Sun Micro";#endif#include <rpc/rpc.h>#include "yp_prot.h"#include "ypclnt.h"/* * Maps a NIS protocol error code (as defined in * yp_prot.h) to a NIS 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 + -