ffs_vnops.c (118131) | ffs_vnops.c (118607) |
---|---|
1/* 2 * Copyright (c) 2002, 2003 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by Marshall 6 * Kirk McKusick and Network Associates Laboratories, the Security 7 * Research Division of Network Associates, Inc. under DARPA/SPAWAR 8 * contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS --- 29 unchanged lines hidden (view full) --- 38 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 39 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 40 * SUCH DAMAGE. 41 * 42 * @(#)ffs_vnops.c 8.15 (Berkeley) 5/14/95 43 */ 44 45#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2002, 2003 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by Marshall 6 * Kirk McKusick and Network Associates Laboratories, the Security 7 * Research Division of Network Associates, Inc. under DARPA/SPAWAR 8 * contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS --- 29 unchanged lines hidden (view full) --- 38 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 39 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 40 * SUCH DAMAGE. 41 * 42 * @(#)ffs_vnops.c 8.15 (Berkeley) 5/14/95 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/ufs/ffs/ffs_vnops.c 118131 2003-07-28 18:53:29Z rwatson $"); | 46__FBSDID("$FreeBSD: head/sys/ufs/ffs/ffs_vnops.c 118607 2003-08-07 15:04:27Z jhb $"); |
47 48#include <sys/param.h> 49#include <sys/bio.h> 50#include <sys/systm.h> 51#include <sys/buf.h> 52#include <sys/conf.h> 53#include <sys/extattr.h> 54#include <sys/kernel.h> --- 1179 unchanged lines hidden (view full) --- 1234 1235/* 1236 * Vnode operating to retrieve a named extended attribute. 1237 * 1238 * Locate a particular EA (nspace:name) in the area (ptr:length), and return 1239 * the length of the EA, and possibly the pointer to the entry and to the data. 1240 */ 1241static int | 47 48#include <sys/param.h> 49#include <sys/bio.h> 50#include <sys/systm.h> 51#include <sys/buf.h> 52#include <sys/conf.h> 53#include <sys/extattr.h> 54#include <sys/kernel.h> --- 1179 unchanged lines hidden (view full) --- 1234 1235/* 1236 * Vnode operating to retrieve a named extended attribute. 1237 * 1238 * Locate a particular EA (nspace:name) in the area (ptr:length), and return 1239 * the length of the EA, and possibly the pointer to the entry and to the data. 1240 */ 1241static int |
1242ffs_findextattr(u_char *ptr, uint length, int nspace, const char *name, u_char **eap, u_char **eac) | 1242ffs_findextattr(u_char *ptr, u_int length, int nspace, const char *name, u_char **eap, u_char **eac) |
1243{ 1244 u_char *p, *pe, *pn, *p0; 1245 int eapad1, eapad2, ealength, ealen, nlen; 1246 uint32_t ul; 1247 1248 pe = ptr + length; 1249 nlen = strlen(name); 1250 --- 564 unchanged lines hidden --- | 1243{ 1244 u_char *p, *pe, *pn, *p0; 1245 int eapad1, eapad2, ealength, ealen, nlen; 1246 uint32_t ul; 1247 1248 pe = ptr + length; 1249 nlen = strlen(name); 1250 --- 564 unchanged lines hidden --- |