Don't bother with file_t::f_iflags any more, as it's not used.

Noted by mrg@.
This commit is contained in:
ad 2009-03-08 12:52:08 +00:00
parent 988dfde8cd
commit 69f9e17075
3 changed files with 8 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: init_sysctl.c,v 1.156 2009/02/13 22:41:04 apb Exp $ */
/* $NetBSD: init_sysctl.c,v 1.157 2009/03/08 12:52:08 ad Exp $ */
/*-
* Copyright (c) 2003, 2007, 2008 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.156 2009/02/13 22:41:04 apb Exp $");
__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.157 2009/03/08 12:52:08 ad Exp $");
#include "opt_sysv.h"
#include "opt_compat_netbsd32.h"
@ -2152,7 +2152,7 @@ fill_file(struct kinfo_file *kp, const file_t *fp, const fdfile_t *ff,
kp->ki_fileaddr = PTRTOUINT64(fp);
kp->ki_flag = fp->f_flag;
kp->ki_iflags = fp->f_iflags;
kp->ki_iflags = 0;
kp->ki_ftype = fp->f_type;
kp->ki_count = fp->f_count;
kp->ki_msgcount = fp->f_msgcount;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_descrip.c,v 1.186 2009/03/02 19:28:08 rmind Exp $ */
/* $NetBSD: kern_descrip.c,v 1.187 2009/03/08 12:52:08 ad Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.186 2009/03/02 19:28:08 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.187 2009/03/08 12:52:08 ad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1007,7 +1007,6 @@ fd_allocfile(file_t **resultfp, int *resultfd)
fp->f_advice = 0;
fp->f_msgcount = 0;
fp->f_offset = 0;
fp->f_iflags = 0;
*resultfp = fp;
return 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pstat.c,v 1.111 2008/12/28 23:02:28 christos Exp $ */
/* $NetBSD: pstat.c,v 1.112 2009/03/08 12:52:08 ad Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1991, 1993, 1994\
#if 0
static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
#else
__RCSID("$NetBSD: pstat.c,v 1.111 2008/12/28 23:02:28 christos Exp $");
__RCSID("$NetBSD: pstat.c,v 1.112 2009/03/08 12:52:08 ad Exp $");
#endif
#endif /* not lint */
@ -882,7 +882,7 @@ filemode(void)
PRWORD(ovflw, " %*d", 5, 1, fp->f_count);
PRWORD(ovflw, " %*d", 5, 1, fp->f_msgcount);
PRWORD(ovflw, " %*lx", PTRSTRWIDTH + 1, 2, (long)fp->f_data);
PRWORD(ovflw, " %*x", 5, 1, fp->f_iflags);
PRWORD(ovflw, " %*x", 5, 1, 0);
if (fp->f_offset < 0)
PRWORD(ovflw, " %-*lld\n", PTRSTRWIDTH + 1, 2,
(long long)fp->f_offset);