* URGENT: _all_ reasons of ERANGE on semop (DU) ?
@ 1998-09-03 4:00 Laurent Deniel
1998-09-04 4:00 ` John Hascall
1998-09-04 4:00 ` Dick Seebach
0 siblings, 2 replies; 3+ messages in thread
From: Laurent Deniel @ 1998-09-03 4:00 UTC (permalink / raw)
To: alpha-osf-managers
Hi all gurus !
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 ...
Many many thanks for that !
Laurent.
--
Laurent DENIEL | E-mail: deniel@worldnet.fr
Paris, FRANCE | deniel@fr.airsysatm.thomson-csf.com
| WWW : http://www.worldnet.fr/~deniel
All above opinions are personal, unless stated otherwise.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: URGENT: _all_ reasons of ERANGE on semop (DU) ?
1998-09-03 4:00 URGENT: _all_ reasons of ERANGE on semop (DU) ? Laurent Deniel
@ 1998-09-04 4:00 ` John Hascall
1998-09-04 4:00 ` Dick Seebach
1 sibling, 0 replies; 3+ messages in thread
From: John Hascall @ 1998-09-04 4:00 UTC (permalink / raw)
[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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: URGENT: _all_ reasons of ERANGE on semop (DU) ?
1998-09-03 4:00 URGENT: _all_ reasons of ERANGE on semop (DU) ? Laurent Deniel
1998-09-04 4:00 ` John Hascall
@ 1998-09-04 4:00 ` Dick Seebach
1 sibling, 0 replies; 3+ messages in thread
From: Dick Seebach @ 1998-09-04 4:00 UTC (permalink / raw)
In article <35EF04B8.53BEC33E@worldnet.fr>,
Laurent Deniel <deniel@fr.airsysatm.thomson-csf.com> wrote:
>Hi all gurus !
>
> 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 ...
>
> Many many thanks for that !
>
> Laurent.
>
>--
>Laurent DENIEL | E-mail: deniel@worldnet.fr
>Paris, FRANCE | deniel@fr.airsysatm.thomson-csf.com
> | WWW : http://www.worldnet.fr/~deniel
> All above opinions are personal, unless stated otherwise.
I have had a problem in the past with the undo structures,
that was resolved by increasing the size of the semmnu kernel parameter
(on a HP-UX machine). This solved our problem. However, the vendor
documentation on this, as well as other semaphore-related parameters,
left much to be desired.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-09-04 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-03 4:00 URGENT: _all_ reasons of ERANGE on semop (DU) ? Laurent Deniel
1998-09-04 4:00 ` John Hascall
1998-09-04 4:00 ` Dick Seebach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox