Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-04

shm_open / shm_unlink

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

mariano podesta

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';

marianop

Reply by email

Michael Van Canneyt
to mariano podesta
mariano podesta wrote 16 lines
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.

Reply by email

Marco van de Voort
to Michael Van Canneyt
Show quoted text 12 lines
On Sun, 9 Apr 2006, mariano podesta wrote: > 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.

Since which libc is this the case?

Reply by email

Michael Van Canneyt
to Marco van de Voort
Marco van de Voort wrote 14 lines
> On Sun, 9 Apr 2006, mariano podesta wrote: >> 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. Since which libc is this the case?

Vey long times. It's an error in libc.pp; Even borland's Libc (dating back to 2000) has it in rt...

Michael.

Reply by email