summaryrefslogtreecommitdiff
path: root/doio.c
Commit message (Collapse)AuthorAgeFilesLines
* move startglob out of pp_hot.cNicholas Clark2000-12-131-0/+145
| | | | | Message-ID: <20001211231638.A55550@plum.flirble.org> p4raw-id: //depot/perl@8097
* Make print, syswrite, send, readline, getc honour utf8-ness of PerlIO.Nick Ing-Simmons2000-12-091-6/+8
| | | | | | | | | | | | | | | (sysread, recv and write i.e. formats still to do...) Allow :utf8 or :bytes in PerlIO_apply_layers() so that open($fh,">:utf8","name") etc. work. - "applying" those just sets/clears the UTF8 bit of the top layer, so no extra overhead is involved. Tweak t/comp/require.t to add a 'use bytes' to permit its dubious writing of BOM to a non-utf8 stream. Add initial io/utf8.t Fix SvPVutf8() - sv_2pv() was not expecting to be called with something that was already SvPOK() - (we just fossiked with SvUTF8 bit). Fix that and also just use the SvPV macro in sv_2pvutf8() to avoid the issue/overhead. p4raw-id: //depot/perlio@8054
* dTHR is a nop in 5.6.0 onwards. Ergo, it can go.Jarkko Hietaniemi2000-12-051-39/+8
| | | p4raw-id: //depot/perl@7984
* Quieten some noise in Win32 builds:Nick Ing-Simmons2000-12-041-2/+2
| | | | | | | - win32.h is included after <sys/socket.h>, so need to set Win32SCK_IS_STDSCK earlier to avoid re-defined noise in XSUB.h - GCC (& MSVC?) have execv(...,const char *const *) so need a cast from char **. p4raw-id: //depot/perlio@7971
* Integrate mainline.Nick Ing-Simmons2000-11-251-161/+2
|\ | | | | p4raw-id: //depot/perlio@7859
| * Undo the SOCKS workarounds, instead start using PerlIOJens Hamisch2000-11-251-174/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | if SOCKS is selected. Subject: perl@7847, [ID 20001030.005], close-patch, perlio - The big cleanup Date: Fri, 24 Nov 2000 18:31:30 +0100 Message-ID: <20001124183130.E28337@Strawberry.COM> Subject: Re: perl@7847, [ID 20001030.005], close-patch, perlio - Patch the patch ... From: Jens Hamisch <jens@Strawberry.COM> Date: Fri, 24 Nov 2000 19:11:51 +0100 Message-ID: <20001124191151.A28753@Strawberry.COM> p4raw-id: //depot/perl@7855
| * Integrate perlio:Jarkko Hietaniemi2000-11-241-59/+53
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 7844] Win32/perlio Now just fails one io/argv.t test - lack of default :crlf on standard streams. [ 7843] Win32 passes all but t/lib/peek.t with perlio and home-grown crlf. peek fail is showing a real problem (multiple crlf layers are getting pushed.) [ 7842] Implement PerlIO_binmode() Fix PerlIOCrlf_unread() (*--ptr rather than *ptr-- ...) Test on UNIX with PERLIO="perlio crlf" to mimic Win32, make binmode in t/lib/io_tell.t unconditional so that works. Checkin just so Win32 machine can see these changes. [ 7836] Implement crlf layer - not ready for merge. p4raw-link: @7844 on //depot/perlio: de6cd452fde5aaf57e339f71b33b6a0852f0f96d p4raw-link: @7843 on //depot/perlio: 63dbdb066b93ac25a070d3a7942d248c23ec6088 p4raw-link: @7842 on //depot/perlio: 60382766f71ec2a2d8e34a951c5c77b494bd86bb p4raw-link: @7836 on //depot/perlio: 99efab1281ccea6f7df2a4d0affc5479291e2350 p4raw-id: //depot/perl@7847
| * | SOCKS wrestling continues, patches from Jens Hamisch.Jarkko Hietaniemi2000-11-231-18/+17
| | | | | | | | | p4raw-id: //depot/perl@7840
| * | Finish unfinished SOCKS workaround changes.Jarkko Hietaniemi2000-11-231-19/+9
| | | | | | | | | p4raw-id: //depot/perl@7833
* | | Re-arrange crlf vs binary for platforms that care.Nick Ing-Simmons2000-11-241-5/+6
| |/ |/| | | | | | | | | | | | | crlf layer is now "the" buffer layer and can turn its behaviour on/off. Lip-service to making stdio layer work on such platforms (untested). Now fails 3 tests rather than one, checkin to see if I can debug the issue under linux. (Do not merge.) p4raw-id: //depot/perlio@7853
* | Win32/perlio Now just fails one io/argv.t test - lack Nick Ing-Simmons2000-11-231-1/+1
| | | | | | | | | | of default :crlf on standard streams. p4raw-id: //depot/perlio@7844
* | Win32 passes all but t/lib/peek.t with perlio and home-grown crlf.Nick Ing-Simmons2000-11-231-1/+1
| | | | | | | | | | | | peek fail is showing a real problem (multiple crlf layers are getting pushed.) p4raw-id: //depot/perlio@7843
* | Implement PerlIO_binmode()Nick Ing-Simmons2000-11-231-43/+12
|/ | | | | | | | Fix PerlIOCrlf_unread() (*--ptr rather than *ptr-- ...) Test on UNIX with PERLIO="perlio crlf" to mimic Win32, make binmode in t/lib/io_tell.t unconditional so that works. Checkin just so Win32 machine can see these changes. p4raw-id: //depot/perlio@7842
* More SOCKS versus 64-bit patches from Jens Hamisch.Jarkko Hietaniemi2000-11-221-5/+8
| | | p4raw-id: //depot/perl@7818
* Go ahead and #include <unistd.h> in perl.h.Jarkko Hietaniemi2000-11-221-5/+0
| | | p4raw-id: //depot/perl@7816
* Integrate perlio:Jarkko Hietaniemi2000-11-211-7/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 7796] Win32 builds and runs (mostly) with USE_PERLIO. PERLIO=perlio passes all tests. PERLIO=stdio (sadly the default) hangs in t.pragma/warnings.t #319 [ 7790] If we use (aTHX_ ...) then put Perl_ on the front. (Or drop the aTHX_). [ 7788] Make extra buffer layer work (dummy crlf layer) p4raw-link: @7796 on //depot/perlio: 83b075c35b61a28ca7e2629bb5d6e26f9e0354fe p4raw-link: @7790 on //depot/perlio: efeab7a8047d7136a0235c1cc7329f57d6a8bfdd p4raw-link: @7788 on //depot/perlio: 88b61e10dfef3b0642d1458a9fff93e5000f86b0 p4raw-id: //depot/perl@7797
| * Integrate mainlineNick Ing-Simmons2000-11-201-0/+156
| |\ | | | | | | p4raw-id: //depot/perlio@7789
| * | Make extra buffer layer work (dummy crlf layer)Nick Ing-Simmons2000-11-201-7/+6
| | | | | | | | | p4raw-id: //depot/perlio@7788
* | | Export the SOCKS workaround symbols only if necessary.Jarkko Hietaniemi2000-11-211-3/+5
| |/ |/| | | p4raw-id: //depot/perl@7791
* | Add a workaround to SOCKS 64-bit problems.Jarkko Hietaniemi2000-11-201-0/+156
|/ | | p4raw-id: //depot/perl@7774
* Lexical use open ... support:Nick Ing-Simmons2000-11-181-0/+27
| | | | | | | | | | | | add ->cop_io to COP structure in cop.h. Make mg.c and gv.c associate it with ${^OPEN}. Make lib/open.pm set it. Have sv.c, perl.c, pp_ctl.c, op.c manipulate it in a manner manner similar to ->cop_warnings. Have doio.c's do_open9 and pp_sys.c's pp_backticks use it as default and call new PerlIO_apply_layers(). Declare latter in perlio.h and define in perlio.c p4raw-id: //depot/perlio@7740
* Basic tweaks to do_open() type parsing to allow layer/disciplineNick Ing-Simmons2000-11-181-49/+66
| | | | | part to be isolated. p4raw-id: //depot/perlio@7736
* Minor tweaks:Nick Ing-Simmons2000-11-161-31/+21
| | | | | | | | consistent way of getting 'rb', 'wb' etc. for binary opens move *perlio::layers to *open::layers a #define to show layers available DOSISH popen/PerlIO had export/import sense inverted. p4raw-id: //depot/perlio@7711
* Hoist the duplicated socket/netdb include logic to perl.h;Jens Hamisch2000-11-141-23/+0
| | | | | | | | undef SETERRNO in case SOCKS has defined it. Based on: Subject: [ID 20001114.002] Code-Cleanups concerning SOCKS5 and Solaris Message-Id: <20001114113440.A20005@Strawberry.COM> p4raw-id: //depot/perl@7683
* SOCKS function redefinitions need prototypes, too, otherwiseJens Hamisch2000-10-201-0/+8
| | | | | | | | | for example 32 bit versus 64 bit differences cause a lot of problems. Part of Subject: [ID 20001016.017] [jens: 5.7.0 Solaris 8, 64 Bit, Workshop 6.0 Compiler] Message-Id: <20001017083936.A11104@Strawberry.COM> p4raw-id: //depot/perl@7378
* PATCH do_print has 2 PerlIO_error()sNicholas Clark2000-10-191-1/+1
| | | | | Message-ID: <20001019180920.A8440@babyhippo.co.uk> p4raw-id: //depot/perl@7370
* Disable the UTF8 downgrade croakage for now to avoidJarkko Hietaniemi2000-10-181-0/+2
| | | | | too many not okay messages. p4raw-id: //depot/perl@7357
* On output try to downgrade to bytes, croak if impossible,Jarkko Hietaniemi2000-10-171-0/+3
| | | | | | | from Simon Cozens. This means that outputting >255 UTF8 is impossible. Consider this as a strong incentive to get the I/O disciplines implemented. p4raw-id: //depot/perl@7355
* Workaround for a sfio bug where the stream error indicatorNicholas Clark2000-10-171-1/+7
| | | | | | | | is not cleared as documented. Subject: PATCH (was Re: [ID 20001016.007] Not OK: perl v5.7.0 +DEVEL7228 on i586-linux 2.2.16 (UNINSTALLED)) Message-ID: <20001016182823.J19700@plum.flirble.org> p4raw-id: //depot/perl@7353
* More IoTYPE sprinkling.Jarkko Hietaniemi2000-10-171-11/+12
| | | p4raw-id: //depot/perl@7352
* Code around the stat-on-a-pipe-returns-a-mode-of-zero bugJarkko Hietaniemi2000-10-041-2/+13
| | | | | | | | reported several times by Dominic Dunlop, for example in ID 20000315.008. Patch from Dominic. Patch affects at least MachTen, and possibly other oldish BSDs. Should not break non-broken platforms (tested on LinuxPPC). p4raw-id: //depot/perl@7148
* Have symbols for the IoTYPEs.Jarkko Hietaniemi2000-08-061-25/+25
| | | p4raw-id: //depot/perl@6532
* Continue fixing the io warnings. This alsoJarkko Hietaniemi2000-08-061-23/+30
| | | | | | | sort of fixes bug ID 20000802.003: the core dump is no more. Whether the current behaviour is correct (giving a warning: "Not a format reference"), is another matter. p4raw-id: //depot/perl@6531
* In the warnings call filehandles consistently so;Jarkko Hietaniemi2000-08-041-6/+6
| | | | | add "unopened" warning for stat(). p4raw-id: //depot/perl@6519
* The name of a filehandle does not have <these>.Jarkko Hietaniemi2000-08-021-2/+2
| | | p4raw-id: //depot/perl@6490
* Remove the extraneous "main::" prefix from all theGurusamy Sarathy2000-08-021-1/+1
| | | | | | | | "opened only for", "on closed", and "never opened" warnings. Subject: Re: inappropriate warning Message-Id: <200003201928.LAA32224@maul.ActiveState.com> p4raw-id: //depot/perl@6489
* integrate cfgperl changes#6325..6373 into mainlineGurusamy Sarathy2000-07-111-0/+3
| | | | | | | | (NOTE: today's batch of integrations still untested) p4raw-link: @6373 (not found) p4raw-link: @6325 on //depot/cfgperl: d6ac44cc5a00fa38a56717785146bc16b716472c p4raw-id: //depot/perl@6373
* integrate cfgperl changes#6293..6324 into mainlineGurusamy Sarathy2000-07-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | p4raw-link: @6324 on //depot/cfgperl: 81bf48a6dbba4b295dfa172a17ca70b654dbf225 p4raw-link: @6293 on //depot/cfgperl: 6e37ea6052902cde1aeb08a2129ffc7c8ea53736 p4raw-id: //depot/perl@6369 p4raw-branched: from //depot/cfgperl@6368 'branch in' lib/Win32.pod lib/lib_pm.PL p4raw-deleted: from //depot/cfgperl@6368 'delete in' pod/Win32.pod (@5937..) pod/buildtoc (@6091..) lib/lib.pm.PL (@6227..) pod/Makefile (@6232..) p4raw-integrated: from //depot/cfgperl@6368 'copy in' thread.h (@5656..) lib/warnings/register.pm (@5704..) ext/B/B/Stash.pm (@5972..) lib/CGI/Util.pm (@6034..) util.c (@6217..) gv.c (@6244..) pp.c (@6260..) doop.c (@6269..) pod/perlfunc.pod (@6277..) pp_ctl.c (@6293..) makedef.pl (@6301..) embed.h global.sym objXSUB.h perlapi.c proto.h (@6305..) win32/Makefile (@6307..) Makefile.SH (@6309..) t/op/method.t (@6312..) sv.h (@6315..) 'ignore' op.c (@6273..) 'merge in' embed.pl win32/win32.c (@6305..) p4raw-integrated: from //depot/cfgperl@6324 'merge in' toke.c (@6307..) p4raw-branched: from //depot/cfgperl@6323 'branch in' pod/buildtoc.PL (@6319..) p4raw-integrated: from //depot/cfgperl@6323 'copy in' pod/perl.pod (@6319..) pod/perltoc.pod (@6322..) 'merge in' MANIFEST (@6319..) p4raw-branched: from //depot/cfgperl@6319 'branch in' pod/Makefile.SH p4raw-integrated: from //depot/cfgperl@6315 'ignore' pp_hot.c (@6313..) p4raw-integrated: from //depot/cfgperl@6311 'copy in' ext/POSIX/POSIX.pod (@6296..) p4raw-integrated: from //depot/cfgperl@6307 'merge in' doio.c (@6223..)
* integrate cfgperl change#6217 into mainlineGurusamy Sarathy2000-07-111-2/+2
| | | | | p4raw-link: @6217 on //depot/cfgperl: cc9b67681954df413fe79f7c379e7b91a3121259 p4raw-id: //depot/perl@6347
* integrate cfgperl changes#6207..6210 into mainlineGurusamy Sarathy2000-07-111-0/+2
| | | | | | p4raw-link: @6210 on //depot/cfgperl: b8b4c9f3cf6ef09c878a80ff97526a69902a44ca p4raw-link: @6207 on //depot/cfgperl: b37a7757477319a5fcdd5131db15046064f631c4 p4raw-id: //depot/perl@6345
* Taint msgrcv() messages; general SysV IPC cleanup.Jarkko Hietaniemi2000-03-191-0/+4
| | | p4raw-id: //depot/cfgperl@5812
* Taint shmread().Jarkko Hietaniemi2000-03-191-0/+4
| | | p4raw-id: //depot/cfgperl@5811
* tweaks for lynxos build (from Ed Mooring <mooring@lynx.com>)Gurusamy Sarathy2000-03-111-1/+8
| | | p4raw-id: //depot/perl@5642
* support binmode(F,":crlf") and use open IN => ":raw", OUT => ":crlf"Gurusamy Sarathy2000-03-091-31/+155
| | | | | semantics; the pragma sets defaults for both open() and qx// p4raw-id: //depot/perl@5628
* avoid looking up stale PL_statbuf (spotted by Charles LaneGurusamy Sarathy2000-03-041-2/+6
| | | | | <lane@DUPHY4.Physics.Drexel.Edu>) p4raw-id: //depot/perl@5524
* avoid warnings from shmread() when given undefined variableGurusamy Sarathy2000-03-041-0/+3
| | | | | (from Tom Christiansen) p4raw-id: //depot/perl@5504
* Configure nits; add socksizetype; add getfsstat for completeness;Jarkko Hietaniemi2000-02-251-14/+0
| | | | | | add lseekproto, usefull64bits, socksizetype getfsstat to non-UNIX lands; regen Configure. p4raw-id: //depot/cfgperl@5259
* Add socklen_t probe; Configure maintenance.Jarkko Hietaniemi2000-02-221-4/+9
| | | p4raw-id: //depot/cfgperl@5213
* some rearrangement of the includes for easier "microperl" build;Gurusamy Sarathy2000-02-191-6/+0
| | | | | add PERL_MICRO guards supplied by Simon Cozens <simon@brecon.co.uk> p4raw-id: //depot/perl@5143
* set SvUTF8 on vectors only if there are chars > 127; update copyrightGurusamy Sarathy2000-02-061-1/+1
| | | | | years (from Gisle Aas) p4raw-id: //depot/perl@5009