aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2025-11-10 11:33:33 +0000
committerRon Yorston <rmy@pobox.com>2025-11-10 11:33:33 +0000
commitf53dbcb8edbcfdad1721d0f5c9e8a16d54e983dc (patch)
treef4aede6ea1bd2624cfb8ad643eeed87ad3c8091a /include
parent234dc14431ed4eac8e67ba05d90237eeb7608155 (diff)
downloadbusybox-w32-f53dbcb8edbcfdad1721d0f5c9e8a16d54e983dc.tar.gz
busybox-w32-f53dbcb8edbcfdad1721d0f5c9e8a16d54e983dc.tar.bz2
busybox-w32-f53dbcb8edbcfdad1721d0f5c9e8a16d54e983dc.zip
win32: allow use of /dev/tty
Treat /dev/tty as an alias for Windows' 'con' device. The code is similar to that used for /dev/null. Adds 24-48 bytes. (GitHub issue #538)
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 ea923a9e2..0a8d52d84 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -512,7 +512,7 @@ int kill(pid_t pid, int sig);
512int link(const char *oldpath, const char *newpath); 512int link(const char *oldpath, const char *newpath);
513NOIMPL(mknod,const char *name UNUSED_PARAM, mode_t mode UNUSED_PARAM, dev_t device UNUSED_PARAM); 513NOIMPL(mknod,const char *name UNUSED_PARAM, mode_t mode UNUSED_PARAM, dev_t device UNUSED_PARAM);
514/* order of devices must match that in get_dev_type */ 514/* order of devices must match that in get_dev_type */
515enum {DEV_NULL, DEV_ZERO, DEV_URANDOM, NOT_DEVICE = -1}; 515enum {DEV_NULL, DEV_TTY, DEV_ZERO, DEV_URANDOM, NOT_DEVICE = -1};
516int get_dev_type(const char *filename); 516int get_dev_type(const char *filename);
517void update_special_fd(int dev, int fd); 517void update_special_fd(int dev, int fd);
518int mingw_open (const char *filename, int oflags, ...); 518int mingw_open (const char *filename, int oflags, ...);