Deleted Added
full compact
getrpc_test.c (292323) getrpc_test.c (298830)
1/*-
2 * Copyright (c) 2006 Michael Bushkov <bushman@freebsd.org>
3 * 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

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

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 Michael Bushkov <bushman@freebsd.org>
3 * 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

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

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/lib/libc/tests/nss/getrpc_test.c 292323 2015-12-16 08:09:03Z ngie $");
29__FBSDID("$FreeBSD: head/lib/libc/tests/nss/getrpc_test.c 298830 2016-04-30 01:24:24Z pfg $");
30
31#include <arpa/inet.h>
32#include <rpc/rpc.h>
33#include <errno.h>
34#include <stdio.h>
35#include <stdlib.h>
36#include <string.h>
37#include <stringlist.h>

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

312 return (0);
313errfin:
314 printf("incorrect\n");
315
316 return (-1);
317}
318
319/* rpcent_check_ambiguity() is needed when one port+rpc is associated with
30
31#include <arpa/inet.h>
32#include <rpc/rpc.h>
33#include <errno.h>
34#include <stdio.h>
35#include <stdlib.h>
36#include <string.h>
37#include <stringlist.h>

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

312 return (0);
313errfin:
314 printf("incorrect\n");
315
316 return (-1);
317}
318
319/* rpcent_check_ambiguity() is needed when one port+rpc is associated with
320 * more than one peice (these cases are usually marked as PROBLEM in
321 * /etc/peices. This functions is needed also when one peice+rpc is
320 * more than one piece (these cases are usually marked as PROBLEM in
321 * /etc/peices. This functions is needed also when one piece+rpc is
322 * associated with several ports. We have to check all the rpcent structures
323 * to make sure that rpc really exists and correct */
324static int
325rpcent_check_ambiguity(struct rpcent_test_data *td, struct rpcent *rpc)
326{
327
328 return (TEST_DATA_FIND(rpcent, td, rpc, compare_rpcent,
329 NULL) != NULL ? 0 : -1);

--- 231 unchanged lines hidden ---
322 * associated with several ports. We have to check all the rpcent structures
323 * to make sure that rpc really exists and correct */
324static int
325rpcent_check_ambiguity(struct rpcent_test_data *td, struct rpcent *rpc)
326{
327
328 return (TEST_DATA_FIND(rpcent, td, rpc, compare_rpcent,
329 NULL) != NULL ? 0 : -1);

--- 231 unchanged lines hidden ---