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
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel