smb_subr.h (82042) | smb_subr.h (87192) |
---|---|
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 82042 2001-08-21 08:58:02Z bp $ | 32 * $FreeBSD: head/sys/netsmb/smb_subr.h 87192 2001-12-02 08:47:29Z bp $ |
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 --- 84 unchanged lines hidden (view full) --- 125 126typedef u_int16_t smb_unichar; 127typedef smb_unichar *smb_uniptr; 128 129/* 130 * Crediantials of user/process being processing in the connection procedures 131 */ 132struct smb_cred { | 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 --- 84 unchanged lines hidden (view full) --- 125 126typedef u_int16_t smb_unichar; 127typedef smb_unichar *smb_uniptr; 128 129/* 130 * Crediantials of user/process being processing in the connection procedures 131 */ 132struct smb_cred { |
133 struct proc * scr_p; | 133 struct thread * scr_td; |
134 struct ucred * scr_cred; 135}; 136 137extern smb_unichar smb_unieol; 138 139struct mbchain; 140struct smb_vc; 141struct smb_rq; 142 | 134 struct ucred * scr_cred; 135}; 136 137extern smb_unichar smb_unieol; 138 139struct mbchain; 140struct smb_vc; 141struct smb_rq; 142 |
143void smb_makescred(struct smb_cred *scred, struct proc *p, struct ucred *cred); | 143void smb_makescred(struct smb_cred *scred, struct thread *td, struct ucred *cred); |
144int smb_proc_intr(struct proc *); 145char *smb_strdup(const char *s); 146void *smb_memdup(const void *umem, int len); 147char *smb_strdupin(char *s, int maxlen); 148void *smb_memdupin(void *umem, int len); 149void smb_strtouni(u_int16_t *dst, const char *src); 150void smb_strfree(char *s); 151void smb_memfree(void *s); --- 13 unchanged lines hidden --- | 144int smb_proc_intr(struct proc *); 145char *smb_strdup(const char *s); 146void *smb_memdup(const void *umem, int len); 147char *smb_strdupin(char *s, int maxlen); 148void *smb_memdupin(void *umem, int len); 149void smb_strtouni(u_int16_t *dst, const char *src); 150void smb_strfree(char *s); 151void smb_memfree(void *s); --- 13 unchanged lines hidden --- |