The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

POSIX::1003::Pathconf - POSIX access to pathconf()

INHERITANCE

 POSIX::1003::Pathconf
   is a POSIX::1003

SYNOPSIS

  use POSIX::1003::Pathconf;   # import all

  use POSIX::1003::Pathconf 'pathconf';
  my $max    = pathconf($filename, '_PC_PATH_MAX');

  use POSIX::1003::Pathconf '_PC_PATH_MAX';
  my $max    = _PC_PATH_MAX($filename);

  use POSIX::1003::Pathconf qw(pathconf %pathconf);
  my $key    = $pathconf{_PC_PATH_MAX};
  $pathconf{_PC_NEW_KEY} = $value
  foreach my $name (keys %pathconf) ...

  use POSIX::1003::Pathconf qw(fpathconf);
  use POSIX::1003::FdIO     qw(openfd);
  use Fcntl                 qw(O_RDONLY);
  my $fd     = openfd $fn, O_RDONLY;
  my $max    = fpathconf $fd, '_PC_PATH_MAX';
  my $max    = _PC_PATH_MAX($fd);

  foreach my $pc (pathconf_names) ...

FUNCTIONS

Standard POSIX

fpathconf(FD, NAME)

Returns the numeric value related to the NAME or undef.

pathconf(FILENAME, NAME)

Returns the numeric value related to the NAME or undef.

Additional

pathconf_names()

Returns a list with all known names, unsorted.

CONSTANTS

%pathconf

This exported variable is a tied HASH which maps _PC_* names on unique numbers, to be used with the system's pathconf() and fpathconf() functions.

The following constants where detected on your system when the module got installed. The second column shows the value which where returned for a random file at the time.

   If you install the module, the table will be filled-in here

SEE ALSO

This module is part of POSIX-1003 distribution version 0.10, built on January 04, 2012. Website: http://perl.overmeer.net. The code is based on POSIX, which is released with Perl itself.

COPYRIGHTS

Copyrights of the perl code and the related documentation by 2011-2012 by Mark Overmeer. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html