summaryrefslogtreecommitdiff
path: root/perlio.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-03-22 22:26:51 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-03-22 22:26:51 +0000
commitee518936bd3eee0065c20591f5182f733dadd4bd (patch)
tree47bb05c60004fa322c14c6f944b966a8f4840ebc /perlio.h
parent4fbc943a81ac8168e4ba63497561c515427127d8 (diff)
downloadperl-ee518936bd3eee0065c20591f5182f733dadd4bd.tar.gz
Snapshot of new PerlIO open scheme. Still buggy - mainly in open($fh,">&STDOUT!")
type code. - Invent PerlIO_openn() - which has "lots" of args a bit like do_openn() which is its main caller. In particular now has access to "extra" args, and can tell when an open handle is "reopened" (or duped?). - In -Duseperlio PerlIO_open() et. al. are now wrappers on PerlIO_openn(). - In -Uuseperlio (untested as yet) PerlIO_openn() is a wrapper on PerlIO_open() et. al. (i.e. other way round). - Collapse "vtable" entries for layers - was fdopen/open/reopen now just open with args close to PerlIO_openn(). p4raw-id: //depot/perlio@9302
Diffstat (limited to 'perlio.h')
-rw-r--r--perlio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/perlio.h b/perlio.h
index b144b2494c..4efdae3683 100644
--- a/perlio.h
+++ b/perlio.h
@@ -189,6 +189,9 @@ extern int PerlIO_puts (PerlIO *,const char *);
#ifndef PerlIO_open
extern PerlIO * PerlIO_open (const char *,const char *);
#endif
+#ifndef PerlIO_open
+extern PerlIO * PerlIO_openn (pTHX_ const char *layers, const char *mode,int fd,int imode,int perm,PerlIO *old,int narg,SV **arg);
+#endif
#ifndef PerlIO_close
extern int PerlIO_close (PerlIO *);
#endif