Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: john@iastate.edu (John Hascall)
Subject: Re: URGENT: _all_ reasons of ERANGE on semop (DU) ?
Date: 1998/09/04	[thread overview]
Message-ID: <6spct4$is6$1@news.iastate.edu> (raw)
In-Reply-To: 35EF04B8.53BEC33E@worldnet.fr

   [emailed + posted]

Laurent Deniel  <deniel@fr.airsysatm.thomson-csf.com> wrote:
} If someone has the source code of Digital UNIX 3.2 or 4.0, 
} can you have a look at the semop system call implementation 
} for telling me all the reasons the semop may have to fail with 
} the ERANGE error code. I checked all sem UNDO-related system
} kernel parameters (and the semval value is less than the
} system-imposed limit), I do not see any reason of such a 
} failure ...

   Looking at the V4.0(b) source, I believe the man
   page for "semop" to be accurate:

      [ERANGE]  An operation caused a semval to overflow the system-defined
      limit, or an operation caused an adjust-on-exit value to exceed
      the system-defined limit.

   The relevant lines look like this:

      if (op->sem_op > 0) {
        if (op->sem_op + (long) semp->semval > seminfo.semvmx ...
           return (ERANGE);

      if (val >  seminfo.semaem ||
          val < -seminfo.semaem) return (ERANGE);

      if (uentp->uent_aoe >  seminfo.semaem ||
          uentp->uent_aoe < -seminfo.semaem) ... return (ERANGE);


John
-- 
John Hascall, Software Engr.      Shut up, be happy.  The conveniences you
ISU Computation Center            demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/index.html  <=- the usual crud



      parent reply	other threads:[~1998-09-04  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-03  4:00 URGENT: _all_ reasons of ERANGE on semop (DU) ? Laurent Deniel
1998-09-04  4:00 ` Dick Seebach
1998-09-04  4:00 ` John Hascall [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox