kern_resource.c (177368) | kern_resource.c (177377) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_resource.c 8.5 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_resource.c 8.5 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_resource.c 177368 2008-03-19 06:19:01Z jeff $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_resource.c 177377 2008-03-19 07:52:07Z pjd $"); |
39 40#include "opt_compat.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/sysproto.h> 45#include <sys/file.h> 46#include <sys/kernel.h> --- 1162 unchanged lines hidden (view full) --- 1209 /* Someone else beat us to it. */ 1210 free(uip, M_UIDINFO); 1211 uip = old_uip; 1212 } else { 1213 refcount_init(&uip->ui_ref, 0); 1214 uip->ui_uid = uid; 1215 LIST_INSERT_HEAD(UIHASH(uid), uip, ui_hash); 1216 } | 39 40#include "opt_compat.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/sysproto.h> 45#include <sys/file.h> 46#include <sys/kernel.h> --- 1162 unchanged lines hidden (view full) --- 1209 /* Someone else beat us to it. */ 1210 free(uip, M_UIDINFO); 1211 uip = old_uip; 1212 } else { 1213 refcount_init(&uip->ui_ref, 0); 1214 uip->ui_uid = uid; 1215 LIST_INSERT_HEAD(UIHASH(uid), uip, ui_hash); 1216 } |
1217 uihold(uip); | |
1218 } 1219 uihold(uip); 1220 rw_unlock(&uihashtbl_lock); 1221 return (uip); 1222} 1223 1224/* 1225 * Place another refcount on a uidinfo struct. --- 107 unchanged lines hidden --- | 1217 } 1218 uihold(uip); 1219 rw_unlock(&uihashtbl_lock); 1220 return (uip); 1221} 1222 1223/* 1224 * Place another refcount on a uidinfo struct. --- 107 unchanged lines hidden --- |