smbfs_subr.h revision 7568150a58e78021968b6c22bc28e9787b33496a
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * Copyright (c) 2000-2001, Boris Popov
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * All rights reserved.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * Redistribution and use in source and binary forms, with or without
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * modification, are permitted provided that the following conditions
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * 1. Redistributions of source code must retain the above copyright
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * notice, this list of conditions and the following disclaimer.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * 2. Redistributions in binary form must reproduce the above copyright
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * notice, this list of conditions and the following disclaimer in the
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * documentation and/or other materials provided with the distribution.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * 3. All advertising materials mentioning features or use of this software
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * must display the following acknowledgement:
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * This product includes software developed by Boris Popov.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * 4. Neither the name of the author nor the names of any co-contributors
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * may be used to endorse or promote products derived from this software
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * without specific prior written permission.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * SUCH DAMAGE.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * $Id: smbfs_subr.h,v 1.25 2005/03/17 01:23:40 lindak Exp $
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * Use is subject to license terms.
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire#pragma ident "%Z%%M% %I% %E% SMI"
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * Let's use C99 standard variadic macros!
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * Also the C99 __func__ (function name) feature.
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dh#define SMBFSERR(...) \
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire#define SMBVDEBUG(...) \
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * Possible lock commands
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire * Context to perform findfirst/findnext/findclose operations
struct smbfs_fctx {
int f_wclen;
const char *f_wildcard;
} f_urq;
int f_rnamelen;
int f_rnameofs;
int f_firstnmlen;
#ifdef NOT_YET
int smbfs_subrinit(void);
void smbfs_subrfini(void);
int smbfs_clntinit(void);
void smbfs_clntfini(void);