Deleted Added
full compact
kern_descrip.c (129948) kern_descrip.c (130344)
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 129948 2004-06-01 18:03:20Z rwatson $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_descrip.c 130344 2004-06-11 11:16:26Z phk $");
39
40#include "opt_compat.h"
41
42#include <sys/param.h>
43#include <sys/limits.h>
44#include <sys/systm.h>
45#include <sys/syscallsubr.h>
46#include <sys/sysproto.h>

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

973 fdp->fd_holdleaderswakeup = 0;
974 wakeup(&fdp->fd_holdleaderscount);
975 }
976 FILEDESC_UNLOCK(fdp);
977 }
978 return (error);
979}
980
39
40#include "opt_compat.h"
41
42#include <sys/param.h>
43#include <sys/limits.h>
44#include <sys/systm.h>
45#include <sys/syscallsubr.h>
46#include <sys/sysproto.h>

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

973 fdp->fd_holdleaderswakeup = 0;
974 wakeup(&fdp->fd_holdleaderscount);
975 }
976 FILEDESC_UNLOCK(fdp);
977 }
978 return (error);
979}
980
981#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
981#if defined(COMPAT_43)
982/*
983 * Return status information about a file descriptor.
984 */
985#ifndef _SYS_SYSPROTO_H_
986struct ofstat_args {
987 int fd;
988 struct ostat *sb;
989};

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

1010 if (error == 0) {
1011 cvtstat(&ub, &oub);
1012 error = copyout(&oub, uap->sb, sizeof(oub));
1013 }
1014 fdrop(fp, td);
1015done2:
1016 return (error);
1017}
982/*
983 * Return status information about a file descriptor.
984 */
985#ifndef _SYS_SYSPROTO_H_
986struct ofstat_args {
987 int fd;
988 struct ostat *sb;
989};

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

1010 if (error == 0) {
1011 cvtstat(&ub, &oub);
1012 error = copyout(&oub, uap->sb, sizeof(oub));
1013 }
1014 fdrop(fp, td);
1015done2:
1016 return (error);
1017}
1018#endif /* COMPAT_43 || COMPAT_SUNOS */
1018#endif /* COMPAT_43 */
1019
1020/*
1021 * Return status information about a file descriptor.
1022 */
1023#ifndef _SYS_SYSPROTO_H_
1024struct fstat_args {
1025 int fd;
1026 struct stat *sb;

--- 1474 unchanged lines hidden ---
1019
1020/*
1021 * Return status information about a file descriptor.
1022 */
1023#ifndef _SYS_SYSPROTO_H_
1024struct fstat_args {
1025 int fd;
1026 struct stat *sb;

--- 1474 unchanged lines hidden ---