summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* New try at the Class::DBI core dump at global cleanup.Jarkko Hietaniemi2002-05-021-2/+1
| | | p4raw-id: //depot/perl@16325
* Dodge a NULL pointer dereference in cleanup of Class::DBIJarkko Hietaniemi2002-04-301-4/+6
| | | | | 0.86's t/04-lazy.t, caught by Tatsuhiko Miyagawa. p4raw-id: //depot/perl@16277
* $fh->close(); print $fh "foo" would segfault under -w inAbhijit Menon-Sen2002-04-251-1/+2
| | | | | report_evil_fh() because $fh doesn't have a name. p4raw-id: //depot/perl@16166
* fixes for all the warnings reported by Visual C (most of thisGurusamy Sarathy2002-04-211-4/+7
| | | | | | change is from change#12026) p4raw-link: @12026 on //depot/maint-5.6/perl: ff42b73b40f5a895aef4bed81c794f468e0609bc p4raw-id: //depot/perl@16048
* Windows 64-bit support:Gurusamy Sarathy2002-04-211-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* New descriptions for savepv*(), as suggested by Gisle Aas.Abhijit Menon-Sen2002-04-081-6/+10
| | | p4raw-id: //depot/perl@15798
* Fix prototypes of save{,shared}pv{,n} (s/sv/pv/) as suggested byAbhijit Menon-Sen2002-04-081-11/+11
| | | | | Simon Cozens. p4raw-id: //depot/perl@15796
* EPOC tweaks from Olaf Flebbe.Jarkko Hietaniemi2002-04-031-2/+2
| | | p4raw-id: //depot/perl@15718
* DJGPP tweaks from Laszlo.Jarkko Hietaniemi2002-04-011-0/+4
| | | p4raw-id: //depot/perl@15650
* microperl tweaks.Jarkko Hietaniemi2002-03-241-4/+4
| | | p4raw-id: //depot/perl@15470
* Purify: Array bounds read: reading one byte before the buffer.Jarkko Hietaniemi2002-03-231-1/+1
| | | p4raw-id: //depot/perl@15437
* Even better version from Olaf Flebbe.Jarkko Hietaniemi2002-03-221-1/+1
| | | p4raw-id: //depot/perl@15427
* EPOC update from Olaf Flebbe.Jarkko Hietaniemi2002-03-221-5/+6
| | | p4raw-id: //depot/perl@15426
* return at the wrong side of #endif.Jarkko Hietaniemi2002-03-181-1/+2
| | | p4raw-id: //depot/perl@15279
* Monster _r patch: try to scan for all known _r variants,Jarkko Hietaniemi2002-03-151-11/+0
| | | | | | | | | | | | | | | | | and then use them (under ithreads). May fail in HP-UX, and the op/groups is known to be fickle everywhere. Known to work in Solaris, Linux, Tru64, IRIX, AIX. (Some compiler warnings in AIX since the first arguments of getnetbyaddr and getnetbyadd_r are of different types. Thanks, IBM.) In non-Configure platforms deny the existence of any of the _r thingies. (Also add the recently introduced d_tm_* to places it wasn't already in.) TODO: the suggested glibc buffer growth retry loop in case some entries (at least for: gr*, host*) are big. Forgot win32/config.win64. p4raw-id: //depot/perl@15238
* more warnings tidyupPaul Marquess2002-03-111-7/+7
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEEGDPAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15155
* Renaming tweaks, and split off the reentrant "superbuffer"Jarkko Hietaniemi2002-03-101-0/+9
| | | | | init routine. p4raw-id: //depot/perl@15139
* Retract #14985, #14899, and #14990, following the principlesJarkko Hietaniemi2002-03-071-37/+0
| | | | | | | | | | | | "Do no harm." and "If it ain't broke, don't fix it." Firstly, the #14985 broke badly on UTF-EBCDIC, #14990 fixed some, but still broken, and I do not have the extra brain cells for the EBCDIC backport. Secondly, the old version worked both in EBCDIC and non-. Thirdly, the old version may be more amenable for the behaviour suggsted by Anton Tagunov regarding the encoding pragma. p4raw-id: //depot/perl@15084
* Use HAS_TM_TM_ZONE (from #15065). Should helpJarkko Hietaniemi2002-03-061-9/+11
| | | | | [ID 20020305.022] POSIX::strftime dumps core: STRUCT_TM_HASZONE should be set p4raw-id: //depot/perl@15067
* Attempt at portability.Jarkko Hietaniemi2002-03-041-5/+9
| | | p4raw-id: //depot/perl@14990
* sv_cmp and friendsIlya Zakharevich2002-03-041-0/+33
| | | | | | Message-Id: <20020304023103.A14140@math.ohio-state.edu> p4raw-link: @14577 on //depot/perl: 0ad5258ff3f3328f321188cbb4fcd6a74b365431 p4raw-id: //depot/perl@14985
* EBCDIC: the v-string components cannot exceed 2147483647.Jarkko Hietaniemi2002-03-031-20/+24
| | | p4raw-id: //depot/perl@14963
* Tied STDERR should catch messages from warn() and die()Audrey Tang2002-02-171-0/+16
| | | | | Message-ID: <20020217194647.A1410@not.autrijus.org> p4raw-id: //depot/perl@14727
* CopFILE / MacPerl_MPWFileNameChris Nandor2002-02-081-1/+1
| | | | | Message-ID: <pudge-10FC3D.16314108022002@onion.valueclick.com> p4raw-id: //depot/perl@14608
* Integrate mainlineNick Ing-Simmons2002-01-251-1/+1
| | | | | All but ../lib/Unicode/UCD.t pass. p4raw-id: //depot/perlio@14412
* Integrate mainlineNick Ing-Simmons2002-01-201-1/+7
| | | p4raw-id: //depot/perlio@14362
* Nearly-working threads re-structuring. Do not integrate,Nick Ing-Simmons2002-01-191-0/+49
| | | | | submit-ing to get to Win32, and as "off site" backup. p4raw-id: //depot/perlio@14352
* Split out core of sv_magic() into sv_magicext().Nick Ing-Simmons2002-01-181-3/+10
| | | | | | | | | | | | | | | | sv_magic provides the extra restictions (no READONLY, only one of each type, canned set of vtables), and sv_magicext() does the actual data twiddling. Also enhances semantics of ->mg_ptr setting via name/namlen to allow either an uncopied ptr (namlen == 0), or a Newz()ed scratch area (namlen > 0 && name == NULL). sv_magicext also returns the MAGIC * it added. sv_magicext is intended mainly for PERL_MAGIC_ext (~) magic. To come sv_unmagicext() - which will remove just one magic of particular type, and additionaly match against ->mg_ptr, or the MAGIC * (need to experiment as to which is more natural). p4raw-id: //depot/perlio@14335
* const-ness fix in savepv's passing of NULLNick Ing-Simmons2002-01-151-3/+3
| | | p4raw-id: //depot/perlio@14268
* Use PerlMemShared for CopSTASHPV and CopFILE. MUCH harder than it sounds!Nick Ing-Simmons2002-01-141-4/+26
| | | | | | | | | | | | Need to use CopXXXXX macros everywhere and add CopSTASH_free Add new scope type and add support for it to scope.c and scope stack dup-er in sv.c. Add savesharedpv(). Also zealous version of Win32's vmem.h to catch all the abuses. With this t/op/fork.t passes even with zealous checking and checker is point a finger at various threads/shared issues. PL_curcop->cop_io is still an issue. p4raw-id: //depot/perlio@14259
* If we do have socketpair(), make my_socketpair()Jarkko Hietaniemi2002-01-041-0/+9
| | | | | | | just call the real socketpair(). This way we always have real code behind my_socketpair() and a symbol corresponding to the my_socketpair in global.sym. p4raw-id: //depot/perl@14068
* Missed the =head1 additions.Jarkko Hietaniemi2002-01-031-0/+11
| | | p4raw-id: //depot/perl@14041
* Win32 stuff:Nick Ing-Simmons2001-12-301-22/+26
| | | | | | | | A. Use Perl_my_socketpair() B. Use PerlSock_xxxx() rather than raw xxxx() so we get to load winsock. C. (In passing) work round fact that $$ is now SvREADONLY so we need to take special measures to set it during pseudo-fork. p4raw-id: //depot/perlio@13959
* VOS tweaks from Paul Green.Jarkko Hietaniemi2001-12-291-0/+6
| | | | | | | The Configure tweaks: the _exe needs to be set after the init; VOS has fd 3 hardwired to /dev/tty; the grep/ln/make substitutions really need to stick. p4raw-id: //depot/perl@13932
* Pod whitespace cleanup, round 0. coral@eekeek.org2001-12-291-2/+2
| | | | | Message-Id: <200112290058.fBT0wMD26750@eekeek.org> p4raw-id: //depot/perl@13930
* socketpair tweaks from Nicholas Clark.Jarkko Hietaniemi2001-12-291-3/+5
| | | p4raw-id: //depot/perl@13921
* Re: [ PATCH ] Cygwin groups.t (PLEASE CHECK)Nicholas Clark2001-12-261-3/+3
| | | | | | | Message-ID: <20011226190732.J48842@plum.flirble.org> socketpair() (un)signedness nit. p4raw-id: //depot/perl@13893
* No AF_UNIX in BeOS.Jarkko Hietaniemi2001-12-261-1/+5
| | | p4raw-id: //depot/perl@13887
* Re: Not OK 13881John Peacock2001-12-251-0/+19
| | | | | Message-ID: <3C285CB4.8040006@rowman.com> p4raw-id: //depot/perl@13883
* socketpair emulationNicholas Clark2001-12-231-0/+221
| | | | | Message-ID: <20011222183817.A12020@Bagpuss.unfortu.net> p4raw-id: //depot/perl@13858
* OS/2 buildIlya Zakharevich2001-12-191-0/+3
| | | | | | | Message-ID: <20011219024541.A29803@math.ohio-state.edu> (skipped the t/TEST change) p4raw-id: //depot/perl@13805
* alarm.t with -Uuseperlio fixNick Ing-Simmons2001-12-191-2/+2
| | | | | | - SA_RESTART should only be function of PERL_OLD_SIGNALS not USE_PERLIO p4raw-id: //depot/perlio@13796
* Fix for alarm() breaking into wait*().Nick Ing-Simmons2001-12-171-6/+9
| | | | | | Call PERL_ASYNC_CHECK() on EINTR in Perl_wait4pid(), to dispatch signal handler before caller re-does the system call. p4raw-id: //depot/perlio@13724
* Various small nits found by DJGPP build.Jarkko Hietaniemi2001-12-021-1/+1
| | | p4raw-id: //depot/perl@13427
* change#3373 introduced a handle leak in backticks and piped open()sGurusamy Sarathy2001-11-251-0/+2
| | | | | | | that fail p4raw-link: @3373 on //depot/perl: e446cec8f170ecc3eabea80092ef64589855e167 p4raw-id: //depot/perl@13260
* $$ readonly, take twoMichael G. Schwern2001-11-251-1/+4
| | | | | Message-ID: <20011124195618.A14614@blackrider> p4raw-id: //depot/perl@13252
* v-strings as Objects Step 1John Peacock2001-11-151-0/+73
| | | | | Message-ID: <3BF3FE30.70D7EDCA@rowman.com> p4raw-id: //depot/perl@13028
* a few typo fixes Jeffrey Friedl2001-11-121-1/+1
| | | | | | | | | | | Message-Id: <200111120515.fAC5FIc74795@ventrue.corp.yahoo.com> Patching README.foo instead of pod/perlfoo.pod, not patching Math::BigInt (Tels will take care of that), dropping broken hv.c and sv.h patches, patching libnetcfg.PL and perldoc.PL instead of libnetcfg and perldoc, patching ext/Digest/MD5/t/files.t since MD5.pm was changed. p4raw-id: //depot/perl@12954
* [patch] my_setenv speedup + fixesDoug MacEachern2001-11-101-11/+32
| | | | | Message-Id: <Pine.LNX.4.21.0111091808500.22397-100000@localhost> p4raw-id: //depot/perl@12926
* Integrate change #12752 from maintperl;Jarkko Hietaniemi2001-10-291-0/+3
| | | | | | | | | | | croak(Nullch) wasn't printing the contents of ERRSV if there was no outer eval (bug in change#6125) p4raw-link: @12752 on //depot/maint-5.6/perl: f106aadabce363af9302c25bec7308d85ddd04a2 p4raw-link: @6125 on //depot/perl: 9983fa3c886b6f0a857997142e62341929a9b601 p4raw-id: //depot/perl@12754 p4raw-integrated: from //depot/maint-5.6/perl@12753 'merge in' util.c (@12668..)