diff options
author | Ron Yorston <rmy@pobox.com> | 2023-08-21 12:36:14 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-08-21 12:46:52 +0100 |
commit | 9a80d9752d5d1867c0730c1f5bca12abd994907e (patch) | |
tree | a40ed36d21d8386864963087863104a9c51187b7 /include | |
parent | 67ed7484be88e3be5a5a51f404f1325a569be173 (diff) | |
download | busybox-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.h | 1 |
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; | |||
495 | ssize_t mingw_read(int fd, void *buf, size_t count); | 495 | ssize_t mingw_read(int fd, void *buf, size_t count); |
496 | int mingw_close(int fd); | 496 | int mingw_close(int fd); |
497 | int pipe(int filedes[2]); | 497 | int pipe(int filedes[2]); |
498 | ssize_t readlink(const char *pathname, char *buf, size_t bufsiz); | ||
499 | NOIMPL(setgid,gid_t gid UNUSED_PARAM); | 498 | NOIMPL(setgid,gid_t gid UNUSED_PARAM); |
500 | NOIMPL(setegid,gid_t gid UNUSED_PARAM); | 499 | NOIMPL(setegid,gid_t gid UNUSED_PARAM); |
501 | NOIMPL(setsid,void); | 500 | NOIMPL(setsid,void); |