rpcinfo.c (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) rpcinfo.c (62f882d620bdfa783c01626012d69f468ba34e28)
1#ifndef lint
2/*static char sccsid[] = "from: @(#)rpcinfo.c 1.22 87/08/12 SMI";*/
3/*static char sccsid[] = "from: @(#)rpcinfo.c 2.2 88/08/11 4.0 RPCSRC";*/
4static char rcsid[] =
5 "$FreeBSD$";
6#endif
7
8/*

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

48#include <rpc/rpc.h>
49#include <stdio.h>
50#include <sys/socket.h>
51#include <netdb.h>
52#include <rpc/pmap_prot.h>
53#include <rpc/pmap_clnt.h>
54#include <signal.h>
55#include <ctype.h>
1#ifndef lint
2/*static char sccsid[] = "from: @(#)rpcinfo.c 1.22 87/08/12 SMI";*/
3/*static char sccsid[] = "from: @(#)rpcinfo.c 2.2 88/08/11 4.0 RPCSRC";*/
4static char rcsid[] =
5 "$FreeBSD$";
6#endif
7
8/*

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

48#include <rpc/rpc.h>
49#include <stdio.h>
50#include <sys/socket.h>
51#include <netdb.h>
52#include <rpc/pmap_prot.h>
53#include <rpc/pmap_clnt.h>
54#include <signal.h>
55#include <ctype.h>
56#include <unistd.h>
56#include <sys/param.h>
57#include <arpa/inet.h>
58
59#define MAXHOSTLEN 256
60
61#define MIN_VERS ((u_long) 0)
62#define MAX_VERS ((u_long) 4294967295UL)
63

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

84#define DELETES 5 /* delete registration for the service */
85
86int
87main(argc, argv)
88 int argc;
89 char **argv;
90{
91 register int c;
57#include <sys/param.h>
58#include <arpa/inet.h>
59
60#define MAXHOSTLEN 256
61
62#define MIN_VERS ((u_long) 0)
63#define MAX_VERS ((u_long) 4294967295UL)
64

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

85#define DELETES 5 /* delete registration for the service */
86
87int
88main(argc, argv)
89 int argc;
90 char **argv;
91{
92 register int c;
92 extern char *optarg;
93 extern int optind;
94 int errflg;
95 int function;
96 u_short portnum;
97
98 function = NONE;
99 portnum = 0;
100 errflg = 0;
101 while ((c = getopt(argc, argv, "ptubdn:")) != -1) {

--- 561 unchanged lines hidden ---
93 int errflg;
94 int function;
95 u_short portnum;
96
97 function = NONE;
98 portnum = 0;
99 errflg = 0;
100 while ((c = getopt(argc, argv, "ptubdn:")) != -1) {

--- 561 unchanged lines hidden ---