Update Makefile.PL to use VERSION_FROM
[p5sagit/p5-mst-13.2.git] / vms / ext / Stdio / Stdio.pm
CommitLineData
748a9306 1# VMS::stdio - VMS extensions to Perl's stdio calls
2#
3# Author: Charles Bailey bailey@genetics.upenn.edu
4# Version: 1.0
5# Revised: 29-Nov-1994
6#
7# Revision History:
8# 1.0 29-Nov-1994 Charles Bailey bailey@genetics.upenn.edu
9# original version
10# 1.1 09-Mar-1995 Charles Bailey bailey@genetics.upenn.edu
11# changed calling sequence to return FH/undef - like POSIX::open
12# added fgetname and tmpnam
13
14=head1 NAME
15
16VMS::stdio
17
18=head1 SYNOPSIS
19
20use VMS::stdio;
21$name = fgetname(FH);
22$uniquename = &tmpnam;
23$fh = vmsfopen("my.file","rfm=var","alq=100",...) or die $!;
24
25=head1 DESCRIPTION
26
27This package gives Perl scripts access to VMS extensions to the
28C stdio routines, such as optional arguments to C<fopen()>.
29The specific routines are described below.
30
31=head2 fgetname
32
33The C<fgetname> function returns the file specification associated
34with a Perl FileHandle. If an error occurs, it returns C<undef>.
35
36=head2 tmpnam
37
38The C<tmpnam> function returns a unique string which can be used
39as a filename when creating temporary files. If, for some
40reason, it is unable to generate a name, it returns C<undef>.
41
42=head2 vmsfopen
43
44The C<vmsfopen> function provides access to the VMS CRTL
45C<fopen()> function. It is similar to the built-in Perl C<open>
46function (see L<perlfunc> for a complete description), but will
47only open normal files; it cannot open pipes or duplicate
48existing FileHandles. Up to 8 optional arguments may follow the
49file name. These arguments should be strings which specify
50optional file characteristics as allowed by the CRTL C<fopen()>
51routine. (See the CRTL reference manual for details.)
52
53You can use the FileHandle returned by C<vmsfopen> just as you
54would any other Perl FileHandle.
55
56C<vmsfopen> is a temporary solution to problems which arise in
57handling VMS-specific file formats; in the long term, we hope to
58provide more transparent access to VMS file I/O through routines
59which replace standard Perl C<open> function, or through tied
60FileHandles. When this becomes possible, C<vmsfopen> may be
61replaced.
62
63=head1 REVISION
64
65This document was last revised on 09-Mar-1995, for Perl 5.001.
66
67=cut
68
69package VMS::stdio;
70
71require DynaLoader;
72require Exporter;
73
74@ISA = qw( Exporter DynaLoader);
75@EXPORT = qw( &fgetname &tmpfile &tmpnam &vmsfopen );
76
77bootstrap VMS::stdio;
781;