Deleted Added
full compact
ncp_subr.h (139823) ncp_subr.h (164033)
1/*-
2 * Copyright (c) 1999, 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) 1999, 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/netncp/ncp_subr.h 139823 2005-01-07 01:45:51Z imp $
32 * $FreeBSD: head/sys/netncp/ncp_subr.h 164033 2006-11-06 13:42:10Z rwatson $
33 */
34#ifndef _NETNCP_NCP_SUBR_H_
35#define _NETNCP_NCP_SUBR_H_
36
37#define NCP_TIMER_TICK 2*hz /* 1sec */
38#define NCP_SIGMASK(set) \
39 (SIGISMEMBER(set, SIGINT) || SIGISMEMBER(set, SIGTERM) || \
40 SIGISMEMBER(set, SIGHUP) || SIGISMEMBER(set, SIGKILL) || \

--- 38 unchanged lines hidden (view full) ---

79#ifdef NWFS_VNOPS_DEBUG
80#define NCPVNDEBUG(format, args...) printf("%s: "format, __func__ ,## args)
81#else
82#define NCPVNDEBUG(format, args...)
83#endif
84
85#define checkbad(fn) {error=(fn);if(error) goto bad;}
86
33 */
34#ifndef _NETNCP_NCP_SUBR_H_
35#define _NETNCP_NCP_SUBR_H_
36
37#define NCP_TIMER_TICK 2*hz /* 1sec */
38#define NCP_SIGMASK(set) \
39 (SIGISMEMBER(set, SIGINT) || SIGISMEMBER(set, SIGTERM) || \
40 SIGISMEMBER(set, SIGHUP) || SIGISMEMBER(set, SIGKILL) || \

--- 38 unchanged lines hidden (view full) ---

79#ifdef NWFS_VNOPS_DEBUG
80#define NCPVNDEBUG(format, args...) printf("%s: "format, __func__ ,## args)
81#else
82#define NCPVNDEBUG(format, args...)
83#endif
84
85#define checkbad(fn) {error=(fn);if(error) goto bad;}
86
87#define ncp_suser(cred) suser_cred(cred, 0)
87#define ncp_suser(cred) priv_check_cred(cred, PRIV_NETNCP, 0)
88
89#define ncp_isowner(conn,cred) ((cred)->cr_uid == (conn)->nc_owner->cr_uid)
90
91struct ncp_conn;
92
93struct nwmount;
94struct vnode;
95struct nwnode;

--- 27 unchanged lines hidden ---
88
89#define ncp_isowner(conn,cred) ((cred)->cr_uid == (conn)->nc_owner->cr_uid)
90
91struct ncp_conn;
92
93struct nwmount;
94struct vnode;
95struct nwnode;

--- 27 unchanged lines hidden ---