* System V IPC, [2]
@ 1996-04-23 4:00 Meir Dukhan
1996-04-23 4:00 ` Andrew Gabriel
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Meir Dukhan @ 1996-04-23 4:00 UTC (permalink / raw)
Cc: meir
Hello,
To all UNIX programmers, of all taste, can anyone tell me if the
following system call are supported/implemented on your system ?
shmget, shmat, shmctl, -- shared memory call
msgget, msgsnd, msgrcv, msgctl, -- message queue call
semget, semop, semctl, -- semaphore call
These are call for System V IPC, that are not POSIX 1, and therefore I'm
interested to know which unixes system support/implement them ?
This can be checked by doing a "man call" (the best if one can email me
its man pages about them), or checking for sys/shm.h, sys/msg.h,
sys/sem.h files in the include directory.
Many thanks in advance.
Meir
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-04-23 4:00 System V IPC, [2] Meir Dukhan
1996-04-23 4:00 ` Andrew Gabriel
@ 1996-04-23 4:00 ` Josh Stern
1996-04-24 4:00 ` Paul Stephen Borile
1996-04-30 4:00 ` Dmitry Kohmanyuk
3 siblings, 0 replies; 11+ messages in thread
From: Josh Stern @ 1996-04-23 4:00 UTC (permalink / raw)
In article <317C8971.313DF2B2@bis.co.il>, Meir Dukhan <meir@bis.co.il> wrote:
>Hello,
>
>To all UNIX programmers, of all taste, can anyone tell me if the
>following system call are supported/implemented on your system ?
>
>shmget, shmat, shmctl, -- shared memory call
>msgget, msgsnd, msgrcv, msgctl, -- message queue call
>semget, semop, semctl, -- semaphore call
>
>These are call for System V IPC, that are not POSIX 1, and therefore I'm
>interested to know which unixes system support/implement them ?
Yes, they are all implemented. If you want the man pages then
download them from ftp://sunsite.unc.edu/Linux/docs/...something_obvious_here
If you want the code then look in libc in the directory sysdeps/linux
tsx-11.mit.edu /pub/linux/packages/GCC is usually the most uptodate
libc
- Josh
--
-------------------------------------------------------------------------------
jstern
jstern@primenet.com
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-04-23 4:00 System V IPC, [2] Meir Dukhan
@ 1996-04-23 4:00 ` Andrew Gabriel
1996-04-24 4:00 ` Neil Cook
` (2 more replies)
1996-04-23 4:00 ` Josh Stern
` (2 subsequent siblings)
3 siblings, 3 replies; 11+ messages in thread
From: Andrew Gabriel @ 1996-04-23 4:00 UTC (permalink / raw)
In article <317C8971.313DF2B2@bis.co.il>,
Meir Dukhan <meir@bis.co.il> writes:
>Hello,
>
>To all UNIX programmers, of all taste, can anyone tell me if the
>following system call are supported/implemented on your system ?
>
>shmget, shmat, shmctl, -- shared memory call
>msgget, msgsnd, msgrcv, msgctl, -- message queue call
>semget, semop, semctl, -- semaphore call
>
>These are call for System V IPC, that are not POSIX 1, and therefore I'm
>interested to know which unixes system support/implement them ?
Included in the following that I know of...
System 5 Release 3.2 (at least in SCO and Interactive, but I suspect all)
System 5 Release 4 (all)
FreeBSD
SunOS 4 (and SunOS 5/Solaris 2 is included under System 5 Release 4 above)
AIX 3 and 4
OSF/1
HPUX 9 and 10
MIPS Risc/OS
Actually, I've never seen a unix without System V IPC, but there are
others I havn't used...
--
Andrew Gabriel Home: Andrew@cucumber.demon.co.uk
Consultant Software Engineer Work: Andrew.Gabriel@net-tel.co.uk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-04-23 4:00 ` Andrew Gabriel
@ 1996-04-24 4:00 ` Neil Cook
1996-04-29 4:00 ` Keith Shortridge
1996-05-04 4:00 ` System V IPC, [2] Andrew Gabriel
2 siblings, 0 replies; 11+ messages in thread
From: Neil Cook @ 1996-04-24 4:00 UTC (permalink / raw)
Andrew Gabriel (andrew@cucumber.demon.co.uk) wrote:
: Actually, I've never seen a unix without System V IPC, but there are
: others I havn't used...
Stock BSD 4.3 systems don't have shared memory.
Neil.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-04-23 4:00 System V IPC, [2] Meir Dukhan
1996-04-23 4:00 ` Andrew Gabriel
1996-04-23 4:00 ` Josh Stern
@ 1996-04-24 4:00 ` Paul Stephen Borile
1996-04-30 4:00 ` Dmitry Kohmanyuk
3 siblings, 0 replies; 11+ messages in thread
From: Paul Stephen Borile @ 1996-04-24 4:00 UTC (permalink / raw)
Meir Dukhan wrote:
>
> Hello,
>
> To all UNIX programmers, of all taste, can anyone tell me if the
> following system call are supported/implemented on your system ?
>
> shmget, shmat, shmctl, -- shared memory call
> msgget, msgsnd, msgrcv, msgctl, -- message queue call
> semget, semop, semctl, -- semaphore call
>
> These are call for System V IPC, that are not POSIX 1, and therefore I'm
> interested to know which unixes system support/implement them ?
>
> This can be checked by doing a "man call" (the best if one can email me
> its man pages about them), or checking for sys/shm.h, sys/msg.h,
> sys/sem.h files in the include directory.
>
> Many thanks in advance.
>
> Meir
Unixware 1.1, 2.x has them of course. All sysV R3-up should have them.
You will have to check for BSD, AIX, HP-UX but I think they have them
as weel.
-Paul
--
Paul Stephen Borile - paul@cu.mi.it
CU S.r.l. - http://www.cu.mi.it/docs/staff/paul.html
Via Sigieri,10 Milano Italy
Tel +39 2 55180922 16 - Fax +39 2 55194046
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-04-23 4:00 ` Andrew Gabriel
1996-04-24 4:00 ` Neil Cook
@ 1996-04-29 4:00 ` Keith Shortridge
1996-08-12 4:00 ` Problem with message queue Simon-Pierre Cote
1996-05-04 4:00 ` System V IPC, [2] Andrew Gabriel
2 siblings, 1 reply; 11+ messages in thread
From: Keith Shortridge @ 1996-04-29 4:00 UTC (permalink / raw)
andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
>>To all UNIX programmers, of all taste, can anyone tell me if the
>>following system call are supported/implemented on your system ?
>>
>>shmget, shmat, shmctl, -- shared memory call
>>msgget, msgsnd, msgrcv, msgctl, -- message queue call
>>semget, semop, semctl, -- semaphore call
>>
They've been available on all the UNIX platforms I've looked at, although
that's
by no means an exhaustive list. However, I have hit problems on SunOS systems
(SunOS 4, what most people call SunOS except for Sun who like to think of it
as Solaris 1..). On this the system V IPC stuff is optional, and you can
certainly hit systems where it hasn't been configured in. I have in the past
had to persuade system managers to include it just to get some of my stuff to
run. Even if it's included, it often isn't included with enough resources. I've
had to get number of semaphores increased, and if you want a lot of shared
memory (megabytes) then you'll certainly have to get this increased on many
systems. On SunOS you're probably better off using mmap(). But, of course, some
older systems (ULTRIX, for example) don't have mmap(). It's very awkward.
I've ended up with system dependent include files that control whether my code
uses mmap() or system V IPC for shared memory. Message queues and semaphores
are generally less of a problem (for me at least, because my stuff uses a lot
of shared memory and not many semaphores). Rich Stevens' book suggests using
file locking as an alternative to seamphores, and there are other alternatives
to message queues. System V IPC is awkward to use, because for one thing it
tends to hang around after your program shuts down and continues to get in the
way (particularly if your program crashes without releasing it all properly).
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-04-23 4:00 System V IPC, [2] Meir Dukhan
` (2 preceding siblings ...)
1996-04-24 4:00 ` Paul Stephen Borile
@ 1996-04-30 4:00 ` Dmitry Kohmanyuk
1996-05-03 4:00 ` Kevin Gee
3 siblings, 1 reply; 11+ messages in thread
From: Dmitry Kohmanyuk @ 1996-04-30 4:00 UTC (permalink / raw)
Meir Dukhan (meir@bis.co.il) wrote:
: Hello,
: To all UNIX programmers, of all taste, can anyone tell me if the
: following system call are supported/implemented on your system ?
: shmget, shmat, shmctl, -- shared memory call
: msgget, msgsnd, msgrcv, msgctl, -- message queue call
: semget, semop, semctl, -- semaphore call
: These are call for System V IPC, that are not POSIX 1, and therefore I'm
: interested to know which unixes system support/implement them ?
: This can be checked by doing a "man call" (the best if one can email me
: its man pages about them), or checking for sys/shm.h, sys/msg.h,
: sys/sem.h files in the include directory.
FreeBSD has it (an emulation package ;-), as well as NetBSD and
BSD/OS.
there can be some minor differences in implementation (like total
amount of shared memory avail, locks, mmap() interaction, etc.)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-04-30 4:00 ` Dmitry Kohmanyuk
@ 1996-05-03 4:00 ` Kevin Gee
1996-05-06 4:00 ` Ferdinand de Boevere
0 siblings, 1 reply; 11+ messages in thread
From: Kevin Gee @ 1996-05-03 4:00 UTC (permalink / raw)
Dmitry Kohmanyuk wrote:
>
> Meir Dukhan (meir@bis.co.il) wrote:
> : Hello,
>
> : To all UNIX programmers, of all taste, can anyone tell me if the
> : following system call are supported/implemented on your system ?
>
> : shmget, shmat, shmctl, -- shared memory call
> : msgget, msgsnd, msgrcv, msgctl, -- message queue call
> : semget, semop, semctl, -- semaphore call
>
> : These are call for System V IPC, that are not POSIX 1, and therefore I'm
> : interested to know which unixes system support/implement them ?
>
> : This can be checked by doing a "man call" (the best if one can email me
> : its man pages about them), or checking for sys/shm.h, sys/msg.h,
> : sys/sem.h files in the include directory.
>
> FreeBSD has it (an emulation package ;-), as well as NetBSD and
> BSD/OS.
>
> there can be some minor differences in implementation (like total
> amount of shared memory avail, locks, mmap() interaction, etc.)
Linux has 'em.
--
Kevin R. Gee
geek@caldera.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-04-23 4:00 ` Andrew Gabriel
1996-04-24 4:00 ` Neil Cook
1996-04-29 4:00 ` Keith Shortridge
@ 1996-05-04 4:00 ` Andrew Gabriel
2 siblings, 0 replies; 11+ messages in thread
From: Andrew Gabriel @ 1996-05-04 4:00 UTC (permalink / raw)
In article <DqnEnz.K46@rp.csiro.au>,
Keith Shortridge <ks> writes:
>andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
No I didn't - you cut what I wrote.
Could we try to keep the attributions right please?
--
Andrew Gabriel Home: Andrew@cucumber.demon.co.uk
Consultant Software Engineer Work: Andrew.Gabriel@net-tel.co.uk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: System V IPC, [2]
1996-05-03 4:00 ` Kevin Gee
@ 1996-05-06 4:00 ` Ferdinand de Boevere
0 siblings, 0 replies; 11+ messages in thread
From: Ferdinand de Boevere @ 1996-05-06 4:00 UTC (permalink / raw)
In article <318A6BD6.3F089F36@caldera.com>,
Kevin Gee <geek@caldera.com> wrote:
>Dmitry Kohmanyuk wrote:
>>
>> Meir Dukhan (meir@bis.co.il) wrote:
>> : Hello,
>>
>> : To all UNIX programmers, of all taste, can anyone tell me if the
>> : following system call are supported/implemented on your system ?
>>
>> : shmget, shmat, shmctl, -- shared memory call
>> : msgget, msgsnd, msgrcv, msgctl, -- message queue call
>> : semget, semop, semctl, -- semaphore call
>>
>> : These are call for System V IPC, that are not POSIX 1, and therefore I'm
>> : interested to know which unixes system support/implement them ?
>
>Linux has 'em.
Indeed, Linux has them, but semaphores are unreliable (1.2.13)
I did not follow the development of 1.3.xx kernels, but hope
some semaphore problems are solved.
In particular, sometimes, a process waiting for semval to go
to 0 fails to wake up.
Ferdi,
<ferdinan@htsa.hva.nl>
<bouvere@nikhefk.nikhef.nl>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Problem with message queue
1996-04-29 4:00 ` Keith Shortridge
@ 1996-08-12 4:00 ` Simon-Pierre Cote
0 siblings, 0 replies; 11+ messages in thread
From: Simon-Pierre Cote @ 1996-08-12 4:00 UTC (permalink / raw)
We have designed a graphical interface with UIM/X under Digital Unix 3.2c This
interface sends information to another system using POSIX message queues:
mq_open()
mq_send()
mq_receive()
We have two DEC AlphaStation 200 that are supposed to be identical and run the same
application. But the application runs OK on only one of them. On the other one,
the program crashes at the mq_send command. If we test the message queues outside
the GUI, everything is fine on both machines. The problem arises only when mq_send
is called from within the interface, and only on one machine.
We suspect that our AlphaStations are not configured exactly the same but we don't
know where or what to look for.
Any suggestion would be greatly appreciated.
Thanks.
--
Simon-Pierre Cote, ing. tel: (514) 289-4485
Hydro-Quebec Fax: (514) 289-4697
Complexe Desjardins Email: scote@ccr.hydro.qc.ca
Tour est, 11e
Montreal (Quebec) CANADA H5B 1H7
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~1996-08-12 4:00 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-23 4:00 System V IPC, [2] Meir Dukhan
1996-04-23 4:00 ` Andrew Gabriel
1996-04-24 4:00 ` Neil Cook
1996-04-29 4:00 ` Keith Shortridge
1996-08-12 4:00 ` Problem with message queue Simon-Pierre Cote
1996-05-04 4:00 ` System V IPC, [2] Andrew Gabriel
1996-04-23 4:00 ` Josh Stern
1996-04-24 4:00 ` Paul Stephen Borile
1996-04-30 4:00 ` Dmitry Kohmanyuk
1996-05-03 4:00 ` Kevin Gee
1996-05-06 4:00 ` Ferdinand de Boevere
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox