[m-users.] Double pragma foreign_proc in posix.getpid.m in posix library

Volker Wysk post at volker-wysk.de
Sat Mar 14 22:37:53 AEDT 2020


Am Samstag, den 14.03.2020, 12:36 +0100 schrieb Volker Wysk:
> Hi
> 
> In posix.getpid.m in the posix library, there is:
> 
> 
> :- pragma foreign_proc("C",
>     getpid(Pid::out, _IO0::di, _IO::uo),
>     [promise_pure, will_not_call_mercury, thread_safe,
> tabled_for_io],
> "
>     Pid = getpid();
> ").
> 
> :- pragma foreign_proc("C",
>     getppid(Pid::out, _IO0::di, _IO::uo),
>     [promise_pure, will_not_call_mercury, thread_safe,
> tabled_for_io],
> "
>     Pid = getppid();
> ").
> 
> 
> The two pragmas are identical. This doesn't seem to hurt, but it's
> redundant.
> 

Sorry. They are NOT identical. One is getpid and the other getppid.

Volker



More information about the users mailing list