summaryrefslogtreecommitdiff
path: root/pp_sys.c
Commit message (Collapse)AuthorAgeFilesLines
* IV/UV casting fixes from Nicholas Clark.Jarkko Hietaniemi2001-05-241-2/+2
| | | p4raw-id: //depot/perl@10198
* [LARGE!] symbolic magicDave Mitchell2001-05-201-18/+22
| | | | | Message-Id: <200105191912.UAA23925@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@10168
* If wait() or waitpid() ends due to EINTR despatch perl interrupt handlerNick Ing-Simmons2001-05-091-0/+12
| | | | | and re-try. Fixes "perl 5.7.x prefers suicide over killing more than one child." p4raw-id: //depot/perlio@10048
* Multiplicity and thread fixes for VMSDan Sugalski2001-05-021-1/+3
| | | | | Message-Id: <5.0.2.1.0.20010502112909.01f24e28@24.8.96.48> p4raw-id: //depot/perl@9960
* Based onOlaf Flebbe2001-04-021-0/+4
| | | | | | Subject: [foolperl] EPOC fix Message-ID: <Pine.LNX.4.02.10104022335380.5547-100000@milkyway.science-computing.de> p4raw-id: //depot/perl@9519
* Re: [ID 20010215.006] Bad arg length for Socket::unpack_sockaddr_un, length ↵Radu Greab2001-03-301-24/+0
| | | | | | | | | is 14 ... Message-ID: <15044.30562.566390.559726@ix.netsoft.ro> Replace #9352. p4raw-id: //depot/perl@9470
* Too much cut-and-paste in #9363.Jarkko Hietaniemi2001-03-261-2/+4
| | | p4raw-id: //depot/perl@9367
* socket() leaks file descriptorsBenjamin Sugars2001-03-261-0/+6
| | | | | | | Message-ID: <Pine.LNX.4.21.0103261315510.2729-100000@marmot.rim.canoe.ca> Also sockpair() fixed similarly. p4raw-id: //depot/perl@9363
* Re: [ID 20010215.006] Bad arg length for Socket::unpack_sockaddr_un, length ↵Radu Greab2001-03-251-0/+24
| | | | | | | is 14 ... Message-ID: <15035.41139.646781.478457@ix.netsoft.ro> p4raw-id: //depot/perl@9352
* If stdin, stdout or stderr get opened in unexpected read/write stateNick Ing-Simmons2001-03-221-2/+1
| | | | | then warn at time of open not at time of use. p4raw-id: //depot/perlio@9295
* downgrading to bytes for common functionsAndrew Pimlott2001-03-071-7/+7
| | | | | Message-ID: <20010307023655.J24024@pimlott.ne.mediaone.net> p4raw-id: //depot/perl@9071
* Some tests for Camel 3rd edition features.Nick Ing-Simmons2001-03-051-2/+2
| | | | | Make gethostbyaddr() test in above work. p4raw-id: //depot/perlio@9042
* [perl-5.6.x, perl-current] accept for EPOCOlaf Flebbe2001-03-031-1/+2
| | | | | Message-ID: <Pine.LNX.4.02.10103031635190.4825-100000@milkyway.science-computing.de> p4raw-id: //depot/perl@9002
* Re: sync sync sync: have I missed any patches?Tim Jenness2001-02-281-125/+125
| | | | | | | | In-Reply-To: <20010227140737.Y10633@chaos.wustl.edu> Message-ID: <Pine.LNX.4.30.0102271322070.8623-100000@lapaki.jach.hawaii.edu> Replace djSP with dSP. p4raw-id: //depot/perl@8963
* [perl-current] EPOC Olaf Flebbe2001-02-271-0/+4
| | | | | Message-ID: <Pine.LNX.4.02.10102262333490.3781-100000@milkyway.science-computing.de> p4raw-id: //depot/perl@8956
* [patch] -WallDoug MacEachern2001-02-171-5/+3
| | | | | Message-ID: <Pine.LNX.4.21.0102161519500.30352-100000@mako.covalent.net> p4raw-id: //depot/perl@8815
* [patch] GvSHAREDDoug MacEachern2001-02-101-0/+5
| | | | | Message-ID: <Pine.LNX.4.21.0102101047320.15298-100000@mako.covalent.net> p4raw-id: //depot/perl@8760
* Tweak the mkdir trailing slash code some more.Jarkko Hietaniemi2001-01-211-4/+12
| | | | | | | TO DO: the same handling should probably be done for all the other filesystem functions that can have directories as their arguments. p4raw-id: //depot/perl@8509
* Infrastructure to allow:Nick Ing-Simmons2001-01-201-19/+20
| | | | | | | | | | open($fh,"|-",@array); to be implemented i.e. mark pp_open as needing a stack mark, and make pp_open process its args in that style (and pass them _all_ to tied handles OPEN). Invent do_openn() which takes SV ** at allow it to see multiple args. Note this does not _do_ anything yet. p4raw-id: //depot/perlio@8484
* Allow for one trailing slash in the directory of mkdir().Jarkko Hietaniemi2001-01-171-2/+12
| | | p4raw-id: //depot/perl@8461
* UTF-8 cleanup.Jarkko Hietaniemi2001-01-051-2/+2
| | | p4raw-id: //depot/perl@8328
* Bump up Larry's copyright.Jarkko Hietaniemi2001-01-011-1/+1
| | | p4raw-id: //depot/perl@8289
* Fix for 20001210.003, "write(FH) on closed FH causes segv".Jarkko Hietaniemi2000-12-211-0/+3
| | | p4raw-id: //depot/perl@8214
* Add test for #8145 (binmode() warning), add warning forJarkko Hietaniemi2000-12-171-18/+35
| | | | | | | ioctl() and sockpair(), document them. (fileno() cannot be tripwired with the same kind of warning because 'defined fileno($foo)' seems to be an idiom.) p4raw-id: //depot/perl@8147
* Re: The long awaited feature ...Simon Cozens2000-12-171-2/+4
| | | | | | | | Message-ID: <20001217123156.A3891@deep-dark-truthful-mirror.perlhacker.org> Add a warning to binmode() about using bad filehandles (can happen e.g. if someone forgets the filehandle argument) p4raw-id: //depot/perl@8145
* Re: [ID 20001202.002] [BUG all] 'die qr{pattern}' does not check terminationSimon Cozens2000-12-101-1/+1
| | | | | Message-ID: <20001210005537.B16221@deep-dark-truthful-mirror.perlhacker.org> p4raw-id: //depot/perl@8066
* Pacify fussy compiler.Jarkko Hietaniemi2000-12-101-1/+1
| | | p4raw-id: //depot/perl@8061
* Integrate perlio:Jarkko Hietaniemi2000-12-101-20/+64
|\ | | | | | | | | | | | | | | | | [ 8059] read/sysread/recv should now be utf8 aware. Basic test for utf8 read. p4raw-link: @8059 on //depot/perlio: eb5c063ad00efba84ec136b0b86cfe12eb4ab14c p4raw-id: //depot/perl@8060
| * read/sysread/recv should now be utf8 aware.Nick Ing-Simmons2000-12-091-20/+64
| | | | | | | | | | Basic test for utf8 read. p4raw-id: //depot/perlio@8059
* | Integrate perlio:Jarkko Hietaniemi2000-12-091-17/+57
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 8055] Make write() (i.e. formats) utf8-aware by calling do_print() rather than raw PerlIO_write() - does not seem to break any tests. [ 8054] Make print, syswrite, send, readline, getc honour utf8-ness of PerlIO. (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. [ 8053] Did not get that has_utf8/this_utf8 fix right last time, another spot was only testing this_utf8. [ 8052] Typo/thinko in S_scan_const() - seeing high bit sets has_utf8 not this_utf8 i.e. the output string has one, but don't mess with source assumption. p4raw-link: @8055 on //depot/perlio: d75029d0f4549b2fe0cff3cd80934a1b6bbb54eb p4raw-link: @8054 on //depot/perlio: 7d59b7e40bca518078f3e97c802950b76d52efa2 p4raw-link: @8053 on //depot/perlio: bbc28b27949817e8e7461c0a92c6108632259a4b p4raw-link: @8052 on //depot/perlio: 4e553d734e1cb450bb69a562e02eb0c12ecd8995 p4raw-id: //depot/perl@8058
| * Make write() (i.e. formats) utf8-aware by calling do_print() ratherNick Ing-Simmons2000-12-091-4/+6
| | | | | | | | | | than raw PerlIO_write() - does not seem to break any tests. p4raw-id: //depot/perlio@8055
| * Make print, syswrite, send, readline, getc honour utf8-ness of PerlIO.Nick Ing-Simmons2000-12-091-13/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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
| * Integrate mainline.Nick Ing-Simmons2000-12-051-5/+0
| |\ | |/ |/| p4raw-id: //depot/perlio@8003
* | dTHR is a nop in 5.6.0 onwards. Ergo, it can go.Jarkko Hietaniemi2000-12-051-5/+0
| | | | | | p4raw-id: //depot/perl@7984
* | Integrate perlio:Jarkko Hietaniemi2000-11-261-6/+0
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 7860] Correct relative path from new ext\Filter\Util\Call location back to miniperl. [ 7857] All tests pass on Win32/gcc/USE_PERLIO. - when crlf layer is pushed make unix-level binary. - remove :crlf injection in pp_backtick in pp_sys.c - (Change dependacy of extension .dll's to perldll.def rather than perl.exe) [ 7853] Re-arrange crlf vs binary for platforms that care. 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-link: @7860 on //depot/perlio: 0727cc217546946a8c8db12875c3cacb5833e494 p4raw-link: @7857 on //depot/perlio: a77df51f3c9319336e0ec43ad003b02a0111d2af p4raw-link: @7853 on //depot/perlio: f5b9d040829bb5deb93173e35ee6c82ce0a01c37 p4raw-id: //depot/perl@7861
| * All tests pass on Win32/gcc/USE_PERLIO.Nick Ing-Simmons2000-11-251-3/+0
|/ | | | | | | - when crlf layer is pushed make unix-level binary. - remove :crlf injection in pp_backtick in pp_sys.c - (Change dependacy of extension .dll's to perldll.def rather than perl.exe) p4raw-id: //depot/perlio@7857
* Implement PerlIO_binmode()Nick Ing-Simmons2000-11-231-3/+11
| | | | | | | | 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-0/+3
| | | 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
* Lexical use open ... support:Nick Ing-Simmons2000-11-181-0/+10
| | | | | | | | | | | | 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
* Hoist the duplicated socket/netdb include logic to perl.h;Jens Hamisch2000-11-141-26/+3
| | | | | | | | 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
* patch to detect stat followed by lstat(_): [ID 20001106.006] find2perl ↵David Dyck2000-11-091-2/+8
| | | | | | | generated scripts issue new lstat() on filehandle _ warning Message-ID: <Pine.LNX.4.30.0011081817490.177-100000@dd.tc.fluke.com> p4raw-id: //depot/perl@7620
* is this the appropriate patch to fix: [ID 20001106.006] find2perl generated ↵David Dyck2000-11-081-1/+1
| | | | | | | scripts issue new lstat() on filehandle _ warning Message-ID: <Pine.LNX.4.30.0011080957440.2572-100000@dd.tc.fluke.com> p4raw-id: //depot/perl@7612
* Add FCNTL_CAN_LOCK.Andy Dougherty2000-11-041-1/+1
| | | | | | | | | | | Subject: Re: [ID 20001030.011] Not OK: perl v5.7.0 +DEVEL7481 on VMS_AXP V7.1 (UNINSTALLED) Message-ID: <Pine.SOL.4.10.10011031528090.29-100000@maxwell.phys.lafayette.edu> Subject: Re: [ID 20001030.011] Not OK: perl v5.7.0 +DEVEL7481 on VMS_AXP V7.1 (UNINSTALLED) From: Andy Dougherty <doughera@lafayette.edu> In-Reply-To: <4.3.1.0.20001031222203.00b24b20@pop5.banet.net> Message-ID: <Pine.SOL.4.10.10011031532170.29-100000@maxwell.phys.lafayette.edu> p4raw-id: //depot/perl@7536
* Temporary stopgap for the self-tying issue: for now onlyJarkko Hietaniemi2000-10-251-3/+6
| | | | | | | array and hash self-ties are verboten. The real fix, of course, would be to comprehensively test (and implement?) and debug (and document) self-ties. p4raw-id: //depot/perl@7443
* 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
* Self-ties are unsupported currently, stopgap patch from Alan Burlison.Jarkko Hietaniemi2000-10-131-1/+4
| | | p4raw-id: //depot/perl@7213
* PWPASSWD problem for passwd less pwd'sPeter Prymmer2000-10-031-0/+2
| | | | | Message-ID: <Pine.OSF.4.10.10010031203470.388222-100000@aspara.forte.com> p4raw-id: //depot/perl@7138
* Epoc updateOlaf Flebbe2000-10-031-0/+4
| | | | | Message-ID: <26423.969484586@www10.gmx.net> p4raw-id: //depot/perl@7124
* Undo part of change 6489 which looks like a bulk edit whichNick Ing-Simmons2000-09-021-1/+1
| | | | | | changed _all_ gv_efullname3() calls to gv_efullname4() calls. The supressing of main:: on return from select() is undesirable. p4raw-id: //depot/perl@7003