aboutsummaryrefslogtreecommitdiffstats
path: root/vms
diff options
context:
space:
mode:
Diffstat (limited to 'vms')
-rw-r--r--vms/ChangeLog7
-rw-r--r--vms/gawkmisc.vms9
2 files changed, 8 insertions, 8 deletions
diff --git a/vms/ChangeLog b/vms/ChangeLog
index f65274f9..725a223b 100644
--- a/vms/ChangeLog
+++ b/vms/ChangeLog
@@ -1,6 +1,11 @@
+2012-08-08 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkmisc.pc (os_isreadable): Take IOBUF_PUBLIC instead of fd and
+ use passed in info.
+
2012-07-29 Arnold D. Robbins <arnold@skeeve.com>
- * gawkmisc.c (os_isreadable): Add isdir pointer parameter to be
+ * gawkmisc.vms (os_isreadable): Add isdir pointer parameter to be
set to true if fd is for a directory.
2012-07-26 Arnold D. Robbins <arnold@skeeve.com>
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