This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
VMS exit handling still broken, need some help.
[perl5.git] / perlsfio.h
index 0255876..3d279d0 100644 (file)
@@ -1,4 +1,16 @@
+/*    perlsfio.h
+ *
+ *    Copyright (C) 1996, 1999, 2000, 2001, 2002, by Larry Wall and others
+ *
+ *    You may distribute under the terms of either the GNU General Public
+ *    License or the Artistic License, as specified in the README file.
+ *
+ */
+
 /* The next #ifdef should be redundant if Configure behaves ... */
+#ifndef FILE
+#define FILE FILE
+#endif
 #ifdef I_SFIO
 #include <sfio.h>
 #endif
@@ -37,20 +49,12 @@ extern int  _stdprintf _ARG_((const char*, ...));
 #define PerlIO_fileno(f)               sffileno(f)
 #define PerlIO_clearerr(f)             sfclrerr(f)
 #define PerlIO_flush(f)                        sfsync(f)
-#if 0
-/* This breaks tests */
-#define PerlIO_tell(f)                 sfseek(f,0,1|SF_SHARE)
-#else
 #define PerlIO_tell(f)                 sftell(f)
-#endif
 #define PerlIO_seek(f,o,w)             sfseek(f,o,w)
 #define PerlIO_rewind(f)               (void) sfseek((f),0L,0)
 #define PerlIO_tmpfile()               sftmp(0)
-
-#define PerlIO_importFILE(f,fl)                ((void) Perl_croak(aTHX_ "Import from FILE * unimplemeted"), NULL)
-#define PerlIO_exportFILE(f,fl)                Perl_croak(aTHX_ "Export to FILE * unimplemeted")
-#define PerlIO_findFILE(f)             NULL
-#define PerlIO_releaseFILE(p,f)                Perl_croak(aTHX_ "Release of FILE * unimplemeted")
+#define PerlIO_exportFILE(f,fl)                Perl_croak(aTHX_ "Export to FILE * unimplemented")
+#define PerlIO_releaseFILE(p,f)                Perl_croak(aTHX_ "Release of FILE * unimplemented")
 
 #define PerlIO_setlinebuf(f)           sfset(f,SF_LINE,1)