summaryrefslogtreecommitdiff
path: root/perlio.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix VMS ungetc fix for platforms like NetBSD.Nick Ing-Simmons2002-05-251-5/+34
| | | p4raw-id: //depot/perlio@16784
* [Patch] Re: ./perl harness on Cygwin today failuresLupe Christoph2002-05-251-2/+6
| | | | | Message-ID: <20020525134534.GT6638@lupe-christoph.de> p4raw-id: //depot/perl@16778
* #ifdef VMS code was not ported right from sv.c - s/fp/stdio/Nick Ing-Simmons2002-05-221-2/+2
| | | p4raw-id: //depot/perlio@16740
* Fix for ungetc() issues flagged by ext/Encode/t/perlio.t on VMS.Nick Ing-Simmons2002-05-221-26/+81
| | | | | | | | | ungetc() and buffer snooping may not mix. So use buffer snoop hooks to avoid ungetc() where available. unread() falls back to using :pending layer, and fill has VMS specific code (which should not get used) or ungetc() which should work. p4raw-id: //depot/perlio@16739
* Fix the crlf.t buffer leakNick Ing-Simmons2002-05-171-6/+20
| | | | | | | | - actually a generic PerlIOBuf_xxx derived leak-on-pop, but :crlf flagged it because it is more often popped without stream being closed. - Define non-noop PerlIOBuf_popped(), use it and export it. p4raw-id: //depot/perlio@16657
* Make open fail when layer string does not parse.Nick Ing-Simmons2002-05-151-2/+11
| | | p4raw-id: //depot/perlio@16613
* Portability and doc tweaks to PerlIO/XS stuff.Nick Ing-Simmons2002-05-081-106/+136
| | | | | | We are still "papering over the cracks" a bit, but now it is good stiff card held on with epoxy. p4raw-id: //depot/perlio@16496
* PerlIO/XS interface routine and doc updates fromNick Ing-Simmons2002-05-081-3/+8
| | | | | | | | | lupe@lupe-christoph.de (Lupe Christoph) in mail Subject: [For Review] Patch for perlio.c and pods Message-Id: <20020505084315.GA23900@lupe-christoph.de> Date: Sun, 5 May 2002 10:43:15 +0200 (Minor tweaks to follow.) p4raw-id: //depot/perlio@16495
* Win32 builds and mostly works for non-USE_PERLIO non-USE_IMP_SYS case.Nick Ing-Simmons2002-05-021-0/+4
| | | | | | - move body of fdupopen() from perlhost.h to win32.h as win32_fdupopen() - use it in perlio.c p4raw-id: //depot/perlio@16349
* Use PerlSIO_fdupopen() if not using PerlIONick Ing-Simmons2002-05-021-1/+7
| | | p4raw-id: //depot/perlio@16346
* Fix the "PerlIO require leak". Snag was that clean_objsNick Ing-Simmons2002-05-021-5/+12
| | | | | | | | autoloaded DESTROY (needing IO) after known layers had been freed. Postpone layer list free to PerlIO_cleanup, rather than PerlIO_destruct. Tweak sequence in perl_destruct so that sv_undef is immortal till layer list is done with it. p4raw-id: //depot/perlio@16335
* Fix fd leak on Via(bogus).Nick Ing-Simmons2002-04-271-16/+22
| | | | | | | Finish implementing PerlIOVia_open(). Export more guts of PerlIO_* so Via_open() can work. Fix various PerlIO_allocate() features exposed by above. p4raw-id: //depot/perlio@16207
* fixes for all the warnings reported by Visual C (most of thisGurusamy Sarathy2002-04-211-5/+5
| | | | | | change is from change#12026) p4raw-link: @12026 on //depot/maint-5.6/perl: ff42b73b40f5a895aef4bed81c794f468e0609bc p4raw-id: //depot/perl@16048
* Re: [ID 20020416.001] 'close' does not report failure when buffer flush failsMark-Jason Dominus2002-04-161-2/+1
| | | | | Message-ID: <20020416232412.14297.qmail@plover.com> p4raw-id: //depot/perl@15962
* Disable test code (assertions) in CRLF layer.Nick Ing-Simmons2002-04-141-2/+2
| | | p4raw-id: //depot/perlio@15904
* ASCII vs BINARY on OS/2 in perlioIlya Zakharevich2002-04-021-6/+11
| | | | | Message-ID: <20020402003708.A8648@math.ohio-state.edu> p4raw-id: //depot/perl@15682
* Fix [ID 20020326.001] - cr/lf spanning buffer boundaryNick Ing-Simmons2002-03-261-3/+3
| | | p4raw-id: //depot/perlio@15520
* warnings for perlio + othersPaul Marquess2002-03-251-4/+10
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEKNEAAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15485
* Add missing Tolkien quotes to *.cAudrey Tang2002-02-201-0/+5
| | | | | Message-Id: <20020220231312.GA775@not.autrijus.org> p4raw-id: //depot/perl@14802
* Workaround for DJGPP broken F_GETFL from Laszlo.Jarkko Hietaniemi2002-01-281-0/+3
| | | p4raw-id: //depot/perl@14485
* Copyright++. (Not all the toplevel *.h have one, it seems.)Jarkko Hietaniemi2002-01-231-1/+1
| | | p4raw-id: //depot/perl@14391
* Experimental binmode() re-coding (UNIX okay - but it would be...)Nick Ing-Simmons2001-12-311-13/+67
| | | p4raw-id: //depot/perlio@13991
* perlio.c cleanup - in particular avoid accidental PerlIO_flush(NULL)Nick Ing-Simmons2001-12-311-70/+76
| | | | | if PerlIONext is NULL. p4raw-id: //depot/perlio@13975
* Re: bleadperl doesn't compileGerrit P. Haase2001-12-261-0/+1
| | | | | | | Message-ID: <22168634623.20011226212908@familiehaase.de> Cygwin with multiplicity. p4raw-id: //depot/perl@13894
* Add at least the "important" PerlIO_xxxx functions to embed.plNick Ing-Simmons2001-12-221-113/+61
| | | | | so that they get implicit pTHX_ and we can avoid slow dTHX. p4raw-id: //depot/perlio@13852
* The CR at EOF fix earlier broke CR at end-of-buffer.Nick Ing-Simmons2001-12-221-5/+15
| | | | | This should be okay for both? p4raw-id: //depot/perlio@13848
* Correct checking code which Ilya spotted was tripped by CR at EOF.Nick Ing-Simmons2001-12-221-9/+1
| | | | | Also tone down perl -DP tracing of sv_gets. p4raw-id: //depot/perlio@13847
* Add pTHX to all vtable functions for future-proofing andNick Ing-Simmons2001-12-191-160/+145
| | | | | consistency of PerlIO layers. p4raw-id: //depot/perlio@13808
* Silence compiler worries found by Schwern/Digital cc.Jarkko Hietaniemi2001-12-141-3/+3
| | | p4raw-id: //depot/perl@13691
* Fixes for casting problems detected on a SuSE 7.2 Itanium,Jarkko Hietaniemi2001-12-121-13/+14
| | | | | | mostly gcc -Wall complaining about the argument of %p not being a void *. p4raw-id: //depot/perl@13659
* Detypo and rename.Jarkko Hietaniemi2001-12-121-5/+5
| | | p4raw-id: //depot/perl@13637
* We need DWIM cpps.Jarkko Hietaniemi2001-12-111-2/+2
| | | p4raw-id: //depot/perl@13626
* Try to handle platforms that have O_TEXT != O_BINARY butJarkko Hietaniemi2001-12-111-14/+14
| | | | | | | which are not DOSish, BeOS being one of such platforms. Ideally this should be a Configure test, not a hardwired cpp symbol test... p4raw-id: //depot/perl@13621
* [patch perlio.c] test for NULL before derefencingStas Bekman2001-12-111-2/+2
| | | | | Message-ID: <3C15C133.8@stason.org> p4raw-id: //depot/perl@13619
* Tweak multi-arg open error messagesNick Ing-Simmons2001-12-081-2/+2
| | | p4raw-id: //depot/perlio@13531
* Allow multi-arg open() if opening layer declares this legal.Nick Ing-Simmons2001-12-081-1/+7
| | | p4raw-id: //depot/perlio@13530
* Wrong way to get stdio mode used.Nick Ing-Simmons2001-11-181-3/+1
| | | p4raw-id: //depot/perlio@13080
* Allow dup'ing of PerlIO::Scalar etc.Nick Ing-Simmons2001-11-181-19/+33
| | | p4raw-id: //depot/perlio@13072
* Fix for "perlio bug in koi8-r encoding". The problemJarkko Hietaniemi2001-11-151-9/+12
| | | | | | | | | seemed to be that binmode() always flushed the handle, which is not so good when switching encodings. Fixed, added Matt Sergeant's testcase, documented in perlfunc/binmode, also added a pointer about disciplines to perlfunc/open, and in general cleaned up and reformatted the open entry. p4raw-id: //depot/perl@13019
* [Patch Perl@12856] MULTIPLICITY on VMS Charles Lane2001-11-121-0/+5
| | | | | Message-Id: <011112123409.27041@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@12958
* a few typo fixes Jeffrey Friedl2001-11-121-1/+1
| | | | | | | | | | | Message-Id: <200111120515.fAC5FIc74795@ventrue.corp.yahoo.com> Patching README.foo instead of pod/perlfoo.pod, not patching Math::BigInt (Tels will take care of that), dropping broken hv.c and sv.h patches, patching libnetcfg.PL and perldoc.PL instead of libnetcfg and perldoc, patching ext/Digest/MD5/t/files.t since MD5.pm was changed. p4raw-id: //depot/perl@12954
* Enhance the open pragma to support :utf8, :locale,Jarkko Hietaniemi2001-11-101-2/+2
| | | | | | and :encoding directly as special cases, and rename the INOUT to IO. p4raw-id: //depot/perl@12933
* [REPATCH] Re: PerlIOBuf_dupNicholas Clark2001-11-041-10/+17
| | | | | Message-ID: <20011104104123.U20123@plum.flirble.org> p4raw-id: //depot/perl@12839
* Integrate perlio:Jarkko Hietaniemi2001-11-031-33/+38
| | | | | | | | | | | | | | | | | | | [ 12830] Fix clone_leak problem. PerlIOStdio_dup was leaking FILE * as it was still doing fdopen() as vestige of calling PerlLIO_dup(). [ 12829] Tweaks attempting to locate Doug's clone_leak leak. - add some PerlIO_debug() - handle PerlIO_clone() with empty lists (clone before Perl_parse()) - Even if it closing stdout etc. do a fflush() p4raw-link: @12830 on //depot/perlio: 6124d23f33100dc3c406774873984a1b51f6ab02 p4raw-link: @12829 on //depot/perlio: f4b9981fadd371fad0a1f2bdf41857e39e760c27 p4raw-id: //depot/perl@12832 p4raw-integrated: from //depot/perlio@12827 'copy in' perlio.c (@12830..)
* microperl sync.Jarkko Hietaniemi2001-11-021-0/+2
| | | p4raw-id: //depot/perl@12826
* BeOS tweaks:Jarkko Hietaniemi2001-10-291-1/+1
| | | | | | | | | | | | - fseeko and ftello can be found by Configure but we do not seem to have prototypes for them so let's make up some - BeOS didn't use to have real sockets (sockets as filedescriptors) but the BONE package is supposed to fix this. I do not know how to detect BONEness, see hints/beos.sh for a spot that needs to fixed. - BeOS has O_TEXT != O_BINARY but has no setmode() p4raw-id: //depot/perl@12756
* Have :stdio layer update an honour the fd refcnt table.Nick Ing-Simmons2001-10-281-50/+60
| | | | | Embed.t now passes with PERLIO=stdio as well (tested under ithreads) p4raw-id: //depot/perlio@12736
* Use fd refcounts to solve the problem highlighted by new Embed.t, atNick Ing-Simmons2001-10-281-32/+46
| | | | | least for PERLIO=perlio unthreaded case p4raw-id: //depot/perlio@12733
* Integrate change #12711 from perlio;Jarkko Hietaniemi2001-10-271-57/+100
|\ | | | | | | | | | | | | | | Use ref count scheme rather than PerlLIO_dup() to do fp_dup(). Restores op/fork.t on Win32 (still segfault on exit of ok 2). p4raw-link: @12711 on //depot/perlio: 93a8090dc33a049e3827420ced6c7db56ab1f529 p4raw-id: //depot/perl@12715
| * Use ref count scheme rather than PerlLIO_dup() to do fp_dup().Nick Ing-Simmons2001-10-271-57/+100
| | | | | | | | | | Restores op/fork.t on Win32 (still segfault on exit of ok 2). p4raw-id: //depot/perlio@12711