SYSV/Posix IPC with fds.

SYSV/Posix IPC with fds.

Post by Marty Leisner 257 » Thu, 13 Apr 1995 04:00:00

I have an implementation of BSD ipc which can send/receive
messages based on:
        1) destination number (unix domain socket of form /tmp/foo/####)
        2) data (void *)
        3) length of data (int)
        4) int fd (if >= 0)

Using sendmsg, its possible to atomically pack the data with the
fd to send to the other side...

What's the best way to recast this into sysV ipc...
I need to atomically pass an fd with data between unrelated

Is there a package that does this?


Member of the League for Programming Freedom (see
Committees do not design!  They are never held responsible, nor are
they rewarded or punished.  Committees can review.  
                                C. Gordon Bell


1. Posix.1b IPC and SysV IPC

 I'm studying a book on UNIX programming and in the SysV IPC chapter
the book states that these interfaces will soon be obsoleted by
improved Posix interfaces to solve the same IPC problems. I tried
finding info on this and all I came up with was that Posix.1b now
incorporates these calls and that shared memory is implemented as
mmap() in Posix.1b. Are these the only changes? What about semaphores
and message queues? Do these "new" Posix calls use file descriptors or
are they still non-UNIX-oriented as the SysV calls?


2. FreeBSD slower than Linux ? Try it in C ...

3. Berkeley IPC & SysV IPC

4. Solaris equivalent for Linux loopback device

5. can I flock(fd,LOCK_EX) in SYSV?

6. Migrating IIS to Apacher

7. How to discover current SYSV IPC status under Solaris 5.3

8. How can I implement Server - Daemon ?

9. SYSV IPC:function not implemented

10. SysV IPC question

11. IPC class (SYSV)

12. SysV IPC, kernel 2.4.3

13. Need pointers for SysV IPC programming