aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-05-16 12:48:38 +0100
committerRon Yorston <rmy@pobox.com>2024-05-16 12:48:38 +0100
commit4588cd440e68af132a212d93cd3c4efd73e530b8 (patch)
tree9b84291dffc0a664cf101e7739261f88c7599ea6 /include
parent2a01fe0325524f7745f60a528d1f3076c098d89d (diff)
downloadbusybox-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.h2
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
479int getgroups(int n, gid_t *groups); 479int getgroups(int n, gid_t *groups);
480IMPL(getppid,int,1,void); 480pid_t getppid(void);
481NOIMPL(getsid,pid_t pid UNUSED_PARAM); 481NOIMPL(getsid,pid_t pid UNUSED_PARAM);
482int getlogin_r(char *buf, size_t len); 482int getlogin_r(char *buf, size_t len);
483int fcntl(int fd, int cmd, ...); 483int fcntl(int fd, int cmd, ...);