diff options
| author | Ron Yorston <rmy@pobox.com> | 2025-11-10 11:33:33 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2025-11-10 11:33:33 +0000 |
| commit | f53dbcb8edbcfdad1721d0f5c9e8a16d54e983dc (patch) | |
| tree | f4aede6ea1bd2624cfb8ad643eeed87ad3c8091a /include | |
| parent | 234dc14431ed4eac8e67ba05d90237eeb7608155 (diff) | |
| download | busybox-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.h | 2 |
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); | |||
| 512 | int link(const char *oldpath, const char *newpath); | 512 | int link(const char *oldpath, const char *newpath); |
| 513 | NOIMPL(mknod,const char *name UNUSED_PARAM, mode_t mode UNUSED_PARAM, dev_t device UNUSED_PARAM); | 513 | NOIMPL(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 */ |
| 515 | enum {DEV_NULL, DEV_ZERO, DEV_URANDOM, NOT_DEVICE = -1}; | 515 | enum {DEV_NULL, DEV_TTY, DEV_ZERO, DEV_URANDOM, NOT_DEVICE = -1}; |
| 516 | int get_dev_type(const char *filename); | 516 | int get_dev_type(const char *filename); |
| 517 | void update_special_fd(int dev, int fd); | 517 | void update_special_fd(int dev, int fd); |
| 518 | int mingw_open (const char *filename, int oflags, ...); | 518 | int mingw_open (const char *filename, int oflags, ...); |
