[fpc-devel] shm_open / shm_unlink

Michael Van Canneyt michael at freepascal.org
Sun Apr 9 23:49:59 CEST 2006



On Sun, 9 Apr 2006, mariano podesta wrote:

> hi
> i found that shm_open and shm_unlink in smmaph.inc are mapped as externals
> from libc, but they belong to librt.
> 
> fpc 2.0.2
> debian linux 2.6.14-1-k7
> 
> i tested with this and worked ok:
> 
> const
>   rt = 'rt';
> 
> function shm_open(__name: pchar; __oflag: longint; __mode: mode_t): longint;
> cdecl; external rt name 'shm_open';
> function shm_unlink(__name: pchar): longint; cdecl; external rt name
> 'shm_unlink';

Changed.

Thanks !

Michael.



More information about the fpc-devel mailing list