summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* IV/UV casting fixes from Nicholas Clark.Jarkko Hietaniemi2001-05-241-56/+50
| | | p4raw-id: //depot/perl@10198
* [LARGE!] symbolic magicDave Mitchell2001-05-201-5/+5
| | | | | Message-Id: <200105191912.UAA23925@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@10168
* Macrofy the getspecific (and use it also in util.c)Jarkko Hietaniemi2001-05-171-7/+3
| | | p4raw-id: //depot/perl@10143
* Quick thread speedupDan Sugalski2001-05-171-4/+8
| | | | | Message-Id: <5.1.0.14.0.20010516175826.01afde08@24.8.96.48> p4raw-id: //depot/perl@10141
* Change PL_numeric_radix to PL_numeric_radix_sv (and leave inJarkko Hietaniemi2001-04-301-6/+6
| | | | | | a dummy for PL_numeric_radix); no pressing reason to break binary compatibility; regen API. p4raw-id: //depot/perl@9910
* The tzname[] bit is not needed by util.c -- and causesJarkko Hietaniemi2001-04-251-10/+0
| | | | | | heartburn in VMS (and it missing was probably the cause of the Mac OS X trouble). Ouch. p4raw-id: //depot/perl@9830
* Fix for 20010219.013, "perlio perl -we tell goes SEGV".Jarkko Hietaniemi2001-04-241-3/+4
| | | p4raw-id: //depot/perl@9810
* The new time utils need to be thread-aware, too.Jarkko Hietaniemi2001-04-191-3/+3
| | | p4raw-id: //depot/perl@9752
* Move the strftime() wrapper from POSIX.xs to util.cJarkko Hietaniemi2001-04-191-0/+66
| | | | | as my_strftime(), requires HAS_STRFTIME. p4raw-id: //depot/perl@9746
* Move the init_tm() and mini_mktime() up from POSIX.xs to util.cJarkko Hietaniemi2001-04-181-0/+237
| | | | | in preparation of Time::Piece. p4raw-id: //depot/perl@9745
* Retract changes #9542 and #9538 (from maintperl, integratedJarkko Hietaniemi2001-04-051-31/+17
| | | | | | | at #9540), shouldn't be needed because of the perlio changes. p4raw-link: @9542 on //depot/perl: 771c8da8a7459d77e0377cf0a891bf62d70cdfa2 p4raw-id: //depot/perl@9552
* Make the stdio tricks of fflush_all() to exist only ifJarkko Hietaniemi2001-04-041-18/+22
| | | | | stdio is being used. p4raw-id: //depot/perl@9542
* Integrate changes #9538,9539 from maintperl into mainline.Jarkko Hietaniemi2001-04-041-1/+11
| | | | | | | | | | | | | | | fflush() is a macro on SunOS 4.1.x, so provide a wrapper for use with _fwalk() (fix for change#7705) another tweak needed for SunOS 4.1.x build (from Mike Guy) (cp -f is not portable) p4raw-link: @9539 on //depot/maint-5.6/perl: 3da0943717409aa5209a9776746cc2cfeb50eb29 p4raw-link: @9538 on //depot/maint-5.6/perl: 741daf9fefb369fa97f8467fc06d60a8832dcdee p4raw-link: @7705 on //depot/perl: 74cac757131a44f884c4728708d3a2e5d87b32d3 p4raw-id: //depot/perl@9540 p4raw-integrated: from //depot/maint-5.6/perl@9536 'merge in' util.c (@9288..) Makefile.SH (@9312..)
* Implement open($fh,"-|",prog,args...) for HAS_FORK cases.Nick Ing-Simmons2001-03-221-0/+118
| | | p4raw-id: //depot/perlio@9297
* Die on n-arg open(...,"",xxx,yyy,...)Nick Ing-Simmons2001-03-221-3/+10
| | | | | | - redirect pipe cases to PerlProc_popen_list() (which just croaks for now) - die on read/write cases so we can decide what it means later. p4raw-id: //depot/perlio@9294
* Abolish USE_WIN32_RTL_ENV.Jarkko Hietaniemi2001-02-231-43/+0
| | | p4raw-id: //depot/perl@8916
* Integrate changes #8853,8854 from maintperl to mainline.Jarkko Hietaniemi2001-02-201-0/+3
| | | | | | | | | | EBDIC fixes, README.win32 Borland update. p4raw-link: @8854 on //depot/maint-5.6/perl: ece00f1416215bb2d7a51174ba7aa627e0b0a3ad p4raw-link: @8853 on //depot/maint-5.6/perl: 3ef34714520621f9238ff67b9f34f043113325c1 p4raw-id: //depot/perl@8857 p4raw-integrated: from //depot/maint-5.6/perl@8851 'merge in' README.win32 (@8175..) handy.h (@8789..) util.c (@8806..)
* Don't skip too much of the locale error message if no environ array,Jarkko Hietaniemi2001-02-141-2/+7
| | | | | from Chris Nandor. p4raw-id: //depot/perl@8804
* environ array wrongly assumed in Perl_init_i18nl10n(),Jarkko Hietaniemi2001-02-131-2/+2
| | | | | noticed by Chris Nandor in MacOS Classic. p4raw-id: //depot/perl@8790
* Merge ebcdic.c (only one function, ebcdic_control()) into util.c.Jarkko Hietaniemi2001-02-131-0/+37
| | | p4raw-id: //depot/perl@8783
* Fix for the fa_IR locale failure. The reason for the failureJarkko Hietaniemi2001-01-301-5/+12
| | | | | | | | | was that Perl was assuming the decimal separator aka the radix separator is one character. The Farsi-Iranian locale crushed that bad assumption since there the separator is 'Momayyez', glyphwise looking somewhat like a slash, and in Unicode UTF-8 encoded in two bytes, 0xd9 0xab. p4raw-id: //depot/perl@8625
* "Safe" signals - trial implementation.Nick Ing-Simmons2001-01-171-0/+4
| | | | | | | | gv.c tweaked to zero PL_sig_pend array perlio.c tweaked to PERL_ASYNC_CHECK() on EINTR util.c tweaked to not set SA_RESTART to give perlio.c a chance. Odd thing is that it "works" with PERLIO=stdio as well (linux). p4raw-id: //depot/perlio@8467
* Under 5.005 threads and debugging crashed in Debian 2.2 Linux/x86Jarkko Hietaniemi2001-01-161-2/+2
| | | | | | | | at the setting of the ofs_sv in new_struct_thread() as the thr->Tofs_sv (PL_ofs_sv) was still 0xabab.... (this is what uninitialized fields are, uh, initialized with), SvREFCNT_inc()ing that invited a core dump. p4raw-id: //depot/perl@8449
* Safe fix for Simon's pclose() doing SvIVX of undef -> core bug.Nick Ing-Simmons2001-01-101-1/+1
| | | p4raw-id: //depot/perlio@8399
* Back out Simon's pid hackery for now.Nick Ing-Simmons2001-01-101-3/+1
| | | p4raw-id: //depot/perlio@8393
* Fix my_pclose segfaultSimon Cozens2001-01-101-1/+3
| | | | | Message-ID: <20010110183934.A25640@pembro26.pmb.ox.ac.uk> p4raw-id: //depot/perl@8391
* Re: [ID 20010105.002] close() on process filehandle leaves defunct processRadu Greab2001-01-051-0/+4
| | | | | Message-ID: <14934.6849.742435.23178@ix.netsoft.ro> p4raw-id: //depot/perl@8340
* Bump up Larry's copyright.Jarkko Hietaniemi2001-01-011-1/+1
| | | p4raw-id: //depot/perl@8289
* Retract #8261.Jarkko Hietaniemi2000-12-301-8/+6
| | | p4raw-id: //depot/perl@8262
* (Retracted by #8261). (Unsuccessful memory access tweaks.)Jarkko Hietaniemi2000-12-301-6/+8
| | | p4raw-id: //depot/perl@8261
* UTF8 output prework.Nick Ing-Simmons2000-12-091-3/+2
| | | | | | - Store $\ and $, as SVs so they can have SvUTF8 flag - use do_print() rather than raw PerlIO_write() to print them. p4raw-id: //depot/perlio@8049
* shrink pp_hot fractionallyNicholas Clark2000-12-051-1/+9
| | | | | | | Message-ID: <20001205124431.E74518@plum.flirble.org> Use report_evil_fh(). p4raw-id: //depot/perl@7990
* dTHR is a nop in 5.6.0 onwards. Ergo, it can go.Jarkko Hietaniemi2000-12-051-18/+0
| | | p4raw-id: //depot/perl@7984
* Go ahead and #include <unistd.h> in perl.h.Jarkko Hietaniemi2000-11-221-5/+0
| | | p4raw-id: //depot/perl@7816
* Make hex scanning warn on "\x{x}" and "\xx".Jarkko Hietaniemi2000-11-191-6/+11
| | | | | "\x" and and hex("x") are still valid. p4raw-id: //depot/perl@7746
* Minor tweaks:Nick Ing-Simmons2000-11-161-47/+49
| | | | | | | | 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
* Add fwalk() probe to the configuration files and regen perltoc.Jarkko Hietaniemi2000-11-161-14/+21
| | | p4raw-id: //depot/perl@7705
* Locale buglets.Vadim Konovalov2000-11-081-1/+1
| | | | | | | Subject: RE: Locales support (setlocale) fixes From: "Konovalov, Vadim" <vkonovalov@lucent.com> Message-ID: <402099F49BEED211999700805FC7359F825283@ru0028exch01.spb.lucent.com> p4raw-id: //depot/perl@7609
* cygwin portFifer, Eric2000-11-071-38/+6
| | | | | | | Message-ID: <779F20BCCE5AD31186A50008C75D99791717BB@silldn_mail1.sanwaint.com> Synchronize with Cygwin 1.1.5. p4raw-id: //depot/perl@7597
* Locales support (setlocale) fixesVadim Konovalov2000-11-041-10/+55
| | | | | | | | From: "Konovalov, Vadim" <vkonovalov@lucent.com> Message-ID: <402099F49BEED211999700805FC7359F82511F@ru0028exch01.spb.lucent.com> Modified quite a bit to be more portable. p4raw-id: //depot/perl@7545
* Add non-blocking thread doneness checkingDan Sugalski2000-10-251-0/+1
| | | | | | | Message-Id: <5.0.0.25.0.20001025133504.01ef1e20@24.8.96.48> plus regen global.sym. p4raw-id: //depot/perl@7442
* Make the UTF-8 decoding stricter and more verbose whenJarkko Hietaniemi2000-10-241-3/+3
| | | | | | | | | | | | malformation happens. This involved adding an argument to utf8_to_uv_chk(), which involved changing its prototype, and prefer STRLEN over I32 for the UTF-8 length, which as a domino effect necessitated changing the prototypes of scan_bin(), scan_oct(), scan_hex(), and reg_uni(). The stricter UTF-8 decoding checking uses Markus Kuhn's UTF-8 Decode Stress Tester from http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt p4raw-id: //depot/perl@7416
* Re: [ID 20001009.004] SEGV from sprintf in a thread Hugo van der Sanden2000-10-101-0/+2
| | | | | Message-Id: <200010101310.OAA00953@hugo.hybyte.com> p4raw-id: //depot/perl@7186
* Introduce NO_ENVIRON_ARRAY (and USE_ENVIRON_ARRAY) definesJarkko Hietaniemi2000-10-031-3/+3
| | | | | as suggested by Olaf Flebbe and Nicholas Clark. p4raw-id: //depot/perl@7126
* Epoc updateOlaf Flebbe2000-10-031-3/+4
| | | | | Message-ID: <26423.969484586@www10.gmx.net> p4raw-id: //depot/perl@7124
* Inside require() $^S was always left undefined.Ilya Zakharevich2000-10-031-1/+1
| | | | | | Subject: Re: Tiny 2-byte change to fix debugger's eval bug Message-ID: <20000927185449.A24927@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@7120
* The return value of setlocale must be copied away.Alan Burlison2000-09-141-3/+29
| | | | | | Subject: [ID 20000913.001] Heap corruption in Perl_init_i18nl10n Message-Id: <39BF9CE9.3D7FBBDD@uk.sun.com> p4raw-id: //depot/perl@7070
* sscanf() may be the only way to read long doubles from strings.Jarkko Hietaniemi2000-08-311-6/+7
| | | p4raw-id: //depot/perl@6937
* Get -DLEAKTEST to compile (not necessarily to work, mind)Jarkko Hietaniemi2000-08-171-1/+6
| | | | | | | | | | | | | | | Subject: [ID 20000724.006] -DLEAKTEST problem From: Gregory Martin Pfeil <pfeilgm@technomadic.org> Date: Tue, 25 Jul 2000 00:36:32 -0500 Message-Id: <20000725003632.A26186@www.llamacom.com> Reminder sent Subject: [PATCH bleadperl@6647] -DLEAKTEST compile error From: Hugo <hv@crypt.compulink.co.uk> Date: Thu, 17 Aug 2000 15:23:42 +0100 Message-Id: <200008171423.PAA06749@crypt.compulink.co.uk> p4raw-id: //depot/perl@6674
* on windows, the return values from wait() and waitpid() don'tGurusamy Sarathy2000-08-161-0/+2
| | | | | match those of pseudo-pids p4raw-id: //depot/perl@6659