diff options
Diffstat (limited to 'lib/ypproc_match_2.c')
-rw-r--r-- | lib/ypproc_match_2.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/ypproc_match_2.c b/lib/ypproc_match_2.c new file mode 100644 index 0000000..065c127 --- /dev/null +++ b/lib/ypproc_match_2.c @@ -0,0 +1,34 @@ +/* Copyright (c) 2000 Thorsten Kukuk + Author: Thorsten Kukuk <kukuk@suse.de> + + The YP Server is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + version 2 as published by the Free Software Foundation. + + The YP Server is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public + License along with the YP Server; see the file COPYING. If + not, write to the Free Software Foundation, Inc., 51 Franklin Street, + Suite 500, Boston, MA 02110-1335, USA. */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "yp.h" + +/* Default timeout can be changed using clnt_control() */ +static struct timeval TIMEOUT = { 25, 0 }; + +enum clnt_stat +ypproc_match_2 (ypreq_key *argp, ypresp_val *clnt_res, CLIENT *clnt) +{ + return (clnt_call(clnt, YPPROC_MATCH, + (xdrproc_t) xdr_ypreq_key, (caddr_t) argp, + (xdrproc_t) xdr_ypresp_val, (caddr_t) clnt_res, + TIMEOUT)); +} |