discussion related to ipc.h

Eshan Dhawan eshandhawan51 at gmail.com
Wed Mar 25 18:32:36 UTC 2020


Hello everyone,

I went through the implementation of sys/ipc.h in various platforms.
>From FreeBSD, it is difficult to implement file as warned by Joel.
but then I went through musl implementation
it is easy to comprehend
But it has a kind of architecture-specific implementation.

FreeBSD
> ipc.h : https://github.com/freebsd/freebsd/blob/master/sys/sys/ipc.h
> ftok.c: https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/ftok.c
musl
> https://git.musl-libc.org/cgit/musl/tree/src/ipc
https://git.musl-libc.org/cgit/musl/tree/include/sys/ipc.h
and a ipc.h file , ipcstat.h in arch/MACHINE/bits
Generic
https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipc.h
https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipcstat.h

ipcstat.h has a different value for every arch.

thanks
eshan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200326/e836e29d/attachment.html>


More information about the devel mailing list