e1adf50c175098121bb2d0ddc73adb34d502328eahl * CDDL HEADER START
e1adf50c175098121bb2d0ddc73adb34d502328eahl * The contents of this file are subject to the terms of the
e1adf50c175098121bb2d0ddc73adb34d502328eahl * Common Development and Distribution License (the "License").
e1adf50c175098121bb2d0ddc73adb34d502328eahl * You may not use this file except in compliance with the License.
e1adf50c175098121bb2d0ddc73adb34d502328eahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e1adf50c175098121bb2d0ddc73adb34d502328eahl * See the License for the specific language governing permissions
e1adf50c175098121bb2d0ddc73adb34d502328eahl * and limitations under the License.
e1adf50c175098121bb2d0ddc73adb34d502328eahl * When distributing Covered Code, include this CDDL HEADER in each
e1adf50c175098121bb2d0ddc73adb34d502328eahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e1adf50c175098121bb2d0ddc73adb34d502328eahl * If applicable, add the following below this CDDL HEADER, with the
e1adf50c175098121bb2d0ddc73adb34d502328eahl * fields enclosed by brackets "[]" replaced with your own identifying
e1adf50c175098121bb2d0ddc73adb34d502328eahl * information: Portions Copyright [yyyy] [name of copyright owner]
e1adf50c175098121bb2d0ddc73adb34d502328eahl * CDDL HEADER END
e1adf50c175098121bb2d0ddc73adb34d502328eahl * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
e1adf50c175098121bb2d0ddc73adb34d502328eahl * Use is subject to license terms.
e1adf50c175098121bb2d0ddc73adb34d502328eahl#pragma ident "%Z%%M% %I% %E% SMI"
e1adf50c175098121bb2d0ddc73adb34d502328eahl * The waiting() function returns the value passed in, until something
e1adf50c175098121bb2d0ddc73adb34d502328eahl * external modifies it. In this case, the D script tst.call.d will
e1adf50c175098121bb2d0ddc73adb34d502328eahl * modify the value of *a, and thus break the while loop in dotest().
e1adf50c175098121bb2d0ddc73adb34d502328eahl * This serves the purpose of not making the RPC calls until tst.call.d
e1adf50c175098121bb2d0ddc73adb34d502328eahl * is active. Thus, the probes in tst.call.d can fire as a result of
e1adf50c175098121bb2d0ddc73adb34d502328eahl * the RPC call in dotest().
e1adf50c175098121bb2d0ddc73adb34d502328eahl return (*a);
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahlstatic void
e1adf50c175098121bb2d0ddc73adb34d502328eahltypedef struct {
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (GETATTR3args), xdr_GETATTR3res, sizeof (GETATTR3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (SETATTR3args), xdr_SETATTR3res, sizeof (SETATTR3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (LOOKUP3args), xdr_LOOKUP3res, sizeof (LOOKUP3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (ACCESS3args), xdr_ACCESS3res, sizeof (ACCESS3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (COMMIT3args), xdr_COMMIT3res, sizeof (COMMIT3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (CREATE3args), xdr_CREATE3res, sizeof (CREATE3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (FSINFO3args), xdr_FSINFO3res, sizeof (FSINFO3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (FSSTAT3args), xdr_FSSTAT3res, sizeof (FSSTAT3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (MKDIR3args), xdr_MKDIR3res, sizeof (MKDIR3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (MKNOD3args), xdr_MKNOD3res, sizeof (MKNOD3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl * NULL proc is special. Rather than special case its zero-sized
e1adf50c175098121bb2d0ddc73adb34d502328eahl * args/results, we give it a small nonzero size, so as to not
e1adf50c175098121bb2d0ddc73adb34d502328eahl * make realloc() do the wrong thing.
e1adf50c175098121bb2d0ddc73adb34d502328eahl {null_arginit, NFSPROC3_NULL, xdr_void, sizeof (int), xdr_void,
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (int)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl {pathconf_arginit, NFSPROC3_PATHCONF, xdr_PATHCONF3args,
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (PATHCONF3args), xdr_PATHCONF3res, sizeof (PATHCONF3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (READDIR3args), xdr_READDIR3res, sizeof (READDIR3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl {readdirplus_arginit, NFSPROC3_READDIRPLUS, xdr_READDIRPLUS3args,
e1adf50c175098121bb2d0ddc73adb34d502328eahl {readlink_arginit, NFSPROC3_READLINK, xdr_READLINK3args,
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (READLINK3args), xdr_READLINK3res, sizeof (READLINK3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (REMOVE3args), xdr_REMOVE3res, sizeof (REMOVE3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (RENAME3args), xdr_RENAME3res, sizeof (RENAME3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (RMDIR3args), xdr_RMDIR3res, sizeof (RMDIR3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (SYMLINK3args), xdr_SYMLINK3res, sizeof (SYMLINK3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl sizeof (WRITE3args), xdr_WRITE3res, sizeof (WRITE3res)},
e1adf50c175098121bb2d0ddc73adb34d502328eahl volatile int a = 0;
e1adf50c175098121bb2d0ddc73adb34d502328eahl while (waiting(&a) == 0)
e1adf50c175098121bb2d0ddc73adb34d502328eahl mountclient = clnt_create("localhost", MOUNTPROG, MOUNTVERS3, "tcp");
e1adf50c175098121bb2d0ddc73adb34d502328eahl return (1);
e1adf50c175098121bb2d0ddc73adb34d502328eahl return (1);
e1adf50c175098121bb2d0ddc73adb34d502328eahl return (1);
e1adf50c175098121bb2d0ddc73adb34d502328eahl client = clnt_create("localhost", NFS3_PROGRAM, NFS_V3, "tcp");
e1adf50c175098121bb2d0ddc73adb34d502328eahl return (1);
e1adf50c175098121bb2d0ddc73adb34d502328eahl return (1);
e1adf50c175098121bb2d0ddc73adb34d502328eahl return (0);
e1adf50c175098121bb2d0ddc73adb34d502328eahl/*ARGSUSED*/