aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-06-07 09:01:57 +0100
committerRon Yorston <rmy@pobox.com>2021-06-07 11:30:37 +0100
commitcdd0e9946a45dd69dc0bc8a8d0bcb734c7234937 (patch)
tree298423a59df4c51461e708008ca15461fb9a403a /win32
parentaef29667bf794761a76d7c744e1e434f744e0b9b (diff)
downloadbusybox-w32-cdd0e9946a45dd69dc0bc8a8d0bcb734c7234937.tar.gz
busybox-w32-cdd0e9946a45dd69dc0bc8a8d0bcb734c7234937.tar.bz2
busybox-w32-cdd0e9946a45dd69dc0bc8a8d0bcb734c7234937.zip
win32: rename update_dev_fd() as update_special_fd()
Avoid confusion between special devices and /dev/fd.
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index 182e3d4db..11ae09043 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -177,7 +177,7 @@ int get_dev_type(const char *filename)
177 return NOT_DEVICE; 177 return NOT_DEVICE;
178} 178}
179 179
180void update_dev_fd(int dev, int fd) 180void update_special_fd(int dev, int fd)
181{ 181{
182 if (dev == DEV_ZERO) 182 if (dev == DEV_ZERO)
183 zero_fd = fd; 183 zero_fd = fd;
@@ -206,7 +206,7 @@ int mingw_open (const char *filename, int oflags, ...)
206 206
207 fd = open(filename, oflags&~O_SPECIAL, mode); 207 fd = open(filename, oflags&~O_SPECIAL, mode);
208 if (fd >= 0) { 208 if (fd >= 0) {
209 update_dev_fd(dev, fd); 209 update_special_fd(dev, fd);
210 } 210 }
211 else if ((oflags & O_ACCMODE) != O_RDONLY && errno == EACCES) { 211 else if ((oflags & O_ACCMODE) != O_RDONLY && errno == EACCES) {
212 DWORD attrs = GetFileAttributes(filename); 212 DWORD attrs = GetFileAttributes(filename);