summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 14:47:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 14:47:21 (GMT)
commit98c2139c92b3dad89f516ced877ba4aa71f0fba6 (patch)
treeece226b385bf0b07f5910bee412698ac534b425e /unix
parentc6f08c66238f7dbef5ef9094ef50fe5f4487217a (diff)
parent12cf9a5e58c41c6b5edcf26083cb3028b8f7715f (diff)
downloadtcl-98c2139c92b3dad89f516ced877ba4aa71f0fba6.zip
tcl-98c2139c92b3dad89f516ced877ba4aa71f0fba6.tar.gz
tcl-98c2139c92b3dad89f516ced877ba4aa71f0fba6.tar.bz2
Merge 8.6 Use TclHasInternalRep() macro in more places.
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixChan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 806d6fb..238c3d5 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -1837,7 +1837,7 @@ TclpOpenFileChannel(
char channelName[16 + TCL_INTEGER_SPACE];
const Tcl_ChannelType *channelTypePtr;
- switch (mode & (O_RDONLY | O_WRONLY | O_RDWR)) {
+ switch (mode & O_ACCMODE) {
case O_RDONLY:
channelPermissions = TCL_READABLE;
break;