svr4_sysvec.c (102808) | svr4_sysvec.c (109623) |
---|---|
1/* 2 * Copyright (c) 1998 Mark Newton 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 --- 13 unchanged lines hidden (view full) --- 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * | 1/* 2 * Copyright (c) 1998 Mark Newton 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 --- 13 unchanged lines hidden (view full) --- 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/compat/svr4/svr4_sysvec.c 102808 2002-09-01 21:41:24Z jake $ | 30 * $FreeBSD: head/sys/compat/svr4/svr4_sysvec.c 109623 2003-01-21 08:56:16Z alfred $ |
31 */ 32 33/* XXX we use functions that might not exist. */ 34#include "opt_compat.h" 35 36#ifndef COMPAT_43 37#error "Unable to compile SVR4-emulator due to missing COMPAT_43 option!" 38#endif --- 223 unchanged lines hidden (view full) --- 262 struct nameidata nd; 263 struct nameidata ndroot; 264 struct vattr vat; 265 struct vattr vatroot; 266 int error; 267 char *ptr, *buf, *cp; 268 size_t sz, len; 269 | 31 */ 32 33/* XXX we use functions that might not exist. */ 34#include "opt_compat.h" 35 36#ifndef COMPAT_43 37#error "Unable to compile SVR4-emulator due to missing COMPAT_43 option!" 38#endif --- 223 unchanged lines hidden (view full) --- 262 struct nameidata nd; 263 struct nameidata ndroot; 264 struct vattr vat; 265 struct vattr vatroot; 266 int error; 267 char *ptr, *buf, *cp; 268 size_t sz, len; 269 |
270 buf = (char *) malloc(MAXPATHLEN, M_TEMP, M_WAITOK); | 270 buf = (char *) malloc(MAXPATHLEN, M_TEMP, 0); |
271 *pbuf = path; 272 273 for (ptr = buf; (*ptr = *prefix) != '\0'; ptr++, prefix++) 274 continue; 275 276 sz = MAXPATHLEN - (ptr - buf); 277 278 /* --- 143 unchanged lines hidden --- | 271 *pbuf = path; 272 273 for (ptr = buf; (*ptr = *prefix) != '\0'; ptr++, prefix++) 274 continue; 275 276 sz = MAXPATHLEN - (ptr - buf); 277 278 /* --- 143 unchanged lines hidden --- |