yp_order.c (61961e0f) yp_order.c (e8031f0a)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 7 unchanged lines hidden (view full) ---

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22
23/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 7 unchanged lines hidden (view full) ---

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22
23/*
24 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
26 */
27
28/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
29/* All Rights Reserved */
30
31/*
32 * Portions of this source code were derived from Berkeley
33 * under license from the Regents of the University of
34 * California.
35 */
36
37#pragma ident "%Z%%M% %I% %E% SMI"
38
25 * Use is subject to license terms.
26 */
27
28/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
29/* All Rights Reserved */
30
31/*
32 * Portions of this source code were derived from Berkeley
33 * under license from the Regents of the University of
34 * California.
35 */
36
37#pragma ident "%Z%%M% %I% %E% SMI"
38
39#include "mt.h"
39#include <stdlib.h>
40#include <unistd.h>
41#include <rpc/rpc.h>
42#include "yp_b.h"
43#include <rpcsvc/yp_prot.h>
44#include <rpcsvc/ypclnt.h>
45#include <sys/types.h>
46#include <string.h>

--- 33 unchanged lines hidden (view full) ---

80 if (pdomb->dom_binding->ypbind_hi_vers >= YPVERS) {
81
82 reason = doorder(domain, map, pdomb, _ypserv_timeout,
83 order);
84
85 __yp_rel_binding(pdomb);
86 if (reason == YPERR_RPC) {
87 yp_unbind(domain);
40#include <stdlib.h>
41#include <unistd.h>
42#include <rpc/rpc.h>
43#include "yp_b.h"
44#include <rpcsvc/yp_prot.h>
45#include <rpcsvc/ypclnt.h>
46#include <sys/types.h>
47#include <string.h>

--- 33 unchanged lines hidden (view full) ---

81 if (pdomb->dom_binding->ypbind_hi_vers >= YPVERS) {
82
83 reason = doorder(domain, map, pdomb, _ypserv_timeout,
84 order);
85
86 __yp_rel_binding(pdomb);
87 if (reason == YPERR_RPC) {
88 yp_unbind(domain);
88 (void) _sleep(_ypsleeptime);
89 (void) sleep(_ypsleeptime);
89 } else {
90 break;
91 }
92 } else {
93 __yp_rel_binding(pdomb);
94 return (YPERR_VERS);
95 }
96 }

--- 41 unchanged lines hidden ---
90 } else {
91 break;
92 }
93 } else {
94 __yp_rel_binding(pdomb);
95 return (YPERR_VERS);
96 }
97 }

--- 41 unchanged lines hidden ---