Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2006 13:58:36 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern sysv_sem.c
Message-ID:  <200606291358.k5TDwa1q065735@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606291358.k5TDwa1q065735>