lockd.h revision 14123
114123Speter/* 214123Speter * Copyright (c) 1995 314123Speter * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved. 414123Speter * 514123Speter * Redistribution and use in source and binary forms, with or without 614123Speter * modification, are permitted provided that the following conditions 714123Speter * are met: 814123Speter * 1. Redistributions of source code must retain the above copyright 914123Speter * notice, this list of conditions and the following disclaimer. 1014123Speter * 2. Redistributions in binary form must reproduce the above copyright 1114123Speter * notice, this list of conditions and the following disclaimer in the 1214123Speter * documentation and/or other materials provided with the distribution. 1314123Speter * 3. All advertising materials mentioning features or use of this software 1414123Speter * must display the following acknowledgement: 1514123Speter * This product includes software developed for the FreeBSD project 1614123Speter * 4. Neither the name of the author nor the names of any co-contributors 1714123Speter * may be used to endorse or promote products derived from this software 1814123Speter * without specific prior written permission. 1914123Speter * 2014123Speter * THIS SOFTWARE IS PROVIDED BY ANDREW GORDON AND CONTRIBUTORS ``AS IS'' AND 2114123Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2214123Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2314123Speter * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2414123Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2514123Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2614123Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2714123Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2814123Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2914123Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3014123Speter * SUCH DAMAGE. 3114123Speter * 3214123Speter */ 3314123Speter 3414123Speter 3514123Speter 3614123Speter#include <stdio.h> 3714123Speter#include <rpc/rpc.h> 3814123Speter#include <syslog.h> 3914123Speter#include <rpcsvc/sm_inter.h> /* protocol to talk to rpc.statd */ 4014123Speter#include <rpcsvc/nlm_prot.h> /* The protocol we are implementing */ 4114123Speter 4214123Speter 4314123Speter/* global variables ------------------------------------------------------- */ 4414123Speterextern int debug_level; 45