aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-05-18 13:17:02 +0100
committerRon Yorston <rmy@pobox.com>2015-05-18 13:17:02 +0100
commit10695d3d3472bb5ad7b9f5d9313f073fc67a8f1a (patch)
treef1b00d0728d99de1dc25ed22c62e6aba9941ed21 /include/mingw.h
parent9eb16cb1dcbda28dc82689a422c6c77455804682 (diff)
downloadbusybox-w32-10695d3d3472bb5ad7b9f5d9313f073fc67a8f1a.tar.gz
busybox-w32-10695d3d3472bb5ad7b9f5d9313f073fc67a8f1a.tar.bz2
busybox-w32-10695d3d3472bb5ad7b9f5d9313f073fc67a8f1a.zip
mingw: implement getpwnam (but only for current user)
This allows the shell to expand ~user.
Diffstat (limited to 'include/mingw.h')
-rw-r--r--include/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 86259f2d1..f3b260f5a 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -82,7 +82,7 @@ struct passwd {
82 gid_t pw_gid; 82 gid_t pw_gid;
83}; 83};
84 84
85IMPL(getpwnam,struct passwd *,NULL,const char *name UNUSED_PARAM); 85struct passwd *getpwnam(const char *name);
86struct passwd *getpwuid(uid_t uid); 86struct passwd *getpwuid(uid_t uid);
87static inline void setpwent(void) {} 87static inline void setpwent(void) {}
88static inline void endpwent(void) {} 88static inline void endpwent(void) {}