lib/SysVIPC.rb
def setall(values)
      if values.length > @nsems
	raise ArgumentError,
	  "too many values (#{values.length}) for semaphore set (#{@nsems})"
      end
      check_result(semctl(@semid, 0, SETALL, values))
    end
def setall(values)
      if values.length > @nsems
	raise ArgumentError,
	  "too many values (#{values.length}) for semaphore set (#{@nsems})"
      end
      check_result(semctl(@semid, 0, SETALL, values))
    end
Set each value in the semaphore set to the corresponding value
 in the Array +values+. See semctl(2).