File descriptor cleanup stage 2, remove the separate arrays for file
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 22 Jun 2005 01:33:34 +0000 (01:33 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 22 Jun 2005 01:33:34 +0000 (01:33 +0000)
commit0679adc40618cfe16fe86b813133371fdcc0d4b7
tree5137ab427471cb8a26cd6911ba1df9b13be7ed4d
parent6990831969dfb27b4450d9696f7f9676d0697b54
File descriptor cleanup stage 2, remove the separate arrays for file
pointers, fileflags, and allocation counts and replace the mess with a
single structural array.  Also revamp the code that checks whether the
file descriptor array is built-in or allocated.

Note that the removed malloc's were doing something weird, allocating
'nf * OFILESIZE + 1' bytes instead of 'nf * OFILESIZE' bytes.  I could
not find any reason at all why it was doing that.  It's gone now anyway.
26 files changed:
sys/dev/misc/streams/streams.c
sys/emulation/ibcs2/i386/ibcs2_fcntl.c
sys/emulation/ibcs2/i386/ibcs2_ioctl.c
sys/emulation/linux/linux_file.c
sys/emulation/svr4/svr4_fcntl.c
sys/emulation/svr4/svr4_filio.c
sys/emulation/svr4/svr4_ioctl.c
sys/emulation/svr4/svr4_stream.c
sys/kern/imgact_elf.c
sys/kern/init_main.c
sys/kern/kern_checkpoint.c
sys/kern/kern_descrip.c
sys/kern/kern_event.c
sys/kern/sys_generic.c
sys/kern/sys_pipe.c
sys/kern/uipc_syscalls.c
sys/kern/uipc_usrreq.c
sys/kern/vfs_aio.c
sys/kern/vfs_syscalls.c
sys/netgraph/socket/ng_socket.c
sys/netproto/smb/smb_dev.c
sys/sys/filedesc.h
sys/vfs/fdesc/fdesc_vfsops.c
sys/vfs/fdesc/fdesc_vnops.c
sys/vfs/portal/portal_vnops.c
sys/vm/vm_mmap.c