git: kernel - shmid_ds structure needs to change on 64-bit :-(

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Oct 28 17:20:48 PDT 2011


commit 7849af9fc25d204da8a7dc4331976d9564c0a05a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Oct 28 17:17:30 2011 -0700

    kernel - shmid_ds structure needs to change on 64-bit :-(
    
    * shmid_ds had very old parameters and used 'int' for the shm segment
      size.  It has to be adjusted to use size_t to accomodate shm segments
      greater than 2GB.
    
      This will break binary package compatibility on 64-bit systems until
      the related packages are recompiled.
    
    * shmget() system call now takes a size_t instead of an int.

Summary of changes:
 sys/kern/syscalls.master |    2 +-
 sys/kern/sysv_shm.c      |   23 ++++++++++++-----------
 sys/sys/shm.h            |    6 +++---
 3 files changed, 16 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7849af9fc25d204da8a7dc4331976d9564c0a05a


-- 
DragonFly BSD source repository





More information about the Commits mailing list