Many of you may know know by now, that I am trying to port a huge project from Kylix to Freepascal.
I came across some differences, which is not quite clear to me.
For example, (some) constant values in the libc unit are different from the ipc unit.
In the file bshmh.inc (from the libc unit), there are shared memory constants like SHM_R, SHM_W, etc.
These values differ from the libc unit.
Is this an intentionally approach?
Does this mean, that I need the libc and the ipc unit together, in order to gain good compatibility?
Why are the values different? Which one do I really need if the project has been compiled with Kylix before?
Kylix (libc):
const
{ Permission flag for shmget. }
SHM_R = $100; { or S_IRUGO from <linux/stat.h> }
{$EXTERNALSYM SHM_R}
SHM_W = $80; { or S_IWUGO from <linux/stat.h> }
{$EXTERNALSYM SHM_W}
FPC (libc/bshmh.inc):
const
SHM_R = 0400;
SHM_W = 0200;
FPC (ipc):
SHM_R = 4 shl 6;
SHM_W = 2 shl 6;
Thank you for your answers
Edit: I use "shmget" with these constants