2 static char sfs_c_clntSid[] = "@(#)sfs_c_clnt.c 2.1 97/10/23";
6 * Copyright (c) 1992-1997,2001 by Standard Performance Evaluation Corporation
8 * Standard Performance Evaluation Corporation (SPEC)
9 * 6585 Merchant Place, Suite 100
12 * This product contains benchmarks acquired from several sources who
13 * understand and agree with SPEC's goal of creating fair and objective
14 * benchmarks to measure computer performance.
16 * This copyright notice is placed here only to protect SPEC in the
17 * event the source is misused in any manner that is contrary to the
18 * spirit, the goals and the intent of SPEC.
20 * The source code is provided to the user or company under the license
21 * agreement for the SPEC Benchmark Suite for this product.
24 /*****************************************************************
26 * Copyright 1991,1992 Legato Systems, Inc. *
27 * Copyright 1991,1992 Auspex Systems, Inc. *
28 * Copyright 1991,1992 Data General Corporation *
29 * Copyright 1991,1992 Digital Equipment Corporation *
30 * Copyright 1991,1992 Interphase Corporation *
31 * Copyright 1991,1992 Sun Microsystems, Inc. *
33 *****************************************************************/
36 * ------------------------- Include Files -------------------------
49 #include <sys/types.h>
54 #include "sfs_c_def.h"
55 #include "sfs_m_def.h"
57 #if !defined(_XOPEN_SOURCE)
58 #include <sys/socket.h>
64 lad_clnt_create(int prot, struct hostent *hostent, uint32_t program,
65 uint32_t version, int sock, struct timeval *wait)
67 struct sockaddr_in sin;
72 /* set up the socket address for the remote call */
73 (void) memset((char *) &sin, '\0', sizeof(sin));
74 (void) memmove((char *) &sin.sin_addr,
77 sin.sin_family = AF_INET;
82 client_ptr = sfs_cudp_create(&sin, program, version,
85 client_ptr = sfs_cudp_bufcreate(&sin, program, version,
90 sendsz = NFS_MAXDATA + 1024;
91 recvsz = NFS_MAXDATA + 1024;
93 client_ptr = sfs_ctcp_create(&sin, program, version, &sock,
98 if (client_ptr == ((CLIENT *) NULL)) {
101 (void) sprintf(buf, "%s: server not responding",
103 clnt_pcreateerror(buf);
104 return((CLIENT *) NULL);