This proposed patch uses this syscall to implement the getpid () function, wherever it is supported.
On most versions of MS-DOS, this syscall does not exist, and getpid () can fall back on using the process's Program Segment Prefix (PSP) segment value as the process id, as before.
Apparently European MS-DOS 4.0 actually has a
getpid
syscall, which one can use to obtain a process id for the running process.This proposed patch uses this syscall to implement the
getpid ()
function, wherever it is supported.On most versions of MS-DOS, this syscall does not exist, and
getpid ()
can fall back on using the process's Program Segment Prefix (PSP) segment value as the process id, as before.