aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-08-21 12:36:14 +0100
committerRon Yorston <rmy@pobox.com>2023-08-21 12:46:52 +0100
commit9a80d9752d5d1867c0730c1f5bca12abd994907e (patch)
treea40ed36d21d8386864963087863104a9c51187b7 /include
parent67ed7484be88e3be5a5a51f404f1325a569be173 (diff)
downloadbusybox-w32-9a80d9752d5d1867c0730c1f5bca12abd994907e.tar.gz
busybox-w32-9a80d9752d5d1867c0730c1f5bca12abd994907e.tar.bz2
busybox-w32-9a80d9752d5d1867c0730c1f5bca12abd994907e.zip
win32: replace readlink(2)
The Windows implementation of readlink(2) has caused problems in the past. As, for example, with commit c29dc205d2 (win32: fix implementation of readlink(2)). Most uses of readlink(2) in BusyBox are actually calls to the (considerably more convenient) library function xmalloc_readlink(). Implement a Windows version of that and used it instead of readlink(2). This improves the handling of symbolic links (and similar reparse points) in CJK and UTF-8 code pages. Saves 48-80 bytes.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 6e851b43d..1dcc84bde 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -495,7 +495,6 @@ ssize_t mingw_open_read_close(const char *fn, void *buf, size_t size) FAST_FUNC;
495ssize_t mingw_read(int fd, void *buf, size_t count); 495ssize_t mingw_read(int fd, void *buf, size_t count);
496int mingw_close(int fd); 496int mingw_close(int fd);
497int pipe(int filedes[2]); 497int pipe(int filedes[2]);
498ssize_t readlink(const char *pathname, char *buf, size_t bufsiz);
499NOIMPL(setgid,gid_t gid UNUSED_PARAM); 498NOIMPL(setgid,gid_t gid UNUSED_PARAM);
500NOIMPL(setegid,gid_t gid UNUSED_PARAM); 499NOIMPL(setegid,gid_t gid UNUSED_PARAM);
501NOIMPL(setsid,void); 500NOIMPL(setsid,void);