rename GETPID to MINIX_GETPID (for now); macro for field name
This commit is contained in:
parent
76ba69151d
commit
40411ea908
2 changed files with 2 additions and 2 deletions
|
@ -11,6 +11,6 @@ PUBLIC pid_t getppid()
|
|||
* are not always successful and Minix returns the reserved value
|
||||
* (pid_t) -1 when there is an error.
|
||||
*/
|
||||
if (_syscall(MM, GETPID, &m) < 0) return ( (pid_t) -1);
|
||||
if (_syscall(MM, MINIX_GETPID, &m) < 0) return ( (pid_t) -1);
|
||||
return( (pid_t) m.m2_i1);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ long data;
|
|||
|
||||
m.m2_i1 = pid;
|
||||
m.m2_i2 = req;
|
||||
m.m2_l1 = addr;
|
||||
m.PMTRACE_ADDR = addr;
|
||||
m.m2_l2 = data;
|
||||
if (_syscall(MM, PTRACE, &m) < 0) return(-1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue