[m-users.] Double pragma foreign_proc in posix.getpid.m in posix	library
    Volker Wysk 
    post at volker-wysk.de
       
    Sat Mar 14 22:36:02 AEDT 2020
    
    
  
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.
Regards,
Volker
    
    
More information about the users
mailing list