In /usr/src/servers/pm/table.c, change entry 31 from
no_sys, /* 31 = not used */to
do_mygetpid, /* 31 = mygetpid */
The do_mygetpid function will be compiled into the pm process.
This function will be called when a user process sends a message to the pm with system call number MYGETPID.