AMD64 - Refactor uio_resid and size_t assumptions.
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Aug 2009 03:30:09 +0000 (20:30 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Aug 2009 03:44:27 +0000 (20:44 -0700)
commite54488bbec5c9f80e95cedd395b0e3d31fde253d
tree594013c80dbda3d4130b35516d7f40f7842b9718
parent88bf1145bc9f8cad86e319cd78f2ed4afb7189ad
AMD64 - Refactor uio_resid and size_t assumptions.

* uio_resid changed from int to size_t (size_t == unsigned long equivalent).

* size_t assumptions in most kernel code has been refactored to operate in a
  64 bit environment.

* In addition, the 2G limitation for VM related system calls such as mmap()
  has been removed in 32 bit environments.  Note however that because
  read() and write() return ssize_t, these functions are still limited
  to a 2G byte count in 32 bit environments.
86 files changed:
sys/boot/common/load_elf.c
sys/boot/ofw/libofw/ofw_copy.c
sys/boot/pc32/libi386/biosdisk.c
sys/boot/pc32/libi386/i386_copy.c
sys/bus/cam/scsi/scsi_target.c
sys/bus/iicbus/iic.c
sys/bus/usb/usb.c
sys/dev/misc/kbd/kbd.c
sys/dev/misc/lpt/lpt.c
sys/dev/misc/mse/mse.c
sys/dev/misc/nmdm/nmdm.c
sys/dev/misc/ppi/ppi.c
sys/dev/misc/psm/psm.c
sys/dev/misc/snp/snp.c
sys/dev/misc/spic/spic.c
sys/dev/raid/dpt/dpt_control.c
sys/dev/sound/pcm/channel.c
sys/dev/sound/pcm/sndstat.c
sys/dev/usbmisc/ugen/ugen.c
sys/dev/usbmisc/uhid/uhid.c
sys/dev/usbmisc/ulpt/ulpt.c
sys/dev/usbmisc/urio/urio.c
sys/dev/usbmisc/uscanner/uscanner.c
sys/dev/video/ctx/ctx.c
sys/dev/video/fb/fb.c
sys/emulation/43bsd/43bsd_file.c
sys/emulation/43bsd/43bsd_hostinfo.c
sys/emulation/43bsd/43bsd_signal.c
sys/emulation/43bsd/43bsd_socket.c
sys/emulation/43bsd/43bsd_vm.c
sys/emulation/dragonfly12/dfbsd12_getdirentries.c
sys/emulation/linux/i386/linprocfs/linprocfs_misc.c
sys/emulation/linux/i386/linux_machdep.c
sys/emulation/linux/i386/linux_ptrace.c
sys/emulation/linux/linux_file.c
sys/emulation/linux/linux_socket.c
sys/kern/kern_fp.c
sys/kern/kern_subr.c
sys/kern/kern_xio.c
sys/kern/subr_log.c
sys/kern/subr_prf.c
sys/kern/sys_generic.c
sys/kern/tty.c
sys/kern/tty_pty.c
sys/kern/uipc_mbuf.c
sys/kern/uipc_socket.c
sys/kern/uipc_syscalls.c
sys/kern/vfs_cluster.c
sys/kern/vfs_syscalls.c
sys/net/i4b/driver/i4b_rbch.c
sys/net/i4b/driver/i4b_tel.c
sys/net/tap/if_tap.c
sys/net/tun/if_tun.c
sys/netgraph7/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
sys/netgraph7/ng_device.c
sys/netproto/smb/smb_smb.c
sys/netproto/smb/smb_trantcp.c
sys/platform/pc32/i386/busdma_machdep.c
sys/platform/pc32/i386/vm_machdep.c
sys/platform/pc32/include/iic.h
sys/platform/pc32/isa/asc.c
sys/platform/pc64/amd64/busdma_machdep.c
sys/platform/pc64/amd64/vm_machdep.c
sys/platform/pc64/isa/asc.c
sys/platform/vkernel/platform/busdma_machdep.c
sys/sys/buf.h
sys/sys/kern_syscall.h
sys/sys/sysmsg.h
sys/sys/uio.h
sys/sys/xio.h
sys/vfs/fdesc/fdesc_vnops.c
sys/vfs/hammer/hammer_vnops.c
sys/vfs/hpfs/hpfs_vnops.c
sys/vfs/isofs/cd9660/cd9660_vnops.c
sys/vfs/msdosfs/msdosfs_vnops.c
sys/vfs/nfs/nfs_bio.c
sys/vfs/ntfs/ntfs_vnops.c
sys/vfs/nwfs/nwfs_io.c
sys/vfs/procfs/procfs_mem.c
sys/vfs/procfs/procfs_rlimit.c
sys/vfs/procfs/procfs_status.c
sys/vfs/smbfs/smbfs_io.c
sys/vfs/userfs/userfs_vnops.c
sys/vm/vm_extern.h
sys/vm/vm_mmap.c
sys/vm/vm_vmspace.c