diff options
author | Ron Yorston <rmy@pobox.com> | 2024-05-16 12:48:38 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-05-16 12:48:38 +0100 |
commit | 4588cd440e68af132a212d93cd3c4efd73e530b8 (patch) | |
tree | 9b84291dffc0a664cf101e7739261f88c7599ea6 /include | |
parent | 2a01fe0325524f7745f60a528d1f3076c098d89d (diff) | |
download | busybox-w32-4588cd440e68af132a212d93cd3c4efd73e530b8.tar.gz busybox-w32-4588cd440e68af132a212d93cd3c4efd73e530b8.tar.bz2 busybox-w32-4588cd440e68af132a212d93cd3c4efd73e530b8.zip |
win32: implement getppid(2)
busybox-w32 had a dummy implementation of getppid(2) which always
returned 1. Provide a more realistic version.
The effect is limited:
- The PPID shell variable should report a sensible value.
- The special value to omit the parent PID 'pidof -o %PPID'
should work.
Costs 48 bytes.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index 56a7285e5..2a6cae4ee 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -477,7 +477,7 @@ int getuid(void); | |||
477 | #define geteuid getuid | 477 | #define geteuid getuid |
478 | #define getegid getuid | 478 | #define getegid getuid |
479 | int getgroups(int n, gid_t *groups); | 479 | int getgroups(int n, gid_t *groups); |
480 | IMPL(getppid,int,1,void); | 480 | pid_t getppid(void); |
481 | NOIMPL(getsid,pid_t pid UNUSED_PARAM); | 481 | NOIMPL(getsid,pid_t pid UNUSED_PARAM); |
482 | int getlogin_r(char *buf, size_t len); | 482 | int getlogin_r(char *buf, size_t len); |
483 | int fcntl(int fd, int cmd, ...); | 483 | int fcntl(int fd, int cmd, ...); |