DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: AMD64 - Refactor uio_resid and size_t assumptions.


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Aug 2009 21:07:56 -0700 (PDT)

commit e54488bbec5c9f80e95cedd395b0e3d31fde253d
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Tue Aug 18 20:30:09 2009 -0700

    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.

Summary of changes:
 sys/boot/common/load_elf.c                         |    2 +-
 sys/boot/ofw/libofw/ofw_copy.c                     |    2 +-
 sys/boot/pc32/libi386/biosdisk.c                   |    6 +-
 sys/boot/pc32/libi386/i386_copy.c                  |    2 +-
 sys/bus/cam/scsi/scsi_target.c                     |    2 +-
 sys/bus/iicbus/iic.c                               |    8 +-
 sys/bus/usb/usb.c                                  |    6 +-
 sys/dev/misc/kbd/kbd.c                             |    6 +-
 sys/dev/misc/lpt/lpt.c                             |   14 ++--
 sys/dev/misc/mse/mse.c                             |    5 +-
 sys/dev/misc/nmdm/nmdm.c                           |    4 +-
 sys/dev/misc/ppi/ppi.c                             |   18 ++--
 sys/dev/misc/psm/psm.c                             |    4 +-
 sys/dev/misc/snp/snp.c                             |   12 +-
 sys/dev/misc/spic/spic.c                           |    6 +-
 sys/dev/raid/dpt/dpt_control.c                     |    6 +-
 sys/dev/sound/pcm/channel.c                        |   10 +-
 sys/dev/sound/pcm/sndstat.c                        |   10 ++-
 sys/dev/usbmisc/ugen/ugen.c                        |   14 ++--
 sys/dev/usbmisc/uhid/uhid.c                        |    2 +-
 sys/dev/usbmisc/ulpt/ulpt.c                        |    2 +-
 sys/dev/usbmisc/urio/urio.c                        |    4 +-
 sys/dev/usbmisc/uscanner/uscanner.c                |    4 +-
 sys/dev/video/ctx/ctx.c                            |    8 +-
 sys/dev/video/fb/fb.c                              |    5 +-
 sys/emulation/43bsd/43bsd_file.c                   |    4 +-
 sys/emulation/43bsd/43bsd_hostinfo.c               |    2 +-
 sys/emulation/43bsd/43bsd_signal.c                 |    4 +-
 sys/emulation/43bsd/43bsd_socket.c                 |   18 ++--
 sys/emulation/43bsd/43bsd_vm.c                     |    2 +-
 sys/emulation/dragonfly12/dfbsd12_getdirentries.c  |    8 +-
 .../linux/i386/linprocfs/linprocfs_misc.c          |    2 +-
 sys/emulation/linux/i386/linux_machdep.c           |   32 +++---
 sys/emulation/linux/i386/linux_ptrace.c            |   37 ++++---
 sys/emulation/linux/linux_file.c                   |   86 ++++++++-------
 sys/emulation/linux/linux_socket.c                 |   38 ++++----
 sys/kern/kern_fp.c                                 |    8 +-
 sys/kern/kern_subr.c                               |  111 ++++++--------------
 sys/kern/kern_xio.c                                |    4 +-
 sys/kern/subr_log.c                                |    4 +-
 sys/kern/subr_prf.c                                |    4 +-
 sys/kern/sys_generic.c                             |   66 ++++++------
 sys/kern/tty.c                                     |   12 ++-
 sys/kern/tty_pty.c                                 |   19 ++--
 sys/kern/uipc_mbuf.c                               |   15 ++-
 sys/kern/uipc_socket.c                             |   57 ++++++-----
 sys/kern/uipc_syscalls.c                           |   53 +++++-----
 sys/kern/vfs_cluster.c                             |    6 +-
 sys/kern/vfs_syscalls.c                            |    4 +-
 sys/net/i4b/driver/i4b_rbch.c                      |    4 +-
 sys/net/i4b/driver/i4b_tel.c                       |    8 +-
 sys/net/tap/if_tap.c                               |   17 ++--
 sys/net/tun/if_tun.c                               |   15 ++--
 .../bluetooth/drivers/ubtbcmfw/ubtbcmfw.c          |    8 +-
 sys/netgraph7/ng_device.c                          |    2 +-
 sys/netproto/smb/smb_smb.c                         |   27 +++--
 sys/netproto/smb/smb_trantcp.c                     |    5 +-
 sys/platform/pc32/i386/busdma_machdep.c            |    4 +-
 sys/platform/pc32/i386/vm_machdep.c                |    2 +-
 sys/platform/pc32/include/iic.h                    |    4 +-
 sys/platform/pc32/isa/asc.c                        |    8 +-
 sys/platform/pc64/amd64/busdma_machdep.c           |    4 +-
 sys/platform/pc64/amd64/vm_machdep.c               |    2 +-
 sys/platform/pc64/isa/asc.c                        |    8 +-
 sys/platform/vkernel/platform/busdma_machdep.c     |    4 +-
 sys/sys/buf.h                                      |    2 +-
 sys/sys/kern_syscall.h                             |    8 +-
 sys/sys/sysmsg.h                                   |   18 ++--
 sys/sys/uio.h                                      |   18 ++--
 sys/sys/xio.h                                      |    2 +-
 sys/vfs/fdesc/fdesc_vnops.c                        |    5 +-
 sys/vfs/hammer/hammer_vnops.c                      |    2 +-
 sys/vfs/hpfs/hpfs_vnops.c                          |   27 +++--
 sys/vfs/isofs/cd9660/cd9660_vnops.c                |   18 ++--
 sys/vfs/msdosfs/msdosfs_vnops.c                    |   18 ++--
 sys/vfs/nfs/nfs_bio.c                              |   19 ++--
 sys/vfs/ntfs/ntfs_vnops.c                          |   26 +++--
 sys/vfs/nwfs/nwfs_io.c                             |   33 +++---
 sys/vfs/procfs/procfs_mem.c                        |    2 +-
 sys/vfs/procfs/procfs_rlimit.c                     |   13 +--
 sys/vfs/procfs/procfs_status.c                     |   19 ++--
 sys/vfs/smbfs/smbfs_io.c                           |   25 ++---
 sys/vfs/userfs/userfs_vnops.c                      |   18 +++-
 sys/vm/vm_extern.h                                 |    2 +-
 sys/vm/vm_mmap.c                                   |  105 ++++++++++++-------
 sys/vm/vm_vmspace.c                                |   20 ++--
 86 files changed, 674 insertions(+), 606 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e54488bbec5c9f80e95cedd395b0e3d31fde253d


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]