smb_subr.h (139823) | smb_subr.h (164033) |
---|---|
1/*- 2 * Copyright (c) 2000-2001, Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/*- 2 * Copyright (c) 2000-2001, Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/netsmb/smb_subr.h 139823 2005-01-07 01:45:51Z imp $ | 32 * $FreeBSD: head/sys/netsmb/smb_subr.h 164033 2006-11-06 13:42:10Z rwatson $ |
33 */ 34#ifndef _NETSMB_SMB_SUBR_H_ 35#define _NETSMB_SMB_SUBR_H_ 36 37#ifndef _KERNEL 38#error "This file shouldn't be included from userland programs" 39#endif 40 --- 22 unchanged lines hidden (view full) --- 63#define m_dumpm(m) 64#endif 65 66#define SMB_SIGMASK(set) \ 67 (SIGISMEMBER(set, SIGINT) || SIGISMEMBER(set, SIGTERM) || \ 68 SIGISMEMBER(set, SIGHUP) || SIGISMEMBER(set, SIGKILL) || \ 69 SIGISMEMBER(set, SIGQUIT)) 70 | 33 */ 34#ifndef _NETSMB_SMB_SUBR_H_ 35#define _NETSMB_SMB_SUBR_H_ 36 37#ifndef _KERNEL 38#error "This file shouldn't be included from userland programs" 39#endif 40 --- 22 unchanged lines hidden (view full) --- 63#define m_dumpm(m) 64#endif 65 66#define SMB_SIGMASK(set) \ 67 (SIGISMEMBER(set, SIGINT) || SIGISMEMBER(set, SIGTERM) || \ 68 SIGISMEMBER(set, SIGHUP) || SIGISMEMBER(set, SIGKILL) || \ 69 SIGISMEMBER(set, SIGQUIT)) 70 |
71#define smb_suser(cred) suser_cred(cred, 0) | 71#define smb_suser(cred) priv_check_cred(cred, PRIV_NETSMB, 0) |
72 73/* 74 * Compatibility wrappers for simple locks 75 */ 76 77#include <sys/lock.h> 78#include <sys/mutex.h> 79 --- 51 unchanged lines hidden --- | 72 73/* 74 * Compatibility wrappers for simple locks 75 */ 76 77#include <sys/lock.h> 78#include <sys/mutex.h> 79 --- 51 unchanged lines hidden --- |