summaryrefslogtreecommitdiff
path: root/pp_sys.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed two long-standing locale bugs.Jarkko Hietaniemi1999-06-171-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both problems were related to numeric locale which controls the radix character aka the decimal separator. (1) printf (and sprintf) were resetting the numeric locale to C. (2) Using locale-numerically formatted floating point numbers (e.g. "1,23") together with -w caused warnings about "isn't numeric". The operations were working fine, though, because atof() was using the local locale. Both problems reported by Stefan Vogtner. Introduced a wrapper for atof() that attempts to convert the string both ways. This helps Perl to understand numbers like this "4.56" even when using a local locale makes atof() understand only numbers like this "7,89". Remaining related problems, both of which existed before this patch and continue to exist after this patch: (a) The behaviour of print() is _not_ as documented by perllocale. Instead of always using the C locale, print() does use the local locale, just like the *printf() do. This may be fixable now that switching to-and-fro between locales has been made more consistent, but fixing print() would change existing behaviour. perllocale is not changed by this patch. (b) If a number has been stringified (say, via "$number") under a local locale, the cached string value persists even under "no locale". This may or may not be a problem: operations work fine because the original number is still there, but that the string form keeps its locale-ish outlook may be somewhat confusing. p4raw-id: //depot/cfgperl@3542
* win32 build fixesGurusamy Sarathy1999-06-101-5/+5
| | | p4raw-id: //depot/perl@3525
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-208/+208
| | | | | | | | | | | | | | | | | | | | | enabled via -DPERL_IMPLICIT_CONTEXT (all changes are noops without that enabled): - USE_THREADS now enables PERL_IMPLICIT_CONTEXT, so dTHR is a noop; tests pass on Solaris; should be faster now! - MULTIPLICITY has been tested with and without PERL_IMPLICIT_CONTEXT on Solaris - improved function database now merged with embed.pl - everything except the varargs functions have foo(a,b,c) macros to provide compatibility - varargs functions default to compatibility variants that get the context pointer using dTHX - there should be almost no source compatibility issues as a result of all this - dl_foo.xs changes other than dl_dlopen.xs untested - still needs documentation, fixups for win32 etc Next step: migrate most non-mutex variables from perlvars.h to intrpvar.h p4raw-id: //depot/perl@3524
* initial stub implementation of implicit thread/thisGurusamy Sarathy1999-06-071-31/+28
| | | | | | | | | | | | pointer argument; builds/tests on Solaris, win32 hasn't been fixed up yet; proto.h, global.sym and static function decls are now generated from a common database in proto.pl; some inconsistently named perl_foo() things are now Perl_foo(), compatibility #defines provided; perl_foo() (lowercase 'p') reserved for functions that take an explicit context argument; next step: generate #define foo(a,b) Perl_foo(aTHX_ a,b) p4raw-id: //depot/perl@3522
* avoid dereferencing null pointer from getpwent() et alGurusamy Sarathy1999-06-021-7/+11
| | | p4raw-id: //depot/perl@3519
* remove _() non-ansismGurusamy Sarathy1999-06-021-10/+10
| | | p4raw-id: //depot/perl@3518
* integrate cfgperl contents into mainlineGurusamy Sarathy1999-06-021-10/+14
|\ | | | | p4raw-id: //depot/perl@3516
| * Make Configure support the change #3367,Jarkko Hietaniemi1999-05-291-10/+14
| | | | | | | | | | | | | | SysV shadow passwords. p4raw-link: @3367 on //depot/perl: 8c0bfa080e85353d7675b8b2fb1a04c6cc60cd5f p4raw-id: //depot/cfgperl@3502
* | remove stray K&R-ismsGurusamy Sarathy1999-06-021-10/+8
|/ | | p4raw-id: //depot/perl@3515
* shadow password support for Solaris (needs Configure help toPatrick O'Brien1999-05-101-0/+30
| | | | | | | determine HAS_GETSPENT) Message-Id: <199905012341.TAA23989@optimus.cs.umd.edu> Subject: getpwent() under solaris p4raw-id: //depot/perl@3367
* cygwin32 update (untested adaptation of patch against 5.005_03)Alexander Smishlajev1999-05-101-2/+2
| | | | | | Message-ID: <37230365.5F68B460@turnhere.com> Subject: [PATCH]5.005_03 (CORE) cygwin32 port p4raw-id: //depot/perl@3358
* flush all open output buffers before fork(), exec(), system, qx//Gurusamy Sarathy1999-05-091-0/+3
| | | | | | and pipe open() operations, simplifying buffering headaches faced by users; uses fflush(NULL), which may need Configure test p4raw-id: //depot/perl@3352
* Implement OPEN, EOF, SEEK, TELL, BINMODE and FILENO as TIEHANDLE methods.Nick Ing-Simmons1999-05-081-2/+85
| | | | | | Provide Tie::StdHandle Basic update of docs. p4raw-id: //depot/perl@3330
* Implement open( my $fh, ...) and similar.Nick Ing-Simmons1999-05-071-0/+4
| | | | | | | | | | | | Set flag in op.c for "constructor ops" In pp_rv2gv, if flag is set and arg is PADSV and uninit vivify as reference to a detached GV. (Name of GV is the pad name.) This scheme should "just work" for pipe/socket etc. too. #if 0 out the open(FH,undef) for now. Change t/io/open.t to test open(my $fh,...) p4raw-id: //depot/perl@3326
* open(FH,undef) # creates new_tmpfile opened read/writeNick Ing-Simmons1999-05-061-0/+12
| | | | | Add t/io/open.t with test for above. p4raw-id: //depot/perl@3315
* allow embedded null characters in diagnosticsGurusamy Sarathy1999-04-261-22/+30
| | | p4raw-id: //depot/perl@3274
* Integrate from mainperl.Jarkko Hietaniemi1999-04-041-7/+7
|\ | | | | p4raw-id: //depot/cfgperl@3220
| * correct places that said newSVpv() when they meant newSVpvn()Gurusamy Sarathy1999-04-041-7/+7
| | | | | | p4raw-id: //depot/perl@3217
* | Fix up some _t nits (Pid_t, Gid_t, Uid_t, etc. instead of int).John Bley1999-04-031-5/+5
|/ | | | | | | To: perlbug@perl.org Subject: [PATCH]5.005_03 (CORE) Fix some _t nits Message-ID: <Pine.SOL.3.91.990401015805.21458A-100000@soc13.acpub.duke.edu> p4raw-id: //depot/cfgperl@3212
* Integrate from mainperl.Jarkko Hietaniemi1999-03-231-1/+1
|\ | | | | p4raw-id: //depot/cfgperl@3128
| * update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | | | | p4raw-id: //depot/perl@3124
* | First pass of integrating the Rhapsody port,Wilfredo Sánchez1999-03-151-2/+2
|/ | | | | | | | Subject: Keeping the world in sync. Reply-To: wsanchez@apple.com To: perlbug@perl.com Message-Id: <199811140111.RAA41784@scv4.apple.com> p4raw-id: //depot/cfgperl@3108
* allow C<select('foo')> to autovivify *foo (SelectSaver expects that)Gurusamy Sarathy1999-02-141-7/+2
| | | p4raw-id: //depot/perl@2914
* fix ops that are not filehandle constructors to not create GV if itGurusamy Sarathy1999-02-121-2/+7
| | | | | | doesn't already exist (avoids leaks); extend semantics of defined() so that defined(*{$foo}) works (experimental) p4raw-id: //depot/perl@2879
* telldir prototype issue, from mists of time...Jarkko Hietaniemi1999-02-021-1/+5
| | | p4raw-id: //depot/cfgperl@2803
* Two-argument eaccess() of SCO.Jarkko Hietaniemi1999-01-211-6/+14
| | | p4raw-id: //depot/cfgperl@2654
* fix outdated/incorrect info about arbitrary limitsGurusamy Sarathy1998-12-061-8/+0
| | | p4raw-id: //depot/perl@2454
* another threads reliability fix: serialize writes to thr->threadsvGurusamy Sarathy1998-11-291-63/+100
| | | | | | | | avoid most uses of PL_na (which is much more inefficient than a simple local); update docs to suit; PL_na now being thr->Tna may be a minor compatibility issue for extensions--will require dTHR outside of XSUBs (those get automatic dTHR) p4raw-id: //depot/perl@2387
* another win32 portability fix: make sysread() and syswrite()Gurusamy Sarathy1998-11-211-2/+22
| | | | | work on sockets p4raw-id: //depot/perl@2255
* integrate cfgperl changes into mainlineGurusamy Sarathy1998-11-081-1/+3
|\ | | | | p4raw-id: //depot/perl@2219
| * sysio.t failure: fix undefined order of evaluation, fromSpider Boardman1998-11-041-1/+3
| | | | | | | | | | | | | | Subject: Not OK: perl 5.00553 on alpha-thread 5.0 [PATCH] To: perlbug@perl.com Message-ID: <MLIST_199811032227.RAA143892@web.zk3.dec.com> p4raw-id: //depot/cfgperl@2189
* | set close-on-exec bit on pipe() FDsGurusamy Sarathy1998-11-081-1/+4
|/ | | p4raw-id: //depot/perl@2215
* Overloaded <> and deref againIlya Zakharevich1998-10-301-0/+2
| | | | | Message-Id: <199810300304.WAA23291@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@2150
* phase 1 of somewhat major rearrangement of PERL_OBJECT stuffGurusamy Sarathy1998-10-301-86/+86
| | | | | | | | | | (objpp.h is gone, embed.pl now does some of that); objXSUB.h should soon be automated also; the global variables that escaped the PL_foo conversion are now reined in; renamed MAGIC in regcomp.h to REG_MAGIC to avoid collision with the type of same name; duplicated lists of pp_things in various places is now gone; result has only been tested on win32 p4raw-id: //depot/perl@2133
* fix stack overrun in file test operatorsGurusamy Sarathy1998-10-251-6/+18
| | | p4raw-id: //depot/perl@2073
* integrate changes#1982,2014,2021 (from maint-5.005)Gurusamy Sarathy1998-10-251-40/+25
| | | | | | | p4raw-link: @2021 on //depot/maint-5.005/perl: ece095e7b265a16d4ec3543b1418100f9c635a87 p4raw-link: @2014 on //depot/maint-5.005/perl: cca0b9804acab4b7678c0f185888d57497a5c2a9 p4raw-link: @1982 on //depot/maint-5.005/perl: fe676099d996f70caaedeb6ae85adc3ee59d2240 p4raw-id: //depot/perl@2059
* commented version of a patch suggested by Drago GoricanecJarkko Hietaniemi1998-10-251-1/+6
| | | | | | Message-ID: <oeeogrc1ype.fsf@alpha.hut.fi> Subject: Re: [PATCH 5.005_52] Linux select fails with more than 32 FDs p4raw-id: //depot/perl@2056
* The VM/ESA port essentials, based onJarkko Hietaniemi1998-10-171-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | perl-mvs: From: Neale Ferguson <neale@VMA.TABNSW.COM.AU> Subject: Re: Can't find Data/Dumper.pm Date: Mon, 28 Sep 1998 07:40:49 +1300 Message-ID: <360E86B0.23847AF4@mailbox.tabnsw.com.au> private email: From: Neale Ferguson <neale@VMA.TABNSW.COM.AU> Subject: Re: Perl thread problems in VM/ESA Date: Thu, 15 Oct 1998 07:18:35 +1300 Message-ID: <3624EAFA.16163A2B@mailbox.tabnsw.com.au> and private email: From: Neale Ferguson <NEALE@PUCC.PRINCETON.EDU> Subject: perl archive Date: Sun, 11 Oct 1998 19:28:54 EDT Message-Id: <19981011233112Z67215-26626+1513@outbound.Princeton.EDU> which gave a pointer to http://pucc.princeton.edu/~neale/perl.tar (based on Perl 5.005_51) p4raw-id: //depot/cfgperl@2006
* use Off_t to permit 64-bit seek()Scott Henry1998-10-021-2/+2
| | | | | | | | | | | Date: 29 Sep 1998 17:38:46 -0700 Message-ID: <yd8lnn2zb6x.fsf_-_@hoshi.engr.sgi.com> Subject: Re: [PATCH] 5.005_02: Configure "Massive Attack" -- Date: 28 Sep 1998 18:55:37 -0700 Message-ID: <yd8ogrz1y3q.fsf@hoshi.engr.sgi.com> Subject: Re: [PATCH] 5.005_51: Configure "Massive Attack" p4raw-id: //depot/perl@1915
* various Configure and hints updates (prefer drand48() or random()Jarkko Hietaniemi1998-10-021-19/+19
| | | | | | | | over rand(); add -Dusemultiplicity; enhanced 64-bitness); patch applied modulo SCO hints superseded by later patch Message-Id: <199809282156.AAA18615@alpha.hut.fi> Subject: [PATCH] 5.005_52: Configure et al: p4raw-id: //depot/perl@1904
* update template config.sh, add new config vars to win32 stuffGurusamy Sarathy1998-09-251-3/+7
| | | p4raw-id: //depot/perl@1890
* big Configure update from Jarkko: sync metaconfig units; d_statblks fixGurusamy Sarathy1998-09-251-21/+206
| | | | | | | | | | | | | | | | | for Linux; hpux CMA-threads hints; ELF support for FreeBSD; beginnings of full-fledged 64-bit support (including support for: fseeko/ftello, Quad_t aka long long, hpux and irix 64-bits hints, new 64-bit constants in Fcntl) From: Jarkko Hietaniemi <jhi@iki.fi> Date: Fri, 11 Sep 1998 23:56:11 +0300 (EET DST) Message-Id: <199809112056.XAA04720@alpha.hut.fi> Subject: [PATCH] 5.005_51: Configure "Massive Attack" -- From: Jarkko Hietaniemi <jhi@cc.hut.fi> Date: 12 Sep 1998 09:44:25 +0300 Message-ID: <oeeaf45bzjq.fsf@alpha.hut.fi> Subject: Re: [PATCH] 5.005_51: Configure "Massive Attack" p4raw-id: //depot/perl@1889
* lexical warnings; tweaks to places that didn't apply correctlyPaul Marquess1998-08-091-38/+41
| | | | | | Message-Id: <9807290828.AA26286@claudius.bfsec.bt.co.uk> Subject: lexical warnings patch for 5.005_50 p4raw-id: //depot/perl@1773
* support OE/MVSJarkko Hietaniemi1998-08-021-1/+6
| | | | | | Message-Id: <199808010903.MAA09371@alpha.hut.fi> Subject: [PATCH] 5.005_01: OE MVS p4raw-id: //depot/maint-5.005/perl@1697
* stray s/foo/PL_foo/Winfried König1998-08-011-1/+1
| | | | | | Message-Id: <m0z0teW-00019aC@incom.rhein-main.de> Subject: Bug in pp_rename and ISC hint p4raw-id: //depot/maint-5.005/perl@1676
* another platform where pp_sselect() needs a whole fd_set bufferLupe Christoph1998-07-261-1/+1
| | | | | | Message-Id: <199807251749.TAA22347@alanya.m.isar.de> Subject: Patch for Not OK: perl 5.005 on i86pc-solaris-thread 2.6 p4raw-id: //depot/maint-5.005/perl@1657
* allocate a whole fd_set for pp_sselect() on more platformsJarkko Hietaniemi1998-07-211-1/+2
| | | | | | Message-ID: <oeen2a5y251.fsf@alpha.hut.fi> Subject: Re: Not OK: perl 5.00475 +DEVEL_BETA_ISSUE_1 on OPENSTEP-Mach 4_1 (UNINSTALLED) p4raw-id: //depot/perl@1600
* complete s/foo/PL_foo/ changes (all escaped cases identified withGurusamy Sarathy1998-07-201-15/+15
| | | | | | brute force search script). Result builds and passes all tests on Solaris. win32 and PERL_OBJECT are still untested. p4raw-id: //depot/perl@1578
* PL_ stuff passes non-threaded on Mingw32Nick Ing-Simmons1998-07-181-3/+3
| | | | | (Why did it compile without this fix?) p4raw-id: //depot/ansiperl@1540
* PL_ scheme Builds under Minw32 - some SEGFAULT snagsNick Ing-Simmons1998-07-181-5/+5
| | | p4raw-id: //depot/ansiperl@1537