summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-10-07 22:42:08 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-10-07 22:42:08 +0000
commitc8f4242d58aec2b46469a58c7773d387977b4c73 (patch)
tree653d40308bcc16e2f35fc33d8d40e2a76f7bbfb7
parentc911c9c999094e2254de14817a86da3d7d17ffeb (diff)
gc UF_MAPPED.
-rw-r--r--sys/kern/kern_descrip.c6
-rw-r--r--sys/sys/filedesc.h3
2 files changed, 2 insertions, 7 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 252695edd17..c0c3aa26f26 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_descrip.c,v 1.36 2001/10/01 16:55:57 gluk Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.37 2001/10/07 22:42:07 art Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
@@ -469,10 +469,6 @@ fdrelease(p, fd)
if (fp == NULL)
return (EBADF);
pf = &fdp->fd_ofileflags[fd];
- if (*pf & UF_MAPPED) {
- /* XXX: USELESS? XXXCDC check it */
- p->p_fd->fd_ofileflags[fd] &= ~UF_MAPPED;
- }
*fpp = NULL;
*pf = 0;
fd_unused(fdp, fd);
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index 164c6597494..ba7b21b2f3a 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: filedesc.h,v 1.10 2001/05/16 12:49:46 art Exp $ */
+/* $OpenBSD: filedesc.h,v 1.11 2001/10/07 22:42:07 art Exp $ */
/* $NetBSD: filedesc.h,v 1.14 1996/04/09 20:55:28 cgd Exp $ */
/*
@@ -102,7 +102,6 @@ struct filedesc0 {
* Per-process open flags.
*/
#define UF_EXCLOSE 0x01 /* auto-close on exec */
-#define UF_MAPPED 0x02 /* mapped from device */
/*
* Storage required per open file descriptor.