Deleted Added
full compact
kern_descrip.c (247602) kern_descrip.c (247736)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 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_descrip.c 8.6 (Berkeley) 4/19/94
35 */
36
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1989, 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_descrip.c 8.6 (Berkeley) 4/19/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/kern_descrip.c 247602 2013-03-02 00:53:12Z pjd $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_descrip.c 247736 2013-03-03 23:23:35Z pjd $");
39
40#include "opt_capsicum.h"
41#include "opt_compat.h"
42#include "opt_ddb.h"
43#include "opt_ktrace.h"
44#include "opt_procdesc.h"
45
46#include <sys/param.h>

--- 1345 unchanged lines hidden (view full) ---

1392 dst->fc_ioctls = malloc(size, M_TEMP, M_WAITOK);
1393 bcopy(src->fc_ioctls, dst->fc_ioctls, size);
1394 }
1395}
1396
1397/*
1398 * Move filecaps structure to the new place and clear the old place.
1399 */
39
40#include "opt_capsicum.h"
41#include "opt_compat.h"
42#include "opt_ddb.h"
43#include "opt_ktrace.h"
44#include "opt_procdesc.h"
45
46#include <sys/param.h>

--- 1345 unchanged lines hidden (view full) ---

1392 dst->fc_ioctls = malloc(size, M_TEMP, M_WAITOK);
1393 bcopy(src->fc_ioctls, dst->fc_ioctls, size);
1394 }
1395}
1396
1397/*
1398 * Move filecaps structure to the new place and clear the old place.
1399 */
1400static void
1400void
1401filecaps_move(struct filecaps *src, struct filecaps *dst)
1402{
1403
1404 *dst = *src;
1405 bzero(src, sizeof(*src));
1406}
1407
1408/*

--- 2471 unchanged lines hidden ---
1401filecaps_move(struct filecaps *src, struct filecaps *dst)
1402{
1403
1404 *dst = *src;
1405 bzero(src, sizeof(*src));
1406}
1407
1408/*

--- 2471 unchanged lines hidden ---