aboutsummaryrefslogtreecommitdiffstats
path: root/vms/gawkmisc.vms
diff options
context:
space:
mode:
Diffstat (limited to 'vms/gawkmisc.vms')
-rw-r--r--vms/gawkmisc.vms9
1 files changed, 2 insertions, 7 deletions
diff --git a/vms/gawkmisc.vms b/vms/gawkmisc.vms
index 773b3556..0ca3e0bf 100644
--- a/vms/gawkmisc.vms
+++ b/vms/gawkmisc.vms
@@ -147,16 +147,11 @@ int fd;
/* os_isreadable --- fd can be read from */
int
-os_isreadable(int fd, bool *isdir)
+os_isreadable(const IOBUF_PUBLIC *iobuf, bool *isdir)
{
- struct stat sbuf;
-
*isdir = false;
- if (fstat(fd, &sbuf) != 0)
- return false;
-
- switch (sbuf.st_mode & S_IFMT) {
+ switch (iobuf->sbuf.st_mode & S_IFMT) {
case S_IFREG:
case S_IFCHR: /* ttys, /dev/null, .. */
#ifdef S_IFSOCK