From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,eb8aef67e3414a37 X-Google-Attributes: gidf678f,public X-Google-Thread: 1164f8,eb8aef67e3414a37 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,eb8aef67e3414a37 X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,eb8aef67e3414a37 X-Google-Attributes: gid10650a,public From: john@iastate.edu (John Hascall) Subject: Re: URGENT: _all_ reasons of ERANGE on semop (DU) ? Date: 1998/09/04 Message-ID: <6spct4$is6$1@news.iastate.edu>#1/1 X-Deja-AN: 387930972 References: <35EF04B8.53BEC33E@worldnet.fr> Organization: Iowa State University, Ames, Iowa USA Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc,comp.sys.dec,comp.unix.internals [emailed + posted] Laurent Deniel 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