file.c (30376) | file.c (74499) |
---|---|
1/* 2 * Copyright (c) 1995 3 * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1995 3 * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/usr.sbin/rpc.statd/file.c 74499 2001-03-20 01:36:41Z alfred $ 33 * |
|
32 */ 33 34#include <err.h> 35#include <errno.h> 36#include <fcntl.h> 37#include <stdio.h> 38#include <string.h> 39#include <unistd.h> --- 162 unchanged lines hidden (view full) --- 202 } 203 } 204 /* Select the next higher even number for the state counter */ 205 status_info->ourState = (status_info->ourState + 2) & 0xfffffffe; 206/*???????******/ status_info->ourState++; 207 } 208} 209 | 34 */ 35 36#include <err.h> 37#include <errno.h> 38#include <fcntl.h> 39#include <stdio.h> 40#include <string.h> 41#include <unistd.h> --- 162 unchanged lines hidden (view full) --- 204 } 205 } 206 /* Select the next higher even number for the state counter */ 207 status_info->ourState = (status_info->ourState + 2) & 0xfffffffe; 208/*???????******/ status_info->ourState++; 209 } 210} 211 |
210/* xdr_stat_chge ----------------------------------------------------------- */ 211/* 212 Purpose: XDR-encode structure of type stat_chge 213 Returns: TRUE if successful 214 Notes: This function is missing from librpcsvc, because the 215 sm_inter.x distributed by Sun omits the SM_NOTIFY 216 procedure used between co-operating statd's 217*/ 218 219bool_t xdr_stat_chge(XDR *xdrs, stat_chge *objp) 220{ 221 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) 222 { 223 return (FALSE); 224 } 225 if (!xdr_int(xdrs, &objp->state)) 226 { 227 return (FALSE); 228 } 229 return (TRUE); 230} 231 232 | |
233/* notify_one_host --------------------------------------------------------- */ 234/* 235 Purpose: Perform SM_NOTIFY procedure at specified host 236 Returns: TRUE if success, FALSE if failed. 237*/ 238 239static int notify_one_host(char *hostname) 240{ --- 110 unchanged lines hidden --- | 212/* notify_one_host --------------------------------------------------------- */ 213/* 214 Purpose: Perform SM_NOTIFY procedure at specified host 215 Returns: TRUE if success, FALSE if failed. 216*/ 217 218static int notify_one_host(char *hostname) 219{ --- 110 unchanged lines hidden --- |