summaryrefslogtreecommitdiff
path: root/lib/ypproc_all_2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ypproc_all_2.c')
-rw-r--r--lib/ypproc_all_2.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/ypproc_all_2.c b/lib/ypproc_all_2.c
new file mode 100644
index 0000000..a98fab5
--- /dev/null
+++ b/lib/ypproc_all_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., 675 Mass Ave,
+ Cambridge, MA 02139, 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_all_2 (ypreq_nokey *argp, ypresp_all *clnt_res, CLIENT *clnt)
+{
+ return (clnt_call(clnt, YPPROC_ALL,
+ (xdrproc_t) xdr_ypreq_nokey, (caddr_t) argp,
+ (xdrproc_t) xdr_ypresp_all, (caddr_t) clnt_res,
+ TIMEOUT));
+}