| OLD | NEW |
| 1 #include <errno.h> | 1 #include <errno.h> |
| 2 #include <unistd.h> | 2 #include <unistd.h> |
| 3 | 3 |
| 4 int | 4 int |
| 5 __getpid () | 5 __getpid () |
| 6 { | 6 { |
| 7 int pid; | 7 int pid; |
| 8 int error = __nacl_irt_getpid(&pid); | 8 int error = __nacl_irt_getpid(&pid); |
| 9 if (error != 0) { | 9 if (error != 0) { |
| 10 errno = error; | 10 errno = error; |
| 11 return -1; | 11 return -1; |
| 12 } | 12 } |
| 13 return pid; | 13 return pid; |
| 14 } | 14 } |
| 15 | 15 |
| 16 libc_hidden_def (__getpid) | 16 libc_hidden_def (__getpid) |
| 17 stub_warning (getpid) | |
| 18 weak_alias (__getpid, getpid) | 17 weak_alias (__getpid, getpid) |
| 19 libc_hidden_weak (getpid) | 18 libc_hidden_weak (getpid) |
| OLD | NEW |