<div dir="ltr">Hello everyone,<br><br><div>I went through the implementation of sys/ipc.h in various platforms.<br></div><div>From FreeBSD, it is difficult to implement file as warned by Joel.<br></div><div>but then I went through musl implementation <br></div><div>it is easy to comprehend <br></div><div>But it has a kind of architecture-specific implementation.</div><div><br></div><div>FreeBSD <span class="gmail-im"><br>
> ipc.h : <a href="https://github.com/freebsd/freebsd/blob/master/sys/sys/ipc.h" rel="noreferrer" target="_blank">https://github.com/freebsd/freebsd/blob/master/sys/sys/ipc.h</a><br>
> ftok.c: <a href="https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/ftok.c" rel="noreferrer" target="_blank">https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/ftok.c</a></span></div><div>musl <br></div><div>> <a href="https://git.musl-libc.org/cgit/musl/tree/src/ipc">https://git.musl-libc.org/cgit/musl/tree/src/ipc</a> <br><a href="https://git.musl-libc.org/cgit/musl/tree/include/sys/ipc.h">https://git.musl-libc.org/cgit/musl/tree/include/sys/ipc.h</a></div><div>and a ipc.h file , ipcstat.h in arch/MACHINE/bits <br></div><div>Generic <br><a href="https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipc.h">https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipc.h</a></div><div><a href="https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipcstat.h">https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipcstat.h <br><br></a></div><div>ipcstat.h has a different value for every arch. <br><br></div><div>thanks <br></div><div>eshan<br></div></div>