From: Andreas Johansson <ajo@wopr.campus.luth.se>
Subject: RE: Apache Compilations
Date: Mon, 28 Apr 1997 16:04:35 +0200 (CEST) [thread overview]
Message-ID: <19740b8a708be6349aa81875c23b21ca.axp-list@archive.invalid> (raw)
In-Reply-To: <01BC53B1.7748AE60@anolis.outer.net>
On Mon, 28 Apr 1997, Adam Biskobing wrote:
> > > I am trying to compile Apache 2beta8 on my udb running redhat
> > > 4.0. I do not know all that much about C. It is erroring out on the
> > > following section:
> > >
> > > if ((shmid = shmget(shmkey, SCOREBOARD_SIZE, IPC_CREAT|SHM_R|SHM_W))
> > > == -1)
> > > {
> > > perror("shmget");
> > > fprintf(stderr, "httpd: Could not call shmget\n");
> > > exit(1);
> > > }
> > >
> > > It errors when it hits the SHM_R and SHM_W. I do not know what they are
> > > and they are not defined anywhere else in the distribution. I tried
> > > compiling it on an i386 linux system and it worked beautifully. Can
> > > anyone shed some light onto this problem or tell me what include file
> > > these are in?
The protection bits for semaphores are the same as the protection bits for
normal files. If you want owner readable/writable semaphores (as in the
example above) you can use S_IRUSR|S_IWUSR or even the octal number
0600 instead of SHM_R|SHM_W which seems not to be defined in our shm
include file.
If you are going to use S_IRUSR and S_IWUSR you need to include
<sys/stat.h>
--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1997-04-28 14:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <01BC53B1.7748AE60@anolis.outer.net>
1997-04-28 14:04 ` Andreas Johansson [this message]
1997-04-28 14:27 ` Apache Compilations Michal Jaegermann
[not found] <01BC53BA.C4FBF3C0@anolis.outer.net>
1997-04-28 15:25 ` Terry L. Ridder
1997-04-28 15:42 ` Michal Jaegermann
1997-04-28 15:39 Adam Biskobing
-- strict thread matches above, loose matches on Subject: below --
1997-04-28 14:58 Adam Biskobing
1997-04-28 13:52 Adam Biskobing
1997-04-28 13:00 Lonnie Lewis
[not found] <Pine.LNX.3.95.970427235941.6114C-100000@sassl>
1997-04-28 4:36 ` Terry L. Ridder
[not found] <Pine.A32.3.91.970427222801.15614A-100000@smtp.outer.net>
1997-04-28 4:07 ` josh
1997-04-28 15:34 ` Richard Henderson
1997-04-28 3:32 Adam Biskobing
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