summaryrefslogtreecommitdiff
path: root/doio.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-1/+2
| | | | | | | (Lots of Perl 5 source code archaeology was involved.) Larry didn't make strangled noises when I showed him the patch, either :-) p4raw-id: //depot/perl@19242
* Feeding illegal QP (like \x80) to thisJarkko Hietaniemi2003-03-281-0/+2
| | | | | | | | | ./perl -Ilib -wne 'use PerlIO::via::QuotedPrint;BEGIN{binmode(STDIN, ":via(QuotedPrint)")};print' caused a coredump in av_length() <- nextargv() because the av was NULL. I don't know that returning Nullfp is the best thing to do, but it dodges the segfault and introduces no test failures. p4raw-id: //depot/perl@19077
* Integrate:Jarkko Hietaniemi2003-03-201-3/+4
| | | | | | | | | | | | | | | [ 19033] file test operators weren't doing the right thing if the SV passed to them wasn't NUL-terminated [ 19034] ensure SVs returned by Win32::Get{Short,Full}PathName() are NUL-terminated p4raw-link: @19034 on //depot/maint-5.6/perl: d453a28c5f70420dd114c2f0f61ec1aaf34109e0 p4raw-link: @19033 on //depot/maint-5.6/perl: 1ad7974d3a92321c870ce2bd5ce4e57098b51c10 p4raw-id: //depot/perl@19036 p4raw-integrated: from //depot/maint-5.6/perl@19028 'merge in' doio.c (@16333..) win32/win32.c (@18377..)
* Make whichsig() to work also if some system definesJarkko Hietaniemi2003-03-141-2/+2
| | | | | | | | zero signals (now -1 is the "not found"). Note that in couple of mg.c spots only whichsig() > 0 branches are taken because signal handlers et al don't make much sense for the zero signal. p4raw-id: //depot/perl@18975
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* Re: utime undef, undef, "/tmp/test" and warningsStas Bekman2003-02-091-11/+12
| | | | | Message-ID: <3E444B6C.5060407@stason.org> p4raw-id: //depot/perl@18676
* Integrate #18405 from maint-5.8 which fixes whitespacNick Ing-Simmons2003-01-201-4/+2
| | | | | | | issues in open(FH,"&...") p4raw-id: //depot/perl@18517 p4raw-integrated: from //depot/maint-5.8/perl@18516 'merge in' doio.c (@18405..)
* Fix 'use encoding' I/O for code points 0x80..0xFF;Jarkko Hietaniemi2003-01-161-1/+2
| | | | | code changes from Inaba Hiroto; test tweaks by jhi. p4raw-id: //depot/perl@18496
* %_ (was Re: [PATCH] operation on `PL_na' may be undefined)Nicholas Clark2003-01-071-6/+6
| | | | | Message-ID: <20021226211626.GD284@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18456
* Re: Is this true that Perl 5.8 uses :crlf as default DISCIPLINE on so ckets?Gurusamy Sarathy2002-11-071-2/+2
| | | | | Message-Id: <200210191911.g9JJBhK02618@smtp3.ActiveState.com> p4raw-id: //depot/perl@18120
* Re: [perl #17830] open FH, "<&", $fdSteve Grazzini2002-10-171-0/+1
| | | | | Message-ID: <20021011222858.452.qmail@onion.perl.org> p4raw-id: //depot/perl@18023
* Re: perlio bug?Rafael Garcia-Suarez2002-10-021-3/+5
| | | | | Message-Id: <20020925215812.3b7adb0d.rgarciasuarez@free.fr> p4raw-id: //depot/perl@17954
* enable -ansi -pedanticJarkko Hietaniemi2002-09-261-11/+11
| | | | | Message-ID: <20020917221925.GF85044@lyta.hut.fi> p4raw-id: //depot/perl@17925
* Change PerlIO::Scalar and Via to scalar and via.Jarkko Hietaniemi2002-07-091-3/+3
| | | p4raw-id: //depot/perl@17454
* Re: autom4te and perl 5.8.0Andy Dougherty2002-07-041-1/+1
| | | | | | | Message-ID: <Pine.SOL.4.10.10207031150540.6601-100000@maxwell.phys.lafayette.edu> (with an additional paranoid nit : skip test unless -c $devnull) p4raw-id: //depot/perl@17398
* Fix segv on IO::File->open("/dev/null").Nick Ing-Simmons2002-06-201-1/+4
| | | p4raw-id: //depot/perlio@17327
* doio.c tweaksNick Ing-Simmons2002-06-061-5/+16
| | | | | | - see SV passed to dup type open "looks_like__number" - apply layers to pipe opens. p4raw-id: //depot/perlio@17030
* Address the second half ofJohan Vromans2002-06-051-0/+4
| | | | | | | | | | | | | Subject: [ID 20020604.006] Pipe opens do not support I/O layers Message-Id: <20020604210144.3A87A8B6B3@phoenix.squirrel.nl> so that multiarg piped opens only accept optional whitespace after the "|-". If and when perlio discipline awareness added to |-, the now added code branch will grow. No test case because hard to think of anything even remotely portable. p4raw-id: //depot/perl@17023
* [Patch] Inplace editing on Cygwin and others?Gerrit P. Haase2002-06-011-1/+1
| | | | | | From: "Gerrit P. Haase" <gp@familiehaase.de> Message-ID: <199100765833.20020601041443@familiehaase.de> p4raw-id: //depot/perl@16946
* Integrate maint branch io (pipe) fixes. (changes#16329,16330,16331)Nick Ing-Simmons2002-05-091-0/+1
| | | | | | | | | | | | | p4raw-link: @16331 on //depot/maint-5.6/perl: 821302ef08e28e13ed846e63b71b1a8e0bd6e09a p4raw-link: @16330 on //depot/maint-5.6/perl: 32b5515015764ee3e189442094a83142675fbf9b p4raw-link: @16329 on //depot/maint-5.6/perl: 5676c1b12073c1e0625a9800fba3bbcb4a2e99c8 p4raw-id: //depot/perl@16528 p4raw-integrated: from //depot/maint-5.6/perl@16527 'merge in' pp_sys.c (@12026..) p4raw-integrated: from //depot/maint-5.6/perl@16331 'merge in' util.c (@16329..) p4raw-integrated: from //depot/maint-5.6/perl@16330 'merge in' doio.c (@14704..)
* perl -i clobbers files on CygwinGerrit P. Haase2002-05-031-1/+1
| | | | | | From: "Gerrit P. Haase" <gerrit@familiehaase.de> Message-ID: <190109228332.20020503203025@familiehaase.de> p4raw-id: //depot/perl@16382
* Windows 64-bit support:Gurusamy Sarathy2002-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * support for building it in the regular makefiles * large files support via the _*i64() functions (this should be portable to the 32-bit universe too, but quite untested and and binary-incompatible, therefore not enabled there) * three additional test failures in addition to the t/end.t one (see README.win32) * sprintf() on Windows gets %I{32,64,}[xoud] format that parallel the ones available from the CRT (needed because Perl uses the UVxf macros in both sprintf() *and* in sv_catpvf() et al.) * add a few 64-bit notes to README.win32 The following general problems were also fixed: * s/struct stat/Stat_t/g * Data::Dumper had some naughty 'long' typecasts * Errno_pm.PL didn't work safe when winsock.h was not in the same directory as errno.h * various tell/seek things were incorrectly prototyped * squelch ugly looking noise when running tests * Embed.t wasn't linking in all the libraries * perl57.dll is now perl58.dll (anticipating 5.8.0-RC1) * re-enable all the disabled warnings (additional fixes may be needed for the warnings uncovered by this) p4raw-id: //depot/perl@16033
* warn on ref open without perlioRafael Garcia-Suarez2002-04-191-0/+9
| | | | | | | Message-ID: <20020418231744.A24159@rafael> (with one nit, the skip message needed "# " prefix) p4raw-id: //depot/perl@16004
* EPOC update from Olaf Flebbe.Jarkko Hietaniemi2002-03-261-1/+1
| | | p4raw-id: //depot/perl@15524
* Fix [ID 20020318.003] cannot open STDOUT into in memory variableNick Ing-Simmons2002-03-221-1/+1
| | | | | | | - when (e.g.) STDOUT is char special file and gets IoOFP created - do _NOT_ pass num_svs as that fopen-s stringified glob, and not fdopen-s the fd. p4raw-id: //depot/perlio@15410
* more warnings tidyupPaul Marquess2002-03-111-21/+21
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEEGDPAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15155
* Forward port #14704 from maint-5.6.Abhijit Menon-Sen2002-02-181-16/+27
| | | p4raw-id: //depot/perl@14756
* Absorb #14701 by Sarathy from maint-5.6.Abhijit Menon-Sen2002-02-161-2/+9
| | | p4raw-id: //depot/perl@14714
* Re: [PATCH] eof() coredumps when ARGV is aliased to another filehandleRafael Garcia-Suarez2002-02-081-1/+1
| | | | | Message-ID: <20020208002107.E763@rafael> p4raw-id: //depot/perl@14601
* lstat FH and -l FH warningsRafael Garcia-Suarez2002-02-031-1/+10
| | | | | Message-ID: <20020202222454.A11608@rafael> p4raw-id: //depot/perl@14530
* Turn the I/O Unicode error by default on, but theJarkko Hietaniemi2002-01-311-1/+1
| | | | | | character-generating Unicode error by default off, as Larry suggested. p4raw-id: //depot/perl@14505
* O_RDONLY/O_WRONLY/O_RDWR portability.Jarkko Hietaniemi2002-01-271-8/+34
| | | p4raw-id: //depot/perl@14445
* Copyright++. (Not all the toplevel *.h have one, it seems.)Jarkko Hietaniemi2002-01-231-1/+1
| | | p4raw-id: //depot/perl@14391
* Missed the =head1 additions.Jarkko Hietaniemi2002-01-031-0/+2
| | | p4raw-id: //depot/perl@14041
* Re: [PATCH] Re: [ PATCH ] Cygwin groups.t (PLEASE CHECK)Nicholas Clark2001-12-261-15/+1
| | | | | | | Message-ID: <20011226191946.K48842@plum.flirble.org> Use report_evil_fh(). p4raw-id: //depot/perl@13892
* doio fatal on cygwin for 13651H.Merijn Brand2001-12-121-1/+1
| | | | | Message-Id: <20011212112548.4611.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@13653
* Detypo and rename.Jarkko Hietaniemi2001-12-121-1/+1
| | | p4raw-id: //depot/perl@13637
* Try to handle platforms that have O_TEXT != O_BINARY butJarkko Hietaniemi2001-12-111-1/+5
| | | | | | | 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
* Allow multi-arg open() if opening layer declares this legal.Nick Ing-Simmons2001-12-081-6/+6
| | | p4raw-id: //depot/perlio@13530
* Various small nits found by DJGPP build.Jarkko Hietaniemi2001-12-021-4/+4
| | | p4raw-id: //depot/perl@13427
* Skip socket-ness tests on handles (e.g. PerlIO::Scalar) which do notNick Ing-Simmons2001-12-011-20/+28
| | | | | have file descriptors. Noticed a possibly worse problem in the process ... p4raw-id: //depot/perlio@13409
* doio slightly smallerNicholas Clark2001-11-271-5/+4
| | | | | Message-ID: <20011127004023.S37621@plum.flirble.org> p4raw-id: //depot/perl@13290
* Allow dup'ing of PerlIO::Scalar etc.Nick Ing-Simmons2001-11-181-13/+24
| | | p4raw-id: //depot/perlio@13072
* [PATCH] Doc spellcheck + podcheckAbhijit Menon-Sen2001-11-161-1/+1
| | | | | | | | | | | | | | | | | | From: Autrijus Tang <autrijus@egb.elixus.org> Date: Thu, 15 Nov 2001 22:49:05 -0800 Message-Id: <20011116064905.GA44092@egb.elixus.org> Subject: [PATCH] podcheck+spellcheck, the rest of the story From: Autrijus Tang <autrijus@egb.elixus.org> Date: Fri, 16 Nov 2001 00:42:20 -0800 Message-Id: <20011116084220.GA44295@egb.elixus.org> Subject: Re: [PATCH] podcheck+spellcheck, the rest of the story From: Nicholas Clark <nick@ccl4.org> Date: Fri, 16 Nov 2001 10:32:01 +0000 Message-Id: <20011116103200.F62891@plum.flirble.org> (Applied after suitable de-mangling.) p4raw-id: //depot/perl@13041
* open(FH, $file) should strip leading and trailing whitespace.Abhijit Menon-Sen2001-11-081-5/+7
| | | p4raw-id: //depot/perl@12896
* microperl sync.Jarkko Hietaniemi2001-11-021-0/+2
| | | p4raw-id: //depot/perl@12826
* Extract doio.c's open(2) mode to string conversion as PerlIO_intmod2str()Nick Ing-Simmons2001-10-201-40/+2
| | | | | Use for non-PERLIO fdupopen(). p4raw-id: //depot/perlio@12532
* Unix and VMS agree on "*" as a "match any number of any chars"Jarkko Hietaniemi2001-10-101-0/+2
| | | | | | | | wildcards, but differ ("?" vs. "%") for their "match any single char" wildcard. This patch changes "?" chars to "%" before doing a VMS glob...at no loss of functionality, since "?" isn't a valid filename char on VMS. From Charles Lane. p4raw-id: //depot/perl@12388
* Warning incorrectly reported without -wRafael Garcia-Suarez2001-08-151-1/+3
| | | | | Message-ID: <20010814212327.A1919@rafael> p4raw-id: //depot/perl@11673
* Integrate change #11051 from macperl; O_RDONLY is not zeroJarkko Hietaniemi2001-07-301-1/+1
| | | | | | | | | everywhere. p4raw-link: @11051 on //depot/perl: 497b47a829dd93323de2c7f4f6815ab9f23d6ada p4raw-id: //depot/perl@11503 p4raw-integrated: from //depot/maint-5.6/macperl@11502 'merge in' doio.c (@11007..)