summaryrefslogtreecommitdiff
path: root/perlio.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | C RTL awareness update for VMSCraig A. Berry2001-10-271-2/+2
|/ | | | | Message-Id: <5.1.0.14.2.20011027134037.01bebc60@exchi01> p4raw-id: //depot/perl@12712
* Make the PerlIO_init() prototypes consistent.Jarkko Hietaniemi2001-10-231-2/+2
| | | p4raw-id: //depot/perl@12604
* Restore non-ithreads build. Interestingly binmode test passesNick Ing-Simmons2001-10-221-1/+3
| | | | | | non-ithreads - so crlf layer is not damaged and ithreads fail is a symptom ... p4raw-id: //depot/perlio@12555
* Convert rest of PerlIO's memory tables to per-interp and add clone functionsNick Ing-Simmons2001-10-211-75/+72
| | | | | | | | for them. Call explicit cleanup during destruct process. - one binmode test is failing - also ext/threads/t/basic.t fails under make test, and is noisy under harness. (Threads results are intermingled and don't match order expected.) p4raw-id: //depot/perlio@12547
* PerlIO layer table as PL_perlio (per-interpreter)Nick Ing-Simmons2001-10-211-38/+56
| | | p4raw-id: //depot/perlio@12544
* Fix typos in new locking on MemSharedNick Ing-Simmons2001-10-201-2/+4
| | | | | | | Make buffers in PerlIOBuf_* in per-thread heap (they are cloned after all...) - seems to make segfaults more deterministic - suspect they are attempt to free() after Interp and Host have gone. p4raw-id: //depot/perlio@12541
* Remove the MemShared re-#define (again)Nick Ing-Simmons2001-10-201-5/+0
| | | p4raw-id: //depot/perlio@12540
* Extract doio.c's open(2) mode to string conversion as PerlIO_intmod2str()Nick Ing-Simmons2001-10-201-1/+53
| | | | | Use for non-PERLIO fdupopen(). p4raw-id: //depot/perlio@12532
* Fix for ithreads/stdio buildNick Ing-Simmons2001-10-201-0/+18
| | | p4raw-id: //depot/perlio@12529
* Implement PerlIOStdio_dup (explains core dumps - dupNick Ing-Simmons2001-10-161-2/+22
| | | | | was not setting up a FILE * to be fclosed()). p4raw-id: //depot/perlio@12461
* When USE_ITHREADS avoid SV * in PerlIO_debug, at risk of bufferNick Ing-Simmons2001-10-161-0/+14
| | | | | overflow. p4raw-id: //depot/perlio@12460
* Builds under ithreads (but fails all threads tests)Nick Ing-Simmons2001-10-161-4/+7
| | | p4raw-id: //depot/perlio@12456
* Skeleton of "PerlIO_dup" coded.Nick Ing-Simmons2001-10-161-25/+42
| | | | | Still-passes all tests non-threaded (well it would wouldn't it!) p4raw-id: //depot/perlio@12451
* Beginings of PerlIO_dup support (unstable)Nick Ing-Simmons2001-10-151-113/+182
| | | p4raw-id: //depot/perlio@12447
* Re: binmode(STDOUT, ":unix") busted when STDOUT is piped.chromatic2001-09-261-1/+2
| | | | | Message-ID: <20010926060233.7554.qmail@onion.perl.org> p4raw-id: //depot/perl@12236
* Reindent the PerlIO files (suggested by NI-S), usedJarkko Hietaniemi2001-09-171-2841/+2781
| | | | | | | | | indent -kr -nce -psl -sc -TSV -TAV -THV -TGV -TIV -TUV -TNV -TMAGIC -TFILE -TPerlIO -TPerlIO_list_t -TPerlIO_funcs -TPerlIO_pair_t (GNU indent). Note that wholesale re-indenting might be nice, but that would break nice formatting/alignment of assignments, equality testing, and complex boolean expressions with lots of &s and |s. p4raw-id: //depot/perl@12052