cvs commit: src/sys/kern sysv_sem.c

John Baldwin jhb at FreeBSD.org
Thu Jun 29 13:58:37 UTC 2006


jhb         2006-06-29 13:58:36 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             sysv_sem.c 
  Log:
  Fix semctl(2) breakage from the previous commit.  Previously __semctl() had
  a local 'semid' variable which was the array index and used uap->semid
  as the original IPC id.  During the kern_semctl() conversion those two
  variables were collapsed into a single 'semid' variable breaking the
  places that needed the original IPC ID.  To fix, add a new 'semidx'
  variable to hold the array index and leave 'semid' unmolested as the IPC
  id.  While I'm here, explicitly document that the (undocumented, at least
  in semctl(2)) SEM_STAT command curiously expects an array index in the
  'semid' parameter rather than an IPC id.
  
  Submitted by:   maxim
  
  Revision  Changes    Path
  1.81      +12 -7     src/sys/kern/sysv_sem.c


More information about the cvs-src mailing list