summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 07:47:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 07:47:52 (GMT)
commit809842a942400fa2f099485c2faa3e85d946360d (patch)
treebe55463759384fa2c23bf39db82ee742bd939299 /win
parent6f541de9a3a5684df538e29e14259aecc2addeeb (diff)
parent50912fc63c46a741cbb7fd51f25beae99817eb41 (diff)
downloadtcl-809842a942400fa2f099485c2faa3e85d946360d.zip
tcl-809842a942400fa2f099485c2faa3e85d946360d.tar.gz
tcl-809842a942400fa2f099485c2faa3e85d946360d.tar.bz2
Merge 8.5
Diffstat (limited to 'win')
-rw-r--r--win/cat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/cat.c b/win/cat.c
index 3a821a4..bd84dd4 100644
--- a/win/cat.c
+++ b/win/cat.c
@@ -28,14 +28,14 @@ _tmain(void)
const char *err;
while (1) {
- n = read(0, buf, sizeof(buf));
+ n = _read(0, buf, sizeof(buf));
if (n <= 0) {
break;
}
- write(1, buf, n);
+ _write(1, buf, n);
}
err = (sizeof(int) == 2) ? "stderr16" : "stderr32";
- write(2, err, (unsigned int)strlen(err));
+ _write(2, err, (unsigned int)strlen(err));
return 0;
}