summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2001-05-26 04:34:11 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-26 13:39:52 +0000
commita15cef0c498d0b84ecf118ac9b0a6f383dfcf79d (patch)
tree8206f040d6dd469b392556385778120790796728 /perlio.c
parent22c4a518db8a7c3e34c557402a6edb407a8f26b4 (diff)
downloadperl-a15cef0c498d0b84ecf118ac9b0a6f383dfcf79d.tar.gz
PerlIO for VMS
Message-Id: <a05100e0ab734816701a5@[172.16.52.1]> p4raw-id: //depot/perl@10218
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index bf628b2377..5a9ce2ce4a 100644
--- a/perlio.c
+++ b/perlio.c
@@ -3647,8 +3647,14 @@ char *
PerlIO_getname(PerlIO *f, char *buf)
{
dTHX;
+ char *name = NULL;
+#ifdef VMS
+ FILE *stdio = PerlIOSelf(f,PerlIOStdio)->stdio;
+ if (stdio) name = fgetname(stdio, buf);
+#else
Perl_croak(aTHX_ "Don't know how to get file name");
- return NULL;
+#endif
+ return name;
}