Minix1.5/lib/posix/getpid.c

#include <lib.h>

PUBLIC int getpid()
{
  return(callm1(MM, GETPID, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR));
}