summaryrefslogtreecommitdiff
path: root/ext/Fcntl
Commit message (Collapse)AuthorAgeFilesLines
* avoid sysread()/syswrite() warnings from the default :utf8 from PERL_UNICODETony Cook2017-09-202-1/+6
| | | | | | | | | | | | In a UTF-8 locale, if the PERL_UNICODE environment variable is set, perl may add a :utf8 layer. v5.23.1-197-gfb10a8a deprecated using sysread(), syswrite() etc on such handles, which meant that a test run under PERL_UNICODE could produce a significant number of deprecation warnings. Prevent those warnings, typically by binmode(), but in one case by disabling the warning.
* Switch most open() calls to three-argument form.John Lightsey2016-12-231-1/+1
| | | | | | | | | | Switch from two-argument form. Filehandle cloning is still done with the two argument form for backward compatibility. Committer: Get all porting tests to pass. Increment some $VERSIONs. Run: ./perl -Ilib regen/mk_invlists.pl; ./perl -Ilib regen/regcharclass.pl For: RT #130122
* ext/Fcntl/Makefile.PL: Make S_IFMT unsignedTony Cook2014-11-281-1/+1
| | | | | | See <20141126223250.GS19835@mars.tony.develop-help.com> S_IFMT on os390 has the upper bit set but Perl is expecting an unsigned, so force it to be so.
* Add support for Linux pipe buffer size fcntl commandsDagfinn Ilmari Mannsåker2014-10-132-3/+5
| | | | | This lets us make t/io/eintr.t more reliable by making sure we're actually writing more than the buffer size.
* Version bump for e6425454.Jarkko Hietaniemi2014-10-081-1/+1
|
* Add various *BSD O_ constants.Jarkko Hietaniemi2014-10-082-6/+11
|
* bump version of many modulesZefram2010-12-191-1/+1
| | | | | Core-only modules that have changed from v5.13.7, and dual-life modules that have changed from v5.13.7 and didn't show up in earlier passes.
* Convert ext/Fcntl/t/syslfs.t to Test::More and t/op/lfs.t to test.plNicholas Clark2010-12-141-49/+22
|
* In Fcntl's syslfs.t and t/op/lfs.t, eliminate bye().Nicholas Clark2010-12-141-21/+14
| | | | | | | | Its cleanup actions are implicit in the END block, so replace C<warn ...; bye>; with C<die ...> and other calls of C<bye;> with C<exit 0;> Also, remove the newlines from the strings passed to die, to make the diagnostics more useful for locating failures.
* In Fcntl's syslfs.t and t/op/lfs.t, eliminate zap().Nicholas Clark2010-12-141-7/+1
| | | | | | Now that we're using tempfiles, it no longer contains code to unlink the test files, only a close. Inline the C<close BIG> into bye(), and remove the other call to zap(), which was immediately after an explicit close of BIG.
* Refactor syslfs.t and lfs.t to call bye() directly from explain() when skipping.Nicholas Clark2010-12-141-4/+4
| | | | This will make it easier to refactoring to use Test::More/test.pl
* Convert ext/Fcntl/t/syslfs.t to File::TempNicholas Clark2010-12-141-29/+30
| | | | This reduces the differences between ext/Fcntl/t/syslfs.t and t/op/lfs.t
* Reduce inconsistencies between ext/Fcntl/t/syslfs.t and t/op/lfs.tNicholas Clark2010-12-141-6/+9
| | | | | | The two are testing the same functionality, and comments in each reference the other. However, the two have diverged, sometimes in the same commit, sometimes when corrections have been applied to only one. (eg 972720f939262dd0)
* Check return values in the test programs run by syslfs.t and lfs.tNicholas Clark2010-12-141-3/+4
| | | | | | Also fix a bug introduced in 1c25d394345c1b97, which accidentally neutered the test program of t/op/lfs.t, causing it to attempt to open an empty file, and hence do nothing and then always exit with 0.
* fix various compiler warnings from XS codeZefram2010-12-111-1/+1
| | | | | | | | | | | Trivial changes to fix warnings of types * unclear precedence * assignment as conditional * signed/unsigned mixing * unused parameter/variable * value computed not used * wrong argument type for a printf format * variable may be used uninitialised (due to unhandled switch case)
* Increase Fcntl’s versionFather Chrysostomos2010-10-271-1/+1
|
* Convert Fcntl, File::Glob, I18N::Langinfo and Socket to an XS AUTOLOAD.Nicholas Clark2010-10-212-8/+2
| | | | | All 4 use ExtUtils::Constant::ProxySubs, and only have an AUTOLOAD to deal with failed constant lookups.
* Convert Fcntl, File::Glob, I18N::Langinfo, POSIX and Socket to croak_on_error.Nicholas Clark2010-10-212-10/+3
| | | | | This is possible because all 5 use ExtUtils::Constant::ProxySubs, so the constant() routine is only used for error conditions.
* In Fcntl.xs, correct the conditional compilation of S_ISENFMT.Nicholas Clark2010-10-201-1/+1
| | | | Fixes a bug in 96d24b8ce2ce0411.
* Make Fcntl::AUTOLOAD's error messages consistent with croak() using modules.Nicholas Clark2010-10-192-1/+33
| | | | | | | | Fcntl avoids using Carp::croak(), but its code was adding a full stop at the end of all error messages. Other modules are using croak(), which has no full stop between the line number and the newline. Add a test for the error messages from Fcntl::AUTOLOAD.
* Fcntl, POSIX and Socket can all use Proxy Constant Subs unconditionally.Nicholas Clark2010-10-191-1/+1
| | | | | | | Previously each Makefile.PL had conditional code to only use them post 5.9.2, so that the code would not diverge between blead and maint-5.8. That isn't an important consideration any longer, whereas removing the conditional code here will allow their AUTOLOAD routines to be simplified.
* Fix C++ build for Fcntl.xs.Nicholas Clark2010-10-191-3/+2
| | | | 96d24b8ce2ce0411 wasn't C++ friendly.
* Express @Fcntl::EXPORT_OK in terms of %Fcntl::EXPORT_TAGS.Nicholas Clark2010-10-181-49/+22
| | | | | | This reduces quite a lot of repetition of symbol names. Note that '&SUBNAME' and 'SUBNAME' are interchangeable to Exporter.
* Convert Fcntl::S_IFMT to XS.Nicholas Clark2010-10-183-12/+18
| | | | | This removes the requirement to call XSLoader::load() at BEGIN time, which simplifies the Perl code further.
* Convert Fcntl::S_IMODE to XS.Nicholas Clark2010-10-183-5/+21
|
* Convert Fcntl::S_IS{LNK,SOCK,BLK,CHR,FIFO,WHT,ENFMT} to XS.Nicholas Clark2010-10-182-26/+65
| | | | | This reduces the memory usage of Fcntl by quite a bit, as the same XSUB is used by all 9 S_IS* functions.
* Convert Fcntl::{S_ISREG,S_ISDIR} to XS.Nicholas Clark2010-10-183-5/+34
| | | | | | | | I estimate that this saves 294 bytes in Perl space (per thread, or per-process if memory pages become unshared after forking), but costs only 232 bytes in the shared object (should always remain shared between threads and processes). Oh, and it's XS code, and avoids 2 Perl subroutine calls.
* Fix Fcntl::S_ISENFMT(), which could never have worked before.Nicholas Clark2010-10-182-6/+66
| | | | | | | | S_ISENFMT() and S_ISWHT() were added in 2000 as part of commit ca6e1c26e8ac218f. 1a16747c2ea1992d (2 weeks later) intended to fix the copy/paste error in that previous commit which would prevent either from working. It did fix S_ISWHT(). However, there was a second error in the definition of S_ISEMFMT() which was never picked up - S_ENFMT(), not S_IFENFMT().
* Convert modules in ext/ to pass minimal arguments to XSLoader::load().Nicholas Clark2010-10-141-3/+3
|
* Convert Fcntl and PerlIO::encoding's tests to Test::More.Nicholas Clark2010-06-301-5/+1
| | | | Remove one vestigial mention of MacOS.
* Check that sparse files hold at least a block (bug in eCryptfs: ↵Leon Brocard2010-03-241-1/+2
| | | | https://bugs.launchpad.net/ecryptfs/+bug/390833)
* stop skipping ext/Fcntl/t/syslfs.tDavid Mitchell2010-02-211-1/+7
| | | | | | | | Since the module reorganisation and now that tests run cd'ed to ext/Fcntl, expecting to run ../perl no longer works. Also, for the benefit of future generations, make the inability to find perl a failure rather than a skip, with a more relevant error message.
* Make extensions in ext run their tests from the extension's own directory.Nicholas Clark2009-08-283-10/+1
| | | | | | | | | | | Inspired by, and in parts borrows from, Schwern's branch on github, but takes a slightly different approach in places. Not quite perfect yet - ext/File-Glob still runs from t, at least one FIXME needs fixing, and the changes to dual-life modules' tests need to be filtered back upstream, and possibly modified to suit their respective authors. But it works.
* Remove now-redundant references to MAN3PODS in core modules' Makefile.PLs.Nicholas Clark2009-03-261-1/+0
|
* [admin] set up .gitignore filesSam Vilain2008-12-191-0/+1
| | | | | A list submitted by Paul Fenwick was briefly factored into directory-specific rules.
* fixed Fcntl::S_IFMT() breakage introduced by change 30674 (blead 26701)Alexey Tourbin2007-04-262-11/+30
| | | | | Message-ID: <20070425141222.GA24828@solemn.turbinal> p4raw-id: //depot/perl@31080
* Only use proxy constant subroutines for 5.9.x.Nicholas Clark2007-03-211-1/+1
| | | p4raw-id: //depot/perl@30671
* Reorder Fcntl's bootstrapping so that the constants actually getNicholas Clark2006-01-071-13/+19
| | | | | inlined within the functions that Fcntl defines. p4raw-id: //depot/perl@26701
* Make ExtUtils::Constant generate the inlineable proxy constant subs.Nicholas Clark2005-12-221-0/+1
| | | | | So far just enough to make Fcntl work. p4raw-id: //depot/perl@26453
* Typo tweaks from Gerrit P. Haase. Fcntl, fcntl, fcntl.Jarkko Hietaniemi2003-08-181-2/+2
| | | p4raw-id: //depot/perl@20764
* Re: script wantedNicholas Clark2003-08-131-1/+1
| | | | | Message-ID: <20030813204609.G20130@plum.flirble.org> p4raw-id: //depot/perl@20686
* And even more glibc fcntl constants, this time mostly F_XXX.Jarkko Hietaniemi2003-06-162-24/+43
| | | | | Be more conservative and use @EXPORT_OK instead of @EXPORT. p4raw-id: //depot/perl@19798
* Even more glibc O_ modes.Jarkko Hietaniemi2003-06-162-8/+12
| | | p4raw-id: //depot/perl@19797
* Add O_NOATIME.Jarkko Hietaniemi2003-06-162-14/+19
| | | p4raw-id: //depot/perl@19796
* integrate 5.8-maint: changes #18174 18187 18189-92 18202 18209 18214-5Hugo van der Sanden2002-12-021-3/+3
| | | | | | | | | | | | | | | p4raw-link: @18189 on //depot/maint-5.8/perl: 27314835b1b1ea8730d4a0eb871861ac238c63f9 p4raw-link: @18187 on //depot/maint-5.8/perl: 94e81ce4c47784f86829e70129b1d0a3e95ca51c p4raw-link: @18174 on //depot/maint-5.8/perl: f8d24d869503bcd9df0e86aa5898c89996220bf8 p4raw-id: //depot/perl@18221 p4raw-branched: from //depot/maint-5.8/perl@18220 'branch in' ext/POSIX/t/is.t p4raw-integrated: from //depot/maint-5.8/perl@18220 'copy in' README.os2 ext/GDBM_File/GDBM_File.pm ext/GDBM_File/Makefile.PL lib/Unicode/UCD.pm t/op/subst.t (@17645..) INSTALL t/op/grep.t (@18080..) ext/Fcntl/t/syslfs.t t/op/lfs.t (@18133..) 'merge in' t/op/eval.t (@17645..) pod/perldiag.pod (@18146..) lib/Unicode/UCD.t (@18156..) MANIFEST (@18173..)
* [perl #18065] LFS related bug in perl-5.8.0 testsuitedavid@dhaller.de2002-11-071-1/+5
| | | | | | From: "david@dhaller.de (via RT)" <perlbug@perl.org> Message-Id: <rt-18065-40384.14.044473925414@bugs6.perl.org> p4raw-id: //depot/perl@18122
* Re: autom4te and perl 5.8.0Andy Dougherty2002-07-041-2/+19
| | | | | | | Message-ID: <Pine.SOL.4.10.10207031150540.6601-100000@maxwell.phys.lafayette.edu> (with an additional paranoid nit : skip test unless -c $devnull) p4raw-id: //depot/perl@17398
* Re: [ID 20020305.026] Not OK: perl v5.7.3 +DEVEL15046 on sun4-solaris 2.7Nicholas Clark2002-03-191-0/+1
| | | | | Message-ID: <20020319215246.GC311@Bagpuss.unfortu.net> p4raw-id: //depot/perl@15338
* (was Re: [PATCH @13746] h2xs)Nicholas Clark2002-03-042-4/+3
| | | | | Message-ID: <20020304224837.GA4284@Bagpuss.unfortu.net> p4raw-id: //depot/perl@15023
* & what's to be done for 5.8.0? Nicholas Clark2001-10-081-0/+5
| | | | | Message-ID: <20011007205333.S38756@plum.flirble.org> p4raw-id: //depot/perl@12356