kern_linker.c (101941) | kern_linker.c (105167) |
---|---|
1/*- 2 * Copyright (c) 1997-2000 Doug Rabson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997-2000 Doug Rabson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/kern/kern_linker.c 101941 2002-08-15 20:55:08Z rwatson $ | 26 * $FreeBSD: head/sys/kern/kern_linker.c 105167 2002-10-15 18:58:38Z phk $ |
27 */ 28 29#include "opt_ddb.h" 30 31#include <sys/param.h> 32#include <sys/kernel.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> --- 1491 unchanged lines hidden (view full) --- 1526 1527 /* 1528 * KLD is newer than hints file. What we should do now? 1529 */ 1530 if (result && timespeccmp(&mattr.va_mtime, &vattr.va_mtime, >)) 1531 printf("warning: KLD '%s' is newer than the linker.hints" 1532 " file\n", result); 1533bad: | 27 */ 28 29#include "opt_ddb.h" 30 31#include <sys/param.h> 32#include <sys/kernel.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> --- 1491 unchanged lines hidden (view full) --- 1526 1527 /* 1528 * KLD is newer than hints file. What we should do now? 1529 */ 1530 if (result && timespeccmp(&mattr.va_mtime, &vattr.va_mtime, >)) 1531 printf("warning: KLD '%s' is newer than the linker.hints" 1532 " file\n", result); 1533bad: |
1534 free(pathbuf, M_LINKER); |
|
1534 if (hints) 1535 free(hints, M_TEMP); 1536 if (nd.ni_vp != NULL) { 1537 VOP_UNLOCK(nd.ni_vp, 0, td); 1538 vn_close(nd.ni_vp, FREAD, cred, td); 1539 } 1540 /* 1541 * If nothing found or hints is absent - fallback to the old --- 268 unchanged lines hidden --- | 1535 if (hints) 1536 free(hints, M_TEMP); 1537 if (nd.ni_vp != NULL) { 1538 VOP_UNLOCK(nd.ni_vp, 0, td); 1539 vn_close(nd.ni_vp, FREAD, cred, td); 1540 } 1541 /* 1542 * If nothing found or hints is absent - fallback to the old --- 268 unchanged lines hidden --- |