diff --git a/data/miniconda3/man/man3/App%3A%3ACpan.3 b/data/miniconda3/man/man3/App%3A%3ACpan.3 new file mode 100644 index 0000000000000000000000000000000000000000..39d2b4930414d51d8cc96b2e3a8fa197b794f0f3 --- /dev/null +++ b/data/miniconda3/man/man3/App%3A%3ACpan.3 @@ -0,0 +1,446 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "App::Cpan 3" +.TH App::Cpan 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +App::Cpan \- easily interact with CPAN from the command line +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # with arguments and no switches, installs specified modules +\& cpan module_name [ module_name ... ] +\& +\& # with switches, installs modules with extra behavior +\& cpan [\-cfFimtTw] module_name [ module_name ... ] +\& +\& # use local::lib +\& cpan \-I module_name [ module_name ... ] +\& +\& # one time mirror override for faster mirrors +\& cpan \-p ... +\& +\& # with just the dot, install from the distribution in the +\& # current directory +\& cpan . +\& +\& # without arguments, starts CPAN.pm shell +\& cpan +\& +\& # without arguments, but some switches +\& cpan [\-ahpruvACDLOPX] +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This script provides a command interface (not a shell) to \s-1CPAN.\s0 At the +moment it uses \s-1CPAN\s0.pm to do the work, but it is not a one-shot command +runner for \s-1CPAN\s0.pm. +.SS "Options" +.IX Subsection "Options" +.IP "\-a" 4 +.IX Item "-a" +Creates a \s-1CPAN\s0.pm autobundle with CPAN::Shell\->autobundle. +.IP "\-A module [ module ... ]" 4 +.IX Item "-A module [ module ... ]" +Shows the primary maintainers for the specified modules. +.IP "\-c module" 4 +.IX Item "-c module" +Runs a `make clean` in the specified module's directories. +.IP "\-C module [ module ... ]" 4 +.IX Item "-C module [ module ... ]" +Show the \fIChanges\fR files for the specified modules +.IP "\-D module [ module ... ]" 4 +.IX Item "-D module [ module ... ]" +Show the module details. This prints one line for each out-of-date module +(meaning, modules locally installed but have newer versions on \s-1CPAN\s0). +Each line has three columns: module name, local version, and \s-1CPAN\s0 +version. +.IP "\-f" 4 +.IX Item "-f" +Force the specified action, when it normally would have failed. Use this +to install a module even if its tests fail. When you use this option, +\&\-i is not optional for installing a module when you need to force it: +.Sp +.Vb 1 +\& % cpan \-f \-i Module::Foo +.Ve +.IP "\-F" 4 +.IX Item "-F" +Turn off \s-1CPAN\s0.pm's attempts to lock anything. You should be careful with +this since you might end up with multiple scripts trying to muck in the +same directory. This isn't so much of a concern if you're loading a special +config with \f(CW\*(C`\-j\*(C'\fR, and that config sets up its own work directories. +.IP "\-g module [ module ... ]" 4 +.IX Item "-g module [ module ... ]" +Downloads to the current directory the latest distribution of the module. +.IP "\-G module [ module ... ]" 4 +.IX Item "-G module [ module ... ]" +\&\s-1UNIMPLEMENTED\s0 +.Sp +Download to the current directory the latest distribution of the +modules, unpack each distribution, and create a git repository for each +distribution. +.Sp +If you want this feature, check out Yanick Champoux's \f(CW\*(C`Git::CPAN::Patch\*(C'\fR +distribution. +.IP "\-h" 4 +.IX Item "-h" +Print a help message and exit. When you specify \f(CW\*(C`\-h\*(C'\fR, it ignores all +of the other options and arguments. +.IP "\-i module [ module ... ]" 4 +.IX Item "-i module [ module ... ]" +Install the specified modules. With no other switches, this switch +is implied. +.IP "\-I" 4 +.IX Item "-I" +Load \f(CW\*(C`local::lib\*(C'\fR (think like \f(CW\*(C`\-I\*(C'\fR for loading lib paths). Too bad +\&\f(CW\*(C`\-l\*(C'\fR was already taken. +.IP "\-j Config.pm" 4 +.IX Item "-j Config.pm" +Load the file that has the \s-1CPAN\s0 configuration data. This should have the +same format as the standard \fICPAN/Config.pm\fR file, which defines +\&\f(CW$CPAN::Config\fR as an anonymous hash. +.Sp +If the file does not exist, \f(CW\*(C`cpan\*(C'\fR dies. +.IP "\-J" 4 +.IX Item "-J" +Dump the configuration in the same format that \s-1CPAN\s0.pm uses. This is useful +for checking the configuration as well as using the dump as a starting point +for a new, custom configuration. +.IP "\-l" 4 +.IX Item "-l" +List all installed modules with their versions +.IP "\-L author [ author ... ]" 4 +.IX Item "-L author [ author ... ]" +List the modules by the specified authors. +.IP "\-m" 4 +.IX Item "-m" +Make the specified modules. +.IP "\-M mirror1,mirror2,..." 4 +.IX Item "-M mirror1,mirror2,..." +A comma-separated list of mirrors to use for just this run. The \f(CW\*(C`\-P\*(C'\fR +option can find them for you automatically. +.IP "\-n" 4 +.IX Item "-n" +Do a dry run, but don't actually install anything. (unimplemented) +.IP "\-O" 4 +.IX Item "-O" +Show the out-of-date modules. +.IP "\-p" 4 +.IX Item "-p" +Ping the configured mirrors and print a report +.IP "\-P" 4 +.IX Item "-P" +Find the best mirrors you could be using and use them for the current +session. +.IP "\-r" 4 +.IX Item "-r" +Recompiles dynamically loaded modules with CPAN::Shell\->recompile. +.IP "\-s" 4 +.IX Item "-s" +Drop in the \s-1CPAN\s0.pm shell. This command does this automatically if you don't +specify any arguments. +.IP "\-t module [ module ... ]" 4 +.IX Item "-t module [ module ... ]" +Run a `make test` on the specified modules. +.IP "\-T" 4 +.IX Item "-T" +Do not test modules. Simply install them. +.IP "\-u" 4 +.IX Item "-u" +Upgrade all installed modules. Blindly doing this can really break things, +so keep a backup. +.IP "\-v" 4 +.IX Item "-v" +Print the script version and \s-1CPAN\s0.pm version then exit. +.IP "\-V" 4 +.IX Item "-V" +Print detailed information about the cpan client. +.IP "\-w" 4 +.IX Item "-w" +\&\s-1UNIMPLEMENTED\s0 +.Sp +Turn on cpan warnings. This checks various things, like directory permissions, +and tells you about problems you might have. +.IP "\-x module [ module ... ]" 4 +.IX Item "-x module [ module ... ]" +Find close matches to the named modules that you think you might have +mistyped. This requires the optional installation of Text::Levenshtein or +Text::Levenshtein::Damerau. +.IP "\-X" 4 +.IX Item "-X" +Dump all the namespaces to standard output. +.SS "Examples" +.IX Subsection "Examples" +.Vb 2 +\& # print a help message +\& cpan \-h +\& +\& # print the version numbers +\& cpan \-v +\& +\& # create an autobundle +\& cpan \-a +\& +\& # recompile modules +\& cpan \-r +\& +\& # upgrade all installed modules +\& cpan \-u +\& +\& # install modules ( sole \-i is optional ) +\& cpan \-i Netscape::Booksmarks Business::ISBN +\& +\& # force install modules ( must use \-i ) +\& cpan \-fi CGI::Minimal URI +\& +\& # install modules but without testing them +\& cpan \-Ti CGI::Minimal URI +.Ve +.SS "Environment variables" +.IX Subsection "Environment variables" +There are several components in \s-1CPAN\s0.pm that use environment variables. +The build tools, ExtUtils::MakeMaker and Module::Build use some, +while others matter to the levels above them. Some of these are specified +by the Perl Toolchain Gang: +.PP +Lancaster Concensus: +.PP +Oslo Concensus: +.IP "\s-1NONINTERACTIVE_TESTING\s0" 4 +.IX Item "NONINTERACTIVE_TESTING" +Assume no one is paying attention and skips prompts for distributions +that do that correctly. \f(CWcpan(1)\fR sets this to \f(CW1\fR unless it already +has a value (even if that value is false). +.IP "\s-1PERL_MM_USE_DEFAULT\s0" 4 +.IX Item "PERL_MM_USE_DEFAULT" +Use the default answer for a prompted questions. \f(CWcpan(1)\fR sets this +to \f(CW1\fR unless it already has a value (even if that value is false). +.IP "\s-1CPAN_OPTS\s0" 4 +.IX Item "CPAN_OPTS" +As with \f(CW\*(C`PERL5OPT\*(C'\fR, a string of additional \f(CWcpan(1)\fR options to +add to those you specify on the command line. +.IP "\s-1CPANSCRIPT_LOGLEVEL\s0" 4 +.IX Item "CPANSCRIPT_LOGLEVEL" +The log level to use, with either the embedded, minimal logger or +Log::Log4perl if it is installed. Possible values are the same as +the \f(CW\*(C`Log::Log4perl\*(C'\fR levels: \f(CW\*(C`TRACE\*(C'\fR, \f(CW\*(C`DEBUG\*(C'\fR, \f(CW\*(C`INFO\*(C'\fR, \f(CW\*(C`WARN\*(C'\fR, +\&\f(CW\*(C`ERROR\*(C'\fR, and \f(CW\*(C`FATAL\*(C'\fR. The default is \f(CW\*(C`INFO\*(C'\fR. +.IP "\s-1GIT_COMMAND\s0" 4 +.IX Item "GIT_COMMAND" +The path to the \f(CW\*(C`git\*(C'\fR binary to use for the Git features. The default +is \f(CW\*(C`/usr/local/bin/git\*(C'\fR. +.SS "Methods" +.IX Subsection "Methods" +.IP "\fBrun()\fR" 4 +.IX Item "run()" +Just do it. +.Sp +The \f(CW\*(C`run\*(C'\fR method returns 0 on success and a positive number on +failure. See the section on \s-1EXIT CODES\s0 for details on the values. +.Sp +\&\s-1CPAN\s0.pm sends all the good stuff either to \s-1STDOUT,\s0 or to a temp +file if \f(CW$CPAN::Be_Silent\fR is set. I have to intercept that output +so I can find out what happened. +.Sp +Stolen from File::Path::Expand +.SH "EXIT VALUES" +.IX Header "EXIT VALUES" +The script exits with zero if it thinks that everything worked, or a +positive number if it thinks that something failed. Note, however, that +in some cases it has to divine a failure by the output of things it does +not control. For now, the exit codes are vague: +.PP +.Vb 1 +\& 1 An unknown error +\& +\& 2 The was an external problem +\& +\& 4 There was an internal problem with the script +\& +\& 8 A module failed to install +.Ve +.SH "TO DO" +.IX Header "TO DO" +* There is initial support for Log4perl if it is available, but I +haven't gone through everything to make the NullLogger work out +correctly if Log4perl is not installed. +.PP +* When I capture \s-1CPAN\s0.pm output, I need to check for errors and +report them to the user. +.PP +* Warnings switch +.PP +* Check then exit +.SH "BUGS" +.IX Header "BUGS" +* none noted +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\s-1CPAN\s0, App::cpanminus +.SH "SOURCE AVAILABILITY" +.IX Header "SOURCE AVAILABILITY" +This code is in Github in the \s-1CPAN\s0.pm repository: +.PP +.Vb 1 +\& https://github.com/andk/cpanpm +.Ve +.PP +The source used to be tracked separately in another GitHub repo, +but the canonical source is now in the above repo. +.SH "CREDITS" +.IX Header "CREDITS" +Japheth Cleaver added the bits to allow a forced install (\f(CW\*(C`\-f\*(C'\fR). +.PP +Jim Brandt suggest and provided the initial implementation for the +up-to-date and Changes features. +.PP +Adam Kennedy pointed out that \f(CW\*(C`exit()\*(C'\fR causes problems on Windows +where this script ends up with a .bat extension +.PP +David Golden helps integrate this into the \f(CW\*(C`CPAN.pm\*(C'\fR repos. +.PP +Jim Keenan fixed up various issues with _download +.SH "AUTHOR" +.IX Header "AUTHOR" +brian d foy, \f(CW\*(C`\*(C'\fR +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2001\-2018, brian d foy, All Rights Reserved. +.PP +You may redistribute this under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/Attribute%3A%3AHandlers.3 b/data/miniconda3/man/man3/Attribute%3A%3AHandlers.3 new file mode 100644 index 0000000000000000000000000000000000000000..c447f1fd1f6bf6ed9a0d583c4d743733ee745ca4 --- /dev/null +++ b/data/miniconda3/man/man3/Attribute%3A%3AHandlers.3 @@ -0,0 +1,836 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Attribute::Handlers 3" +.TH Attribute::Handlers 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Attribute::Handlers \- Simpler definition of attribute handlers +.SH "VERSION" +.IX Header "VERSION" +This document describes version 1.01 of Attribute::Handlers. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& package MyClass; +\& require 5.006; +\& use Attribute::Handlers; +\& no warnings \*(Aqredefine\*(Aq; +\& +\& +\& sub Good : ATTR(SCALAR) { +\& my ($package, $symbol, $referent, $attr, $data) = @_; +\& +\& # Invoked for any scalar variable with a :Good attribute, +\& # provided the variable was declared in MyClass (or +\& # a derived class) or typed to MyClass. +\& +\& # Do whatever to $referent here (executed in CHECK phase). +\& ... +\& } +\& +\& sub Bad : ATTR(SCALAR) { +\& # Invoked for any scalar variable with a :Bad attribute, +\& # provided the variable was declared in MyClass (or +\& # a derived class) or typed to MyClass. +\& ... +\& } +\& +\& sub Good : ATTR(ARRAY) { +\& # Invoked for any array variable with a :Good attribute, +\& # provided the variable was declared in MyClass (or +\& # a derived class) or typed to MyClass. +\& ... +\& } +\& +\& sub Good : ATTR(HASH) { +\& # Invoked for any hash variable with a :Good attribute, +\& # provided the variable was declared in MyClass (or +\& # a derived class) or typed to MyClass. +\& ... +\& } +\& +\& sub Ugly : ATTR(CODE) { +\& # Invoked for any subroutine declared in MyClass (or a +\& # derived class) with an :Ugly attribute. +\& ... +\& } +\& +\& sub Omni : ATTR { +\& # Invoked for any scalar, array, hash, or subroutine +\& # with an :Omni attribute, provided the variable or +\& # subroutine was declared in MyClass (or a derived class) +\& # or the variable was typed to MyClass. +\& # Use ref($_[2]) to determine what kind of referent it was. +\& ... +\& } +\& +\& +\& use Attribute::Handlers autotie => { Cycle => Tie::Cycle }; +\& +\& my $next : Cycle([\*(AqA\*(Aq..\*(AqZ\*(Aq]); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module, when inherited by a package, allows that package's class to +define attribute handler subroutines for specific attributes. Variables +and subroutines subsequently defined in that package, or in packages +derived from that package may be given attributes with the same names as +the attribute handler subroutines, which will then be called in one of +the compilation phases (i.e. in a \f(CW\*(C`BEGIN\*(C'\fR, \f(CW\*(C`CHECK\*(C'\fR, \f(CW\*(C`INIT\*(C'\fR, or \f(CW\*(C`END\*(C'\fR +block). (\f(CW\*(C`UNITCHECK\*(C'\fR blocks don't correspond to a global compilation +phase, so they can't be specified here.) +.PP +To create a handler, define it as a subroutine with the same name as +the desired attribute, and declare the subroutine itself with the +attribute \f(CW\*(C`:ATTR\*(C'\fR. For example: +.PP +.Vb 2 +\& package LoudDecl; +\& use Attribute::Handlers; +\& +\& sub Loud :ATTR { +\& my ($package, $symbol, $referent, $attr, $data, $phase, +\& $filename, $linenum) = @_; +\& print STDERR +\& ref($referent), " ", +\& *{$symbol}{NAME}, " ", +\& "($referent) ", "was just declared ", +\& "and ascribed the ${attr} attribute ", +\& "with data ($data)\en", +\& "in phase $phase\en", +\& "in file $filename at line $linenum\en"; +\& } +.Ve +.PP +This creates a handler for the attribute \f(CW\*(C`:Loud\*(C'\fR in the class LoudDecl. +Thereafter, any subroutine declared with a \f(CW\*(C`:Loud\*(C'\fR attribute in the class +LoudDecl: +.PP +.Vb 1 +\& package LoudDecl; +\& +\& sub foo: Loud {...} +.Ve +.PP +causes the above handler to be invoked, and passed: +.IP "[0]" 4 +.IX Item "[0]" +the name of the package into which it was declared; +.IP "[1]" 4 +.IX Item "[1]" +a reference to the symbol table entry (typeglob) containing the subroutine; +.IP "[2]" 4 +.IX Item "[2]" +a reference to the subroutine; +.IP "[3]" 4 +.IX Item "[3]" +the name of the attribute; +.IP "[4]" 4 +.IX Item "[4]" +any data associated with that attribute; +.IP "[5]" 4 +.IX Item "[5]" +the name of the phase in which the handler is being invoked; +.IP "[6]" 4 +.IX Item "[6]" +the filename in which the handler is being invoked; +.IP "[7]" 4 +.IX Item "[7]" +the line number in this file. +.PP +Likewise, declaring any variables with the \f(CW\*(C`:Loud\*(C'\fR attribute within the +package: +.PP +.Vb 1 +\& package LoudDecl; +\& +\& my $foo :Loud; +\& my @foo :Loud; +\& my %foo :Loud; +.Ve +.PP +will cause the handler to be called with a similar argument list (except, +of course, that \f(CW$_[2]\fR will be a reference to the variable). +.PP +The package name argument will typically be the name of the class into +which the subroutine was declared, but it may also be the name of a derived +class (since handlers are inherited). +.PP +If a lexical variable is given an attribute, there is no symbol table to +which it belongs, so the symbol table argument (\f(CW$_[1]\fR) is set to the +string \f(CW\*(AqLEXICAL\*(Aq\fR in that case. Likewise, ascribing an attribute to +an anonymous subroutine results in a symbol table argument of \f(CW\*(AqANON\*(Aq\fR. +.PP +The data argument passes in the value (if any) associated with the +attribute. For example, if \f(CW&foo\fR had been declared: +.PP +.Vb 1 +\& sub foo :Loud("turn it up to 11, man!") {...} +.Ve +.PP +then a reference to an array containing the string +\&\f(CW"turn it up to 11, man!"\fR would be passed as the last argument. +.PP +Attribute::Handlers makes strenuous efforts to convert +the data argument (\f(CW$_[4]\fR) to a usable form before passing it to +the handler (but see \*(L"Non-interpretive attribute handlers\*(R"). +If those efforts succeed, the interpreted data is passed in an array +reference; if they fail, the raw data is passed as a string. +For example, all of these: +.PP +.Vb 4 +\& sub foo :Loud(till=>ears=>are=>bleeding) {...} +\& sub foo :Loud(qw/till ears are bleeding/) {...} +\& sub foo :Loud(qw/till, ears, are, bleeding/) {...} +\& sub foo :Loud(till,ears,are,bleeding) {...} +.Ve +.PP +causes it to pass \f(CW\*(C`[\*(Aqtill\*(Aq,\*(Aqears\*(Aq,\*(Aqare\*(Aq,\*(Aqbleeding\*(Aq]\*(C'\fR as the handler's +data argument. While: +.PP +.Vb 1 +\& sub foo :Loud([\*(Aqtill\*(Aq,\*(Aqears\*(Aq,\*(Aqare\*(Aq,\*(Aqbleeding\*(Aq]) {...} +.Ve +.PP +causes it to pass \f(CW\*(C`[ [\*(Aqtill\*(Aq,\*(Aqears\*(Aq,\*(Aqare\*(Aq,\*(Aqbleeding\*(Aq] ]\*(C'\fR; the array +reference specified in the data being passed inside the standard +array reference indicating successful interpretation. +.PP +However, if the data can't be parsed as valid Perl, then +it is passed as an uninterpreted string. For example: +.PP +.Vb 2 +\& sub foo :Loud(my,ears,are,bleeding) {...} +\& sub foo :Loud(qw/my ears are bleeding) {...} +.Ve +.PP +cause the strings \f(CW\*(Aqmy,ears,are,bleeding\*(Aq\fR and +\&\f(CW\*(Aqqw/my ears are bleeding\*(Aq\fR respectively to be passed as the +data argument. +.PP +If no value is associated with the attribute, \f(CW\*(C`undef\*(C'\fR is passed. +.SS "Typed lexicals" +.IX Subsection "Typed lexicals" +Regardless of the package in which it is declared, if a lexical variable is +ascribed an attribute, the handler that is invoked is the one belonging to +the package to which it is typed. For example, the following declarations: +.PP +.Vb 1 +\& package OtherClass; +\& +\& my LoudDecl $loudobj : Loud; +\& my LoudDecl @loudobjs : Loud; +\& my LoudDecl %loudobjex : Loud; +.Ve +.PP +causes the LoudDecl::Loud handler to be invoked (even if OtherClass also +defines a handler for \f(CW\*(C`:Loud\*(C'\fR attributes). +.SS "Type-specific attribute handlers" +.IX Subsection "Type-specific attribute handlers" +If an attribute handler is declared and the \f(CW\*(C`:ATTR\*(C'\fR specifier is +given the name of a built-in type (\f(CW\*(C`SCALAR\*(C'\fR, \f(CW\*(C`ARRAY\*(C'\fR, \f(CW\*(C`HASH\*(C'\fR, or \f(CW\*(C`CODE\*(C'\fR), +the handler is only applied to declarations of that type. For example, +the following definition: +.PP +.Vb 1 +\& package LoudDecl; +\& +\& sub RealLoud :ATTR(SCALAR) { print "Yeeeeow!" } +.Ve +.PP +creates an attribute handler that applies only to scalars: +.PP +.Vb 2 +\& package Painful; +\& use base LoudDecl; +\& +\& my $metal : RealLoud; # invokes &LoudDecl::RealLoud +\& my @metal : RealLoud; # error: unknown attribute +\& my %metal : RealLoud; # error: unknown attribute +\& sub metal : RealLoud {...} # error: unknown attribute +.Ve +.PP +You can, of course, declare separate handlers for these types as well +(but you'll need to specify \f(CW\*(C`no warnings \*(Aqredefine\*(Aq\*(C'\fR to do it quietly): +.PP +.Vb 3 +\& package LoudDecl; +\& use Attribute::Handlers; +\& no warnings \*(Aqredefine\*(Aq; +\& +\& sub RealLoud :ATTR(SCALAR) { print "Yeeeeow!" } +\& sub RealLoud :ATTR(ARRAY) { print "Urrrrrrrrrr!" } +\& sub RealLoud :ATTR(HASH) { print "Arrrrrgggghhhhhh!" } +\& sub RealLoud :ATTR(CODE) { croak "Real loud sub torpedoed" } +.Ve +.PP +You can also explicitly indicate that a single handler is meant to be +used for all types of referents like so: +.PP +.Vb 2 +\& package LoudDecl; +\& use Attribute::Handlers; +\& +\& sub SeriousLoud :ATTR(ANY) { warn "Hearing loss imminent" } +.Ve +.PP +(I.e. \f(CW\*(C`ATTR(ANY)\*(C'\fR is a synonym for \f(CW\*(C`:ATTR\*(C'\fR). +.SS "Non-interpretive attribute handlers" +.IX Subsection "Non-interpretive attribute handlers" +Occasionally the strenuous efforts Attribute::Handlers makes to convert +the data argument (\f(CW$_[4]\fR) to a usable form before passing it to +the handler get in the way. +.PP +You can turn off that eagerness-to-help by declaring +an attribute handler with the keyword \f(CW\*(C`RAWDATA\*(C'\fR. For example: +.PP +.Vb 3 +\& sub Raw : ATTR(RAWDATA) {...} +\& sub Nekkid : ATTR(SCALAR,RAWDATA) {...} +\& sub Au::Naturale : ATTR(RAWDATA,ANY) {...} +.Ve +.PP +Then the handler makes absolutely no attempt to interpret the data it +receives and simply passes it as a string: +.PP +.Vb 1 +\& my $power : Raw(1..100); # handlers receives "1..100" +.Ve +.SS "Phase-specific attribute handlers" +.IX Subsection "Phase-specific attribute handlers" +By default, attribute handlers are called at the end of the compilation +phase (in a \f(CW\*(C`CHECK\*(C'\fR block). This seems to be optimal in most cases because +most things that can be defined are defined by that point but nothing has +been executed. +.PP +However, it is possible to set up attribute handlers that are called at +other points in the program's compilation or execution, by explicitly +stating the phase (or phases) in which you wish the attribute handler to +be called. For example: +.PP +.Vb 5 +\& sub Early :ATTR(SCALAR,BEGIN) {...} +\& sub Normal :ATTR(SCALAR,CHECK) {...} +\& sub Late :ATTR(SCALAR,INIT) {...} +\& sub Final :ATTR(SCALAR,END) {...} +\& sub Bookends :ATTR(SCALAR,BEGIN,END) {...} +.Ve +.PP +As the last example indicates, a handler may be set up to be (re)called in +two or more phases. The phase name is passed as the handler's final argument. +.PP +Note that attribute handlers that are scheduled for the \f(CW\*(C`BEGIN\*(C'\fR phase +are handled as soon as the attribute is detected (i.e. before any +subsequently defined \f(CW\*(C`BEGIN\*(C'\fR blocks are executed). +.ie n .SS "Attributes as ""tie"" interfaces" +.el .SS "Attributes as \f(CWtie\fP interfaces" +.IX Subsection "Attributes as tie interfaces" +Attributes make an excellent and intuitive interface through which to tie +variables. For example: +.PP +.Vb 2 +\& use Attribute::Handlers; +\& use Tie::Cycle; +\& +\& sub UNIVERSAL::Cycle : ATTR(SCALAR) { +\& my ($package, $symbol, $referent, $attr, $data, $phase) = @_; +\& $data = [ $data ] unless ref $data eq \*(AqARRAY\*(Aq; +\& tie $$referent, \*(AqTie::Cycle\*(Aq, $data; +\& } +\& +\& # and thereafter... +\& +\& package main; +\& +\& my $next : Cycle(\*(AqA\*(Aq..\*(AqZ\*(Aq); # $next is now a tied variable +\& +\& while (<>) { +\& print $next; +\& } +.Ve +.PP +Note that, because the \f(CW\*(C`Cycle\*(C'\fR attribute receives its arguments in the +\&\f(CW$data\fR variable, if the attribute is given a list of arguments, \f(CW$data\fR +will consist of a single array reference; otherwise, it will consist of the +single argument directly. Since Tie::Cycle requires its cycling values to +be passed as an array reference, this means that we need to wrap +non-array-reference arguments in an array constructor: +.PP +.Vb 1 +\& $data = [ $data ] unless ref $data eq \*(AqARRAY\*(Aq; +.Ve +.PP +Typically, however, things are the other way around: the tieable class expects +its arguments as a flattened list, so the attribute looks like: +.PP +.Vb 5 +\& sub UNIVERSAL::Cycle : ATTR(SCALAR) { +\& my ($package, $symbol, $referent, $attr, $data, $phase) = @_; +\& my @data = ref $data eq \*(AqARRAY\*(Aq ? @$data : $data; +\& tie $$referent, \*(AqTie::Whatever\*(Aq, @data; +\& } +.Ve +.PP +This software pattern is so widely applicable that Attribute::Handlers +provides a way to automate it: specifying \f(CW\*(Aqautotie\*(Aq\fR in the +\&\f(CW\*(C`use Attribute::Handlers\*(C'\fR statement. So, the cycling example, +could also be written: +.PP +.Vb 1 +\& use Attribute::Handlers autotie => { Cycle => \*(AqTie::Cycle\*(Aq }; +\& +\& # and thereafter... +\& +\& package main; +\& +\& my $next : Cycle([\*(AqA\*(Aq..\*(AqZ\*(Aq]); # $next is now a tied variable +\& +\& while (<>) { +\& print $next; +\& } +.Ve +.PP +Note that we now have to pass the cycling values as an array reference, +since the \f(CW\*(C`autotie\*(C'\fR mechanism passes \f(CW\*(C`tie\*(C'\fR a list of arguments as a list +(as in the Tie::Whatever example), \fInot\fR as an array reference (as in +the original Tie::Cycle example at the start of this section). +.PP +The argument after \f(CW\*(Aqautotie\*(Aq\fR is a reference to a hash in which each key is +the name of an attribute to be created, and each value is the class to which +variables ascribed that attribute should be tied. +.PP +Note that there is no longer any need to import the Tie::Cycle module \*(-- +Attribute::Handlers takes care of that automagically. You can even pass +arguments to the module's \f(CW\*(C`import\*(C'\fR subroutine, by appending them to the +class name. For example: +.PP +.Vb 2 +\& use Attribute::Handlers +\& autotie => { Dir => \*(AqTie::Dir qw(DIR_UNLINK)\*(Aq }; +.Ve +.PP +If the attribute name is unqualified, the attribute is installed in the +current package. Otherwise it is installed in the qualifier's package: +.PP +.Vb 1 +\& package Here; +\& +\& use Attribute::Handlers autotie => { +\& Other::Good => Tie::SecureHash, # tie attr installed in Other:: +\& Bad => Tie::Taxes, # tie attr installed in Here:: +\& UNIVERSAL::Ugly => Software::Patent # tie attr installed everywhere +\& }; +.Ve +.PP +Autoties are most commonly used in the module to which they actually tie, +and need to export their attributes to any module that calls them. To +facilitate this, Attribute::Handlers recognizes a special \*(L"pseudo-class\*(R" \*(-- +\&\f(CW\*(C`_\|_CALLER_\|_\*(C'\fR, which may be specified as the qualifier of an attribute: +.PP +.Vb 1 +\& package Tie::Me::Kangaroo:Down::Sport; +\& +\& use Attribute::Handlers autotie => +\& { \*(Aq_\|_CALLER_\|_::Roo\*(Aq => _\|_PACKAGE_\|_ }; +.Ve +.PP +This causes Attribute::Handlers to define the \f(CW\*(C`Roo\*(C'\fR attribute in the package +that imports the Tie::Me::Kangaroo:Down::Sport module. +.PP +Note that it is important to quote the _\|_CALLER_\|_::Roo identifier because +a bug in perl 5.8 will refuse to parse it and cause an unknown error. +.PP +\fIPassing the tied object to \f(CI\*(C`tie\*(C'\fI\fR +.IX Subsection "Passing the tied object to tie" +.PP +Occasionally it is important to pass a reference to the object being tied +to the \s-1TIESCALAR, TIEHASH,\s0 etc. that ties it. +.PP +The \f(CW\*(C`autotie\*(C'\fR mechanism supports this too. The following code: +.PP +.Vb 2 +\& use Attribute::Handlers autotieref => { Selfish => Tie::Selfish }; +\& my $var : Selfish(@args); +.Ve +.PP +has the same effect as: +.PP +.Vb 1 +\& tie my $var, \*(AqTie::Selfish\*(Aq, @args; +.Ve +.PP +But when \f(CW"autotieref"\fR is used instead of \f(CW"autotie"\fR: +.PP +.Vb 2 +\& use Attribute::Handlers autotieref => { Selfish => Tie::Selfish }; +\& my $var : Selfish(@args); +.Ve +.PP +the effect is to pass the \f(CW\*(C`tie\*(C'\fR call an extra reference to the variable +being tied: +.PP +.Vb 1 +\& tie my $var, \*(AqTie::Selfish\*(Aq, \e$var, @args; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +If the class shown in \*(L"\s-1SYNOPSIS\*(R"\s0 were placed in the MyClass.pm +module, then the following code: +.PP +.Vb 2 +\& package main; +\& use MyClass; +\& +\& my MyClass $slr :Good :Bad(1**1\-1) :Omni(\-vorous); +\& +\& package SomeOtherClass; +\& use base MyClass; +\& +\& sub tent { \*(Aqacle\*(Aq } +\& +\& sub fn :Ugly(sister) :Omni(\*(Aqpo\*(Aq,tent()) {...} +\& my @arr :Good :Omni(s/cie/nt/); +\& my %hsh :Good(q/bye/) :Omni(q/bus/); +.Ve +.PP +would cause the following handlers to be invoked: +.PP +.Vb 1 +\& # my MyClass $slr :Good :Bad(1**1\-1) :Omni(\-vorous); +\& +\& MyClass::Good:ATTR(SCALAR)( \*(AqMyClass\*(Aq, # class +\& \*(AqLEXICAL\*(Aq, # no typeglob +\& \e$slr, # referent +\& \*(AqGood\*(Aq, # attr name +\& undef # no attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +\& +\& MyClass::Bad:ATTR(SCALAR)( \*(AqMyClass\*(Aq, # class +\& \*(AqLEXICAL\*(Aq, # no typeglob +\& \e$slr, # referent +\& \*(AqBad\*(Aq, # attr name +\& 0 # eval\*(Aqd attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +\& +\& MyClass::Omni:ATTR(SCALAR)( \*(AqMyClass\*(Aq, # class +\& \*(AqLEXICAL\*(Aq, # no typeglob +\& \e$slr, # referent +\& \*(AqOmni\*(Aq, # attr name +\& \*(Aq\-vorous\*(Aq # eval\*(Aqd attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +\& +\& +\& # sub fn :Ugly(sister) :Omni(\*(Aqpo\*(Aq,tent()) {...} +\& +\& MyClass::UGLY:ATTR(CODE)( \*(AqSomeOtherClass\*(Aq, # class +\& \e*SomeOtherClass::fn, # typeglob +\& \e&SomeOtherClass::fn, # referent +\& \*(AqUgly\*(Aq, # attr name +\& \*(Aqsister\*(Aq # eval\*(Aqd attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +\& +\& MyClass::Omni:ATTR(CODE)( \*(AqSomeOtherClass\*(Aq, # class +\& \e*SomeOtherClass::fn, # typeglob +\& \e&SomeOtherClass::fn, # referent +\& \*(AqOmni\*(Aq, # attr name +\& [\*(Aqpo\*(Aq,\*(Aqacle\*(Aq] # eval\*(Aqd attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +\& +\& +\& # my @arr :Good :Omni(s/cie/nt/); +\& +\& MyClass::Good:ATTR(ARRAY)( \*(AqSomeOtherClass\*(Aq, # class +\& \*(AqLEXICAL\*(Aq, # no typeglob +\& \e@arr, # referent +\& \*(AqGood\*(Aq, # attr name +\& undef # no attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +\& +\& MyClass::Omni:ATTR(ARRAY)( \*(AqSomeOtherClass\*(Aq, # class +\& \*(AqLEXICAL\*(Aq, # no typeglob +\& \e@arr, # referent +\& \*(AqOmni\*(Aq, # attr name +\& "" # eval\*(Aqd attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +\& +\& +\& # my %hsh :Good(q/bye) :Omni(q/bus/); +\& +\& MyClass::Good:ATTR(HASH)( \*(AqSomeOtherClass\*(Aq, # class +\& \*(AqLEXICAL\*(Aq, # no typeglob +\& \e%hsh, # referent +\& \*(AqGood\*(Aq, # attr name +\& \*(Aqq/bye\*(Aq # raw attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +\& +\& MyClass::Omni:ATTR(HASH)( \*(AqSomeOtherClass\*(Aq, # class +\& \*(AqLEXICAL\*(Aq, # no typeglob +\& \e%hsh, # referent +\& \*(AqOmni\*(Aq, # attr name +\& \*(Aqbus\*(Aq # eval\*(Aqd attr data +\& \*(AqCHECK\*(Aq, # compiler phase +\& ); +.Ve +.PP +Installing handlers into \s-1UNIVERSAL,\s0 makes them...err..universal. +For example: +.PP +.Vb 2 +\& package Descriptions; +\& use Attribute::Handlers; +\& +\& my %name; +\& sub name { return $name{$_[2]}||*{$_[1]}{NAME} } +\& +\& sub UNIVERSAL::Name :ATTR { +\& $name{$_[2]} = $_[4]; +\& } +\& +\& sub UNIVERSAL::Purpose :ATTR { +\& print STDERR "Purpose of ", &name, " is $_[4]\en"; +\& } +\& +\& sub UNIVERSAL::Unit :ATTR { +\& print STDERR &name, " measured in $_[4]\en"; +\& } +.Ve +.PP +Let's you write: +.PP +.Vb 1 +\& use Descriptions; +\& +\& my $capacity : Name(capacity) +\& : Purpose(to store max storage capacity for files) +\& : Unit(Gb); +\& +\& +\& package Other; +\& +\& sub foo : Purpose(to foo all data before barring it) { } +\& +\& # etc. +.Ve +.SH "UTILITY FUNCTIONS" +.IX Header "UTILITY FUNCTIONS" +This module offers a single utility function, \f(CW\*(C`findsym()\*(C'\fR. +.IP "findsym" 4 +.IX Item "findsym" +.Vb 1 +\& my $symbol = Attribute::Handlers::findsym($package, $referent); +.Ve +.Sp +The function looks in the symbol table of \f(CW$package\fR for the typeglob for +\&\f(CW$referent\fR, which is a reference to a variable or subroutine (\s-1SCALAR, ARRAY, +HASH,\s0 or \s-1CODE\s0). If it finds the typeglob, it returns it. Otherwise, it returns +undef. Note that \f(CW\*(C`findsym\*(C'\fR memoizes the typeglobs it has previously +successfully found, so subsequent calls with the same arguments should be +much faster. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.ie n .IP """Bad attribute type: ATTR(%s)""" 4 +.el .IP "\f(CWBad attribute type: ATTR(%s)\fR" 4 +.IX Item "Bad attribute type: ATTR(%s)" +An attribute handler was specified with an \f(CW\*(C`:ATTR(\f(CIref_type\f(CW)\*(C'\fR, but the +type of referent it was defined to handle wasn't one of the five permitted: +\&\f(CW\*(C`SCALAR\*(C'\fR, \f(CW\*(C`ARRAY\*(C'\fR, \f(CW\*(C`HASH\*(C'\fR, \f(CW\*(C`CODE\*(C'\fR, or \f(CW\*(C`ANY\*(C'\fR. +.ie n .IP """Attribute handler %s doesn\*(Aqt handle %s attributes""" 4 +.el .IP "\f(CWAttribute handler %s doesn\*(Aqt handle %s attributes\fR" 4 +.IX Item "Attribute handler %s doesnt handle %s attributes" +A handler for attributes of the specified name \fIwas\fR defined, but not +for the specified type of declaration. Typically encountered when trying +to apply a \f(CW\*(C`VAR\*(C'\fR attribute handler to a subroutine, or a \f(CW\*(C`SCALAR\*(C'\fR +attribute handler to some other type of variable. +.ie n .IP """Declaration of %s attribute in package %s may clash with future reserved word""" 4 +.el .IP "\f(CWDeclaration of %s attribute in package %s may clash with future reserved word\fR" 4 +.IX Item "Declaration of %s attribute in package %s may clash with future reserved word" +A handler for an attributes with an all-lowercase name was declared. An +attribute with an all-lowercase name might have a meaning to Perl +itself some day, even though most don't yet. Use a mixed-case attribute +name, instead. +.ie n .IP """Can\*(Aqt have two ATTR specifiers on one subroutine""" 4 +.el .IP "\f(CWCan\*(Aqt have two ATTR specifiers on one subroutine\fR" 4 +.IX Item "Cant have two ATTR specifiers on one subroutine" +You just can't, okay? +Instead, put all the specifications together with commas between them +in a single \f(CW\*(C`ATTR(\f(CIspecification\f(CW)\*(C'\fR. +.ie n .IP """Can\*(Aqt autotie a %s""" 4 +.el .IP "\f(CWCan\*(Aqt autotie a %s\fR" 4 +.IX Item "Cant autotie a %s" +You can only declare autoties for types \f(CW"SCALAR"\fR, \f(CW"ARRAY"\fR, and +\&\f(CW"HASH"\fR. They're the only things (apart from typeglobs \*(-- which are +not declarable) that Perl can tie. +.ie n .IP """Internal error: %s symbol went missing""" 4 +.el .IP "\f(CWInternal error: %s symbol went missing\fR" 4 +.IX Item "Internal error: %s symbol went missing" +Something is rotten in the state of the program. An attributed +subroutine ceased to exist between the point it was declared and the point +at which its attribute handler(s) would have been called. +.ie n .IP """Won\*(Aqt be able to apply END handler""" 4 +.el .IP "\f(CWWon\*(Aqt be able to apply END handler\fR" 4 +.IX Item "Wont be able to apply END handler" +You have defined an \s-1END\s0 handler for an attribute that is being applied +to a lexical variable. Since the variable may not be available during \s-1END\s0 +this won't happen. +.SH "AUTHOR" +.IX Header "AUTHOR" +Damian Conway (damian@conway.org). The maintainer of this module is now Rafael +Garcia-Suarez (rgarciasuarez@gmail.com). +.PP +Maintainer of the \s-1CPAN\s0 release is Steffen Mueller (smueller@cpan.org). +Contact him with technical difficulties with respect to the packaging of the +\&\s-1CPAN\s0 module. +.SH "BUGS" +.IX Header "BUGS" +There are undoubtedly serious bugs lurking somewhere in code this funky :\-) +Bug reports and other feedback are most welcome. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +.Vb 3 +\& Copyright (c) 2001\-2014, Damian Conway. All Rights Reserved. +\& This module is free software. It may be used, redistributed +\& and/or modified under the same terms as Perl itself. +.Ve diff --git a/data/miniconda3/man/man3/B%3A%3AOp_private.3 b/data/miniconda3/man/man3/B%3A%3AOp_private.3 new file mode 100644 index 0000000000000000000000000000000000000000..284d9a3193c3aa75069b3f7a58d27eda638a9ff0 --- /dev/null +++ b/data/miniconda3/man/man3/B%3A%3AOp_private.3 @@ -0,0 +1,250 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "B::Op_private 3" +.TH B::Op_private 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +B::Op_private \- OP op_private flag definitions +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use B::Op_private; +\& +\& # flag details for bit 7 of OP_AELEM\*(Aqs op_private: +\& my $name = $B::Op_private::bits{aelem}{7}; # OPpLVAL_INTRO +\& my $value = $B::Op_private::defines{$name}; # 128 +\& my $label = $B::Op_private::labels{$name}; # LVINTRO +\& +\& # the bit field at bits 5..6 of OP_AELEM\*(Aqs op_private: +\& my $bf = $B::Op_private::bits{aelem}{6}; +\& my $mask = $bf\->{bitmask}; # etc +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides four global hashes: +.PP +.Vb 4 +\& %B::Op_private::bits +\& %B::Op_private::defines +\& %B::Op_private::labels +\& %B::Op_private::ops_using +.Ve +.PP +which contain information about the per-op meanings of the bits in the +op_private field. +.ie n .SS "%bits" +.el .SS "\f(CW%bits\fP" +.IX Subsection "%bits" +This is indexed by op name and then bit number (0..7). For single bit flags, +it returns the name of the define (if any) for that bit: +.PP +.Vb 1 +\& $B::Op_private::bits{aelem}{7} eq \*(AqOPpLVAL_INTRO\*(Aq; +.Ve +.PP +For bit fields, it returns a hash ref containing details about the field. +The same reference will be returned for all bit positions that make +up the bit field; so for example these both return the same hash ref: +.PP +.Vb 2 +\& $bitfield = $B::Op_private::bits{aelem}{5}; +\& $bitfield = $B::Op_private::bits{aelem}{6}; +.Ve +.PP +The general format of this hash ref is +.PP +.Vb 5 +\& { +\& # The bit range and mask; these are always present. +\& bitmin => 5, +\& bitmax => 6, +\& bitmask => 0x60, +\& +\& # (The remaining keys are optional) +\& +\& # The names of any defines that were requested: +\& mask_def => \*(AqOPpFOO_MASK\*(Aq, +\& baseshift_def => \*(AqOPpFOO_SHIFT\*(Aq, +\& bitcount_def => \*(AqOPpFOO_BITS\*(Aq, +\& +\& # If present, Concise etc will display the value with a \*(AqFOO=\*(Aq +\& # prefix. If it equals \*(Aq\-\*(Aq, then Concise will treat the bit +\& # field as raw bits and not try to interpret it. +\& label => \*(AqFOO\*(Aq, +\& +\& # If present, specifies the names of some defines and the +\& # display labels that are used to assign meaning to particu\- +\& # lar integer values within the bit field; e.g. 3 is dis\- +\& # played as \*(AqC\*(Aq. +\& enum => [ qw( +\& 1 OPpFOO_A A +\& 2 OPpFOO_B B +\& 3 OPpFOO_C C +\& )], +\& +\& }; +.Ve +.ie n .SS "%defines" +.el .SS "\f(CW%defines\fP" +.IX Subsection "%defines" +This gives the value of every \f(CW\*(C`OPp\*(C'\fR define, e.g. +.PP +.Vb 1 +\& $B::Op_private::defines{OPpLVAL_INTRO} == 128; +.Ve +.ie n .SS "%labels" +.el .SS "\f(CW%labels\fP" +.IX Subsection "%labels" +This gives the short display label for each define, as used by \f(CW\*(C`B::Concise\*(C'\fR +and \f(CW\*(C`perl \-Dx\*(C'\fR, e.g. +.PP +.Vb 1 +\& $B::Op_private::labels{OPpLVAL_INTRO} eq \*(AqLVINTRO\*(Aq; +.Ve +.PP +If the label equals '\-', then Concise will treat the bit as a raw bit and +not try to display it symbolically. +.ie n .SS "%ops_using" +.el .SS "\f(CW%ops_using\fP" +.IX Subsection "%ops_using" +For each define, this gives a reference to an array of op names that use +the flag. +.PP +.Vb 1 +\& @ops_using_lvintro = @{ $B::Op_private::ops_using{OPp_LVAL_INTRO} }; +.Ve diff --git a/data/miniconda3/man/man3/Benchmark.3 b/data/miniconda3/man/man3/Benchmark.3 new file mode 100644 index 0000000000000000000000000000000000000000..451b31ff9be4484548e8c9e522673d242457f825 --- /dev/null +++ b/data/miniconda3/man/man3/Benchmark.3 @@ -0,0 +1,585 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Benchmark 3" +.TH Benchmark 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Benchmark \- benchmark running times of Perl code +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Benchmark qw(:all) ; +\& +\& timethis ($count, "code"); +\& +\& # Use Perl code in strings... +\& timethese($count, { +\& \*(AqName1\*(Aq => \*(Aq...code1...\*(Aq, +\& \*(AqName2\*(Aq => \*(Aq...code2...\*(Aq, +\& }); +\& +\& # ... or use subroutine references. +\& timethese($count, { +\& \*(AqName1\*(Aq => sub { ...code1... }, +\& \*(AqName2\*(Aq => sub { ...code2... }, +\& }); +\& +\& # cmpthese can be used both ways as well +\& cmpthese($count, { +\& \*(AqName1\*(Aq => \*(Aq...code1...\*(Aq, +\& \*(AqName2\*(Aq => \*(Aq...code2...\*(Aq, +\& }); +\& +\& cmpthese($count, { +\& \*(AqName1\*(Aq => sub { ...code1... }, +\& \*(AqName2\*(Aq => sub { ...code2... }, +\& }); +\& +\& # ...or in two stages +\& $results = timethese($count, +\& { +\& \*(AqName1\*(Aq => sub { ...code1... }, +\& \*(AqName2\*(Aq => sub { ...code2... }, +\& }, +\& \*(Aqnone\*(Aq +\& ); +\& cmpthese( $results ) ; +\& +\& $t = timeit($count, \*(Aq...other code...\*(Aq) +\& print "$count loops of other code took:",timestr($t),"\en"; +\& +\& $t = countit($time, \*(Aq...other code...\*(Aq) +\& $count = $t\->iters ; +\& print "$count loops of other code took:",timestr($t),"\en"; +\& +\& # enable hires wallclock timing if possible +\& use Benchmark \*(Aq:hireswallclock\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Benchmark module encapsulates a number of routines to help you +figure out how long it takes to execute some code. +.PP +timethis \- run a chunk of code several times +.PP +timethese \- run several chunks of code several times +.PP +cmpthese \- print results of timethese as a comparison chart +.PP +timeit \- run a chunk of code and see how long it goes +.PP +countit \- see how many times a chunk of code runs in a given time +.SS "Methods" +.IX Subsection "Methods" +.IP "new" 10 +.IX Item "new" +Returns the current time. Example: +.Sp +.Vb 6 +\& use Benchmark; +\& $t0 = Benchmark\->new; +\& # ... your code here ... +\& $t1 = Benchmark\->new; +\& $td = timediff($t1, $t0); +\& print "the code took:",timestr($td),"\en"; +.Ve +.IP "debug" 10 +.IX Item "debug" +Enables or disable debugging by setting the \f(CW$Benchmark::Debug\fR flag: +.Sp +.Vb 3 +\& Benchmark\->debug(1); +\& $t = timeit(10, \*(Aq 5 ** $Global \*(Aq); +\& Benchmark\->debug(0); +.Ve +.IP "iters" 10 +.IX Item "iters" +Returns the number of iterations. +.SS "Standard Exports" +.IX Subsection "Standard Exports" +The following routines will be exported into your namespace +if you use the Benchmark module: +.IP "timeit(\s-1COUNT, CODE\s0)" 10 +.IX Item "timeit(COUNT, CODE)" +Arguments: \s-1COUNT\s0 is the number of times to run the loop, and \s-1CODE\s0 is +the code to run. \s-1CODE\s0 may be either a code reference or a string to +be eval'd; either way it will be run in the caller's package. +.Sp +Returns: a Benchmark object. +.IP "timethis ( \s-1COUNT, CODE,\s0 [ \s-1TITLE,\s0 [ \s-1STYLE\s0 ]] )" 10 +.IX Item "timethis ( COUNT, CODE, [ TITLE, [ STYLE ]] )" +Time \s-1COUNT\s0 iterations of \s-1CODE. CODE\s0 may be a string to eval or a +code reference; either way the \s-1CODE\s0 will run in the caller's package. +Results will be printed to \s-1STDOUT\s0 as \s-1TITLE\s0 followed by the times. +\&\s-1TITLE\s0 defaults to \*(L"timethis \s-1COUNT\*(R"\s0 if none is provided. \s-1STYLE\s0 +determines the format of the output, as described for \fBtimestr()\fR below. +.Sp +The \s-1COUNT\s0 can be zero or negative: this means the \fIminimum number of +\&\s-1CPU\s0 seconds\fR to run. A zero signifies the default of 3 seconds. For +example to run at least for 10 seconds: +.Sp +.Vb 1 +\& timethis(\-10, $code) +.Ve +.Sp +or to run two pieces of code tests for at least 3 seconds: +.Sp +.Vb 1 +\& timethese(0, { test1 => \*(Aq...\*(Aq, test2 => \*(Aq...\*(Aq}) +.Ve +.Sp +\&\s-1CPU\s0 seconds is, in \s-1UNIX\s0 terms, the user time plus the system time of +the process itself, as opposed to the real (wallclock) time and the +time spent by the child processes. Less than 0.1 seconds is not +accepted (\-0.01 as the count, for example, will cause a fatal runtime +exception). +.Sp +Note that the \s-1CPU\s0 seconds is the \fBminimum\fR time: \s-1CPU\s0 scheduling and +other operating system factors may complicate the attempt so that a +little bit more time is spent. The benchmark output will, however, +also tell the number of \f(CW$code\fR runs/second, which should be a more +interesting number than the actually spent seconds. +.Sp +Returns a Benchmark object. +.IP "timethese ( \s-1COUNT, CODEHASHREF,\s0 [ \s-1STYLE\s0 ] )" 10 +.IX Item "timethese ( COUNT, CODEHASHREF, [ STYLE ] )" +The \s-1CODEHASHREF\s0 is a reference to a hash containing names as keys +and either a string to eval or a code reference for each value. +For each (\s-1KEY, VALUE\s0) pair in the \s-1CODEHASHREF,\s0 this routine will +call +.Sp +.Vb 1 +\& timethis(COUNT, VALUE, KEY, STYLE) +.Ve +.Sp +The routines are called in string comparison order of \s-1KEY.\s0 +.Sp +The \s-1COUNT\s0 can be zero or negative, see \fBtimethis()\fR. +.Sp +Returns a hash reference of Benchmark objects, keyed by name. +.IP "timediff ( T1, T2 )" 10 +.IX Item "timediff ( T1, T2 )" +Returns the difference between two Benchmark times as a Benchmark +object suitable for passing to \fBtimestr()\fR. +.IP "timestr ( \s-1TIMEDIFF,\s0 [ \s-1STYLE,\s0 [ \s-1FORMAT\s0 ] ] )" 10 +.IX Item "timestr ( TIMEDIFF, [ STYLE, [ FORMAT ] ] )" +Returns a string that formats the times in the \s-1TIMEDIFF\s0 object in +the requested \s-1STYLE. TIMEDIFF\s0 is expected to be a Benchmark object +similar to that returned by \fBtimediff()\fR. +.Sp +\&\s-1STYLE\s0 can be any of 'all', 'none', 'noc', 'nop' or 'auto'. 'all' shows +each of the 5 times available ('wallclock' time, user time, system time, +user time of children, and system time of children). 'noc' shows all +except the two children times. 'nop' shows only wallclock and the +two children times. 'auto' (the default) will act as 'all' unless +the children times are both zero, in which case it acts as 'noc'. +\&'none' prevents output. +.Sp +\&\s-1FORMAT\s0 is the \fBprintf\fR\|(3)\-style format specifier (without the +leading '%') to use to print the times. It defaults to '5.2f'. +.SS "Optional Exports" +.IX Subsection "Optional Exports" +The following routines will be exported into your namespace +if you specifically ask that they be imported: +.IP "clearcache ( \s-1COUNT\s0 )" 10 +.IX Item "clearcache ( COUNT )" +Clear the cached time for \s-1COUNT\s0 rounds of the null loop. +.IP "clearallcache ( )" 10 +.IX Item "clearallcache ( )" +Clear all cached times. +.IP "cmpthese ( \s-1COUNT, CODEHASHREF,\s0 [ \s-1STYLE\s0 ] )" 10 +.IX Item "cmpthese ( COUNT, CODEHASHREF, [ STYLE ] )" +.PD 0 +.IP "cmpthese ( \s-1RESULTSHASHREF,\s0 [ \s-1STYLE\s0 ] )" 10 +.IX Item "cmpthese ( RESULTSHASHREF, [ STYLE ] )" +.PD +Optionally calls \fBtimethese()\fR, then outputs comparison chart. This: +.Sp +.Vb 1 +\& cmpthese( \-1, { a => "++\e$i", b => "\e$i *= 2" } ) ; +.Ve +.Sp +outputs a chart like: +.Sp +.Vb 3 +\& Rate b a +\& b 2831802/s \-\- \-61% +\& a 7208959/s 155% \-\- +.Ve +.Sp +This chart is sorted from slowest to fastest, and shows the percent speed +difference between each pair of tests. +.Sp +\&\f(CW\*(C`cmpthese\*(C'\fR can also be passed the data structure that \fBtimethese()\fR returns: +.Sp +.Vb 3 +\& $results = timethese( \-1, +\& { a => "++\e$i", b => "\e$i *= 2" } ) ; +\& cmpthese( $results ); +.Ve +.Sp +in case you want to see both sets of results. +If the first argument is an unblessed hash reference, +that is \s-1RESULTSHASHREF\s0; otherwise that is \s-1COUNT.\s0 +.Sp +Returns a reference to an \s-1ARRAY\s0 of rows, each row is an \s-1ARRAY\s0 of cells from the +above chart, including labels. This: +.Sp +.Vb 2 +\& my $rows = cmpthese( \-1, +\& { a => \*(Aq++$i\*(Aq, b => \*(Aq$i *= 2\*(Aq }, "none" ); +.Ve +.Sp +returns a data structure like: +.Sp +.Vb 5 +\& [ +\& [ \*(Aq\*(Aq, \*(AqRate\*(Aq, \*(Aqb\*(Aq, \*(Aqa\*(Aq ], +\& [ \*(Aqb\*(Aq, \*(Aq2885232/s\*(Aq, \*(Aq\-\-\*(Aq, \*(Aq\-59%\*(Aq ], +\& [ \*(Aqa\*(Aq, \*(Aq7099126/s\*(Aq, \*(Aq146%\*(Aq, \*(Aq\-\-\*(Aq ], +\& ] +.Ve +.Sp +\&\fB\s-1NOTE\s0\fR: This result value differs from previous versions, which returned +the \f(CW\*(C`timethese()\*(C'\fR result structure. If you want that, just use the two +statement \f(CW\*(C`timethese\*(C'\fR...\f(CW\*(C`cmpthese\*(C'\fR idiom shown above. +.Sp +Incidentally, note the variance in the result values between the two examples; +this is typical of benchmarking. If this were a real benchmark, you would +probably want to run a lot more iterations. +.IP "countit(\s-1TIME, CODE\s0)" 10 +.IX Item "countit(TIME, CODE)" +Arguments: \s-1TIME\s0 is the minimum length of time to run \s-1CODE\s0 for, and \s-1CODE\s0 is +the code to run. \s-1CODE\s0 may be either a code reference or a string to +be eval'd; either way it will be run in the caller's package. +.Sp +\&\s-1TIME\s0 is \fInot\fR negative. \fBcountit()\fR will run the loop many times to +calculate the speed of \s-1CODE\s0 before running it for \s-1TIME.\s0 The actual +time run for will usually be greater than \s-1TIME\s0 due to system clock +resolution, so it's best to look at the number of iterations divided +by the times that you are concerned with, not just the iterations. +.Sp +Returns: a Benchmark object. +.IP "disablecache ( )" 10 +.IX Item "disablecache ( )" +Disable caching of timings for the null loop. This will force Benchmark +to recalculate these timings for each new piece of code timed. +.IP "enablecache ( )" 10 +.IX Item "enablecache ( )" +Enable caching of timings for the null loop. The time taken for \s-1COUNT\s0 +rounds of the null loop will be calculated only once for each +different \s-1COUNT\s0 used. +.IP "timesum ( T1, T2 )" 10 +.IX Item "timesum ( T1, T2 )" +Returns the sum of two Benchmark times as a Benchmark object suitable +for passing to \fBtimestr()\fR. +.SS ":hireswallclock" +.IX Subsection ":hireswallclock" +If the Time::HiRes module has been installed, you can specify the +special tag \f(CW\*(C`:hireswallclock\*(C'\fR for Benchmark (if Time::HiRes is not +available, the tag will be silently ignored). This tag will cause the +wallclock time to be measured in microseconds, instead of integer +seconds. Note though that the speed computations are still conducted +in \s-1CPU\s0 time, not wallclock time. +.SH "Benchmark Object" +.IX Header "Benchmark Object" +Many of the functions in this module return a Benchmark object, +or in the case of \f(CW\*(C`timethese()\*(C'\fR, a reference to a hash, the values of +which are Benchmark objects. This is useful if you want to store or +further process results from Benchmark functions. +.PP +Internally the Benchmark object holds timing values, +described in \*(L"\s-1NOTES\*(R"\s0 below. +The following methods can be used to access them: +.IP "cpu_p" 4 +.IX Item "cpu_p" +Total \s-1CPU\s0 (User + System) of the main (parent) process. +.IP "cpu_c" 4 +.IX Item "cpu_c" +Total \s-1CPU\s0 (User + System) of any children processes. +.IP "cpu_a" 4 +.IX Item "cpu_a" +Total \s-1CPU\s0 of parent and any children processes. +.IP "real" 4 +.IX Item "real" +Real elapsed time \*(L"wallclock seconds\*(R". +.IP "iters" 4 +.IX Item "iters" +Number of iterations run. +.PP +The following illustrates use of the Benchmark object: +.PP +.Vb 2 +\& $result = timethis(100000, sub { ... }); +\& print "total CPU = ", $result\->cpu_a, "\en"; +.Ve +.SH "NOTES" +.IX Header "NOTES" +The data is stored as a list of values from the time and times +functions: +.PP +.Vb 1 +\& ($real, $user, $system, $children_user, $children_system, $iters) +.Ve +.PP +in seconds for the whole loop (not divided by the number of rounds). +.PP +The timing is done using \fBtime\fR\|(3) and \fBtimes\fR\|(3). +.PP +Code is executed in the caller's package. +.PP +The time of the null loop (a loop with the same +number of rounds but empty loop body) is subtracted +from the time of the real loop. +.PP +The null loop times can be cached, the key being the +number of rounds. The caching can be controlled using +calls like these: +.PP +.Vb 2 +\& clearcache($key); +\& clearallcache(); +\& +\& disablecache(); +\& enablecache(); +.Ve +.PP +Caching is off by default, as it can (usually slightly) decrease +accuracy and does not usually noticeably affect runtimes. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +For example, +.PP +.Vb 6 +\& use Benchmark qw( cmpthese ) ; +\& $x = 3; +\& cmpthese( \-5, { +\& a => sub{$x*$x}, +\& b => sub{$x**2}, +\& } ); +.Ve +.PP +outputs something like this: +.PP +.Vb 4 +\& Benchmark: running a, b, each for at least 5 CPU seconds... +\& Rate b a +\& b 1559428/s \-\- \-62% +\& a 4152037/s 166% \-\- +.Ve +.PP +while +.PP +.Vb 7 +\& use Benchmark qw( timethese cmpthese ) ; +\& $x = 3; +\& $r = timethese( \-5, { +\& a => sub{$x*$x}, +\& b => sub{$x**2}, +\& } ); +\& cmpthese $r; +.Ve +.PP +outputs something like this: +.PP +.Vb 6 +\& Benchmark: running a, b, each for at least 5 CPU seconds... +\& a: 10 wallclock secs ( 5.14 usr + 0.13 sys = 5.27 CPU) @ 3835055.60/s (n=20210743) +\& b: 5 wallclock secs ( 5.41 usr + 0.00 sys = 5.41 CPU) @ 1574944.92/s (n=8520452) +\& Rate b a +\& b 1574945/s \-\- \-59% +\& a 3835056/s 144% \-\- +.Ve +.SH "INHERITANCE" +.IX Header "INHERITANCE" +Benchmark inherits from no other class, except of course +from Exporter. +.SH "CAVEATS" +.IX Header "CAVEATS" +Comparing eval'd strings with code references will give you +inaccurate results: a code reference will show a slightly slower +execution time than the equivalent eval'd string. +.PP +The real time timing is done using \fBtime\fR\|(2) and +the granularity is therefore only one second. +.PP +Short tests may produce negative figures because perl +can appear to take longer to execute the empty loop +than a short test; try: +.PP +.Vb 1 +\& timethis(100,\*(Aq1\*(Aq); +.Ve +.PP +The system time of the null loop might be slightly +more than the system time of the loop with the actual +code and therefore the difference might end up being < 0. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Devel::NYTProf \- a Perl code profiler +.SH "AUTHORS" +.IX Header "AUTHORS" +Jarkko Hietaniemi <\fIjhi@iki.fi\fR>, Tim Bunce <\fITim.Bunce@ig.co.uk\fR> +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +September 8th, 1994; by Tim Bunce. +.PP +March 28th, 1997; by Hugo van der Sanden: added support for code +references and the already documented 'debug' method; revamped +documentation. +.PP +April 04\-07th, 1997: by Jarkko Hietaniemi, added the run-for-some-time +functionality. +.PP +September, 1999; by Barrie Slaymaker: math fixes and accuracy and +efficiency tweaks. Added \fBcmpthese()\fR. A result is now returned from +\&\fBtimethese()\fR. Exposed \fBcountit()\fR (was \fBrunfor()\fR). +.PP +December, 2001; by Nicholas Clark: make \fBtimestr()\fR recognise the style 'none' +and return an empty string. If cmpthese is calling timethese, make it pass the +style in. (so that 'none' will suppress output). Make sub new dump its +debugging output to \s-1STDERR,\s0 to be consistent with everything else. +All bugs found while writing a regression test. +.PP +September, 2002; by Jarkko Hietaniemi: add ':hireswallclock' special tag. +.PP +February, 2004; by Chia-liang Kao: make cmpthese and timestr use time +statistics for children instead of parent when the style is 'nop'. +.PP +November, 2007; by Christophe Grosjean: make cmpthese and timestr compute +time consistently with style argument, default is 'all' not 'noc' any more. diff --git a/data/miniconda3/man/man3/CORE.3 b/data/miniconda3/man/man3/CORE.3 new file mode 100644 index 0000000000000000000000000000000000000000..8d2f9fec40a98751a18ecc835aa14896d1042fda --- /dev/null +++ b/data/miniconda3/man/man3/CORE.3 @@ -0,0 +1,236 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "CORE 3" +.TH CORE 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +CORE \- Namespace for Perl's core routines +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& BEGIN { +\& *CORE::GLOBAL::hex = sub { 1; }; +\& } +\& +\& print hex("0x50"),"\en"; # prints 1 +\& print CORE::hex("0x50"),"\en"; # prints 80 +\& CORE::say "yes"; # prints yes +\& +\& BEGIN { *shove = \e&CORE::push; } +\& shove @array, 1,2,3; # pushes on to @array +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`CORE\*(C'\fR namespace gives access to the original built-in functions of +Perl. The \f(CW\*(C`CORE\*(C'\fR package is built into +Perl, and therefore you do not need to use or +require a hypothetical \*(L"\s-1CORE\*(R"\s0 module prior to accessing routines in this +namespace. +.PP +A list of the built-in functions in Perl can be found in perlfunc. +.PP +For all Perl keywords, a \f(CW\*(C`CORE::\*(C'\fR prefix will force the built-in function +to be used, even if it has been overridden or would normally require the +feature pragma. Despite appearances, this has nothing to do with the +\&\s-1CORE\s0 package, but is part of Perl's syntax. +.PP +For many Perl functions, the \s-1CORE\s0 package contains real subroutines. This +feature is new in Perl 5.16. You can take references to these and make +aliases. However, some can only be called as barewords; i.e., you cannot +use ampersand syntax (\f(CW&foo\fR) or call them through references. See the +\&\f(CW\*(C`shove\*(C'\fR example above. These subroutines exist for all keywords except the following: +.PP +\&\f(CW\*(C`_\|_DATA_\|_\*(C'\fR, \f(CW\*(C`_\|_END_\|_\*(C'\fR, \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`cmp\*(C'\fR, \f(CW\*(C`default\*(C'\fR, \f(CW\*(C`do\*(C'\fR, \f(CW\*(C`dump\*(C'\fR, +\&\f(CW\*(C`else\*(C'\fR, \f(CW\*(C`elsif\*(C'\fR, \f(CW\*(C`eq\*(C'\fR, \f(CW\*(C`eval\*(C'\fR, \f(CW\*(C`for\*(C'\fR, \f(CW\*(C`foreach\*(C'\fR, \f(CW\*(C`format\*(C'\fR, \f(CW\*(C`ge\*(C'\fR, +\&\f(CW\*(C`given\*(C'\fR, \f(CW\*(C`goto\*(C'\fR, \f(CW\*(C`grep\*(C'\fR, \f(CW\*(C`gt\*(C'\fR, \f(CW\*(C`if\*(C'\fR, \f(CW\*(C`last\*(C'\fR, \f(CW\*(C`le\*(C'\fR, \f(CW\*(C`local\*(C'\fR, \f(CW\*(C`lt\*(C'\fR, +\&\f(CW\*(C`m\*(C'\fR, \f(CW\*(C`map\*(C'\fR, \f(CW\*(C`my\*(C'\fR, \f(CW\*(C`ne\*(C'\fR, \f(CW\*(C`next\*(C'\fR, \f(CW\*(C`no\*(C'\fR, \f(CW\*(C`or\*(C'\fR, \f(CW\*(C`our\*(C'\fR, \f(CW\*(C`package\*(C'\fR, +\&\f(CW\*(C`print\*(C'\fR, \f(CW\*(C`printf\*(C'\fR, \f(CW\*(C`q\*(C'\fR, \f(CW\*(C`qq\*(C'\fR, \f(CW\*(C`qr\*(C'\fR, \f(CW\*(C`qw\*(C'\fR, \f(CW\*(C`qx\*(C'\fR, \f(CW\*(C`redo\*(C'\fR, \f(CW\*(C`require\*(C'\fR, +\&\f(CW\*(C`return\*(C'\fR, \f(CW\*(C`s\*(C'\fR, \f(CW\*(C`say\*(C'\fR, \f(CW\*(C`sort\*(C'\fR, \f(CW\*(C`state\*(C'\fR, \f(CW\*(C`sub\*(C'\fR, \f(CW\*(C`tr\*(C'\fR, \f(CW\*(C`unless\*(C'\fR, +\&\f(CW\*(C`until\*(C'\fR, \f(CW\*(C`use\*(C'\fR, \f(CW\*(C`when\*(C'\fR, \f(CW\*(C`while\*(C'\fR, \f(CW\*(C`x\*(C'\fR, \f(CW\*(C`xor\*(C'\fR, \f(CW\*(C`y\*(C'\fR +.PP +Calling with +ampersand syntax and through references does not work for the following +functions, as they have special syntax that cannot always be translated +into a simple list (e.g., \f(CW\*(C`eof\*(C'\fR vs \f(CW\*(C`eof()\*(C'\fR): +.PP +\&\f(CW\*(C`chdir\*(C'\fR, \f(CW\*(C`chomp\*(C'\fR, \f(CW\*(C`chop\*(C'\fR, \f(CW\*(C`defined\*(C'\fR, \f(CW\*(C`delete\*(C'\fR, \f(CW\*(C`eof\*(C'\fR, \f(CW\*(C`exec\*(C'\fR, +\&\f(CW\*(C`exists\*(C'\fR, \f(CW\*(C`lstat\*(C'\fR, \f(CW\*(C`split\*(C'\fR, \f(CW\*(C`stat\*(C'\fR, \f(CW\*(C`system\*(C'\fR, \f(CW\*(C`truncate\*(C'\fR, \f(CW\*(C`unlink\*(C'\fR +.SH "OVERRIDING CORE FUNCTIONS" +.IX Header "OVERRIDING CORE FUNCTIONS" +To override a Perl built-in routine with your own version, you need to +import it at compile-time. This can be conveniently achieved with the +\&\f(CW\*(C`subs\*(C'\fR pragma. This will affect only the package in which you've imported +the said subroutine: +.PP +.Vb 3 +\& use subs \*(Aqchdir\*(Aq; +\& sub chdir { ... } +\& chdir $somewhere; +.Ve +.PP +To override a built-in globally (that is, in all namespaces), you need to +import your function into the \f(CW\*(C`CORE::GLOBAL\*(C'\fR pseudo-namespace at compile +time: +.PP +.Vb 5 +\& BEGIN { +\& *CORE::GLOBAL::hex = sub { +\& # ... your code here +\& }; +\& } +.Ve +.PP +The new routine will be called whenever a built-in function is called +without a qualifying package: +.PP +.Vb 1 +\& print hex("0x50"),"\en"; # prints 1 +.Ve +.PP +In both cases, if you want access to the original, unaltered routine, use +the \f(CW\*(C`CORE::\*(C'\fR prefix: +.PP +.Vb 1 +\& print CORE::hex("0x50"),"\en"; # prints 80 +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +This documentation provided by Tels 2007. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlsub, perlfunc. diff --git a/data/miniconda3/man/man3/CPAN%3A%3APlugin%3A%3ASpecfile.3 b/data/miniconda3/man/man3/CPAN%3A%3APlugin%3A%3ASpecfile.3 new file mode 100644 index 0000000000000000000000000000000000000000..8f8d8e0190158b709761aa25b16e3634efce4a28 --- /dev/null +++ b/data/miniconda3/man/man3/CPAN%3A%3APlugin%3A%3ASpecfile.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "CPAN::Plugin::Specfile 3" +.TH CPAN::Plugin::Specfile 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +CPAN::Plugin::Specfile \- Proof of concept implementation of a trivial CPAN::Plugin +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # once in the cpan shell +\& o conf plugin_list push CPAN::Plugin::Specfile +\& +\& # make permanent +\& o conf commit +\& +\& # any time in the cpan shell to write a spec file +\& test Acme::Meta +\& +\& # disable +\& # if it is the last in plugin_list: +\& o conf plugin_list pop +\& # otherwise, determine the index to splice: +\& o conf plugin_list +\& # and then use splice, e.g. to splice position 3: +\& o conf plugin_list splice 3 1 +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Implemented as a post-test hook, this plugin writes a specfile after +every successful test run. The content is also written to the +terminal. +.PP +As a side effect, the timestamps of the written specfiles reflect the +linear order of all dependencies. +.PP +\&\fB\s-1WARNING:\s0\fR This code is just a small demo how to use the plugin +system of the \s-1CPAN\s0 shell, not a full fledged spec file writer. Do not +expect new features in this plugin. +.SS "\s-1OPTIONS\s0" +.IX Subsection "OPTIONS" +The target directory to store the spec files in can be set using \f(CW\*(C`dir\*(C'\fR +as in +.PP +.Vb 1 +\& o conf plugin_list push CPAN::Plugin::Specfile=dir,/tmp/specfiles\-000042 +.Ve +.PP +The default directory for this is the +\&\f(CW\*(C`plugins/CPAN::Plugin::Specfile\*(C'\fR directory in the \fIcpan_home\fR +directory. +.SH "AUTHOR" +.IX Header "AUTHOR" +Andreas Koenig , Branislav Zahradnik diff --git a/data/miniconda3/man/man3/Class%3A%3AStruct.3 b/data/miniconda3/man/man3/Class%3A%3AStruct.3 new file mode 100644 index 0000000000000000000000000000000000000000..49182c360a786e295695c298b583e91be87c3a1b --- /dev/null +++ b/data/miniconda3/man/man3/Class%3A%3AStruct.3 @@ -0,0 +1,533 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Class::Struct 3" +.TH Class::Struct 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Class::Struct \- declare struct\-like datatypes as Perl classes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use Class::Struct; +\& # declare struct, based on array: +\& struct( CLASS_NAME => [ ELEMENT_NAME => ELEMENT_TYPE, ... ]); +\& # declare struct, based on hash: +\& struct( CLASS_NAME => { ELEMENT_NAME => ELEMENT_TYPE, ... }); +\& +\& package CLASS_NAME; +\& use Class::Struct; +\& # declare struct, based on array, implicit class name: +\& struct( ELEMENT_NAME => ELEMENT_TYPE, ... ); +\& +\& # Declare struct at compile time +\& use Class::Struct CLASS_NAME => [ELEMENT_NAME => ELEMENT_TYPE, ...]; +\& use Class::Struct CLASS_NAME => {ELEMENT_NAME => ELEMENT_TYPE, ...}; +\& +\& # declare struct at compile time, based on array, implicit +\& # class name: +\& package CLASS_NAME; +\& use Class::Struct ELEMENT_NAME => ELEMENT_TYPE, ... ; +\& +\& package Myobj; +\& use Class::Struct; +\& # declare struct with four types of elements: +\& struct( s => \*(Aq$\*(Aq, a => \*(Aq@\*(Aq, h => \*(Aq%\*(Aq, c => \*(AqMy_Other_Class\*(Aq ); +\& +\& $obj = new Myobj; # constructor +\& +\& # scalar type accessor: +\& $element_value = $obj\->s; # element value +\& $obj\->s(\*(Aqnew value\*(Aq); # assign to element +\& +\& # array type accessor: +\& $ary_ref = $obj\->a; # reference to whole array +\& $ary_element_value = $obj\->a(2); # array element value +\& $obj\->a(2, \*(Aqnew value\*(Aq); # assign to array element +\& +\& # hash type accessor: +\& $hash_ref = $obj\->h; # reference to whole hash +\& $hash_element_value = $obj\->h(\*(Aqx\*(Aq); # hash element value +\& $obj\->h(\*(Aqx\*(Aq, \*(Aqnew value\*(Aq); # assign to hash element +\& +\& # class type accessor: +\& $element_value = $obj\->c; # object reference +\& $obj\->c\->method(...); # call method of object +\& $obj\->c(new My_Other_Class); # assign a new object +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Class::Struct\*(C'\fR exports a single function, \f(CW\*(C`struct\*(C'\fR. +Given a list of element names and types, and optionally +a class name, \f(CW\*(C`struct\*(C'\fR creates a Perl 5 class that implements +a \*(L"struct-like\*(R" data structure. +.PP +The new class is given a constructor method, \f(CW\*(C`new\*(C'\fR, for creating +struct objects. +.PP +Each element in the struct data has an accessor method, which is +used to assign to the element and to fetch its value. The +default accessor can be overridden by declaring a \f(CW\*(C`sub\*(C'\fR of the +same name in the package. (See Example 2.) +.PP +Each element's type can be scalar, array, hash, or class. +.ie n .SS "The ""struct()"" function" +.el .SS "The \f(CWstruct()\fP function" +.IX Subsection "The struct() function" +The \f(CW\*(C`struct\*(C'\fR function has three forms of parameter-list. +.PP +.Vb 3 +\& struct( CLASS_NAME => [ ELEMENT_LIST ]); +\& struct( CLASS_NAME => { ELEMENT_LIST }); +\& struct( ELEMENT_LIST ); +.Ve +.PP +The first and second forms explicitly identify the name of the +class being created. The third form assumes the current package +name as the class name. +.PP +An object of a class created by the first and third forms is +based on an array, whereas an object of a class created by the +second form is based on a hash. The array-based forms will be +somewhat faster and smaller; the hash-based forms are more +flexible. +.PP +The class created by \f(CW\*(C`struct\*(C'\fR must not be a subclass of another +class other than \f(CW\*(C`UNIVERSAL\*(C'\fR. +.PP +It can, however, be used as a superclass for other classes. To facilitate +this, the generated constructor method uses a two-argument blessing. +Furthermore, if the class is hash-based, the key of each element is +prefixed with the class name (see \fIPerl Cookbook\fR, Recipe 13.12). +.PP +A function named \f(CW\*(C`new\*(C'\fR must not be explicitly defined in a class +created by \f(CW\*(C`struct\*(C'\fR. +.PP +The \fI\s-1ELEMENT_LIST\s0\fR has the form +.PP +.Vb 1 +\& NAME => TYPE, ... +.Ve +.PP +Each name-type pair declares one element of the struct. Each +element name will be defined as an accessor method unless a +method by that name is explicitly defined; in the latter case, a +warning is issued if the warning flag (\fB\-w\fR) is set. +.SS "Class Creation at Compile Time" +.IX Subsection "Class Creation at Compile Time" +\&\f(CW\*(C`Class::Struct\*(C'\fR can create your class at compile time. The main reason +for doing this is obvious, so your class acts like every other class in +Perl. Creating your class at compile time will make the order of events +similar to using any other class ( or Perl module ). +.PP +There is no significant speed gain between compile time and run time +class creation, there is just a new, more standard order of events. +.SS "Element Types and Accessor Methods" +.IX Subsection "Element Types and Accessor Methods" +The four element types \*(-- scalar, array, hash, and class \*(-- are +represented by strings \*(-- \f(CW\*(Aq$\*(Aq\fR, \f(CW\*(Aq@\*(Aq\fR, \f(CW\*(Aq%\*(Aq\fR, and a class name \*(-- +optionally preceded by a \f(CW\*(Aq*\*(Aq\fR. +.PP +The accessor method provided by \f(CW\*(C`struct\*(C'\fR for an element depends +on the declared type of the element. +.ie n .IP "Scalar (\*(Aq$\*(Aq or \*(Aq*$\*(Aq)" 4 +.el .IP "Scalar (\f(CW\*(Aq$\*(Aq\fR or \f(CW\*(Aq*$\*(Aq\fR)" 4 +.IX Item "Scalar ($ or *$)" +The element is a scalar, and by default is initialized to \f(CW\*(C`undef\*(C'\fR +(but see \*(L"Initializing with new\*(R"). +.Sp +The accessor's argument, if any, is assigned to the element. +.Sp +If the element type is \f(CW\*(Aq$\*(Aq\fR, the value of the element (after +assignment) is returned. If the element type is \f(CW\*(Aq*$\*(Aq\fR, a reference +to the element is returned. +.ie n .IP "Array (\*(Aq@\*(Aq or \*(Aq*@\*(Aq)" 4 +.el .IP "Array (\f(CW\*(Aq@\*(Aq\fR or \f(CW\*(Aq*@\*(Aq\fR)" 4 +.IX Item "Array (@ or *@)" +The element is an array, initialized by default to \f(CW\*(C`()\*(C'\fR. +.Sp +With no argument, the accessor returns a reference to the +element's whole array (whether or not the element was +specified as \f(CW\*(Aq@\*(Aq\fR or \f(CW\*(Aq*@\*(Aq\fR). +.Sp +With one or two arguments, the first argument is an index +specifying one element of the array; the second argument, if +present, is assigned to the array element. If the element type +is \f(CW\*(Aq@\*(Aq\fR, the accessor returns the array element value. If the +element type is \f(CW\*(Aq*@\*(Aq\fR, a reference to the array element is +returned. +.Sp +As a special case, when the accessor is called with an array reference +as the sole argument, this causes an assignment of the whole array element. +The object reference is returned. +.ie n .IP "Hash (\*(Aq%\*(Aq or \*(Aq*%\*(Aq)" 4 +.el .IP "Hash (\f(CW\*(Aq%\*(Aq\fR or \f(CW\*(Aq*%\*(Aq\fR)" 4 +.IX Item "Hash (% or *%)" +The element is a hash, initialized by default to \f(CW\*(C`()\*(C'\fR. +.Sp +With no argument, the accessor returns a reference to the +element's whole hash (whether or not the element was +specified as \f(CW\*(Aq%\*(Aq\fR or \f(CW\*(Aq*%\*(Aq\fR). +.Sp +With one or two arguments, the first argument is a key specifying +one element of the hash; the second argument, if present, is +assigned to the hash element. If the element type is \f(CW\*(Aq%\*(Aq\fR, the +accessor returns the hash element value. If the element type is +\&\f(CW\*(Aq*%\*(Aq\fR, a reference to the hash element is returned. +.Sp +As a special case, when the accessor is called with a hash reference +as the sole argument, this causes an assignment of the whole hash element. +The object reference is returned. +.ie n .IP "Class (\*(AqClass_Name\*(Aq or \*(Aq*Class_Name\*(Aq)" 4 +.el .IP "Class (\f(CW\*(AqClass_Name\*(Aq\fR or \f(CW\*(Aq*Class_Name\*(Aq\fR)" 4 +.IX Item "Class (Class_Name or *Class_Name)" +The element's value must be a reference blessed to the named +class or to one of its subclasses. The element is not initialized +by default. +.Sp +The accessor's argument, if any, is assigned to the element. The +accessor will \f(CW\*(C`croak\*(C'\fR if this is not an appropriate object +reference. +.Sp +If the element type does not start with a \f(CW\*(Aq*\*(Aq\fR, the accessor +returns the element value (after assignment). If the element type +starts with a \f(CW\*(Aq*\*(Aq\fR, a reference to the element itself is returned. +.ie n .SS "Initializing with ""new""" +.el .SS "Initializing with \f(CWnew\fP" +.IX Subsection "Initializing with new" +\&\f(CW\*(C`struct\*(C'\fR always creates a constructor called \f(CW\*(C`new\*(C'\fR. That constructor +may take a list of initializers for the various elements of the new +struct. +.PP +Each initializer is a pair of values: \fIelement name\fR\f(CW\*(C` => \*(C'\fR\fIvalue\fR. +The initializer value for a scalar element is just a scalar value. The +initializer for an array element is an array reference. The initializer +for a hash is a hash reference. +.PP +The initializer for a class element is an object of the corresponding class, +or of one of it's subclasses, or a reference to a hash containing named +arguments to be passed to the element's constructor. +.PP +See Example 3 below for an example of initialization. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.IP "Example 1" 4 +.IX Item "Example 1" +Giving a struct element a class type that is also a struct is how +structs are nested. Here, \f(CW\*(C`Timeval\*(C'\fR represents a time (seconds and +microseconds), and \f(CW\*(C`Rusage\*(C'\fR has two elements, each of which is of +type \f(CW\*(C`Timeval\*(C'\fR. +.Sp +.Vb 1 +\& use Class::Struct; +\& +\& struct( Rusage => { +\& ru_utime => \*(AqTimeval\*(Aq, # user time used +\& ru_stime => \*(AqTimeval\*(Aq, # system time used +\& }); +\& +\& struct( Timeval => [ +\& tv_secs => \*(Aq$\*(Aq, # seconds +\& tv_usecs => \*(Aq$\*(Aq, # microseconds +\& ]); +\& +\& # create an object: +\& my $t = Rusage\->new(ru_utime=>Timeval\->new(), +\& ru_stime=>Timeval\->new()); +\& +\& # $t\->ru_utime and $t\->ru_stime are objects of type Timeval. +\& # set $t\->ru_utime to 100.0 sec and $t\->ru_stime to 5.0 sec. +\& $t\->ru_utime\->tv_secs(100); +\& $t\->ru_utime\->tv_usecs(0); +\& $t\->ru_stime\->tv_secs(5); +\& $t\->ru_stime\->tv_usecs(0); +.Ve +.IP "Example 2" 4 +.IX Item "Example 2" +An accessor function can be redefined in order to provide +additional checking of values, etc. Here, we want the \f(CW\*(C`count\*(C'\fR +element always to be nonnegative, so we redefine the \f(CW\*(C`count\*(C'\fR +accessor accordingly. +.Sp +.Vb 2 +\& package MyObj; +\& use Class::Struct; +\& +\& # declare the struct +\& struct ( \*(AqMyObj\*(Aq, { count => \*(Aq$\*(Aq, stuff => \*(Aq%\*(Aq } ); +\& +\& # override the default accessor method for \*(Aqcount\*(Aq +\& sub count { +\& my $self = shift; +\& if ( @_ ) { +\& die \*(Aqcount must be nonnegative\*(Aq if $_[0] < 0; +\& $self\->{\*(AqMyObj::count\*(Aq} = shift; +\& warn "Too many args to count" if @_; +\& } +\& return $self\->{\*(AqMyObj::count\*(Aq}; +\& } +\& +\& package main; +\& $x = new MyObj; +\& print "\e$x\->count(5) = ", $x\->count(5), "\en"; +\& # prints \*(Aq$x\->count(5) = 5\*(Aq +\& +\& print "\e$x\->count = ", $x\->count, "\en"; +\& # prints \*(Aq$x\->count = 5\*(Aq +\& +\& print "\e$x\->count(\-5) = ", $x\->count(\-5), "\en"; +\& # dies due to negative argument! +.Ve +.IP "Example 3" 4 +.IX Item "Example 3" +The constructor of a generated class can be passed a list +of \fIelement\fR=>\fIvalue\fR pairs, with which to initialize the struct. +If no initializer is specified for a particular element, its default +initialization is performed instead. Initializers for non-existent +elements are silently ignored. +.Sp +Note that the initializer for a nested class may be specified as +an object of that class, or as a reference to a hash of initializers +that are passed on to the nested struct's constructor. +.Sp +.Vb 1 +\& use Class::Struct; +\& +\& struct Breed => +\& { +\& name => \*(Aq$\*(Aq, +\& cross => \*(Aq$\*(Aq, +\& }; +\& +\& struct Cat => +\& [ +\& name => \*(Aq$\*(Aq, +\& kittens => \*(Aq@\*(Aq, +\& markings => \*(Aq%\*(Aq, +\& breed => \*(AqBreed\*(Aq, +\& ]; +\& +\& +\& my $cat = Cat\->new( name => \*(AqSocks\*(Aq, +\& kittens => [\*(AqMonica\*(Aq, \*(AqKenneth\*(Aq], +\& markings => { socks=>1, blaze=>"white" }, +\& breed => Breed\->new(name=>\*(Aqshort\-hair\*(Aq, cross=>1), +\& or: breed => {name=>\*(Aqshort\-hair\*(Aq, cross=>1}, +\& ); +\& +\& print "Once a cat called ", $cat\->name, "\en"; +\& print "(which was a ", $cat\->breed\->name, ")\en"; +\& print "had 2 kittens: ", join(\*(Aq and \*(Aq, @{$cat\->kittens}), "\en"; +.Ve +.SH "Author and Modification History" +.IX Header "Author and Modification History" +Modified by Damian Conway, 2001\-09\-10, v0.62. +.PP +.Vb 11 +\& Modified implicit construction of nested objects. +\& Now will also take an object ref instead of requiring a hash ref. +\& Also default initializes nested object attributes to undef, rather +\& than calling object constructor without args +\& Original over\-helpfulness was fraught with problems: +\& * the class\*(Aqs constructor might not be called \*(Aqnew\*(Aq +\& * the class might not have a hash\-like\-arguments constructor +\& * the class might not have a no\-argument constructor +\& * "recursive" data structures didn\*(Aqt work well: +\& package Person; +\& struct { mother => \*(AqPerson\*(Aq, father => \*(AqPerson\*(Aq}; +.Ve +.PP +Modified by Casey West, 2000\-11\-08, v0.59. +.PP +.Vb 1 +\& Added the ability for compile time class creation. +.Ve +.PP +Modified by Damian Conway, 1999\-03\-05, v0.58. +.PP +.Vb 1 +\& Added handling of hash\-like arg list to class ctor. +\& +\& Changed to two\-argument blessing in ctor to support +\& derivation from created classes. +\& +\& Added classname prefixes to keys in hash\-based classes +\& (refer to "Perl Cookbook", Recipe 13.12 for rationale). +\& +\& Corrected behaviour of accessors for \*(Aq*@\*(Aq and \*(Aq*%\*(Aq struct +\& elements. Package now implements documented behaviour when +\& returning a reference to an entire hash or array element. +\& Previously these were returned as a reference to a reference +\& to the element. +.Ve +.PP +Renamed to \f(CW\*(C`Class::Struct\*(C'\fR and modified by Jim Miner, 1997\-04\-02. +.PP +.Vb 8 +\& members() function removed. +\& Documentation corrected and extended. +\& Use of struct() in a subclass prohibited. +\& User definition of accessor allowed. +\& Treatment of \*(Aq*\*(Aq in element types corrected. +\& Treatment of classes as element types corrected. +\& Class name to struct() made optional. +\& Diagnostic checks added. +.Ve +.PP +Originally \f(CW\*(C`Class::Template\*(C'\fR by Dean Roehrich. +.PP +.Vb 10 +\& # Template.pm \-\-\- struct/member template builder +\& # 12mar95 +\& # Dean Roehrich +\& # +\& # changes/bugs fixed since 28nov94 version: +\& # \- podified +\& # changes/bugs fixed since 21nov94 version: +\& # \- Fixed examples. +\& # changes/bugs fixed since 02sep94 version: +\& # \- Moved to Class::Template. +\& # changes/bugs fixed since 20feb94 version: +\& # \- Updated to be a more proper module. +\& # \- Added "use strict". +\& # \- Bug in build_methods, was using @var when @$var needed. +\& # \- Now using my() rather than local(). +\& # +\& # Uses perl5 classes to create nested data types. +\& # This is offered as one implementation of Tom Christiansen\*(Aqs +\& # "structs.pl" idea. +.Ve diff --git a/data/miniconda3/man/man3/Encode.3 b/data/miniconda3/man/man3/Encode.3 new file mode 100644 index 0000000000000000000000000000000000000000..c5e6140d120d9140c1bc355b2d6cab423cef6008 --- /dev/null +++ b/data/miniconda3/man/man3/Encode.3 @@ -0,0 +1,937 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Encode 3" +.TH Encode 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Encode \- character encodings in Perl +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use Encode qw(decode encode); +\& $characters = decode(\*(AqUTF\-8\*(Aq, $octets, Encode::FB_CROAK); +\& $octets = encode(\*(AqUTF\-8\*(Aq, $characters, Encode::FB_CROAK); +.Ve +.SS "Table of Contents" +.IX Subsection "Table of Contents" +Encode consists of a collection of modules whose details are too extensive +to fit in one document. This one itself explains the top-level APIs +and general topics at a glance. For other topics and more details, +see the documentation for these modules: +.IP "Encode::Alias \- Alias definitions to encodings" 2 +.IX Item "Encode::Alias - Alias definitions to encodings" +.PD 0 +.IP "Encode::Encoding \- Encode Implementation Base Class" 2 +.IX Item "Encode::Encoding - Encode Implementation Base Class" +.IP "Encode::Supported \- List of Supported Encodings" 2 +.IX Item "Encode::Supported - List of Supported Encodings" +.IP "Encode::CN \- Simplified Chinese Encodings" 2 +.IX Item "Encode::CN - Simplified Chinese Encodings" +.IP "Encode::JP \- Japanese Encodings" 2 +.IX Item "Encode::JP - Japanese Encodings" +.IP "Encode::KR \- Korean Encodings" 2 +.IX Item "Encode::KR - Korean Encodings" +.IP "Encode::TW \- Traditional Chinese Encodings" 2 +.IX Item "Encode::TW - Traditional Chinese Encodings" +.PD +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`Encode\*(C'\fR module provides the interface between Perl strings +and the rest of the system. Perl strings are sequences of +\&\fIcharacters\fR. +.PP +The repertoire of characters that Perl can represent is a superset of those +defined by the Unicode Consortium. On most platforms the ordinal +values of a character as returned by \f(CW\*(C`ord(\f(CIS\f(CW)\*(C'\fR is the \fIUnicode +codepoint\fR for that character. The exceptions are platforms where +the legacy encoding is some variant of \s-1EBCDIC\s0 rather than a superset +of \s-1ASCII\s0; see perlebcdic. +.PP +During recent history, data is moved around a computer in 8\-bit chunks, +often called \*(L"bytes\*(R" but also known as \*(L"octets\*(R" in standards documents. +Perl is widely used to manipulate data of many types: not only strings of +characters representing human or computer languages, but also \*(L"binary\*(R" +data, being the machine's representation of numbers, pixels in an image, or +just about anything. +.PP +When Perl is processing \*(L"binary data\*(R", the programmer wants Perl to +process \*(L"sequences of bytes\*(R". This is not a problem for Perl: because a +byte has 256 possible values, it easily fits in Perl's much larger +\&\*(L"logical character\*(R". +.PP +This document mostly explains the \fIhow\fR. perlunitut and perlunifaq +explain the \fIwhy\fR. +.SS "\s-1TERMINOLOGY\s0" +.IX Subsection "TERMINOLOGY" +\fIcharacter\fR +.IX Subsection "character" +.PP +A character in the range 0 .. 2**32\-1 (or more); +what Perl's strings are made of. +.PP +\fIbyte\fR +.IX Subsection "byte" +.PP +A character in the range 0..255; +a special case of a Perl character. +.PP +\fIoctet\fR +.IX Subsection "octet" +.PP +8 bits of data, with ordinal values 0..255; +term for bytes passed to or from a non-Perl context, such as a disk file, +standard I/O stream, database, command-line argument, environment variable, +socket etc. +.SH "THE PERL ENCODING API" +.IX Header "THE PERL ENCODING API" +.SS "Basic methods" +.IX Subsection "Basic methods" +\fIencode\fR +.IX Subsection "encode" +.PP +.Vb 1 +\& $octets = encode(ENCODING, STRING[, CHECK]) +.Ve +.PP +Encodes the scalar value \fI\s-1STRING\s0\fR from Perl's internal form into +\&\fI\s-1ENCODING\s0\fR and returns a sequence of octets. \fI\s-1ENCODING\s0\fR can be either a +canonical name or an alias. For encoding names and aliases, see +\&\*(L"Defining Aliases\*(R". For \s-1CHECK,\s0 see \*(L"Handling Malformed Data\*(R". +.PP +\&\fB\s-1CAVEAT\s0\fR: the input scalar \fI\s-1STRING\s0\fR might be modified in-place depending +on what is set in \s-1CHECK.\s0 See \*(L"\s-1LEAVE_SRC\*(R"\s0 if you want your inputs to be +left unchanged. +.PP +For example, to convert a string from Perl's internal format into +\&\s-1ISO\-8859\-1,\s0 also known as Latin1: +.PP +.Vb 1 +\& $octets = encode("iso\-8859\-1", $string); +.Ve +.PP +\&\fB\s-1CAVEAT\s0\fR: When you run \f(CW\*(C`$octets = encode("UTF\-8", $string)\*(C'\fR, then +\&\f(CW$octets\fR \fImight not be equal to\fR \f(CW$string\fR. Though both contain the +same data, the \s-1UTF8\s0 flag for \f(CW$octets\fR is \fIalways\fR off. When you +encode anything, the \s-1UTF8\s0 flag on the result is always off, even when it +contains a completely valid \s-1UTF\-8\s0 string. See \*(L"The \s-1UTF8\s0 flag\*(R" below. +.PP +If the \f(CW$string\fR is \f(CW\*(C`undef\*(C'\fR, then \f(CW\*(C`undef\*(C'\fR is returned. +.PP +\&\f(CW\*(C`str2bytes\*(C'\fR may be used as an alias for \f(CW\*(C`encode\*(C'\fR. +.PP +\fIdecode\fR +.IX Subsection "decode" +.PP +.Vb 1 +\& $string = decode(ENCODING, OCTETS[, CHECK]) +.Ve +.PP +This function returns the string that results from decoding the scalar +value \fI\s-1OCTETS\s0\fR, assumed to be a sequence of octets in \fI\s-1ENCODING\s0\fR, into +Perl's internal form. As with \fBencode()\fR, +\&\fI\s-1ENCODING\s0\fR can be either a canonical name or an alias. For encoding names +and aliases, see \*(L"Defining Aliases\*(R"; for \fI\s-1CHECK\s0\fR, see \*(L"Handling +Malformed Data\*(R". +.PP +\&\fB\s-1CAVEAT\s0\fR: the input scalar \fI\s-1OCTETS\s0\fR might be modified in-place depending +on what is set in \s-1CHECK.\s0 See \*(L"\s-1LEAVE_SRC\*(R"\s0 if you want your inputs to be +left unchanged. +.PP +For example, to convert \s-1ISO\-8859\-1\s0 data into a string in Perl's +internal format: +.PP +.Vb 1 +\& $string = decode("iso\-8859\-1", $octets); +.Ve +.PP +\&\fB\s-1CAVEAT\s0\fR: When you run \f(CW\*(C`$string = decode("UTF\-8", $octets)\*(C'\fR, then \f(CW$string\fR +\&\fImight not be equal to\fR \f(CW$octets\fR. Though both contain the same data, the +\&\s-1UTF8\s0 flag for \f(CW$string\fR is on. See \*(L"The \s-1UTF8\s0 flag\*(R" +below. +.PP +If the \f(CW$string\fR is \f(CW\*(C`undef\*(C'\fR, then \f(CW\*(C`undef\*(C'\fR is returned. +.PP +\&\f(CW\*(C`bytes2str\*(C'\fR may be used as an alias for \f(CW\*(C`decode\*(C'\fR. +.PP +\fIfind_encoding\fR +.IX Subsection "find_encoding" +.PP +.Vb 1 +\& [$obj =] find_encoding(ENCODING) +.Ve +.PP +Returns the \fIencoding object\fR corresponding to \fI\s-1ENCODING\s0\fR. Returns +\&\f(CW\*(C`undef\*(C'\fR if no matching \fI\s-1ENCODING\s0\fR is find. The returned object is +what does the actual encoding or decoding. +.PP +.Vb 1 +\& $string = decode($name, $bytes); +.Ve +.PP +is in fact +.PP +.Vb 5 +\& $string = do { +\& $obj = find_encoding($name); +\& croak qq(encoding "$name" not found) unless ref $obj; +\& $obj\->decode($bytes); +\& }; +.Ve +.PP +with more error checking. +.PP +You can therefore save time by reusing this object as follows; +.PP +.Vb 5 +\& my $enc = find_encoding("iso\-8859\-1"); +\& while(<>) { +\& my $string = $enc\->decode($_); +\& ... # now do something with $string; +\& } +.Ve +.PP +Besides \*(L"decode\*(R" and \*(L"encode\*(R", other methods are +available as well. For instance, \f(CW\*(C`name()\*(C'\fR returns the canonical +name of the encoding object. +.PP +.Vb 1 +\& find_encoding("latin1")\->name; # iso\-8859\-1 +.Ve +.PP +See Encode::Encoding for details. +.PP +\fIfind_mime_encoding\fR +.IX Subsection "find_mime_encoding" +.PP +.Vb 1 +\& [$obj =] find_mime_encoding(MIME_ENCODING) +.Ve +.PP +Returns the \fIencoding object\fR corresponding to \fI\s-1MIME_ENCODING\s0\fR. Acts +same as \f(CW\*(C`find_encoding()\*(C'\fR but \f(CW\*(C`mime_name()\*(C'\fR of returned object must +match to \fI\s-1MIME_ENCODING\s0\fR. So as opposite of \f(CW\*(C`find_encoding()\*(C'\fR +canonical names and aliases are not used when searching for object. +.PP +.Vb 4 +\& find_mime_encoding("utf8"); # returns undef because "utf8" is not valid I +\& find_mime_encoding("utf\-8"); # returns encode object "utf\-8\-strict" +\& find_mime_encoding("UTF\-8"); # same as "utf\-8" because I is case insensitive +\& find_mime_encoding("utf\-8\-strict"); returns undef because "utf\-8\-strict" is not valid I +.Ve +.PP +\fIfrom_to\fR +.IX Subsection "from_to" +.PP +.Vb 1 +\& [$length =] from_to($octets, FROM_ENC, TO_ENC [, CHECK]) +.Ve +.PP +Converts \fIin-place\fR data between two encodings. The data in \f(CW$octets\fR +must be encoded as octets and \fInot\fR as characters in Perl's internal +format. For example, to convert \s-1ISO\-8859\-1\s0 data into Microsoft's \s-1CP1250\s0 +encoding: +.PP +.Vb 1 +\& from_to($octets, "iso\-8859\-1", "cp1250"); +.Ve +.PP +and to convert it back: +.PP +.Vb 1 +\& from_to($octets, "cp1250", "iso\-8859\-1"); +.Ve +.PP +Because the conversion happens in place, the data to be +converted cannot be a string constant: it must be a scalar variable. +.PP +\&\f(CW\*(C`from_to()\*(C'\fR returns the length of the converted string in octets on success, +and \f(CW\*(C`undef\*(C'\fR on error. +.PP +\&\fB\s-1CAVEAT\s0\fR: The following operations may look the same, but are not: +.PP +.Vb 2 +\& from_to($data, "iso\-8859\-1", "UTF\-8"); #1 +\& $data = decode("iso\-8859\-1", $data); #2 +.Ve +.PP +Both #1 and #2 make \f(CW$data\fR consist of a completely valid \s-1UTF\-8\s0 string, +but only #2 turns the \s-1UTF8\s0 flag on. #1 is equivalent to: +.PP +.Vb 1 +\& $data = encode("UTF\-8", decode("iso\-8859\-1", $data)); +.Ve +.PP +See \*(L"The \s-1UTF8\s0 flag\*(R" below. +.PP +Also note that: +.PP +.Vb 1 +\& from_to($octets, $from, $to, $check); +.Ve +.PP +is equivalent to: +.PP +.Vb 1 +\& $octets = encode($to, decode($from, $octets), $check); +.Ve +.PP +Yes, it does \fInot\fR respect the \f(CW$check\fR during decoding. It is +deliberately done that way. If you need minute control, use \f(CW\*(C`decode\*(C'\fR +followed by \f(CW\*(C`encode\*(C'\fR as follows: +.PP +.Vb 1 +\& $octets = encode($to, decode($from, $octets, $check_from), $check_to); +.Ve +.PP +\fIencode_utf8\fR +.IX Subsection "encode_utf8" +.PP +.Vb 1 +\& $octets = encode_utf8($string); +.Ve +.PP +Equivalent to \f(CW\*(C`$octets = encode("utf8", $string)\*(C'\fR. The characters in +\&\f(CW$string\fR are encoded in Perl's internal format, and the result is returned +as a sequence of octets. Because all possible characters in Perl have a +(loose, not strict) utf8 representation, this function cannot fail. +.PP +\&\fB\s-1WARNING\s0\fR: do not use this function for data exchange as it can produce +not strict utf8 \f(CW$octets\fR! For strictly valid \s-1UTF\-8\s0 output use +\&\f(CW\*(C`$octets = encode("UTF\-8", $string)\*(C'\fR. +.PP +\fIdecode_utf8\fR +.IX Subsection "decode_utf8" +.PP +.Vb 1 +\& $string = decode_utf8($octets [, CHECK]); +.Ve +.PP +Equivalent to \f(CW\*(C`$string = decode("utf8", $octets [, CHECK])\*(C'\fR. +The sequence of octets represented by \f(CW$octets\fR is decoded +from (loose, not strict) utf8 into a sequence of logical characters. +Because not all sequences of octets are valid not strict utf8, +it is quite possible for this function to fail. +For \s-1CHECK,\s0 see \*(L"Handling Malformed Data\*(R". +.PP +\&\fB\s-1WARNING\s0\fR: do not use this function for data exchange as it can produce +\&\f(CW$string\fR with not strict utf8 representation! For strictly valid \s-1UTF\-8\s0 +\&\f(CW$string\fR representation use \f(CW\*(C`$string = decode("UTF\-8", $octets [, CHECK])\*(C'\fR. +.PP +\&\fB\s-1CAVEAT\s0\fR: the input \fI\f(CI$octets\fI\fR might be modified in-place depending on +what is set in \s-1CHECK.\s0 See \*(L"\s-1LEAVE_SRC\*(R"\s0 if you want your inputs to be +left unchanged. +.SS "Listing available encodings" +.IX Subsection "Listing available encodings" +.Vb 2 +\& use Encode; +\& @list = Encode\->encodings(); +.Ve +.PP +Returns a list of canonical names of available encodings that have already +been loaded. To get a list of all available encodings including those that +have not yet been loaded, say: +.PP +.Vb 1 +\& @all_encodings = Encode\->encodings(":all"); +.Ve +.PP +Or you can give the name of a specific module: +.PP +.Vb 1 +\& @with_jp = Encode\->encodings("Encode::JP"); +.Ve +.PP +When "\f(CW\*(C`::\*(C'\fR\*(L" is not in the name, \*(R"\f(CW\*(C`Encode::\*(C'\fR" is assumed. +.PP +.Vb 1 +\& @ebcdic = Encode\->encodings("EBCDIC"); +.Ve +.PP +To find out in detail which encodings are supported by this package, +see Encode::Supported. +.SS "Defining Aliases" +.IX Subsection "Defining Aliases" +To add a new alias to a given encoding, use: +.PP +.Vb 3 +\& use Encode; +\& use Encode::Alias; +\& define_alias(NEWNAME => ENCODING); +.Ve +.PP +After that, \fI\s-1NEWNAME\s0\fR can be used as an alias for \fI\s-1ENCODING\s0\fR. +\&\fI\s-1ENCODING\s0\fR may be either the name of an encoding or an +\&\fIencoding object\fR. +.PP +Before you do that, first make sure the alias is nonexistent using +\&\f(CW\*(C`resolve_alias()\*(C'\fR, which returns the canonical name thereof. +For example: +.PP +.Vb 3 +\& Encode::resolve_alias("latin1") eq "iso\-8859\-1" # true +\& Encode::resolve_alias("iso\-8859\-12") # false; nonexistent +\& Encode::resolve_alias($name) eq $name # true if $name is canonical +.Ve +.PP +\&\f(CW\*(C`resolve_alias()\*(C'\fR does not need \f(CW\*(C`use Encode::Alias\*(C'\fR; it can be +imported via \f(CW\*(C`use Encode qw(resolve_alias)\*(C'\fR. +.PP +See Encode::Alias for details. +.SS "Finding \s-1IANA\s0 Character Set Registry names" +.IX Subsection "Finding IANA Character Set Registry names" +The canonical name of a given encoding does not necessarily agree with +\&\s-1IANA\s0 Character Set Registry, commonly seen as \f(CW\*(C`Content\-Type: +text/plain; charset=\f(CIWHATEVER\f(CW\*(C'\fR. For most cases, the canonical name +works, but sometimes it does not, most notably with \*(L"utf\-8\-strict\*(R". +.PP +As of \f(CW\*(C`Encode\*(C'\fR version 2.21, a new method \f(CW\*(C`mime_name()\*(C'\fR is therefore added. +.PP +.Vb 4 +\& use Encode; +\& my $enc = find_encoding("UTF\-8"); +\& warn $enc\->name; # utf\-8\-strict +\& warn $enc\->mime_name; # UTF\-8 +.Ve +.PP +See also: Encode::Encoding +.SH "Encoding via PerlIO" +.IX Header "Encoding via PerlIO" +If your perl supports \f(CW\*(C`PerlIO\*(C'\fR (which is the default), you can use a +\&\f(CW\*(C`PerlIO\*(C'\fR layer to decode and encode directly via a filehandle. The +following two examples are fully identical in functionality: +.PP +.Vb 10 +\& ### Version 1 via PerlIO +\& open(INPUT, "< :encoding(shiftjis)", $infile) +\& || die "Can\*(Aqt open < $infile for reading: $!"; +\& open(OUTPUT, "> :encoding(euc\-jp)", $outfile) +\& || die "Can\*(Aqt open > $output for writing: $!"; +\& while () { # auto decodes $_ +\& print OUTPUT; # auto encodes $_ +\& } +\& close(INPUT) || die "can\*(Aqt close $infile: $!"; +\& close(OUTPUT) || die "can\*(Aqt close $outfile: $!"; +\& +\& ### Version 2 via from_to() +\& open(INPUT, "< :raw", $infile) +\& || die "Can\*(Aqt open < $infile for reading: $!"; +\& open(OUTPUT, "> :raw", $outfile) +\& || die "Can\*(Aqt open > $output for writing: $!"; +\& +\& while () { +\& from_to($_, "shiftjis", "euc\-jp", 1); # switch encoding +\& print OUTPUT; # emit raw (but properly encoded) data +\& } +\& close(INPUT) || die "can\*(Aqt close $infile: $!"; +\& close(OUTPUT) || die "can\*(Aqt close $outfile: $!"; +.Ve +.PP +In the first version above, you let the appropriate encoding layer +handle the conversion. In the second, you explicitly translate +from one encoding to the other. +.PP +Unfortunately, it may be that encodings are not \f(CW\*(C`PerlIO\*(C'\fR\-savvy. You can check +to see whether your encoding is supported by \f(CW\*(C`PerlIO\*(C'\fR by invoking the +\&\f(CW\*(C`perlio_ok\*(C'\fR method on it: +.PP +.Vb 2 +\& Encode::perlio_ok("hz"); # false +\& find_encoding("euc\-cn")\->perlio_ok; # true wherever PerlIO is available +\& +\& use Encode qw(perlio_ok); # imported upon request +\& perlio_ok("euc\-jp") +.Ve +.PP +Fortunately, all encodings that come with \f(CW\*(C`Encode\*(C'\fR core are \f(CW\*(C`PerlIO\*(C'\fR\-savvy +except for \f(CW\*(C`hz\*(C'\fR and \f(CW\*(C`ISO\-2022\-kr\*(C'\fR. For the gory details, see +Encode::Encoding and Encode::PerlIO. +.SH "Handling Malformed Data" +.IX Header "Handling Malformed Data" +The optional \fI\s-1CHECK\s0\fR argument tells \f(CW\*(C`Encode\*(C'\fR what to do when +encountering malformed data. Without \fI\s-1CHECK\s0\fR, \f(CW\*(C`Encode::FB_DEFAULT\*(C'\fR +(== 0) is assumed. +.PP +As of version 2.12, \f(CW\*(C`Encode\*(C'\fR supports coderef values for \f(CW\*(C`CHECK\*(C'\fR; +see below. +.PP +\&\fB\s-1NOTE:\s0\fR Not all encodings support this feature. +Some encodings ignore the \fI\s-1CHECK\s0\fR argument. For example, +Encode::Unicode ignores \fI\s-1CHECK\s0\fR and it always croaks on error. +.SS "List of \fI\s-1CHECK\s0\fP values" +.IX Subsection "List of CHECK values" +\fI\s-1FB_DEFAULT\s0\fR +.IX Subsection "FB_DEFAULT" +.PP +.Vb 1 +\& I = Encode::FB_DEFAULT ( == 0) +.Ve +.PP +If \fI\s-1CHECK\s0\fR is 0, encoding and decoding replace any malformed character +with a \fIsubstitution character\fR. When you encode, \fI\s-1SUBCHAR\s0\fR is used. +When you decode, the Unicode \s-1REPLACEMENT CHARACTER,\s0 code point U+FFFD, is +used. If the data is supposed to be \s-1UTF\-8,\s0 an optional lexical warning of +warning category \f(CW"utf8"\fR is given. +.PP +\fI\s-1FB_CROAK\s0\fR +.IX Subsection "FB_CROAK" +.PP +.Vb 1 +\& I = Encode::FB_CROAK ( == 1) +.Ve +.PP +If \fI\s-1CHECK\s0\fR is 1, methods immediately die with an error +message. Therefore, when \fI\s-1CHECK\s0\fR is 1, you should trap +exceptions with \f(CW\*(C`eval{}\*(C'\fR, unless you really want to let it \f(CW\*(C`die\*(C'\fR. +.PP +\fI\s-1FB_QUIET\s0\fR +.IX Subsection "FB_QUIET" +.PP +.Vb 1 +\& I = Encode::FB_QUIET +.Ve +.PP +If \fI\s-1CHECK\s0\fR is set to \f(CW\*(C`Encode::FB_QUIET\*(C'\fR, encoding and decoding immediately +return the portion of the data that has been processed so far when an +error occurs. The data argument is overwritten with everything +after that point; that is, the unprocessed portion of the data. This is +handy when you have to call \f(CW\*(C`decode\*(C'\fR repeatedly in the case where your +source data may contain partial multi-byte character sequences, +(that is, you are reading with a fixed-width buffer). Here's some sample +code to do exactly that: +.PP +.Vb 5 +\& my($buffer, $string) = ("", ""); +\& while (read($fh, $buffer, 256, length($buffer))) { +\& $string .= decode($encoding, $buffer, Encode::FB_QUIET); +\& # $buffer now contains the unprocessed partial character +\& } +.Ve +.PP +\fI\s-1FB_WARN\s0\fR +.IX Subsection "FB_WARN" +.PP +.Vb 1 +\& I = Encode::FB_WARN +.Ve +.PP +This is the same as \f(CW\*(C`FB_QUIET\*(C'\fR above, except that instead of being silent +on errors, it issues a warning. This is handy for when you are debugging. +.PP +\&\fB\s-1CAVEAT\s0\fR: All warnings from Encode module are reported, independently of +pragma warnings settings. If you want to follow settings of +lexical warnings configured by pragma warnings then append +also check value \f(CW\*(C`ENCODE::ONLY_PRAGMA_WARNINGS\*(C'\fR. This value is available +since Encode version 2.99. +.PP +\fI\s-1FB_PERLQQ FB_HTMLCREF FB_XMLCREF\s0\fR +.IX Subsection "FB_PERLQQ FB_HTMLCREF FB_XMLCREF" +.IP "perlqq mode (\fI\s-1CHECK\s0\fR = Encode::FB_PERLQQ)" 2 +.IX Item "perlqq mode (CHECK = Encode::FB_PERLQQ)" +.PD 0 +.IP "\s-1HTML\s0 charref mode (\fI\s-1CHECK\s0\fR = Encode::FB_HTMLCREF)" 2 +.IX Item "HTML charref mode (CHECK = Encode::FB_HTMLCREF)" +.IP "\s-1XML\s0 charref mode (\fI\s-1CHECK\s0\fR = Encode::FB_XMLCREF)" 2 +.IX Item "XML charref mode (CHECK = Encode::FB_XMLCREF)" +.PD +.PP +For encodings that are implemented by the \f(CW\*(C`Encode::XS\*(C'\fR module, \f(CW\*(C`CHECK\*(C'\fR \f(CW\*(C`==\*(C'\fR +\&\f(CW\*(C`Encode::FB_PERLQQ\*(C'\fR puts \f(CW\*(C`encode\*(C'\fR and \f(CW\*(C`decode\*(C'\fR into \f(CW\*(C`perlqq\*(C'\fR fallback mode. +.PP +When you decode, \f(CW\*(C`\ex\f(CIHH\f(CW\*(C'\fR is inserted for a malformed character, where +\&\fI\s-1HH\s0\fR is the hex representation of the octet that could not be decoded to +utf8. When you encode, \f(CW\*(C`\ex{\f(CIHHHH\f(CW}\*(C'\fR will be inserted, where \fI\s-1HHHH\s0\fR is +the Unicode code point (in any number of hex digits) of the character that +cannot be found in the character repertoire of the encoding. +.PP +The \s-1HTML/XML\s0 character reference modes are about the same. In place of +\&\f(CW\*(C`\ex{\f(CIHHHH\f(CW}\*(C'\fR, \s-1HTML\s0 uses \f(CW\*(C`&#\f(CINNN\f(CW;\*(C'\fR where \fI\s-1NNN\s0\fR is a decimal number, and +\&\s-1XML\s0 uses \f(CW\*(C`&#x\f(CIHHHH\f(CW;\*(C'\fR where \fI\s-1HHHH\s0\fR is the hexadecimal number. +.PP +In \f(CW\*(C`Encode\*(C'\fR 2.10 or later, \f(CW\*(C`LEAVE_SRC\*(C'\fR is also implied. +.PP +\fIThe bitmask\fR +.IX Subsection "The bitmask" +.PP +These modes are all actually set via a bitmask. Here is how the \f(CW\*(C`FB_\f(CIXXX\f(CW\*(C'\fR +constants are laid out. You can import the \f(CW\*(C`FB_\f(CIXXX\f(CW\*(C'\fR constants via +\&\f(CW\*(C`use Encode qw(:fallbacks)\*(C'\fR, and you can import the generic bitmask +constants via \f(CW\*(C`use Encode qw(:fallback_all)\*(C'\fR. +.PP +.Vb 8 +\& FB_DEFAULT FB_CROAK FB_QUIET FB_WARN FB_PERLQQ +\& DIE_ON_ERR 0x0001 X +\& WARN_ON_ERR 0x0002 X +\& RETURN_ON_ERR 0x0004 X X +\& LEAVE_SRC 0x0008 X +\& PERLQQ 0x0100 X +\& HTMLCREF 0x0200 +\& XMLCREF 0x0400 +.Ve +.PP +\fI\s-1LEAVE_SRC\s0\fR +.IX Subsection "LEAVE_SRC" +.PP +.Vb 1 +\& Encode::LEAVE_SRC +.Ve +.PP +If the \f(CW\*(C`Encode::LEAVE_SRC\*(C'\fR bit is \fInot\fR set but \fI\s-1CHECK\s0\fR is set, then the +source string to \fBencode()\fR or \fBdecode()\fR will be overwritten in place. +If you're not interested in this, then bitwise-OR it with the bitmask. +.SS "coderef for \s-1CHECK\s0" +.IX Subsection "coderef for CHECK" +As of \f(CW\*(C`Encode\*(C'\fR 2.12, \f(CW\*(C`CHECK\*(C'\fR can also be a code reference which takes the +ordinal value of the unmapped character as an argument and returns +octets that represent the fallback character. For instance: +.PP +.Vb 1 +\& $ascii = encode("ascii", $utf8, sub{ sprintf "", shift }); +.Ve +.PP +Acts like \f(CW\*(C`FB_PERLQQ\*(C'\fR but U+\fI\s-1XXXX\s0\fR is used instead of \f(CW\*(C`\ex{\f(CIXXXX\f(CW}\*(C'\fR. +.PP +Fallback for \f(CW\*(C`decode\*(C'\fR must return decoded string (sequence of characters) +and takes a list of ordinal values as its arguments. So for +example if you wish to decode octets as \s-1UTF\-8,\s0 and use \s-1ISO\-8859\-15\s0 as +a fallback for bytes that are not valid \s-1UTF\-8,\s0 you could write +.PP +.Vb 4 +\& $str = decode \*(AqUTF\-8\*(Aq, $octets, sub { +\& my $tmp = join \*(Aq\*(Aq, map chr, @_; +\& return decode \*(AqISO\-8859\-15\*(Aq, $tmp; +\& }; +.Ve +.SH "Defining Encodings" +.IX Header "Defining Encodings" +To define a new encoding, use: +.PP +.Vb 2 +\& use Encode qw(define_encoding); +\& define_encoding($object, CANONICAL_NAME [, alias...]); +.Ve +.PP +\&\fI\s-1CANONICAL_NAME\s0\fR will be associated with \fI\f(CI$object\fI\fR. The object +should provide the interface described in Encode::Encoding. +If more than two arguments are provided, additional +arguments are considered aliases for \fI\f(CI$object\fI\fR. +.PP +See Encode::Encoding for details. +.SH "The UTF8 flag" +.IX Header "The UTF8 flag" +Before the introduction of Unicode support in Perl, The \f(CW\*(C`eq\*(C'\fR operator +just compared the strings represented by two scalars. Beginning with +Perl 5.8, \f(CW\*(C`eq\*(C'\fR compares two strings with simultaneous consideration of +\&\fIthe \s-1UTF8\s0 flag\fR. To explain why we made it so, I quote from page 402 of +\&\fIProgramming Perl, 3rd ed.\fR +.IP "Goal #1:" 2 +.IX Item "Goal #1:" +Old byte-oriented programs should not spontaneously break on the old +byte-oriented data they used to work on. +.IP "Goal #2:" 2 +.IX Item "Goal #2:" +Old byte-oriented programs should magically start working on the new +character-oriented data when appropriate. +.IP "Goal #3:" 2 +.IX Item "Goal #3:" +Programs should run just as fast in the new character-oriented mode +as in the old byte-oriented mode. +.IP "Goal #4:" 2 +.IX Item "Goal #4:" +Perl should remain one language, rather than forking into a +byte-oriented Perl and a character-oriented Perl. +.PP +When \fIProgramming Perl, 3rd ed.\fR was written, not even Perl 5.6.0 had been +born yet, many features documented in the book remained unimplemented for a +long time. Perl 5.8 corrected much of this, and the introduction of the +\&\s-1UTF8\s0 flag is one of them. You can think of there being two fundamentally +different kinds of strings and string-operations in Perl: one a +byte-oriented mode for when the internal \s-1UTF8\s0 flag is off, and the other a +character-oriented mode for when the internal \s-1UTF8\s0 flag is on. +.PP +This \s-1UTF8\s0 flag is not visible in Perl scripts, exactly for the same reason +you cannot (or rather, you \fIdon't have to\fR) see whether a scalar contains +a string, an integer, or a floating-point number. But you can still peek +and poke these if you will. See the next section. +.SS "Messing with Perl's Internals" +.IX Subsection "Messing with Perl's Internals" +The following \s-1API\s0 uses parts of Perl's internals in the current +implementation. As such, they are efficient but may change in a future +release. +.PP +\fIis_utf8\fR +.IX Subsection "is_utf8" +.PP +.Vb 1 +\& is_utf8(STRING [, CHECK]) +.Ve +.PP +[\s-1INTERNAL\s0] Tests whether the \s-1UTF8\s0 flag is turned on in the \fI\s-1STRING\s0\fR. +If \fI\s-1CHECK\s0\fR is true, also checks whether \fI\s-1STRING\s0\fR contains well-formed +\&\s-1UTF\-8.\s0 Returns true if successful, false otherwise. +.PP +Typically only necessary for debugging and testing. Don't use this flag as +a marker to distinguish character and binary data, that should be decided +for each variable when you write your code. +.PP +\&\fB\s-1CAVEAT\s0\fR: If \fI\s-1STRING\s0\fR has \s-1UTF8\s0 flag set, it does \fB\s-1NOT\s0\fR mean that +\&\fI\s-1STRING\s0\fR is \s-1UTF\-8\s0 encoded and vice-versa. +.PP +As of Perl 5.8.1, utf8 also has the \f(CW\*(C`utf8::is_utf8\*(C'\fR function. +.PP +\fI_utf8_on\fR +.IX Subsection "_utf8_on" +.PP +.Vb 1 +\& _utf8_on(STRING) +.Ve +.PP +[\s-1INTERNAL\s0] Turns the \fI\s-1STRING\s0\fR's internal \s-1UTF8\s0 flag \fBon\fR. The \fI\s-1STRING\s0\fR +is \fInot\fR checked for containing only well-formed \s-1UTF\-8.\s0 Do not use this +unless you \fIknow with absolute certainty\fR that the \s-1STRING\s0 holds only +well-formed \s-1UTF\-8.\s0 Returns the previous state of the \s-1UTF8\s0 flag (so please +don't treat the return value as indicating success or failure), or \f(CW\*(C`undef\*(C'\fR +if \fI\s-1STRING\s0\fR is not a string. +.PP +\&\fB\s-1NOTE\s0\fR: For security reasons, this function does not work on tainted values. +.PP +\fI_utf8_off\fR +.IX Subsection "_utf8_off" +.PP +.Vb 1 +\& _utf8_off(STRING) +.Ve +.PP +[\s-1INTERNAL\s0] Turns the \fI\s-1STRING\s0\fR's internal \s-1UTF8\s0 flag \fBoff\fR. Do not use +frivolously. Returns the previous state of the \s-1UTF8\s0 flag, or \f(CW\*(C`undef\*(C'\fR if +\&\fI\s-1STRING\s0\fR is not a string. Do not treat the return value as indicative of +success or failure, because that isn't what it means: it is only the +previous setting. +.PP +\&\fB\s-1NOTE\s0\fR: For security reasons, this function does not work on tainted values. +.SH "UTF\-8 vs. utf8 vs. UTF8" +.IX Header "UTF-8 vs. utf8 vs. UTF8" +.Vb 3 +\& ....We now view strings not as sequences of bytes, but as sequences +\& of numbers in the range 0 .. 2**32\-1 (or in the case of 64\-bit +\& computers, 0 .. 2**64\-1) \-\- Programming Perl, 3rd ed. +.Ve +.PP +That has historically been Perl's notion of \s-1UTF\-8,\s0 as that is how \s-1UTF\-8\s0 was +first conceived by Ken Thompson when he invented it. However, thanks to +later revisions to the applicable standards, official \s-1UTF\-8\s0 is now rather +stricter than that. For example, its range is much narrower (0 .. 0x10_FFFF +to cover only 21 bits instead of 32 or 64 bits) and some sequences +are not allowed, like those used in surrogate pairs, the 31 non-character +code points 0xFDD0 .. 0xFDEF, the last two code points in \fIany\fR plane +(0x\fI\s-1XX\s0\fR_FFFE and 0x\fI\s-1XX\s0\fR_FFFF), all non-shortest encodings, etc. +.PP +The former default in which Perl would always use a loose interpretation of +\&\s-1UTF\-8\s0 has now been overruled: +.PP +.Vb 5 +\& From: Larry Wall +\& Date: December 04, 2004 11:51:58 JST +\& To: perl\-unicode@perl.org +\& Subject: Re: Make Encode.pm support the real UTF\-8 +\& Message\-Id: <20041204025158.GA28754@wall.org> +\& +\& On Fri, Dec 03, 2004 at 10:12:12PM +0000, Tim Bunce wrote: +\& : I\*(Aqve no problem with \*(Aqutf8\*(Aq being perl\*(Aqs unrestricted uft8 encoding, +\& : but "UTF\-8" is the name of the standard and should give the +\& : corresponding behaviour. +\& +\& For what it\*(Aqs worth, that\*(Aqs how I\*(Aqve always kept them straight in my +\& head. +\& +\& Also for what it\*(Aqs worth, Perl 6 will mostly default to strict but +\& make it easy to switch back to lax. +\& +\& Larry +.Ve +.PP +Got that? As of Perl 5.8.7, \fB\*(L"\s-1UTF\-8\*(R"\s0\fR means \s-1UTF\-8\s0 in its current +sense, which is conservative and strict and security-conscious, whereas +\&\fB\*(L"utf8\*(R"\fR means \s-1UTF\-8\s0 in its former sense, which was liberal and loose and +lax. \f(CW\*(C`Encode\*(C'\fR version 2.10 or later thus groks this subtle but critically +important distinction between \f(CW"UTF\-8"\fR and \f(CW"utf8"\fR. +.PP +.Vb 2 +\& encode("utf8", "\ex{FFFF_FFFF}", 1); # okay +\& encode("UTF\-8", "\ex{FFFF_FFFF}", 1); # croaks +.Ve +.PP +In the \f(CW\*(C`Encode\*(C'\fR module, \f(CW"UTF\-8"\fR is actually a canonical name for +\&\f(CW"utf\-8\-strict"\fR. That hyphen between the \f(CW"UTF"\fR and the \f(CW"8"\fR is +critical; without it, \f(CW\*(C`Encode\*(C'\fR goes \*(L"liberal\*(R" and (perhaps overly\-)permissive: +.PP +.Vb 4 +\& find_encoding("UTF\-8")\->name # is \*(Aqutf\-8\-strict\*(Aq +\& find_encoding("utf\-8")\->name # ditto. names are case insensitive +\& find_encoding("utf_8")\->name # ditto. "_" are treated as "\-" +\& find_encoding("UTF8")\->name # is \*(Aqutf8\*(Aq. +.Ve +.PP +Perl's internal \s-1UTF8\s0 flag is called \*(L"\s-1UTF8\*(R",\s0 without a hyphen. It indicates +whether a string is internally encoded as \*(L"utf8\*(R", also without a hyphen. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Encode::Encoding, +Encode::Supported, +Encode::PerlIO, +encoding, +perlebcdic, +\&\*(L"open\*(R" in perlfunc, +perlunicode, perluniintro, perlunifaq, perlunitut +utf8, +the Perl Unicode Mailing List +.SH "MAINTAINER" +.IX Header "MAINTAINER" +This project was originated by the late Nick Ing-Simmons and later +maintained by Dan Kogai \fI\fR. See \s-1AUTHORS\s0 +for a full list of people involved. For any questions, send mail to +\&\fI\fR so that we can all share. +.PP +While Dan Kogai retains the copyright as a maintainer, credit +should go to all those involved. See \s-1AUTHORS\s0 for a list of those +who submitted code to the project. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2002\-2014 Dan Kogai \fI\fR. +.PP +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ACommand%3A%3AMM.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ACommand%3A%3AMM.3 new file mode 100644 index 0000000000000000000000000000000000000000..356e0829ea0c958965d6465ef0fc86385705f4de --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ACommand%3A%3AMM.3 @@ -0,0 +1,255 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "ExtUtils::Command::MM 3" +.TH ExtUtils::Command::MM 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +ExtUtils::Command::MM \- Commands for the MM's to use in Makefiles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perl "\-MExtUtils::Command::MM" \-e "function" "\-\-" arguments... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fB\s-1FOR INTERNAL USE ONLY\s0!\fR The interface is not stable. +.PP +ExtUtils::Command::MM encapsulates code which would otherwise have to +be done with large \*(L"one\*(R" liners. +.PP +Any $(\s-1FOO\s0) used in the examples are make variables, not Perl. +.IP "\fBtest_harness\fR" 4 +.IX Item "test_harness" +.Vb 1 +\& test_harness($verbose, @test_libs); +.Ve +.Sp +Runs the tests on \f(CW@ARGV\fR via Test::Harness passing through the \f(CW$verbose\fR +flag. Any \f(CW@test_libs\fR will be unshifted onto the test's \f(CW@INC\fR. +.Sp +\&\f(CW@test_libs\fR are run in alphabetical order. +.IP "\fBpod2man\fR" 4 +.IX Item "pod2man" +.Vb 5 +\& pod2man( \*(Aq\-\-option=value\*(Aq, +\& $podfile1 => $manpage1, +\& $podfile2 => $manpage2, +\& ... +\& ); +\& +\& # or args on @ARGV +.Ve +.Sp +\&\fBpod2man()\fR is a function performing most of the duties of the pod2man +program. Its arguments are exactly the same as pod2man as of 5.8.0 +with the addition of: +.Sp +.Vb 1 +\& \-\-perm_rw octal permission to set the resulting manpage to +.Ve +.Sp +And the removal of: +.Sp +.Vb 2 +\& \-\-verbose/\-v +\& \-\-help/\-h +.Ve +.Sp +If no arguments are given to pod2man it will read from \f(CW@ARGV\fR. +.Sp +If Pod::Man is unavailable, this function will warn and return undef. +.IP "\fBwarn_if_old_packlist\fR" 4 +.IX Item "warn_if_old_packlist" +.Vb 1 +\& perl "\-MExtUtils::Command::MM" \-e warn_if_old_packlist +.Ve +.Sp +Displays a warning that an old packlist file was found. Reads the +filename from \f(CW@ARGV\fR. +.IP "\fBperllocal_install\fR" 4 +.IX Item "perllocal_install" +.Vb 2 +\& perl "\-MExtUtils::Command::MM" \-e perllocal_install +\& ... +\& +\& # VMS only, key|value pairs come on STDIN +\& perl "\-MExtUtils::Command::MM" \-e perllocal_install +\& < | ... +.Ve +.Sp +Prints a fragment of \s-1POD\s0 suitable for appending to perllocal.pod. +Arguments are read from \f(CW@ARGV\fR. +.Sp +\&'type' is the type of what you're installing. Usually 'Module'. +.Sp +\&'module name' is simply the name of your module. (Foo::Bar) +.Sp +Key/value pairs are extra information about the module. Fields include: +.Sp +.Vb 5 +\& installed into which directory your module was out into +\& LINKTYPE dynamic or static linking +\& VERSION module version number +\& EXE_FILES any executables installed in a space separated +\& list +.Ve +.IP "\fBuninstall\fR" 4 +.IX Item "uninstall" +.Vb 1 +\& perl "\-MExtUtils::Command::MM" \-e uninstall +.Ve +.Sp +A wrapper around \fBExtUtils::Install::uninstall()\fR. Warns that +uninstallation is deprecated and doesn't actually perform the +uninstallation. +.IP "\fBtest_s\fR" 4 +.IX Item "test_s" +.Vb 1 +\& perl "\-MExtUtils::Command::MM" \-e test_s +.Ve +.Sp +Tests if a file exists and is not empty (size > 0). +\&\fIExits\fR with 0 if it does, 1 if it does not. +.IP "\fBcp_nonempty\fR" 4 +.IX Item "cp_nonempty" +.Vb 1 +\& perl "\-MExtUtils::Command::MM" \-e cp_nonempty +.Ve +.Sp +Tests if the source file exists and is not empty (size > 0). If it is not empty +it copies it to the given destination with the given permissions. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3ACommand.3 b/data/miniconda3/man/man3/ExtUtils%3A%3ACommand.3 new file mode 100644 index 0000000000000000000000000000000000000000..383b9ccb48ce1ef0c0734f9f5de2291adf024c04 --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3ACommand.3 @@ -0,0 +1,283 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "ExtUtils::Command 3" +.TH ExtUtils::Command 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +ExtUtils::Command \- utilities to replace common UNIX commands in Makefiles etc. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 12 +\& perl \-MExtUtils::Command \-e cat files... > destination +\& perl \-MExtUtils::Command \-e mv source... destination +\& perl \-MExtUtils::Command \-e cp source... destination +\& perl \-MExtUtils::Command \-e touch files... +\& perl \-MExtUtils::Command \-e rm_f files... +\& perl \-MExtUtils::Command \-e rm_rf directories... +\& perl \-MExtUtils::Command \-e mkpath directories... +\& perl \-MExtUtils::Command \-e eqtime source destination +\& perl \-MExtUtils::Command \-e test_f file +\& perl \-MExtUtils::Command \-e test_d directory +\& perl \-MExtUtils::Command \-e chmod mode files... +\& ... +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The module is used to replace common \s-1UNIX\s0 commands. In all cases the +functions work from \f(CW@ARGV\fR rather than taking arguments. This makes +them easier to deal with in Makefiles. Call them like this: +.PP +.Vb 1 +\& perl \-MExtUtils::Command \-e some_command some files to work on +.Ve +.PP +and \fI\s-1NOT\s0\fR like this: +.PP +.Vb 1 +\& perl \-MExtUtils::Command \-e \*(Aqsome_command qw(some files to work on)\*(Aq +.Ve +.PP +For that use Shell::Command. +.PP +Filenames with * and ? will be glob expanded. +.SS "\s-1FUNCTIONS\s0" +.IX Subsection "FUNCTIONS" +.IP "cat" 4 +.IX Item "cat" +.Vb 1 +\& cat file ... +.Ve +.Sp +Concatenates all files mentioned on command line to \s-1STDOUT.\s0 +.IP "eqtime" 4 +.IX Item "eqtime" +.Vb 1 +\& eqtime source destination +.Ve +.Sp +Sets modified time of destination to that of source. +.IP "rm_rf" 4 +.IX Item "rm_rf" +.Vb 1 +\& rm_rf files or directories ... +.Ve +.Sp +Removes files and directories \- recursively (even if readonly) +.IP "rm_f" 4 +.IX Item "rm_f" +.Vb 1 +\& rm_f file ... +.Ve +.Sp +Removes files (even if readonly) +.IP "touch" 4 +.IX Item "touch" +.Vb 1 +\& touch file ... +.Ve +.Sp +Makes files exist, with current timestamp +.IP "mv" 4 +.IX Item "mv" +.Vb 2 +\& mv source_file destination_file +\& mv source_file source_file destination_dir +.Ve +.Sp +Moves source to destination. Multiple sources are allowed if +destination is an existing directory. +.Sp +Returns true if all moves succeeded, false otherwise. +.IP "cp" 4 +.IX Item "cp" +.Vb 2 +\& cp source_file destination_file +\& cp source_file source_file destination_dir +.Ve +.Sp +Copies sources to the destination. Multiple sources are allowed if +destination is an existing directory. +.Sp +Returns true if all copies succeeded, false otherwise. +.IP "chmod" 4 +.IX Item "chmod" +.Vb 1 +\& chmod mode files ... +.Ve +.Sp +Sets \s-1UNIX\s0 like permissions 'mode' on all the files. e.g. 0666 +.IP "mkpath" 4 +.IX Item "mkpath" +.Vb 1 +\& mkpath directory ... +.Ve +.Sp +Creates directories, including any parent directories. +.IP "test_f" 4 +.IX Item "test_f" +.Vb 1 +\& test_f file +.Ve +.Sp +Tests if a file exists. \fIExits\fR with 0 if it does, 1 if it does not (ie. +shell's idea of true and false). +.IP "test_d" 4 +.IX Item "test_d" +.Vb 1 +\& test_d directory +.Ve +.Sp +Tests if a directory exists. \fIExits\fR with 0 if it does, 1 if it does +not (ie. shell's idea of true and false). +.IP "dos2unix" 4 +.IX Item "dos2unix" +.Vb 1 +\& dos2unix files or dirs ... +.Ve +.Sp +Converts \s-1DOS\s0 and \s-1OS/2\s0 linefeeds to Unix style recursively. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Shell::Command which is these same functions but take arguments normally. +.SH "AUTHOR" +.IX Header "AUTHOR" +Nick Ing-Simmons \f(CW\*(C`ni\-s@cpan.org\*(C'\fR +.PP +Maintained by Michael G Schwern \f(CW\*(C`schwern@pobox.com\*(C'\fR within the +ExtUtils-MakeMaker package and, as a separate \s-1CPAN\s0 package, by +Randy Kobes \f(CW\*(C`r.kobes@uwinnipeg.ca\*(C'\fR. diff --git a/data/miniconda3/man/man3/ExtUtils%3A%3APacklist.3 b/data/miniconda3/man/man3/ExtUtils%3A%3APacklist.3 new file mode 100644 index 0000000000000000000000000000000000000000..68599fd72450fe561960cfa4f07a16525d1f273c --- /dev/null +++ b/data/miniconda3/man/man3/ExtUtils%3A%3APacklist.3 @@ -0,0 +1,253 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "ExtUtils::Packlist 3" +.TH ExtUtils::Packlist 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +ExtUtils::Packlist \- manage .packlist files +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& use ExtUtils::Packlist; +\& my ($pl) = ExtUtils::Packlist\->new(\*(Aq.packlist\*(Aq); +\& $pl\->read(\*(Aq/an/old/.packlist\*(Aq); +\& my @missing_files = $pl\->validate(); +\& $pl\->write(\*(Aq/a/new/.packlist\*(Aq); +\& +\& $pl\->{\*(Aq/some/file/name\*(Aq}++; +\& or +\& $pl\->{\*(Aq/some/other/file/name\*(Aq} = { type => \*(Aqfile\*(Aq, +\& from => \*(Aq/some/file\*(Aq }; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +ExtUtils::Packlist provides a standard way to manage .packlist files. +Functions are provided to read and write .packlist files. The original +\&.packlist format is a simple list of absolute pathnames, one per line. In +addition, this package supports an extended format, where as well as a filename +each line may contain a list of attributes in the form of a space separated +list of key=value pairs. This is used by the installperl script to +differentiate between files and links, for example. +.SH "USAGE" +.IX Header "USAGE" +The hash reference returned by the \fBnew()\fR function can be used to examine and +modify the contents of the .packlist. Items may be added/deleted from the +\&.packlist by modifying the hash. If the value associated with a hash key is a +scalar, the entry written to the .packlist by any subsequent \fBwrite()\fR will be a +simple filename. If the value is a hash, the entry written will be the +filename followed by the key=value pairs from the hash. Reading back the +\&.packlist will recreate the original entries. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.IP "\fBnew()\fR" 4 +.IX Item "new()" +This takes an optional parameter, the name of a .packlist. If the file exists, +it will be opened and the contents of the file will be read. The \fBnew()\fR method +returns a reference to a hash. This hash holds an entry for each line in the +\&.packlist. In the case of old-style .packlists, the value associated with each +key is undef. In the case of new-style .packlists, the value associated with +each key is a hash containing the key=value pairs following the filename in the +\&.packlist. +.IP "\fBread()\fR" 4 +.IX Item "read()" +This takes an optional parameter, the name of the .packlist to be read. If +no file is specified, the .packlist specified to \fBnew()\fR will be read. If the +\&.packlist does not exist, Carp::croak will be called. +.IP "\fBwrite()\fR" 4 +.IX Item "write()" +This takes an optional parameter, the name of the .packlist to be written. If +no file is specified, the .packlist specified to \fBnew()\fR will be overwritten. +.IP "\fBvalidate()\fR" 4 +.IX Item "validate()" +This checks that every file listed in the .packlist actually exists. If an +argument which evaluates to true is given, any missing files will be removed +from the internal hash. The return value is a list of the missing files, which +will be empty if they all exist. +.IP "\fBpacklist_file()\fR" 4 +.IX Item "packlist_file()" +This returns the name of the associated .packlist file +.SH "EXAMPLE" +.IX Header "EXAMPLE" +Here's \f(CW\*(C`modrm\*(C'\fR, a little utility to cleanly remove an installed module. +.PP +.Vb 1 +\& #!/usr/local/bin/perl \-w +\& +\& use strict; +\& use IO::Dir; +\& use ExtUtils::Packlist; +\& use ExtUtils::Installed; +\& +\& sub emptydir($) { +\& my ($dir) = @_; +\& my $dh = IO::Dir\->new($dir) || return(0); +\& my @count = $dh\->read(); +\& $dh\->close(); +\& return(@count == 2 ? 1 : 0); +\& } +\& +\& # Find all the installed packages +\& print("Finding all installed modules...\en"); +\& my $installed = ExtUtils::Installed\->new(); +\& +\& foreach my $module (grep(!/^Perl$/, $installed\->modules())) { +\& my $version = $installed\->version($module) || "???"; +\& print("Found module $module Version $version\en"); +\& print("Do you want to delete $module? [n] "); +\& my $r = ; chomp($r); +\& if ($r && $r =~ /^y/i) { +\& # Remove all the files +\& foreach my $file (sort($installed\->files($module))) { +\& print("rm $file\en"); +\& unlink($file); +\& } +\& my $pf = $installed\->packlist($module)\->packlist_file(); +\& print("rm $pf\en"); +\& unlink($pf); +\& foreach my $dir (sort($installed\->directory_tree($module))) { +\& if (emptydir($dir)) { +\& print("rmdir $dir\en"); +\& rmdir($dir); +\& } +\& } +\& } +\& } +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +Alan Burlison diff --git a/data/miniconda3/man/man3/Fcntl.3 b/data/miniconda3/man/man3/Fcntl.3 new file mode 100644 index 0000000000000000000000000000000000000000..dec7311c238fc95934194f260b0f1e580036edd8 --- /dev/null +++ b/data/miniconda3/man/man3/Fcntl.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Fcntl 3" +.TH Fcntl 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Fcntl \- load the C Fcntl.h defines +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use Fcntl; +\& use Fcntl qw(:DEFAULT :flock); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is just a translation of the C \fIfcntl.h\fR file. +Unlike the old mechanism of requiring a translated \fIfcntl.ph\fR +file, this uses the \fBh2xs\fR program (see the Perl source distribution) +and your native C compiler. This means that it has a +far more likely chance of getting the numbers right. +.SH "NOTE" +.IX Header "NOTE" +Only \f(CW\*(C`#define\*(C'\fR symbols get translated; you must still correctly +pack up your own arguments to pass as args for locking functions, etc. +.SH "EXPORTED SYMBOLS" +.IX Header "EXPORTED SYMBOLS" +By default your system's F_* and O_* constants (eg, F_DUPFD and +O_CREAT) and the \s-1FD_CLOEXEC\s0 constant are exported into your namespace. +.PP +You can request that the \fBflock()\fR constants (\s-1LOCK_SH, LOCK_EX, LOCK_NB\s0 +and \s-1LOCK_UN\s0) be provided by using the tag \f(CW\*(C`:flock\*(C'\fR. See Exporter. +.PP +You can request that the old constants (\s-1FAPPEND, FASYNC, FCREAT, +FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC\s0) be provided for +compatibility reasons by using the tag \f(CW\*(C`:Fcompat\*(C'\fR. For new +applications the newer versions of these constants are suggested +(O_APPEND, O_ASYNC, O_CREAT, O_DEFER, O_EXCL, O_NDELAY, O_NONBLOCK, +O_SYNC, O_TRUNC). +.PP +For ease of use also the SEEK_* constants (for \fBseek()\fR and \fBsysseek()\fR, +e.g. \s-1SEEK_END\s0) and the S_I* constants (for \fBchmod()\fR and \fBstat()\fR) are +available for import. They can be imported either separately or using +the tags \f(CW\*(C`:seek\*(C'\fR and \f(CW\*(C`:mode\*(C'\fR. +.PP +Please refer to your native \fBfcntl\fR\|(2), \fBopen\fR\|(2), \fBfseek\fR\|(3), \fBlseek\fR\|(2) +(equal to Perl's \fBseek()\fR and \fBsysseek()\fR, respectively), and \fBchmod\fR\|(2) +documentation to see what constants are implemented in your system. +.PP +See perlopentut to learn about the uses of the O_* constants +with \fBsysopen()\fR. +.PP +See \*(L"seek\*(R" in perlfunc and \*(L"sysseek\*(R" in perlfunc about the SEEK_* constants. +.PP +See \*(L"stat\*(R" in perlfunc about the S_I* constants. diff --git a/data/miniconda3/man/man3/File%3A%3ACompare.3 b/data/miniconda3/man/man3/File%3A%3ACompare.3 new file mode 100644 index 0000000000000000000000000000000000000000..a96fd3b3e2668dcde16e806f80d81d0b3d57f691 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ACompare.3 @@ -0,0 +1,183 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "File::Compare 3" +.TH File::Compare 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +File::Compare \- Compare files or filehandles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::Compare; +\& +\& if (compare("file1","file2") == 0) { +\& print "They\*(Aqre equal\en"; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The File::Compare::compare function compares the contents of two +sources, each of which can be a file or a file handle. It is exported +from File::Compare by default. +.PP +File::Compare::cmp is a synonym for File::Compare::compare. It is +exported from File::Compare only by request. +.PP +File::Compare::compare_text does a line by line comparison of the two +files. It stops as soon as a difference is detected. \fBcompare_text()\fR +accepts an optional third argument: This must be a \s-1CODE\s0 reference to +a line comparison function, which returns 0 when both lines are considered +equal. For example: +.PP +.Vb 1 +\& compare_text($file1, $file2) +.Ve +.PP +is basically equivalent to +.PP +.Vb 1 +\& compare_text($file1, $file2, sub {$_[0] ne $_[1]} ) +.Ve +.SH "RETURN" +.IX Header "RETURN" +File::Compare::compare and its sibling functions return 0 if the files +are equal, 1 if the files are unequal, or \-1 if an error was encountered. +.SH "AUTHOR" +.IX Header "AUTHOR" +File::Compare was written by Nick Ing-Simmons. +Its original documentation was written by Chip Salzenberg. diff --git a/data/miniconda3/man/man3/File%3A%3AFetch.3 b/data/miniconda3/man/man3/File%3A%3AFetch.3 new file mode 100644 index 0000000000000000000000000000000000000000..35368fe8babfa5a0a7e20b373bace2db37905fcd --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3AFetch.3 @@ -0,0 +1,468 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "File::Fetch 3" +.TH File::Fetch 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +File::Fetch \- A generic file fetching mechanism +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::Fetch; +\& +\& ### build a File::Fetch object ### +\& my $ff = File::Fetch\->new(uri => \*(Aqhttp://some.where.com/dir/a.txt\*(Aq); +\& +\& ### fetch the uri to cwd() ### +\& my $where = $ff\->fetch() or die $ff\->error; +\& +\& ### fetch the uri to /tmp ### +\& my $where = $ff\->fetch( to => \*(Aq/tmp\*(Aq ); +\& +\& ### parsed bits from the uri ### +\& $ff\->uri; +\& $ff\->scheme; +\& $ff\->host; +\& $ff\->path; +\& $ff\->file; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +File::Fetch is a generic file fetching mechanism. +.PP +It allows you to fetch any file pointed to by a \f(CW\*(C`ftp\*(C'\fR, \f(CW\*(C`http\*(C'\fR, +\&\f(CW\*(C`file\*(C'\fR, \f(CW\*(C`git\*(C'\fR or \f(CW\*(C`rsync\*(C'\fR uri by a number of different means. +.PP +See the \f(CW\*(C`HOW IT WORKS\*(C'\fR section further down for details. +.SH "ACCESSORS" +.IX Header "ACCESSORS" +A \f(CW\*(C`File::Fetch\*(C'\fR object has the following accessors +.ie n .IP "$ff\->uri" 4 +.el .IP "\f(CW$ff\fR\->uri" 4 +.IX Item "$ff->uri" +The uri you passed to the constructor +.ie n .IP "$ff\->scheme" 4 +.el .IP "\f(CW$ff\fR\->scheme" 4 +.IX Item "$ff->scheme" +The scheme from the uri (like 'file', 'http', etc) +.ie n .IP "$ff\->host" 4 +.el .IP "\f(CW$ff\fR\->host" 4 +.IX Item "$ff->host" +The hostname in the uri. Will be empty if host was originally +\&'localhost' for a 'file://' url. +.ie n .IP "$ff\->vol" 4 +.el .IP "\f(CW$ff\fR\->vol" 4 +.IX Item "$ff->vol" +On operating systems with the concept of a volume the second element +of a file:// is considered to the be volume specification for the file. +Thus on Win32 this routine returns the volume, on other operating +systems this returns nothing. +.Sp +On Windows this value may be empty if the uri is to a network share, in +which case the 'share' property will be defined. Additionally, volume +specifications that use '|' as ':' will be converted on read to use ':'. +.Sp +On \s-1VMS,\s0 which has a volume concept, this field will be empty because \s-1VMS\s0 +file specifications are converted to absolute \s-1UNIX\s0 format and the volume +information is transparently included. +.ie n .IP "$ff\->share" 4 +.el .IP "\f(CW$ff\fR\->share" 4 +.IX Item "$ff->share" +On systems with the concept of a network share (currently only Windows) returns +the sharename from a file://// url. On other operating systems returns empty. +.ie n .IP "$ff\->path" 4 +.el .IP "\f(CW$ff\fR\->path" 4 +.IX Item "$ff->path" +The path from the uri, will be at least a single '/'. +.ie n .IP "$ff\->file" 4 +.el .IP "\f(CW$ff\fR\->file" 4 +.IX Item "$ff->file" +The name of the remote file. For the local file name, the +result of \f(CW$ff\fR\->output_file will be used. +.ie n .IP "$ff\->file_default" 4 +.el .IP "\f(CW$ff\fR\->file_default" 4 +.IX Item "$ff->file_default" +The name of the default local file, that \f(CW$ff\fR\->output_file falls back to if +it would otherwise return no filename. For example when fetching a \s-1URI\s0 like +http://www.abc.net.au/ the contents retrieved may be from a remote file called +\&'index.html'. The default value of this attribute is literally 'file_default'. +.ie n .IP "$ff\->output_file" 4 +.el .IP "\f(CW$ff\fR\->output_file" 4 +.IX Item "$ff->output_file" +The name of the output file. This is the same as \f(CW$ff\fR\->file, +but any query parameters are stripped off. For example: +.Sp +.Vb 1 +\& http://example.com/index.html?x=y +.Ve +.Sp +would make the output file be \f(CW\*(C`index.html\*(C'\fR rather than +\&\f(CW\*(C`index.html?x=y\*(C'\fR. +.SH "METHODS" +.IX Header "METHODS" +.ie n .SS "$ff = File::Fetch\->new( uri => 'http://some.where.com/dir/file.txt' );" +.el .SS "\f(CW$ff\fP = File::Fetch\->new( uri => 'http://some.where.com/dir/file.txt' );" +.IX Subsection "$ff = File::Fetch->new( uri => 'http://some.where.com/dir/file.txt' );" +Parses the uri and creates a corresponding File::Fetch::Item object, +that is ready to be \f(CW\*(C`fetch\*(C'\fRed and returns it. +.PP +Returns false on failure. +.ie n .SS "$where = $ff\->fetch( [to => /my/output/dir/ | \e$scalar] )" +.el .SS "\f(CW$where\fP = \f(CW$ff\fP\->fetch( [to => /my/output/dir/ | \e$scalar] )" +.IX Subsection "$where = $ff->fetch( [to => /my/output/dir/ | $scalar] )" +Fetches the file you requested and returns the full path to the file. +.PP +By default it writes to \f(CW\*(C`cwd()\*(C'\fR, but you can override that by specifying +the \f(CW\*(C`to\*(C'\fR argument: +.PP +.Vb 2 +\& ### file fetch to /tmp, full path to the file in $where +\& $where = $ff\->fetch( to => \*(Aq/tmp\*(Aq ); +\& +\& ### file slurped into $scalar, full path to the file in $where +\& ### file is downloaded to a temp directory and cleaned up at exit time +\& $where = $ff\->fetch( to => \e$scalar ); +.Ve +.PP +Returns the full path to the downloaded file on success, and false +on failure. +.ie n .SS "$ff\->error([\s-1BOOL\s0])" +.el .SS "\f(CW$ff\fP\->error([\s-1BOOL\s0])" +.IX Subsection "$ff->error([BOOL])" +Returns the last encountered error as string. +Pass it a true value to get the \f(CW\*(C`Carp::longmess()\*(C'\fR output instead. +.SH "HOW IT WORKS" +.IX Header "HOW IT WORKS" +File::Fetch is able to fetch a variety of uris, by using several +external programs and modules. +.PP +Below is a mapping of what utilities will be used in what order +for what schemes, if available: +.PP +.Vb 5 +\& file => LWP, lftp, file +\& http => LWP, HTTP::Tiny, wget, curl, lftp, fetch, HTTP::Lite, lynx, iosock +\& ftp => LWP, Net::FTP, wget, curl, lftp, fetch, ncftp, ftp +\& rsync => rsync +\& git => git +.Ve +.PP +If you'd like to disable the use of one or more of these utilities +and/or modules, see the \f(CW$BLACKLIST\fR variable further down. +.PP +If a utility or module isn't available, it will be marked in a cache +(see the \f(CW$METHOD_FAIL\fR variable further down), so it will not be +tried again. The \f(CW\*(C`fetch\*(C'\fR method will only fail when all options are +exhausted, and it was not able to retrieve the file. +.PP +The \f(CW\*(C`fetch\*(C'\fR utility is available on FreeBSD. NetBSD and Dragonfly \s-1BSD\s0 +may also have it from \f(CW\*(C`pkgsrc\*(C'\fR. We only check for \f(CW\*(C`fetch\*(C'\fR on those +three platforms. +.PP +\&\f(CW\*(C`iosock\*(C'\fR is a very limited IO::Socket::INET based mechanism for +retrieving \f(CW\*(C`http\*(C'\fR schemed urls. It doesn't follow redirects for instance. +.PP +\&\f(CW\*(C`git\*(C'\fR only supports \f(CW\*(C`git://\*(C'\fR style urls. +.PP +A special note about fetching files from an ftp uri: +.PP +By default, all ftp connections are done in passive mode. To change +that, see the \f(CW$FTP_PASSIVE\fR variable further down. +.PP +Furthermore, ftp uris only support anonymous connections, so no +named user/password pair can be passed along. +.PP +\&\f(CW\*(C`/bin/ftp\*(C'\fR is blacklisted by default; see the \f(CW$BLACKLIST\fR variable +further down. +.SH "GLOBAL VARIABLES" +.IX Header "GLOBAL VARIABLES" +The behaviour of File::Fetch can be altered by changing the following +global variables: +.ie n .SS "$File::Fetch::FROM_EMAIL" +.el .SS "\f(CW$File::Fetch::FROM_EMAIL\fP" +.IX Subsection "$File::Fetch::FROM_EMAIL" +This is the email address that will be sent as your anonymous ftp +password. +.PP +Default is \f(CW\*(C`File\-Fetch@example.com\*(C'\fR. +.ie n .SS "$File::Fetch::USER_AGENT" +.el .SS "\f(CW$File::Fetch::USER_AGENT\fP" +.IX Subsection "$File::Fetch::USER_AGENT" +This is the useragent as \f(CW\*(C`LWP\*(C'\fR will report it. +.PP +Default is \f(CW\*(C`File::Fetch/$VERSION\*(C'\fR. +.ie n .SS "$File::Fetch::FTP_PASSIVE" +.el .SS "\f(CW$File::Fetch::FTP_PASSIVE\fP" +.IX Subsection "$File::Fetch::FTP_PASSIVE" +This variable controls whether the environment variable \f(CW\*(C`FTP_PASSIVE\*(C'\fR +and any passive switches to commandline tools will be set to true. +.PP +Default value is 1. +.PP +Note: When \f(CW$FTP_PASSIVE\fR is true, \f(CW\*(C`ncftp\*(C'\fR will not be used to fetch +files, since passive mode can only be set interactively for this binary +.ie n .SS "$File::Fetch::TIMEOUT" +.el .SS "\f(CW$File::Fetch::TIMEOUT\fP" +.IX Subsection "$File::Fetch::TIMEOUT" +When set, controls the network timeout (counted in seconds). +.PP +Default value is 0. +.ie n .SS "$File::Fetch::WARN" +.el .SS "\f(CW$File::Fetch::WARN\fP" +.IX Subsection "$File::Fetch::WARN" +This variable controls whether errors encountered internally by +\&\f(CW\*(C`File::Fetch\*(C'\fR should be \f(CW\*(C`carp\*(C'\fR'd or not. +.PP +Set to false to silence warnings. Inspect the output of the \f(CW\*(C`error()\*(C'\fR +method manually to see what went wrong. +.PP +Defaults to \f(CW\*(C`true\*(C'\fR. +.ie n .SS "$File::Fetch::DEBUG" +.el .SS "\f(CW$File::Fetch::DEBUG\fP" +.IX Subsection "$File::Fetch::DEBUG" +This enables debugging output when calling commandline utilities to +fetch files. +This also enables \f(CW\*(C`Carp::longmess\*(C'\fR errors, instead of the regular +\&\f(CW\*(C`carp\*(C'\fR errors. +.PP +Good for tracking down why things don't work with your particular +setup. +.PP +Default is 0. +.ie n .SS "$File::Fetch::BLACKLIST" +.el .SS "\f(CW$File::Fetch::BLACKLIST\fP" +.IX Subsection "$File::Fetch::BLACKLIST" +This is an array ref holding blacklisted modules/utilities for fetching +files with. +.PP +To disallow the use of, for example, \f(CW\*(C`LWP\*(C'\fR and \f(CW\*(C`Net::FTP\*(C'\fR, you could +set \f(CW$File::Fetch::BLACKLIST\fR to: +.PP +.Vb 1 +\& $File::Fetch::BLACKLIST = [qw|lwp netftp|] +.Ve +.PP +The default blacklist is [qw|ftp|], as \f(CW\*(C`/bin/ftp\*(C'\fR is rather unreliable. +.PP +See the note on \f(CW\*(C`MAPPING\*(C'\fR below. +.ie n .SS "$File::Fetch::METHOD_FAIL" +.el .SS "\f(CW$File::Fetch::METHOD_FAIL\fP" +.IX Subsection "$File::Fetch::METHOD_FAIL" +This is a hashref registering what modules/utilities were known to fail +for fetching files (mostly because they weren't installed). +.PP +You can reset this cache by assigning an empty hashref to it, or +individually remove keys. +.PP +See the note on \f(CW\*(C`MAPPING\*(C'\fR below. +.SH "MAPPING" +.IX Header "MAPPING" +Here's a quick mapping for the utilities/modules, and their names for +the \f(CW$BLACKLIST\fR, \f(CW$METHOD_FAIL\fR and other internal functions. +.PP +.Vb 10 +\& LWP => lwp +\& HTTP::Lite => httplite +\& HTTP::Tiny => httptiny +\& Net::FTP => netftp +\& wget => wget +\& lynx => lynx +\& ncftp => ncftp +\& ftp => ftp +\& curl => curl +\& rsync => rsync +\& lftp => lftp +\& fetch => fetch +\& IO::Socket => iosock +.Ve +.SH "FREQUENTLY ASKED QUESTIONS" +.IX Header "FREQUENTLY ASKED QUESTIONS" +.SS "So how do I use a proxy with File::Fetch?" +.IX Subsection "So how do I use a proxy with File::Fetch?" +\&\f(CW\*(C`File::Fetch\*(C'\fR currently only supports proxies with LWP::UserAgent. +You will need to set your environment variables accordingly. For +example, to use an ftp proxy: +.PP +.Vb 1 +\& $ENV{ftp_proxy} = \*(Aqfoo.com\*(Aq; +.Ve +.PP +Refer to the LWP::UserAgent manpage for more details. +.SS "I used 'lynx' to fetch a file, but its contents is all wrong!" +.IX Subsection "I used 'lynx' to fetch a file, but its contents is all wrong!" +\&\f(CW\*(C`lynx\*(C'\fR can only fetch remote files by dumping its contents to \f(CW\*(C`STDOUT\*(C'\fR, +which we in turn capture. If that content is a 'custom' error file +(like, say, a \f(CW\*(C`404 handler\*(C'\fR), you will get that contents instead. +.PP +Sadly, \f(CW\*(C`lynx\*(C'\fR doesn't support any options to return a different exit +code on non\-\f(CW\*(C`200 OK\*(C'\fR status, giving us no way to tell the difference +between a 'successful' fetch and a custom error page. +.PP +Therefor, we recommend to only use \f(CW\*(C`lynx\*(C'\fR as a last resort. This is +why it is at the back of our list of methods to try as well. +.SS "Files I'm trying to fetch have reserved characters or non-ASCII characters in them. What do I do?" +.IX Subsection "Files I'm trying to fetch have reserved characters or non-ASCII characters in them. What do I do?" +\&\f(CW\*(C`File::Fetch\*(C'\fR is relatively smart about things. When trying to write +a file to disk, it removes the \f(CW\*(C`query parameters\*(C'\fR (see the +\&\f(CW\*(C`output_file\*(C'\fR method for details) from the file name before creating +it. In most cases this suffices. +.PP +If you have any other characters you need to escape, please install +the \f(CW\*(C`URI::Escape\*(C'\fR module from \s-1CPAN,\s0 and pre-encode your \s-1URI\s0 before +passing it to \f(CW\*(C`File::Fetch\*(C'\fR. You can read about the details of URIs +and \s-1URI\s0 encoding here: +.PP +.Vb 1 +\& http://www.faqs.org/rfcs/rfc2396.html +.Ve +.SH "TODO" +.IX Header "TODO" +.ie n .IP "Implement $PREFER_BIN" 4 +.el .IP "Implement \f(CW$PREFER_BIN\fR" 4 +.IX Item "Implement $PREFER_BIN" +To indicate to rather use commandline tools than modules +.SH "BUG REPORTS" +.IX Header "BUG REPORTS" +Please report bugs or other issues to . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module by Jos Boumans . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +This library is free software; you may redistribute and/or modify it +under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/File%3A%3AGlob.3 b/data/miniconda3/man/man3/File%3A%3AGlob.3 new file mode 100644 index 0000000000000000000000000000000000000000..3371fabfe20dde20161c853b64bf53c2578e1f93 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3AGlob.3 @@ -0,0 +1,435 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "File::Glob 3" +.TH File::Glob 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +File::Glob \- Perl extension for BSD glob routine +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use File::Glob \*(Aq:bsd_glob\*(Aq; +\& +\& @list = bsd_glob(\*(Aq*.[ch]\*(Aq); +\& $homedir = bsd_glob(\*(Aq~gnat\*(Aq, GLOB_TILDE | GLOB_ERR); +\& +\& if (GLOB_ERROR) { +\& # an error occurred reading $homedir +\& } +\& +\& ## override the core glob (CORE::glob() does this automatically +\& ## by default anyway, since v5.6.0) +\& use File::Glob \*(Aq:globally\*(Aq; +\& my @sources = <*.{c,h,y}>; +\& +\& ## override the core glob, forcing case sensitivity +\& use File::Glob qw(:globally :case); +\& my @sources = <*.{c,h,y}>; +\& +\& ## override the core glob forcing case insensitivity +\& use File::Glob qw(:globally :nocase); +\& my @sources = <*.{c,h,y}>; +\& +\& ## glob on all files in home directory +\& use File::Glob \*(Aq:globally\*(Aq; +\& my @sources = <~gnat/*>; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The glob angle-bracket operator \f(CW\*(C`<>\*(C'\fR is a pathname generator that +implements the rules for file name pattern matching used by Unix-like shells +such as the Bourne shell or C shell. +.PP +\&\fBFile::Glob::bsd_glob()\fR implements the FreeBSD \fBglob\fR\|(3) routine, which is +a superset of the \s-1POSIX\s0 \fBglob()\fR (described in \s-1IEEE\s0 Std 1003.2 \*(L"\s-1POSIX.2\*(R"\s0). +\&\fBbsd_glob()\fR takes a mandatory \f(CW\*(C`pattern\*(C'\fR argument, and an optional +\&\f(CW\*(C`flags\*(C'\fR argument, and returns a list of filenames matching the +pattern, with interpretation of the pattern modified by the \f(CW\*(C`flags\*(C'\fR +variable. +.PP +Since v5.6.0, Perl's \fBCORE::glob()\fR is implemented in terms of \fBbsd_glob()\fR. +Note that they don't share the same prototype\*(--\fBCORE::glob()\fR only accepts +a single argument. Due to historical reasons, \fBCORE::glob()\fR will also +split its argument on whitespace, treating it as multiple patterns, +whereas \fBbsd_glob()\fR considers them as one pattern. But see \f(CW\*(C`:bsd_glob\*(C'\fR +under \*(L"\s-1EXPORTS\*(R"\s0, below. +.SS "\s-1META CHARACTERS\s0" +.IX Subsection "META CHARACTERS" +.Vb 6 +\& \e Quote the next metacharacter +\& [] Character class +\& {} Multiple pattern +\& * Match any string of characters +\& ? Match any single character +\& ~ User name home directory +.Ve +.PP +The metanotation \f(CW\*(C`a{b,c,d}e\*(C'\fR is a shorthand for \f(CW\*(C`abe ace ade\*(C'\fR. Left to +right order is preserved, with results of matches being sorted separately +at a low level to preserve this order. As a special case \f(CW\*(C`{\*(C'\fR, \f(CW\*(C`}\*(C'\fR, and +\&\f(CW\*(C`{}\*(C'\fR are passed undisturbed. +.SS "\s-1EXPORTS\s0" +.IX Subsection "EXPORTS" +See also the \*(L"\s-1POSIX FLAGS\*(R"\s0 below, which can be exported individually. +.PP +\fI\f(CI\*(C`:bsd_glob\*(C'\fI\fR +.IX Subsection ":bsd_glob" +.PP +The \f(CW\*(C`:bsd_glob\*(C'\fR export tag exports \fBbsd_glob()\fR and the constants listed +below. It also overrides \fBglob()\fR in the calling package with one that +behaves like \fBbsd_glob()\fR with regard to spaces (the space is treated as part +of a file name), but supports iteration in scalar context; i.e., it +preserves the core function's feature of returning the next item each time +it is called. +.PP +\fI\f(CI\*(C`:glob\*(C'\fI\fR +.IX Subsection ":glob" +.PP +The \f(CW\*(C`:glob\*(C'\fR tag, now discouraged, is the old version of \f(CW\*(C`:bsd_glob\*(C'\fR. It +exports the same constants and functions, but its \fBglob()\fR override does not +support iteration; it returns the last file name in scalar context. That +means this will loop forever: +.PP +.Vb 4 +\& use File::Glob \*(Aq:glob\*(Aq; +\& while (my $file = <* copy.txt>) { +\& ... +\& } +.Ve +.PP +\fI\f(CI\*(C`bsd_glob\*(C'\fI\fR +.IX Subsection "bsd_glob" +.PP +This function, which is included in the two export tags listed above, +takes one or two arguments. The first is the glob pattern. The +second, if given, is a set of flags ORed together. The available +flags and the default set of flags are listed below under \*(L"\s-1POSIX FLAGS\*(R"\s0. +.PP +Remember that to use the named constants for flags you must import +them, for example with \f(CW\*(C`:bsd_glob\*(C'\fR described above. If not imported, +and \f(CW\*(C`use strict\*(C'\fR is not in effect, then the constants will be +treated as bareword strings, which won't do what you what. +.PP +\fI\f(CI\*(C`:nocase\*(C'\fI and \f(CI\*(C`:case\*(C'\fI\fR +.IX Subsection ":nocase and :case" +.PP +These two export tags globally modify the default flags that \fBbsd_glob()\fR +and, except on \s-1VMS,\s0 Perl's built-in \f(CW\*(C`glob\*(C'\fR operator use. \f(CW\*(C`GLOB_NOCASE\*(C'\fR +is turned on or off, respectively. +.PP +\fI\f(CI\*(C`csh_glob\*(C'\fI\fR +.IX Subsection "csh_glob" +.PP +The \fBcsh_glob()\fR function can also be exported, but you should not use it +directly unless you really know what you are doing. It splits the pattern +into words and feeds each one to \fBbsd_glob()\fR. Perl's own \fBglob()\fR function +uses this internally. +.SS "\s-1POSIX FLAGS\s0" +.IX Subsection "POSIX FLAGS" +If no flags argument is give then \f(CW\*(C`GLOB_CSH\*(C'\fR is set, and on \s-1VMS\s0 and +Windows systems, \f(CW\*(C`GLOB_NOCASE\*(C'\fR too. Otherwise the flags to use are +determined solely by the flags argument. The \s-1POSIX\s0 defined flags are: +.ie n .IP """GLOB_ERR""" 4 +.el .IP "\f(CWGLOB_ERR\fR" 4 +.IX Item "GLOB_ERR" +Force \fBbsd_glob()\fR to return an error when it encounters a directory it +cannot open or read. Ordinarily \fBbsd_glob()\fR continues to find matches. +.ie n .IP """GLOB_LIMIT""" 4 +.el .IP "\f(CWGLOB_LIMIT\fR" 4 +.IX Item "GLOB_LIMIT" +Make \fBbsd_glob()\fR return an error (\s-1GLOB_NOSPACE\s0) when the pattern expands +to a size bigger than the system constant \f(CW\*(C`ARG_MAX\*(C'\fR (usually found in +limits.h). If your system does not define this constant, \fBbsd_glob()\fR uses +\&\f(CW\*(C`sysconf(_SC_ARG_MAX)\*(C'\fR or \f(CW\*(C`_POSIX_ARG_MAX\*(C'\fR where available (in that +order). You can inspect these values using the standard \f(CW\*(C`POSIX\*(C'\fR +extension. +.ie n .IP """GLOB_MARK""" 4 +.el .IP "\f(CWGLOB_MARK\fR" 4 +.IX Item "GLOB_MARK" +Each pathname that is a directory that matches the pattern has a slash +appended. +.ie n .IP """GLOB_NOCASE""" 4 +.el .IP "\f(CWGLOB_NOCASE\fR" 4 +.IX Item "GLOB_NOCASE" +By default, file names are assumed to be case sensitive; this flag +makes \fBbsd_glob()\fR treat case differences as not significant. +.ie n .IP """GLOB_NOCHECK""" 4 +.el .IP "\f(CWGLOB_NOCHECK\fR" 4 +.IX Item "GLOB_NOCHECK" +If the pattern does not match any pathname, then \fBbsd_glob()\fR returns a list +consisting of only the pattern. If \f(CW\*(C`GLOB_QUOTE\*(C'\fR is set, its effect +is present in the pattern returned. +.ie n .IP """GLOB_NOSORT""" 4 +.el .IP "\f(CWGLOB_NOSORT\fR" 4 +.IX Item "GLOB_NOSORT" +By default, the pathnames are sorted in ascending \s-1ASCII\s0 order; this +flag prevents that sorting (speeding up \fBbsd_glob()\fR). +.PP +The FreeBSD extensions to the \s-1POSIX\s0 standard are the following flags: +.ie n .IP """GLOB_BRACE""" 4 +.el .IP "\f(CWGLOB_BRACE\fR" 4 +.IX Item "GLOB_BRACE" +Pre-process the string to expand \f(CW\*(C`{pat,pat,...}\*(C'\fR strings like \fBcsh\fR\|(1). +The pattern '{}' is left unexpanded for historical reasons (and \fBcsh\fR\|(1) +does the same thing to ease typing of \fBfind\fR\|(1) patterns). +.ie n .IP """GLOB_NOMAGIC""" 4 +.el .IP "\f(CWGLOB_NOMAGIC\fR" 4 +.IX Item "GLOB_NOMAGIC" +Same as \f(CW\*(C`GLOB_NOCHECK\*(C'\fR but it only returns the pattern if it does not +contain any of the special characters \*(L"*\*(R", \*(L"?\*(R" or \*(L"[\*(R". \f(CW\*(C`NOMAGIC\*(C'\fR is +provided to simplify implementing the historic \fBcsh\fR\|(1) globbing +behaviour and should probably not be used anywhere else. +.ie n .IP """GLOB_QUOTE""" 4 +.el .IP "\f(CWGLOB_QUOTE\fR" 4 +.IX Item "GLOB_QUOTE" +Use the backslash ('\e') character for quoting: every occurrence of a +backslash followed by a character in the pattern is replaced by that +character, avoiding any special interpretation of the character. +(But see below for exceptions on \s-1DOSISH\s0 systems). +.ie n .IP """GLOB_TILDE""" 4 +.el .IP "\f(CWGLOB_TILDE\fR" 4 +.IX Item "GLOB_TILDE" +Expand patterns that start with '~' to user name home directories. +.ie n .IP """GLOB_CSH""" 4 +.el .IP "\f(CWGLOB_CSH\fR" 4 +.IX Item "GLOB_CSH" +For convenience, \f(CW\*(C`GLOB_CSH\*(C'\fR is a synonym for +\&\f(CW\*(C`GLOB_BRACE | GLOB_NOMAGIC | GLOB_QUOTE | GLOB_TILDE | GLOB_ALPHASORT\*(C'\fR. +.PP +The \s-1POSIX\s0 provided \f(CW\*(C`GLOB_APPEND\*(C'\fR, \f(CW\*(C`GLOB_DOOFFS\*(C'\fR, and the FreeBSD +extensions \f(CW\*(C`GLOB_ALTDIRFUNC\*(C'\fR, and \f(CW\*(C`GLOB_MAGCHAR\*(C'\fR flags have not been +implemented in the Perl version because they involve more complex +interaction with the underlying C structures. +.PP +The following flag has been added in the Perl implementation for +csh compatibility: +.ie n .IP """GLOB_ALPHASORT""" 4 +.el .IP "\f(CWGLOB_ALPHASORT\fR" 4 +.IX Item "GLOB_ALPHASORT" +If \f(CW\*(C`GLOB_NOSORT\*(C'\fR is not in effect, sort filenames is alphabetical +order (case does not matter) rather than in \s-1ASCII\s0 order. +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +\&\fBbsd_glob()\fR returns a list of matching paths, possibly zero length. If an +error occurred, &File::Glob::GLOB_ERROR will be non-zero and \f(CW$!\fR will be +set. &File::Glob::GLOB_ERROR is guaranteed to be zero if no error occurred, +or one of the following values otherwise: +.ie n .IP """GLOB_NOSPACE""" 4 +.el .IP "\f(CWGLOB_NOSPACE\fR" 4 +.IX Item "GLOB_NOSPACE" +An attempt to allocate memory failed. +.ie n .IP """GLOB_ABEND""" 4 +.el .IP "\f(CWGLOB_ABEND\fR" 4 +.IX Item "GLOB_ABEND" +The glob was stopped because an error was encountered. +.PP +In the case where \fBbsd_glob()\fR has found some matching paths, but is +interrupted by an error, it will return a list of filenames \fBand\fR +set &File::Glob::ERROR. +.PP +Note that \fBbsd_glob()\fR deviates from \s-1POSIX\s0 and FreeBSD \fBglob\fR\|(3) behaviour +by not considering \f(CW\*(C`ENOENT\*(C'\fR and \f(CW\*(C`ENOTDIR\*(C'\fR as errors \- \fBbsd_glob()\fR will +continue processing despite those errors, unless the \f(CW\*(C`GLOB_ERR\*(C'\fR flag is +set. +.PP +Be aware that all filenames returned from File::Glob are tainted. +.SH "NOTES" +.IX Header "NOTES" +.IP "\(bu" 4 +If you want to use multiple patterns, e.g. \f(CW\*(C`bsd_glob("a* b*")\*(C'\fR, you should +probably throw them in a set as in \f(CW\*(C`bsd_glob("{a*,b*}")\*(C'\fR. This is because +the argument to \fBbsd_glob()\fR isn't subjected to parsing by the C shell. +Remember that you can use a backslash to escape things. +.IP "\(bu" 4 +On \s-1DOSISH\s0 systems, backslash is a valid directory separator character. +In this case, use of backslash as a quoting character (via \s-1GLOB_QUOTE\s0) +interferes with the use of backslash as a directory separator. The +best (simplest, most portable) solution is to use forward slashes for +directory separators, and backslashes for quoting. However, this does +not match \*(L"normal practice\*(R" on these systems. As a concession to user +expectation, therefore, backslashes (under \s-1GLOB_QUOTE\s0) only quote the +glob metacharacters '[', ']', '{', '}', '\-', '~', and backslash itself. +All other backslashes are passed through unchanged. +.IP "\(bu" 4 +Win32 users should use the real slash. If you really want to use +backslashes, consider using Sarathy's File::DosGlob, which comes with +the standard Perl distribution. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\*(L"glob\*(R" in perlfunc, \fBglob\fR\|(3) +.SH "AUTHOR" +.IX Header "AUTHOR" +The Perl interface was written by Nathan Torkington , +and is released under the artistic license. Further modifications were +made by Greg Bacon , Gurusamy Sarathy +, and Thomas Wegner +. The C glob code has the +following copyright: +.PP +Copyright (c) 1989, 1993 The Regents of the University of California. +All rights reserved. +.PP +This code is derived from software contributed to Berkeley by +Guido van Rossum. +.PP +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +.IP "1." 4 +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +.IP "2." 4 +Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +.IP "3." 4 +Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. +.PP +\&\s-1THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS \*(L"AS IS\*(R" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED.\s0 \s-1IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES\s0 (\s-1INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES\s0; \s-1LOSS OF USE, DATA, OR PROFITS\s0; \s-1OR BUSINESS INTERRUPTION\s0) +\&\s-1HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT\s0 (\s-1INCLUDING NEGLIGENCE OR OTHERWISE\s0) \s-1ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE.\s0 diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AEpoc.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AEpoc.3 new file mode 100644 index 0000000000000000000000000000000000000000..1045daeab90815ac9b74b75966aa0fe9e285ab34 --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AEpoc.3 @@ -0,0 +1,171 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "File::Spec::Epoc 3" +.TH File::Spec::Epoc 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +File::Spec::Epoc \- methods for Epoc file specs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require File::Spec::Epoc; # Done internally by File::Spec if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See File::Spec::Unix for a documentation of the methods provided +there. This package overrides the implementation of these methods, not +the semantics. +.PP +This package is still a work in progress. ;\-) +.IP "\fBcanonpath()\fR" 4 +.IX Item "canonpath()" +No physical check on the filesystem, but a logical cleanup of a +path. On \s-1UNIX\s0 eliminated successive slashes and successive \*(L"/.\*(R". +.SH "AUTHOR" +.IX Header "AUTHOR" +o.flebbe@gmx.de +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +See File::Spec and File::Spec::Unix. This package overrides the +implementation of these methods, not the semantics. diff --git a/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AVMS.3 b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AVMS.3 new file mode 100644 index 0000000000000000000000000000000000000000..6958c94901bb959177bfea612c6034a3fea617df --- /dev/null +++ b/data/miniconda3/man/man3/File%3A%3ASpec%3A%3AVMS.3 @@ -0,0 +1,243 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "File::Spec::VMS 3" +.TH File::Spec::VMS 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +File::Spec::VMS \- methods for VMS file specs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& require File::Spec::VMS; # Done internally by File::Spec if needed +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +See File::Spec::Unix for a documentation of the methods provided +there. This package overrides the implementation of these methods, not +the semantics. +.PP +The default behavior is to allow either \s-1VMS\s0 or Unix syntax on input and to +return \s-1VMS\s0 syntax on output unless Unix syntax has been explicitly requested +via the \f(CW\*(C`DECC$FILENAME_UNIX_REPORT\*(C'\fR \s-1CRTL\s0 feature. +.IP "canonpath (override)" 4 +.IX Item "canonpath (override)" +Removes redundant portions of file specifications and returns results +in native syntax unless Unix filename reporting has been enabled. +.IP "catdir (override)" 4 +.IX Item "catdir (override)" +Concatenates a list of file specifications, and returns the result as a +native directory specification unless the Unix filename reporting feature +has been enabled. No check is made for \*(L"impossible\*(R" cases (e.g. elements +other than the first being absolute filespecs). +.IP "catfile (override)" 4 +.IX Item "catfile (override)" +Concatenates a list of directory specifications with a filename specification +to build a path. +.IP "curdir (override)" 4 +.IX Item "curdir (override)" +Returns a string representation of the current directory: '[]' or '.' +.IP "devnull (override)" 4 +.IX Item "devnull (override)" +Returns a string representation of the null device: '_NLA0:' or '/dev/null' +.IP "rootdir (override)" 4 +.IX Item "rootdir (override)" +Returns a string representation of the root directory: 'SYS$DISK:[000000]' +or '/' +.IP "tmpdir (override)" 4 +.IX Item "tmpdir (override)" +Returns a string representation of the first writable directory +from the following list or '' if none are writable: +.Sp +.Vb 3 +\& /tmp if C is enabled. +\& sys$scratch: +\& $ENV{TMPDIR} +.Ve +.Sp +If running under taint mode, and if \f(CW$ENV\fR{\s-1TMPDIR\s0} +is tainted, it is not used. +.IP "updir (override)" 4 +.IX Item "updir (override)" +Returns a string representation of the parent directory: '[\-]' or '..' +.IP "case_tolerant (override)" 4 +.IX Item "case_tolerant (override)" +\&\s-1VMS\s0 file specification syntax is case-tolerant. +.IP "path (override)" 4 +.IX Item "path (override)" +Translate logical name \s-1DCL$PATH\s0 as a searchlist, rather than trying +to \f(CW\*(C`split\*(C'\fR string value of \f(CW$ENV{\*(AqPATH\*(Aq}\fR. +.IP "file_name_is_absolute (override)" 4 +.IX Item "file_name_is_absolute (override)" +Checks for \s-1VMS\s0 directory spec as well as Unix separators. +.IP "splitpath (override)" 4 +.IX Item "splitpath (override)" +.Vb 3 +\& ($volume,$directories,$file) = File::Spec\->splitpath( $path ); +\& ($volume,$directories,$file) = File::Spec\->splitpath( $path, +\& $no_file ); +.Ve +.Sp +Passing a true value for \f(CW$no_file\fR indicates that the path being +split only contains directory components, even on systems where you +can usually (when not supporting a foreign syntax) tell the difference +between directories and files at a glance. +.IP "splitdir (override)" 4 +.IX Item "splitdir (override)" +Split a directory specification into the components. +.IP "catpath (override)" 4 +.IX Item "catpath (override)" +Construct a complete filespec. +.IP "abs2rel (override)" 4 +.IX Item "abs2rel (override)" +Attempt to convert an absolute file specification to a relative specification. +.IP "rel2abs (override)" 4 +.IX Item "rel2abs (override)" +Return an absolute file specification from a relative one. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 2004\-14 by the Perl 5 Porters. All rights reserved. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +See File::Spec and File::Spec::Unix. This package overrides the +implementation of these methods, not the semantics. +.PP +An explanation of \s-1VMS\s0 file specs can be found at +. diff --git a/data/miniconda3/man/man3/Hash%3A%3AUtil.3 b/data/miniconda3/man/man3/Hash%3A%3AUtil.3 new file mode 100644 index 0000000000000000000000000000000000000000..53b8e2bdb9019669ada78612a38289ab22bb673c --- /dev/null +++ b/data/miniconda3/man/man3/Hash%3A%3AUtil.3 @@ -0,0 +1,686 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Hash::Util 3" +.TH Hash::Util 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Hash::Util \- A selection of general\-utility hash subroutines +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& # Restricted hashes +\& +\& use Hash::Util qw( +\& fieldhash fieldhashes +\& +\& all_keys +\& lock_keys unlock_keys +\& lock_value unlock_value +\& lock_hash unlock_hash +\& lock_keys_plus +\& hash_locked hash_unlocked +\& hashref_locked hashref_unlocked +\& hidden_keys legal_keys +\& +\& lock_ref_keys unlock_ref_keys +\& lock_ref_value unlock_ref_value +\& lock_hashref unlock_hashref +\& lock_ref_keys_plus +\& hidden_ref_keys legal_ref_keys +\& +\& hash_seed hash_value hv_store +\& bucket_stats bucket_info bucket_array +\& lock_hash_recurse unlock_hash_recurse +\& lock_hashref_recurse unlock_hashref_recurse +\& +\& hash_traversal_mask +\& ); +\& +\& %hash = (foo => 42, bar => 23); +\& # Ways to restrict a hash +\& lock_keys(%hash); +\& lock_keys(%hash, @keyset); +\& lock_keys_plus(%hash, @additional_keys); +\& +\& # Ways to inspect the properties of a restricted hash +\& my @legal = legal_keys(%hash); +\& my @hidden = hidden_keys(%hash); +\& my $ref = all_keys(%hash,@keys,@hidden); +\& my $is_locked = hash_locked(%hash); +\& +\& # Remove restrictions on the hash +\& unlock_keys(%hash); +\& +\& # Lock individual values in a hash +\& lock_value (%hash, \*(Aqfoo\*(Aq); +\& unlock_value(%hash, \*(Aqfoo\*(Aq); +\& +\& # Ways to change the restrictions on both keys and values +\& lock_hash (%hash); +\& unlock_hash(%hash); +\& +\& my $hashes_are_randomised = hash_seed() !~ /^\e0+$/; +\& +\& my $int_hash_value = hash_value( \*(Aqstring\*(Aq ); +\& +\& my $mask= hash_traversal_mask(%hash); +\& +\& hash_traversal_mask(%hash,1234); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Hash::Util\*(C'\fR and \f(CW\*(C`Hash::Util::FieldHash\*(C'\fR contain special functions +for manipulating hashes that don't really warrant a keyword. +.PP +\&\f(CW\*(C`Hash::Util\*(C'\fR contains a set of functions that support +restricted hashes. These are described in +this document. \f(CW\*(C`Hash::Util::FieldHash\*(C'\fR contains an (unrelated) +set of functions that support the use of hashes in +\&\fIinside-out classes\fR, described in Hash::Util::FieldHash. +.PP +By default \f(CW\*(C`Hash::Util\*(C'\fR does not export anything. +.SS "Restricted hashes" +.IX Subsection "Restricted hashes" +5.8.0 introduces the ability to restrict a hash to a certain set of +keys. No keys outside of this set can be added. It also introduces +the ability to lock an individual key so it cannot be deleted and the +ability to ensure that an individual value cannot be changed. +.PP +This is intended to largely replace the deprecated pseudo-hashes. +.IP "\fBlock_keys\fR" 4 +.IX Item "lock_keys" +.PD 0 +.IP "\fBunlock_keys\fR" 4 +.IX Item "unlock_keys" +.PD +.Vb 2 +\& lock_keys(%hash); +\& lock_keys(%hash, @keys); +.Ve +.Sp +Restricts the given \f(CW%hash\fR's set of keys to \f(CW@keys\fR. If \f(CW@keys\fR is not +given it restricts it to its current keyset. No more keys can be +added. \fBdelete()\fR and \fBexists()\fR will still work, but will not alter +the set of allowed keys. \fBNote\fR: the current implementation prevents +the hash from being \fBbless()\fRed while it is in a locked state. Any attempt +to do so will raise an exception. Of course you can still \fBbless()\fR +the hash before you call \fBlock_keys()\fR so this shouldn't be a problem. +.Sp +.Vb 1 +\& unlock_keys(%hash); +.Ve +.Sp +Removes the restriction on the \f(CW%hash\fR's keyset. +.Sp +\&\fBNote\fR that if any of the values of the hash have been locked they will not +be unlocked after this sub executes. +.Sp +Both routines return a reference to the hash operated on. +.IP "\fBlock_keys_plus\fR" 4 +.IX Item "lock_keys_plus" +.Vb 1 +\& lock_keys_plus(%hash,@additional_keys) +.Ve +.Sp +Similar to \f(CW\*(C`lock_keys()\*(C'\fR, with the difference being that the optional key list +specifies keys that may or may not be already in the hash. Essentially this is +an easier way to say +.Sp +.Vb 1 +\& lock_keys(%hash,@additional_keys,keys %hash); +.Ve +.Sp +Returns a reference to \f(CW%hash\fR +.IP "\fBlock_value\fR" 4 +.IX Item "lock_value" +.PD 0 +.IP "\fBunlock_value\fR" 4 +.IX Item "unlock_value" +.PD +.Vb 2 +\& lock_value (%hash, $key); +\& unlock_value(%hash, $key); +.Ve +.Sp +Locks and unlocks the value for an individual key of a hash. The value of a +locked key cannot be changed. +.Sp +Unless \f(CW%hash\fR has already been locked the key/value could be deleted +regardless of this setting. +.Sp +Returns a reference to the \f(CW%hash\fR. +.IP "\fBlock_hash\fR" 4 +.IX Item "lock_hash" +.PD 0 +.IP "\fBunlock_hash\fR" 4 +.IX Item "unlock_hash" +.PD +.Vb 1 +\& lock_hash(%hash); +.Ve +.Sp +\&\fBlock_hash()\fR locks an entire hash, making all keys and values read-only. +No value can be changed, no keys can be added or deleted. +.Sp +.Vb 1 +\& unlock_hash(%hash); +.Ve +.Sp +\&\fBunlock_hash()\fR does the opposite of \fBlock_hash()\fR. All keys and values +are made writable. All values can be changed and keys can be added +and deleted. +.Sp +Returns a reference to the \f(CW%hash\fR. +.IP "\fBlock_hash_recurse\fR" 4 +.IX Item "lock_hash_recurse" +.PD 0 +.IP "\fBunlock_hash_recurse\fR" 4 +.IX Item "unlock_hash_recurse" +.PD +.Vb 1 +\& lock_hash_recurse(%hash); +.Ve +.Sp +\&\fBlock_hash()\fR locks an entire hash and any hashes it references recursively, +making all keys and values read-only. No value can be changed, no keys can +be added or deleted. +.Sp +This method \fBonly\fR recurses into hashes that are referenced by another hash. +Thus a Hash of Hashes (HoH) will all be restricted, but a Hash of Arrays of +Hashes (HoAoH) will only have the top hash restricted. +.Sp +.Vb 1 +\& unlock_hash_recurse(%hash); +.Ve +.Sp +\&\fBunlock_hash_recurse()\fR does the opposite of \fBlock_hash_recurse()\fR. All keys and +values are made writable. All values can be changed and keys can be added +and deleted. Identical recursion restrictions apply as to \fBlock_hash_recurse()\fR. +.Sp +Returns a reference to the \f(CW%hash\fR. +.IP "\fBhashref_locked\fR" 4 +.IX Item "hashref_locked" +.PD 0 +.IP "\fBhash_locked\fR" 4 +.IX Item "hash_locked" +.PD +.Vb 2 +\& hashref_locked(\e%hash) and print "Hash is locked!\en"; +\& hash_locked(%hash) and print "Hash is locked!\en"; +.Ve +.Sp +Returns true if the hash and its keys are locked. +.IP "\fBhashref_unlocked\fR" 4 +.IX Item "hashref_unlocked" +.PD 0 +.IP "\fBhash_unlocked\fR" 4 +.IX Item "hash_unlocked" +.PD +.Vb 2 +\& hashref_unlocked(\e%hash) and print "Hash is unlocked!\en"; +\& hash_unlocked(%hash) and print "Hash is unlocked!\en"; +.Ve +.Sp +Returns true if the hash and its keys are unlocked. +.IP "\fBlegal_keys\fR" 4 +.IX Item "legal_keys" +.Vb 1 +\& my @keys = legal_keys(%hash); +.Ve +.Sp +Returns the list of the keys that are legal in a restricted hash. +In the case of an unrestricted hash this is identical to calling +keys(%hash). +.IP "\fBhidden_keys\fR" 4 +.IX Item "hidden_keys" +.Vb 1 +\& my @keys = hidden_keys(%hash); +.Ve +.Sp +Returns the list of the keys that are legal in a restricted hash but +do not have a value associated to them. Thus if 'foo' is a +\&\*(L"hidden\*(R" key of the \f(CW%hash\fR it will return false for both \f(CW\*(C`defined\*(C'\fR +and \f(CW\*(C`exists\*(C'\fR tests. +.Sp +In the case of an unrestricted hash this will return an empty list. +.Sp +\&\fB\s-1NOTE\s0\fR this is an experimental feature that is heavily dependent +on the current implementation of restricted hashes. Should the +implementation change, this routine may become meaningless, in which +case it will return an empty list. +.IP "\fBall_keys\fR" 4 +.IX Item "all_keys" +.Vb 1 +\& all_keys(%hash,@keys,@hidden); +.Ve +.Sp +Populates the arrays \f(CW@keys\fR with the all the keys that would pass +an \f(CW\*(C`exists\*(C'\fR tests, and populates \f(CW@hidden\fR with the remaining legal +keys that have not been utilized. +.Sp +Returns a reference to the hash. +.Sp +In the case of an unrestricted hash this will be equivalent to +.Sp +.Vb 5 +\& $ref = do { +\& @keys = keys %hash; +\& @hidden = (); +\& \e%hash +\& }; +.Ve +.Sp +\&\fB\s-1NOTE\s0\fR this is an experimental feature that is heavily dependent +on the current implementation of restricted hashes. Should the +implementation change this routine may become meaningless in which +case it will behave identically to how it would behave on an +unrestricted hash. +.IP "\fBhash_seed\fR" 4 +.IX Item "hash_seed" +.Vb 1 +\& my $hash_seed = hash_seed(); +.Ve +.Sp +\&\fBhash_seed()\fR returns the seed bytes used to randomise hash ordering. +.Sp +\&\fBNote that the hash seed is sensitive information\fR: by knowing it one +can craft a denial-of-service attack against Perl code, even remotely, +see \*(L"Algorithmic Complexity Attacks\*(R" in perlsec for more information. +\&\fBDo not disclose the hash seed\fR to people who don't need to know it. +See also \*(L"\s-1PERL_HASH_SEED_DEBUG\*(R"\s0 in perlrun. +.Sp +Prior to Perl 5.17.6 this function returned a \s-1UV,\s0 it now returns a string, +which may be of nearly any size as determined by the hash function your +Perl has been built with. Possible sizes may be but are not limited to +4 bytes (for most hash algorithms) and 16 bytes (for siphash). +.IP "\fBhash_value\fR" 4 +.IX Item "hash_value" +.Vb 1 +\& my $hash_value = hash_value($string); +.Ve +.Sp +\&\fBhash_value()\fR returns the current perl's internal hash value for a given +string. +.Sp +Returns a 32 bit integer representing the hash value of the string passed +in. This value is only reliable for the lifetime of the process. It may +be different depending on invocation, environment variables, perl version, +architectures, and build options. +.Sp +\&\fBNote that the hash value of a given string is sensitive information\fR: +by knowing it one can deduce the hash seed which in turn can allow one to +craft a denial-of-service attack against Perl code, even remotely, +see \*(L"Algorithmic Complexity Attacks\*(R" in perlsec for more information. +\&\fBDo not disclose the hash value of a string\fR to people who don't need to +know it. See also \*(L"\s-1PERL_HASH_SEED_DEBUG\*(R"\s0 in perlrun. +.IP "\fBbucket_info\fR" 4 +.IX Item "bucket_info" +Return a set of basic information about a hash. +.Sp +.Vb 1 +\& my ($keys, $buckets, $used, @length_counts)= bucket_info($hash); +.Ve +.Sp +Fields are as follows: +.Sp +.Vb 5 +\& 0: Number of keys in the hash +\& 1: Number of buckets in the hash +\& 2: Number of used buckets in the hash +\& rest : list of counts, Kth element is the number of buckets +\& with K keys in it. +.Ve +.Sp +See also \fBbucket_stats()\fR and \fBbucket_array()\fR. +.IP "\fBbucket_stats\fR" 4 +.IX Item "bucket_stats" +Returns a list of statistics about a hash. +.Sp +.Vb 3 +\& my ($keys, $buckets, $used, $quality, $utilization_ratio, +\& $collision_pct, $mean, $stddev, @length_counts) +\& = bucket_stats($hashref); +.Ve +.Sp +Fields are as follows: +.Sp +.Vb 10 +\& 0: Number of keys in the hash +\& 1: Number of buckets in the hash +\& 2: Number of used buckets in the hash +\& 3: Hash Quality Score +\& 4: Percent of buckets used +\& 5: Percent of keys which are in collision +\& 6: Mean bucket length of occupied buckets +\& 7: Standard Deviation of bucket lengths of occupied buckets +\& rest : list of counts, Kth element is the number of buckets +\& with K keys in it. +.Ve +.Sp +See also \fBbucket_info()\fR and \fBbucket_array()\fR. +.Sp +Note that Hash Quality Score would be 1 for an ideal hash, numbers +close to and below 1 indicate good hashing, and number significantly +above indicate a poor score. In practice it should be around 0.95 to 1.05. +It is defined as: +.Sp +.Vb 4 +\& $score= sum( $count[$length] * ($length * ($length + 1) / 2) ) +\& / +\& ( ( $keys / 2 * $buckets ) * +\& ( $keys + ( 2 * $buckets ) \- 1 ) ) +.Ve +.Sp +The formula is from the Red Dragon book (reformulated to use the data available) +and is documented at +.IP "\fBbucket_array\fR" 4 +.IX Item "bucket_array" +.Vb 1 +\& my $array= bucket_array(\e%hash); +.Ve +.Sp +Returns a packed representation of the bucket array associated with a hash. Each element +of the array is either an integer K, in which case it represents K empty buckets, or +a reference to another array which contains the keys that are in that bucket. +.Sp +\&\fBNote that the information returned by bucket_array is sensitive information\fR: +by knowing it one can directly attack perl's hash function which in turn may allow +one to craft a denial-of-service attack against Perl code, even remotely, +see \*(L"Algorithmic Complexity Attacks\*(R" in perlsec for more information. +\&\fBDo not disclose the output of this function\fR to people who don't need to +know it. See also \*(L"\s-1PERL_HASH_SEED_DEBUG\*(R"\s0 in perlrun. This function is provided strictly +for debugging and diagnostics purposes only, it is hard to imagine a reason why it +would be used in production code. +.IP "\fBbucket_stats_formatted\fR" 4 +.IX Item "bucket_stats_formatted" +.Vb 1 +\& print bucket_stats_formatted($hashref); +.Ve +.Sp +Return a formatted report of the information returned by \fBbucket_stats()\fR. +An example report looks like this: +.Sp +.Vb 12 +\& Keys: 50 Buckets: 33/64 Quality\-Score: 1.01 (Good) +\& Utilized Buckets: 51.56% Optimal: 78.12% Keys In Collision: 34.00% +\& Chain Length \- mean: 1.52 stddev: 0.66 +\& Buckets 64 [0000000000000000000000000000000111111111111111111122222222222333] +\& Len 0 Pct: 48.44 [###############################] +\& Len 1 Pct: 29.69 [###################] +\& Len 2 Pct: 17.19 [###########] +\& Len 3 Pct: 4.69 [###] +\& Keys 50 [11111111111111111111111111111111122222222222222333] +\& Pos 1 Pct: 66.00 [#################################] +\& Pos 2 Pct: 28.00 [##############] +\& Pos 3 Pct: 6.00 [###] +.Ve +.Sp +The first set of stats gives some summary statistical information, +including the quality score translated into \*(L"Good\*(R", \*(L"Poor\*(R" and \*(L"Bad\*(R", +(score<=1.05, score<=1.2, score>1.2). See the documentation in +\&\fBbucket_stats()\fR for more details. +.Sp +The two sets of barcharts give stats and a visual indication of performance +of the hash. +.Sp +The first gives data on bucket chain lengths and provides insight on how +much work a fetch *miss* will take. In this case we have to inspect every item +in a bucket before we can be sure the item is not in the list. The performance +for an insert is equivalent to this case, as is a delete where the item +is not in the hash. +.Sp +The second gives data on how many keys are at each depth in the chain, and +gives an idea of how much work a fetch *hit* will take. The performance for +an update or delete of an item in the hash is equivalent to this case. +.Sp +Note that these statistics are summary only. Actual performance will depend +on real hit/miss ratios accessing the hash. If you are concerned by hit ratios +you are recommended to \*(L"oversize\*(R" your hash by using something like: +.Sp +.Vb 1 +\& keys(%hash)= keys(%hash) << $k; +.Ve +.Sp +With \f(CW$k\fR chosen carefully, and likely to be a small number like 1 or 2. In +theory the larger the bucket array the less chance of collision. +.IP "\fBhv_store\fR" 4 +.IX Item "hv_store" +.Vb 4 +\& my $sv = 0; +\& hv_store(%hash,$key,$sv) or die "Failed to alias!"; +\& $hash{$key} = 1; +\& print $sv; # prints 1 +.Ve +.Sp +Stores an alias to a variable in a hash instead of copying the value. +.IP "\fBhash_traversal_mask\fR" 4 +.IX Item "hash_traversal_mask" +As of Perl 5.18 every hash has its own hash traversal order, and this order +changes every time a new element is inserted into the hash. This functionality +is provided by maintaining an unsigned integer mask (U32) which is xor'ed +with the actual bucket id during a traversal of the hash buckets using \fBkeys()\fR, +\&\fBvalues()\fR or \fBeach()\fR. +.Sp +You can use this subroutine to get and set the traversal mask for a specific +hash. Setting the mask ensures that a given hash will produce the same key +order. \fBNote\fR that this does \fBnot\fR guarantee that \fBtwo\fR hashes will produce +the same key order for the same hash seed and traversal mask, items that +collide into one bucket may have different orders regardless of this setting. +.IP "\fBbucket_ratio\fR" 4 +.IX Item "bucket_ratio" +This function behaves the same way that scalar(%hash) behaved prior to +Perl 5.25. Specifically if the hash is tied, then it calls the \s-1SCALAR\s0 tied +hash method, if untied then if the hash is empty it return 0, otherwise it +returns a string containing the number of used buckets in the hash, +followed by a slash, followed by the total number of buckets in the hash. +.Sp +.Vb 2 +\& my %hash=("foo"=>1); +\& print Hash::Util::bucket_ratio(%hash); # prints "1/8" +.Ve +.IP "\fBused_buckets\fR" 4 +.IX Item "used_buckets" +This function returns the count of used buckets in the hash. It is expensive +to calculate and the value is \s-1NOT\s0 cached, so avoid use of this function +in production code. +.IP "\fBnum_buckets\fR" 4 +.IX Item "num_buckets" +This function returns the total number of buckets the hash holds, or would +hold if the array were created. (When a hash is freshly created the array +may not be allocated even though this value will be non-zero.) +.SS "Operating on references to hashes." +.IX Subsection "Operating on references to hashes." +Most subroutines documented in this module have equivalent versions +that operate on references to hashes instead of native hashes. +The following is a list of these subs. They are identical except +in name and in that instead of taking a \f(CW%hash\fR they take a \f(CW$hashref\fR, +and additionally are not prototyped. +.IP "lock_ref_keys" 4 +.IX Item "lock_ref_keys" +.PD 0 +.IP "unlock_ref_keys" 4 +.IX Item "unlock_ref_keys" +.IP "lock_ref_keys_plus" 4 +.IX Item "lock_ref_keys_plus" +.IP "lock_ref_value" 4 +.IX Item "lock_ref_value" +.IP "unlock_ref_value" 4 +.IX Item "unlock_ref_value" +.IP "lock_hashref" 4 +.IX Item "lock_hashref" +.IP "unlock_hashref" 4 +.IX Item "unlock_hashref" +.IP "lock_hashref_recurse" 4 +.IX Item "lock_hashref_recurse" +.IP "unlock_hashref_recurse" 4 +.IX Item "unlock_hashref_recurse" +.IP "hash_ref_unlocked" 4 +.IX Item "hash_ref_unlocked" +.IP "legal_ref_keys" 4 +.IX Item "legal_ref_keys" +.IP "hidden_ref_keys" 4 +.IX Item "hidden_ref_keys" +.PD +.SH "CAVEATS" +.IX Header "CAVEATS" +Note that the trapping of the restricted operations is not atomic: +for example +.PP +.Vb 1 +\& eval { %hash = (illegal_key => 1) } +.Ve +.PP +leaves the \f(CW%hash\fR empty rather than with its original contents. +.SH "BUGS" +.IX Header "BUGS" +The interface exposed by this module is very close to the current +implementation of restricted hashes. Over time it is expected that +this behavior will be extended and the interface abstracted further. +.SH "AUTHOR" +.IX Header "AUTHOR" +Michael G Schwern on top of code by Nick +Ing-Simmons and Jeffrey Friedl. +.PP +\&\fBhv_store()\fR is from Array::RefElem, Copyright 2000 Gisle Aas. +.PP +Additional code by Yves Orton. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Scalar::Util, List::Util and \*(L"Algorithmic Complexity Attacks\*(R" in perlsec. +.PP +Hash::Util::FieldHash. diff --git a/data/miniconda3/man/man3/I18N%3A%3ACollate.3 b/data/miniconda3/man/man3/I18N%3A%3ACollate.3 new file mode 100644 index 0000000000000000000000000000000000000000..af7d84adf26e3959bf5759ee6389093a99d981e3 --- /dev/null +++ b/data/miniconda3/man/man3/I18N%3A%3ACollate.3 @@ -0,0 +1,197 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "I18N::Collate 3" +.TH I18N::Collate 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +I18N::Collate \- compare 8\-bit scalar data according to the current locale +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& use I18N::Collate; +\& setlocale(LC_COLLATE, \*(Aqlocale\-of\-your\-choice\*(Aq); +\& $s1 = I18N::Collate\->new("scalar_data_1"); +\& $s2 = I18N::Collate\->new("scalar_data_2"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.Vb 1 +\& *** +\& +\& WARNING: starting from the Perl version 5.003_06 +\& the I18N::Collate interface for comparing 8\-bit scalar data +\& according to the current locale +\& +\& HAS BEEN DEPRECATED +\& +\& That is, please do not use it anymore for any new applications +\& and please migrate the old applications away from it because its +\& functionality was integrated into the Perl core language in the +\& release 5.003_06. +\& +\& See the perllocale manual page for further information. +\& +\& *** +.Ve +.PP +This module provides you with objects that will collate +according to your national character set, provided that the +\&\s-1POSIX\s0 \fBsetlocale()\fR function is supported on your system. +.PP +You can compare \f(CW$s1\fR and \f(CW$s2\fR above with +.PP +.Vb 1 +\& $s1 le $s2 +.Ve +.PP +to extract the data itself, you'll need a dereference: $$s1 +.PP +This module uses \fBPOSIX::setlocale()\fR. The basic collation conversion is +done by \fBstrxfrm()\fR which terminates at \s-1NUL\s0 characters being a decent C +routine. \fBcollate_xfrm()\fR handles embedded \s-1NUL\s0 characters gracefully. +.PP +The available locales depend on your operating system; try whether +\&\f(CW\*(C`locale \-a\*(C'\fR shows them or man pages for \*(L"locale\*(R" or \*(L"nlsinfo\*(R" or the +direct approach \f(CW\*(C`ls /usr/lib/nls/loc\*(C'\fR or \f(CW\*(C`ls /usr/lib/nls\*(C'\fR or +\&\f(CW\*(C`ls /usr/lib/locale\*(C'\fR. Not all the locales that your vendor supports +are necessarily installed: please consult your operating system's +documentation and possibly your local system administration. The +locale names are probably something like \f(CW\*(C`xx_XX.(ISO)?8859\-N\*(C'\fR or +\&\f(CW\*(C`xx_XX.(ISO)?8859N\*(C'\fR, for example \f(CW\*(C`fr_CH.ISO8859\-1\*(C'\fR is the Swiss (\s-1CH\s0) +variant of French (fr), \s-1ISO\s0 Latin (8859) 1 (\-1) which is the Western +European character set. diff --git a/data/miniconda3/man/man3/IO%3A%3ADir.3 b/data/miniconda3/man/man3/IO%3A%3ADir.3 new file mode 100644 index 0000000000000000000000000000000000000000..742de46987996f37bb30c10751743fc29239475e --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ADir.3 @@ -0,0 +1,223 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "IO::Dir 3" +.TH IO::Dir 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +IO::Dir \- supply object methods for directory handles +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 8 +\& use IO::Dir; +\& $d = IO::Dir\->new("."); +\& if (defined $d) { +\& while (defined($_ = $d\->read)) { something($_); } +\& $d\->rewind; +\& while (defined($_ = $d\->read)) { something_else($_); } +\& undef $d; +\& } +\& +\& tie %dir, \*(AqIO::Dir\*(Aq, "."; +\& foreach (keys %dir) { +\& print $_, " " , $dir{$_}\->size,"\en"; +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`IO::Dir\*(C'\fR package provides two interfaces to perl's directory reading +routines. +.PP +The first interface is an object approach. \f(CW\*(C`IO::Dir\*(C'\fR provides an object +constructor and methods, which are just wrappers around perl's built in +directory reading routines. +.IP "new ( [ \s-1DIRNAME\s0 ] )" 4 +.IX Item "new ( [ DIRNAME ] )" +\&\f(CW\*(C`new\*(C'\fR is the constructor for \f(CW\*(C`IO::Dir\*(C'\fR objects. It accepts one optional +argument which, if given, \f(CW\*(C`new\*(C'\fR will pass to \f(CW\*(C`open\*(C'\fR +.PP +The following methods are wrappers for the directory related functions built +into perl (the trailing 'dir' has been removed from the names). See perlfunc +for details of these functions. +.IP "open ( \s-1DIRNAME\s0 )" 4 +.IX Item "open ( DIRNAME )" +.PD 0 +.IP "read ()" 4 +.IX Item "read ()" +.IP "seek ( \s-1POS\s0 )" 4 +.IX Item "seek ( POS )" +.IP "tell ()" 4 +.IX Item "tell ()" +.IP "rewind ()" 4 +.IX Item "rewind ()" +.IP "close ()" 4 +.IX Item "close ()" +.PD +.PP +\&\f(CW\*(C`IO::Dir\*(C'\fR also provides an interface to reading directories via a tied +hash. The tied hash extends the interface beyond just the directory +reading routines by the use of \f(CW\*(C`lstat\*(C'\fR, from the \f(CW\*(C`File::stat\*(C'\fR package, +\&\f(CW\*(C`unlink\*(C'\fR, \f(CW\*(C`rmdir\*(C'\fR and \f(CW\*(C`utime\*(C'\fR. +.ie n .IP "tie %hash, 'IO::Dir', \s-1DIRNAME\s0 [, \s-1OPTIONS\s0 ]" 4 +.el .IP "tie \f(CW%hash\fR, 'IO::Dir', \s-1DIRNAME\s0 [, \s-1OPTIONS\s0 ]" 4 +.IX Item "tie %hash, 'IO::Dir', DIRNAME [, OPTIONS ]" +.PP +The keys of the hash will be the names of the entries in the directory. +Reading a value from the hash will be the result of calling +\&\f(CW\*(C`File::stat::lstat\*(C'\fR. Deleting an element from the hash will +delete the corresponding file or subdirectory, +provided that \f(CW\*(C`DIR_UNLINK\*(C'\fR is included in the \f(CW\*(C`OPTIONS\*(C'\fR. +.PP +Assigning to an entry in the hash will cause the time stamps of the file +to be modified. If the file does not exist then it will be created. Assigning +a single integer to a hash element will cause both the access and +modification times to be changed to that value. Alternatively a reference to +an array of two values can be passed. The first array element will be used to +set the access time and the second element will be used to set the modification +time. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +File::stat +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr. Currently maintained by the Perl Porters. Please report all +bugs to . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1997\-2003 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3APipe.3 b/data/miniconda3/man/man3/IO%3A%3APipe.3 new file mode 100644 index 0000000000000000000000000000000000000000..b9b5f6b827b6e6398fecc5a15807a5133f32b0e0 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3APipe.3 @@ -0,0 +1,219 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "IO::Pipe 3" +.TH IO::Pipe 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +IO::Pipe \- supply object methods for pipes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Pipe; +\& +\& $pipe = IO::Pipe\->new(); +\& +\& if($pid = fork()) { # Parent +\& $pipe\->reader(); +\& +\& while(<$pipe>) { +\& ... +\& } +\& +\& } +\& elsif(defined $pid) { # Child +\& $pipe\->writer(); +\& +\& print $pipe ... +\& } +\& +\& or +\& +\& $pipe = IO::Pipe\->new(); +\& +\& $pipe\->reader(qw(ls \-l)); +\& +\& while(<$pipe>) { +\& ... +\& } +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::Pipe\*(C'\fR provides an interface to creating pipes between +processes. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( [\s-1READER, WRITER\s0] )" 4 +.IX Item "new ( [READER, WRITER] )" +Creates an \f(CW\*(C`IO::Pipe\*(C'\fR, which is a reference to a newly created symbol +(see the \f(CW\*(C`Symbol\*(C'\fR package). \f(CW\*(C`IO::Pipe::new\*(C'\fR optionally takes two +arguments, which should be objects blessed into \f(CW\*(C`IO::Handle\*(C'\fR, or a +subclass thereof. These two objects will be used for the system call +to \f(CW\*(C`pipe\*(C'\fR. If no arguments are given then method \f(CW\*(C`handles\*(C'\fR is called +on the new \f(CW\*(C`IO::Pipe\*(C'\fR object. +.Sp +These two handles are held in the array part of the \s-1GLOB\s0 until either +\&\f(CW\*(C`reader\*(C'\fR or \f(CW\*(C`writer\*(C'\fR is called. +.SH "METHODS" +.IX Header "METHODS" +.IP "reader ([\s-1ARGS\s0])" 4 +.IX Item "reader ([ARGS])" +The object is re-blessed into a sub-class of \f(CW\*(C`IO::Handle\*(C'\fR, and becomes a +handle at the reading end of the pipe. If \f(CW\*(C`ARGS\*(C'\fR are given then \f(CW\*(C`fork\*(C'\fR +is called and \f(CW\*(C`ARGS\*(C'\fR are passed to exec. +.IP "writer ([\s-1ARGS\s0])" 4 +.IX Item "writer ([ARGS])" +The object is re-blessed into a sub-class of \f(CW\*(C`IO::Handle\*(C'\fR, and becomes a +handle at the writing end of the pipe. If \f(CW\*(C`ARGS\*(C'\fR are given then \f(CW\*(C`fork\*(C'\fR +is called and \f(CW\*(C`ARGS\*(C'\fR are passed to exec. +.IP "handles ()" 4 +.IX Item "handles ()" +This method is called during construction by \f(CW\*(C`IO::Pipe::new\*(C'\fR +on the newly created \f(CW\*(C`IO::Pipe\*(C'\fR object. It returns an array of two objects +blessed into \f(CW\*(C`IO::Pipe::End\*(C'\fR, or a subclass thereof. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +IO::Handle +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr. Currently maintained by the Perl Porters. Please report all +bugs to . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1996\-8 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ASelect.3 b/data/miniconda3/man/man3/IO%3A%3ASelect.3 new file mode 100644 index 0000000000000000000000000000000000000000..7f369b5930bdede3ddd4a6d90ecb4570e069f4a6 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ASelect.3 @@ -0,0 +1,268 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "IO::Select 3" +.TH IO::Select 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +IO::Select \- OO interface to the select system call +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Select; +\& +\& $s = IO::Select\->new(); +\& +\& $s\->add(\e*STDIN); +\& $s\->add($some_handle); +\& +\& @ready = $s\->can_read($timeout); +\& +\& @ready = IO::Select\->new(@handles)\->can_read(0); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`IO::Select\*(C'\fR package implements an object approach to the system \f(CW\*(C`select\*(C'\fR +function call. It allows the user to see what \s-1IO\s0 handles, see IO::Handle, +are ready for reading, writing or have an exception pending. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( [ \s-1HANDLES\s0 ] )" 4 +.IX Item "new ( [ HANDLES ] )" +The constructor creates a new object and optionally initialises it with a set +of handles. +.SH "METHODS" +.IX Header "METHODS" +.IP "add ( \s-1HANDLES\s0 )" 4 +.IX Item "add ( HANDLES )" +Add the list of handles to the \f(CW\*(C`IO::Select\*(C'\fR object. It is these values that +will be returned when an event occurs. \f(CW\*(C`IO::Select\*(C'\fR keeps these values in a +cache which is indexed by the \f(CW\*(C`fileno\*(C'\fR of the handle, so if more than one +handle with the same \f(CW\*(C`fileno\*(C'\fR is specified then only the last one is cached. +.Sp +Each handle can be an \f(CW\*(C`IO::Handle\*(C'\fR object, an integer or an array +reference where the first element is an \f(CW\*(C`IO::Handle\*(C'\fR or an integer. +.IP "remove ( \s-1HANDLES\s0 )" 4 +.IX Item "remove ( HANDLES )" +Remove all the given handles from the object. This method also works +by the \f(CW\*(C`fileno\*(C'\fR of the handles. So the exact handles that were added +need not be passed, just handles that have an equivalent \f(CW\*(C`fileno\*(C'\fR +.IP "exists ( \s-1HANDLE\s0 )" 4 +.IX Item "exists ( HANDLE )" +Returns a true value (actually the handle itself) if it is present. +Returns undef otherwise. +.IP "handles" 4 +.IX Item "handles" +Return an array of all registered handles. +.IP "can_read ( [ \s-1TIMEOUT\s0 ] )" 4 +.IX Item "can_read ( [ TIMEOUT ] )" +Return an array of handles that are ready for reading. \f(CW\*(C`TIMEOUT\*(C'\fR is the +maximum amount of time to wait before returning an empty list (with \f(CW$!\fR +unchanged), in seconds, possibly fractional. If \f(CW\*(C`TIMEOUT\*(C'\fR is not given +and any handles are registered then the call will block indefinitely. +Upon error, an empty list is returned, with \f(CW$!\fR set to indicate the +error. To distinguish between timeout and error, set \f(CW$!\fR to zero +before calling this method, and check it after an empty list is returned. +.IP "can_write ( [ \s-1TIMEOUT\s0 ] )" 4 +.IX Item "can_write ( [ TIMEOUT ] )" +Same as \f(CW\*(C`can_read\*(C'\fR except check for handles that can be written to. +.IP "has_exception ( [ \s-1TIMEOUT\s0 ] )" 4 +.IX Item "has_exception ( [ TIMEOUT ] )" +Same as \f(CW\*(C`can_read\*(C'\fR except check for handles that have an exception +condition, for example pending out-of-band data. +.IP "count ()" 4 +.IX Item "count ()" +Returns the number of handles that the object will check for when +one of the \f(CW\*(C`can_\*(C'\fR methods is called or the object is passed to +the \f(CW\*(C`select\*(C'\fR static method. +.IP "\fBbits()\fR" 4 +.IX Item "bits()" +Return the bit string suitable as argument to the core \fBselect()\fR call. +.IP "select ( \s-1READ, WRITE, EXCEPTION\s0 [, \s-1TIMEOUT\s0 ] )" 4 +.IX Item "select ( READ, WRITE, EXCEPTION [, TIMEOUT ] )" +\&\f(CW\*(C`select\*(C'\fR is a static method, that is you call it with the package name +like \f(CW\*(C`new\*(C'\fR. \f(CW\*(C`READ\*(C'\fR, \f(CW\*(C`WRITE\*(C'\fR and \f(CW\*(C`EXCEPTION\*(C'\fR are either \f(CW\*(C`undef\*(C'\fR or +\&\f(CW\*(C`IO::Select\*(C'\fR objects. \f(CW\*(C`TIMEOUT\*(C'\fR is optional and has the same effect as +for the core select call. +.Sp +If at least one handle is ready for the specified kind of operation, +the result will be an array of 3 elements, each a reference to an array +which will hold the handles that are ready for reading, writing and +have exceptions respectively. Upon timeout, an empty list is returned, +with \f(CW$!\fR unchanged. Upon error, an empty list is returned, with \f(CW$!\fR +set to indicate the error. To distinguish between timeout and error, +set \f(CW$!\fR to zero before calling this method, and check it after an +empty list is returned. +.SH "EXAMPLE" +.IX Header "EXAMPLE" +Here is a short example which shows how \f(CW\*(C`IO::Select\*(C'\fR could be used +to write a server which communicates with several sockets while also +listening for more connections on a listen socket +.PP +.Vb 2 +\& use IO::Select; +\& use IO::Socket; +\& +\& $lsn = IO::Socket::INET\->new(Listen => 1, LocalPort => 8080); +\& $sel = IO::Select\->new( $lsn ); +\& +\& while(@ready = $sel\->can_read) { +\& foreach $fh (@ready) { +\& if($fh == $lsn) { +\& # Create a new socket +\& $new = $lsn\->accept; +\& $sel\->add($new); +\& } +\& else { +\& # Process socket +\& +\& # Maybe we have finished with the socket +\& $sel\->remove($fh); +\& $fh\->close; +\& } +\& } +\& } +.Ve +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr. Currently maintained by the Perl Porters. Please report all +bugs to . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1997\-8 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO%3A%3ASocket.3 b/data/miniconda3/man/man3/IO%3A%3ASocket.3 new file mode 100644 index 0000000000000000000000000000000000000000..af042264b4d8d96e72e3b43a6aa9dab977f08843 --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3ASocket.3 @@ -0,0 +1,679 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "IO::Socket 3" +.TH IO::Socket 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +IO::Socket \- Object interface to socket communications +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use strict; +\& use warnings; +\& +\& use IO::Socket qw(AF_INET AF_UNIX); +\& +\& # create a new AF_INET socket +\& my $sock = IO::Socket\->new(Domain => AF_INET); +\& # which is the same as +\& $sock = IO::Socket::INET\->new(); +\& +\& # create a new AF_UNIX socket +\& $sock = IO::Socket\->new(Domain => AF_UNIX); +\& # which is the same as +\& $sock = IO::Socket::UNIX\->new(); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO::Socket\*(C'\fR provides an object-oriented, IO::Handle\-based interface to +creating and using sockets via Socket, which provides a near one-to-one +interface to the C socket library. +.PP +\&\f(CW\*(C`IO::Socket\*(C'\fR is a base class that really only defines methods for those +operations which are common to all types of sockets. Operations which are +specific to a particular socket domain have methods defined in subclasses of +\&\f(CW\*(C`IO::Socket\*(C'\fR. See IO::Socket::INET, IO::Socket::UNIX, and +IO::Socket::IP for examples of such a subclass. +.PP +\&\f(CW\*(C`IO::Socket\*(C'\fR will export all functions (and constants) defined by Socket. +.SH "CONSTRUCTOR ARGUMENTS" +.IX Header "CONSTRUCTOR ARGUMENTS" +Given that \f(CW\*(C`IO::Socket\*(C'\fR doesn't have attributes in the traditional sense, the +following arguments, rather than attributes, can be passed into the +constructor. +.PP +Constructor arguments should be passed in \f(CW\*(C`Key => \*(AqValue\*(Aq\*(C'\fR pairs. +.PP +The only required argument is \*(L"Domain\*(R" in IO::Socket. +.SS "Blocking" +.IX Subsection "Blocking" +.Vb 2 +\& my $sock = IO::Socket\->new(..., Blocking => 1); +\& $sock = IO::Socket\->new(..., Blocking => 0); +.Ve +.PP +If defined but false, the socket will be set to non-blocking mode. If not +specified it defaults to \f(CW1\fR (blocking mode). +.SS "Domain" +.IX Subsection "Domain" +.Vb 2 +\& my $sock = IO::Socket\->new(Domain => IO::Socket::AF_INET); +\& $sock = IO::Socket\->new(Domain => IO::Socket::AF_UNIX); +.Ve +.PP +The socket domain will define which subclass of \f(CW\*(C`IO::Socket\*(C'\fR to use. The two +options available along with this distribution are \f(CW\*(C`AF_INET\*(C'\fR and \f(CW\*(C`AF_UNIX\*(C'\fR. +.PP +\&\f(CW\*(C`AF_INET\*(C'\fR is for the internet address family of sockets and is handled via +IO::Socket::INET. \f(CW\*(C`AF_INET\*(C'\fR sockets are bound to an internet address and +port. +.PP +\&\f(CW\*(C`AF_UNIX\*(C'\fR is for the unix domain socket and is handled via +IO::Socket::UNIX. \f(CW\*(C`AF_UNIX\*(C'\fR sockets are bound to the file system as their +address name space. +.PP +This argument is \fBrequired\fR. All other arguments are optional. +.SS "Listen" +.IX Subsection "Listen" +.Vb 1 +\& my $sock = IO::Socket\->new(..., Listen => 5); +.Ve +.PP +Listen should be an integer value or left unset. +.PP +If provided, this argument will place the socket into listening mode. New +connections can then be accepted using the \*(L"accept\*(R" in IO::Socket method. The +value given is used as the \f(CWlisten(2)\fR queue size. +.PP +If the \f(CW\*(C`Listen\*(C'\fR argument is given, but false, the queue size will be set to +5. +.SS "Timeout" +.IX Subsection "Timeout" +.Vb 1 +\& my $sock = IO::Socket\->new(..., Timeout => 5); +.Ve +.PP +The timeout value, in seconds, for this socket connection. How exactly this +value is utilized is defined in the socket domain subclasses that make use of +the value. +.SS "Type" +.IX Subsection "Type" +.Vb 1 +\& my $sock = IO::Socket\->new(..., Type => IO::Socket::SOCK_STREAM); +.Ve +.PP +The socket type that will be used. These are usually \f(CW\*(C`SOCK_STREAM\*(C'\fR, +\&\f(CW\*(C`SOCK_DGRAM\*(C'\fR, or \f(CW\*(C`SOCK_RAW\*(C'\fR. If this argument is left undefined an attempt +will be made to infer the type from the service name. +.PP +For example, you'll usually use \f(CW\*(C`SOCK_STREAM\*(C'\fR with a \f(CW\*(C`tcp\*(C'\fR connection and +\&\f(CW\*(C`SOCK_DGRAM\*(C'\fR with a \f(CW\*(C`udp\*(C'\fR connection. +.SH "CONSTRUCTORS" +.IX Header "CONSTRUCTORS" +\&\f(CW\*(C`IO::Socket\*(C'\fR extends the IO::Handle constructor. +.SS "new" +.IX Subsection "new" +.Vb 1 +\& my $sock = IO::Socket\->new(); +\& +\& # get a new IO::Socket::INET instance +\& $sock = IO::Socket\->new(Domain => IO::Socket::AF_INET); +\& # get a new IO::Socket::UNIX instance +\& $sock = IO::Socket\->new(Domain => IO::Socket::AF_UNIX); +\& +\& # Domain is the only required argument +\& $sock = IO::Socket\->new( +\& Domain => IO::Socket::AF_INET, # AF_INET, AF_UNIX +\& Type => IO::Socket::SOCK_STREAM, # SOCK_STREAM, SOCK_DGRAM, ... +\& Proto => \*(Aqtcp\*(Aq, # \*(Aqtcp\*(Aq, \*(Aqudp\*(Aq, IPPROTO_TCP, IPPROTO_UDP +\& # and so on... +\& ); +.Ve +.PP +Creates an \f(CW\*(C`IO::Socket\*(C'\fR, which is a reference to a newly created symbol (see +the Symbol package). \f(CW\*(C`new\*(C'\fR optionally takes arguments, these arguments +are defined in \*(L"\s-1CONSTRUCTOR ARGUMENTS\*(R"\s0 in IO::Socket. +.PP +Any of the \*(L"\s-1CONSTRUCTOR ARGUMENTS\*(R"\s0 in IO::Socket may be passed to the +constructor, but if any arguments are provided, then one of them must be +the \*(L"Domain\*(R" in IO::Socket argument. The \*(L"Domain\*(R" in IO::Socket argument can, +by default, be either \f(CW\*(C`AF_INET\*(C'\fR or \f(CW\*(C`AF_UNIX\*(C'\fR. Other domains can be used if a +proper subclass for the domain family is registered. All other arguments will +be passed to the \f(CW\*(C`configuration\*(C'\fR method of the package for that domain. +.SH "METHODS" +.IX Header "METHODS" +\&\f(CW\*(C`IO::Socket\*(C'\fR inherits all methods from IO::Handle and implements the +following new ones. +.SS "accept" +.IX Subsection "accept" +.Vb 2 +\& my $client_sock = $sock\->accept(); +\& my $inet_sock = $sock\->accept(\*(AqIO::Socket::INET\*(Aq); +.Ve +.PP +The accept method will perform the system call \f(CW\*(C`accept\*(C'\fR on the socket and +return a new object. The new object will be created in the same class as the +listen socket, unless a specific package name is specified. This object can be +used to communicate with the client that was trying to connect. +.PP +This differs slightly from the \f(CW\*(C`accept\*(C'\fR function in perlfunc. +.PP +In a scalar context the new socket is returned, or \f(CW\*(C`undef\*(C'\fR upon +failure. In a list context a two-element array is returned containing +the new socket and the peer address; the list will be empty upon failure. +.SS "atmark" +.IX Subsection "atmark" +.Vb 4 +\& my $integer = $sock\->atmark(); +\& # read in some data on a given socket +\& my $data; +\& $sock\->read($data, 1024) until $sock\->atmark; +\& +\& # or, export the function to use: +\& use IO::Socket \*(Aqsockatmark\*(Aq; +\& $sock\->read($data, 1024) until sockatmark($sock); +.Ve +.PP +True if the socket is currently positioned at the urgent data mark, false +otherwise. If your system doesn't yet implement \f(CW\*(C`sockatmark\*(C'\fR this will throw +an exception. +.PP +If your system does not support \f(CW\*(C`sockatmark\*(C'\fR, the \f(CW\*(C`use\*(C'\fR declaration will +fail at compile time. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 6 +\& # by default, autoflush will be turned on when referenced +\& $sock\->autoflush(); # turns on autoflush +\& # turn off autoflush +\& $sock\->autoflush(0); +\& # turn on autoflush +\& $sock\->autoflush(1); +.Ve +.PP +This attribute isn't overridden from IO::Handle's implementation. However, +since we turn it on by default, it's worth mentioning here. +.SS "bind" +.IX Subsection "bind" +.Vb 5 +\& use Socket qw(pack_sockaddr_in); +\& my $port = 3000; +\& my $ip_address = \*(Aq0.0.0.0\*(Aq; +\& my $packed_addr = pack_sockaddr_in($port, $ip_address); +\& $sock\->bind($packed_addr); +.Ve +.PP +Binds a network address to a socket, just as \f(CWbind(2)\fR does. Returns true if +it succeeded, false otherwise. You should provide a packed address of the +appropriate type for the socket. +.SS "connected" +.IX Subsection "connected" +.Vb 4 +\& my $peer_addr = $sock\->connected(); +\& if ($peer_addr) { +\& say "We\*(Aqre connected to $peer_addr"; +\& } +.Ve +.PP +If the socket is in a connected state, the peer address is returned. If the +socket is not in a connected state, \f(CW\*(C`undef\*(C'\fR is returned. +.PP +Note that this method considers a half-open \s-1TCP\s0 socket to be \*(L"in a connected +state\*(R". Specifically, it does not distinguish between the +\&\fB\s-1ESTABLISHED\s0\fR and \fBCLOSE-WAIT\fR \s-1TCP\s0 states; it returns the peer address, +rather than \f(CW\*(C`undef\*(C'\fR, in either case. Thus, in general, it cannot +be used to reliably learn whether the peer has initiated a graceful shutdown +because in most cases (see below) the local \s-1TCP\s0 state machine remains in +\&\fBCLOSE-WAIT\fR until the local application calls \*(L"shutdown\*(R" in IO::Socket or +\&\f(CW\*(C`close\*(C'\fR. Only at that point does this function return \f(CW\*(C`undef\*(C'\fR. +.PP +The \*(L"in most cases\*(R" hedge is because local \s-1TCP\s0 state machine behavior may +depend on the peer's socket options. In particular, if the peer socket has +\&\f(CW\*(C`SO_LINGER\*(C'\fR enabled with a zero timeout, then the peer's \f(CW\*(C`close\*(C'\fR will +generate a \f(CW\*(C`RST\*(C'\fR segment. Upon receipt of that segment, the local \s-1TCP\s0 +transitions immediately to \fB\s-1CLOSED\s0\fR, and in that state, this method \fIwill\fR +return \f(CW\*(C`undef\*(C'\fR. +.SS "getsockopt" +.IX Subsection "getsockopt" +.Vb 3 +\& my $value = $sock\->getsockopt(SOL_SOCKET, SO_REUSEADDR); +\& my $buf = $socket\->getsockopt(SOL_SOCKET, SO_RCVBUF); +\& say "Receive buffer is $buf bytes"; +.Ve +.PP +Get an option associated with the socket. Levels other than \f(CW\*(C`SOL_SOCKET\*(C'\fR +may be specified here. As a convenience, this method will unpack a byte buffer +of the correct size back into a number. +.SS "listen" +.IX Subsection "listen" +.Vb 1 +\& $sock\->listen(5); +.Ve +.PP +Does the same thing that the \f(CWlisten(2)\fR system call does. Returns true if it +succeeded, false otherwise. Listens to a socket with a given queue size. +.SS "peername" +.IX Subsection "peername" +.Vb 1 +\& my $sockaddr_in = $sock\->peername(); +.Ve +.PP +Returns the packed \f(CW\*(C`sockaddr\*(C'\fR address of the other end of the socket +connection. It calls \f(CW\*(C`getpeername\*(C'\fR. +.SS "protocol" +.IX Subsection "protocol" +.Vb 1 +\& my $proto = $sock\->protocol(); +.Ve +.PP +Returns the number for the protocol being used on the socket, if +known. If the protocol is unknown, as with an \f(CW\*(C`AF_UNIX\*(C'\fR socket, zero +is returned. +.SS "recv" +.IX Subsection "recv" +.Vb 5 +\& my $buffer = ""; +\& my $length = 1024; +\& my $flags = 0; # default. optional +\& $sock\->recv($buffer, $length); +\& $sock\->recv($buffer, $length, $flags); +.Ve +.PP +Similar in functionality to \*(L"recv\*(R" in perlfunc. +.PP +Receives a message on a socket. Attempts to receive \f(CW$length\fR characters of +data into \f(CW$buffer\fR from the specified socket. \f(CW$buffer\fR will be grown or +shrunk to the length actually read. Takes the same flags as the system call of +the same name. Returns the address of the sender if socket's protocol supports +this; returns an empty string otherwise. If there's an error, returns +\&\f(CW\*(C`undef\*(C'\fR. This call is actually implemented in terms of the \f(CWrecvfrom(2)\fR +system call. +.PP +Flags are ORed together values, such as \f(CW\*(C`MSG_BCAST\*(C'\fR, \f(CW\*(C`MSG_OOB\*(C'\fR, +\&\f(CW\*(C`MSG_TRUNC\*(C'\fR. The default value for the flags is \f(CW0\fR. +.PP +The cached value of \*(L"peername\*(R" in IO::Socket is updated with the result of +\&\f(CW\*(C`recv\*(C'\fR. +.PP +\&\fBNote:\fR In Perl v5.30 and newer, if the socket has been marked as \f(CW\*(C`:utf8\*(C'\fR, +\&\f(CW\*(C`recv\*(C'\fR will throw an exception. The \f(CW\*(C`:encoding(...)\*(C'\fR layer implicitly +introduces the \f(CW\*(C`:utf8\*(C'\fR layer. See \*(L"binmode\*(R" in perlfunc. +.PP +\&\fBNote:\fR In Perl versions older than v5.30, depending on the status of the +socket, either (8\-bit) bytes or characters are received. By default all +sockets operate on bytes, but for example if the socket has been changed +using \*(L"binmode\*(R" in perlfunc to operate with the \f(CW\*(C`:encoding(UTF\-8)\*(C'\fR I/O layer +(see the \*(L"open\*(R" in perlfunc pragma), the I/O will operate on UTF8\-encoded +Unicode characters, not bytes. Similarly for the \f(CW\*(C`:encoding\*(C'\fR layer: in +that case pretty much any characters can be read. +.SS "send" +.IX Subsection "send" +.Vb 6 +\& my $message = "Hello, world!"; +\& my $flags = 0; # defaults to zero +\& my $to = \*(Aq0.0.0.0\*(Aq; # optional destination +\& my $sent = $sock\->send($message); +\& $sent = $sock\->send($message, $flags); +\& $sent = $sock\->send($message, $flags, $to); +.Ve +.PP +Similar in functionality to \*(L"send\*(R" in perlfunc. +.PP +Sends a message on a socket. Attempts to send the scalar message to the +socket. Takes the same flags as the system call of the same name. On +unconnected sockets, you must specify a destination to send to, in which case +it does a \f(CWsendto(2)\fR syscall. Returns the number of characters sent, or +\&\f(CW\*(C`undef\*(C'\fR on error. The \f(CWsendmsg(2)\fR syscall is currently unimplemented. +.PP +The \f(CW\*(C`flags\*(C'\fR option is optional and defaults to \f(CW0\fR. +.PP +After a successful send with \f(CW$to\fR, further calls to \f(CW\*(C`send\*(C'\fR on an +unconnected socket without \f(CW$to\fR will send to the same address, and \f(CW$to\fR +will be used as the result of \*(L"peername\*(R" in IO::Socket. +.PP +\&\fBNote:\fR In Perl v5.30 and newer, if the socket has been marked as \f(CW\*(C`:utf8\*(C'\fR, +\&\f(CW\*(C`send\*(C'\fR will throw an exception. The \f(CW\*(C`:encoding(...)\*(C'\fR layer implicitly +introduces the \f(CW\*(C`:utf8\*(C'\fR layer. See \*(L"binmode\*(R" in perlfunc. +.PP +\&\fBNote:\fR In Perl versions older than v5.30, depending on the status of the +socket, either (8\-bit) bytes or characters are sent. By default all +sockets operate on bytes, but for example if the socket has been changed +using \*(L"binmode\*(R" in perlfunc to operate with the \f(CW\*(C`:encoding(UTF\-8)\*(C'\fR I/O layer +(see the \*(L"open\*(R" in perlfunc pragma), the I/O will operate on UTF8\-encoded +Unicode characters, not bytes. Similarly for the \f(CW\*(C`:encoding\*(C'\fR layer: in +that case pretty much any characters can be sent. +.SS "setsockopt" +.IX Subsection "setsockopt" +.Vb 2 +\& $sock\->setsockopt(SOL_SOCKET, SO_REUSEADDR, 1); +\& $sock\->setsockopt(SOL_SOCKET, SO_RCVBUF, 64*1024); +.Ve +.PP +Set option associated with the socket. Levels other than \f(CW\*(C`SOL_SOCKET\*(C'\fR +may be specified here. As a convenience, this method will convert a number +into a packed byte buffer. +.SS "shutdown" +.IX Subsection "shutdown" +.Vb 3 +\& $sock\->shutdown(SHUT_RD); # we stopped reading data +\& $sock\->shutdown(SHUT_WR); # we stopped writing data +\& $sock\->shutdown(SHUT_RDWR); # we stopped using this socket +.Ve +.PP +Shuts down a socket connection in the manner indicated by the value passed in, +which has the same interpretation as in the syscall of the same name. +.PP +This is useful with sockets when you want to tell the other side you're done +writing but not done reading, or vice versa. It's also a more insistent form +of \f(CW\*(C`close\*(C'\fR because it also disables the file descriptor in any +forked copies in other processes. +.PP +Returns \f(CW1\fR for success; on error, returns \f(CW\*(C`undef\*(C'\fR if the socket is +not a valid filehandle, or returns \f(CW0\fR and sets \f(CW$!\fR for any other failure. +.SS "sockdomain" +.IX Subsection "sockdomain" +.Vb 1 +\& my $domain = $sock\->sockdomain(); +.Ve +.PP +Returns the number for the socket domain type. For example, for +an \f(CW\*(C`AF_INET\*(C'\fR socket the value of \f(CW&AF_INET\fR will be returned. +.SS "socket" +.IX Subsection "socket" +.Vb 4 +\& my $sock = IO::Socket\->new(); # no values given +\& # now let\*(Aqs actually get a socket with the socket method +\& # domain, type, and protocol are required +\& $sock = $sock\->socket(AF_INET, SOCK_STREAM, \*(Aqtcp\*(Aq); +.Ve +.PP +Opens a socket of the specified kind and returns it. Domain, type, and +protocol are specified the same as for the syscall of the same name. +.SS "socketpair" +.IX Subsection "socketpair" +.Vb 3 +\& my ($r, $w) = $sock\->socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC); +\& ($r, $w) = IO::Socket::UNIX +\& \->socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC); +.Ve +.PP +Will return a list of two sockets created (read and write), or an empty list +on failure. +.PP +Differs slightly from \f(CW\*(C`socketpair\*(C'\fR in perlfunc in that the argument list +is a bit simpler. +.SS "sockname" +.IX Subsection "sockname" +.Vb 1 +\& my $packed_addr = $sock\->sockname(); +.Ve +.PP +Returns the packed \f(CW\*(C`sockaddr\*(C'\fR address of this end of the connection. It's the +same as \f(CWgetsockname(2)\fR. +.SS "sockopt" +.IX Subsection "sockopt" +.Vb 2 +\& my $value = $sock\->sockopt(SO_REUSEADDR); +\& $sock\->sockopt(SO_REUSEADDR, 1); +.Ve +.PP +Unified method to both set and get options in the \f(CW\*(C`SOL_SOCKET\*(C'\fR level. If +called with one argument then \*(L"getsockopt\*(R" in IO::Socket is called, otherwise +\&\*(L"setsockopt\*(R" in IO::Socket is called. +.SS "socktype" +.IX Subsection "socktype" +.Vb 1 +\& my $type = $sock\->socktype(); +.Ve +.PP +Returns the number for the socket type. For example, for +a \f(CW\*(C`SOCK_STREAM\*(C'\fR socket the value of \f(CW&SOCK_STREAM\fR will be returned. +.SS "timeout" +.IX Subsection "timeout" +.Vb 2 +\& my $seconds = $sock\->timeout(); +\& my $old_val = $sock\->timeout(5); # set new and return old value +.Ve +.PP +Set or get the timeout value (in seconds) associated with this socket. +If called without any arguments then the current setting is returned. If +called with an argument the current setting is changed and the previous +value returned. +.PP +This method is available to all \f(CW\*(C`IO::Socket\*(C'\fR implementations but may or may +not be used by the individual domain subclasses. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Let's create a \s-1TCP\s0 server on \f(CW\*(C`localhost:3333\*(C'\fR. +.PP +.Vb 3 +\& use strict; +\& use warnings; +\& use feature \*(Aqsay\*(Aq; +\& +\& use IO::Socket qw(AF_INET AF_UNIX SOCK_STREAM SHUT_WR); +\& +\& my $server = IO::Socket\->new( +\& Domain => AF_INET, +\& Type => SOCK_STREAM, +\& Proto => \*(Aqtcp\*(Aq, +\& LocalHost => \*(Aq0.0.0.0\*(Aq, +\& LocalPort => 3333, +\& ReusePort => 1, +\& Listen => 5, +\& ) || die "Can\*(Aqt open socket: $@"; +\& say "Waiting on 3333"; +\& +\& while (1) { +\& # waiting for a new client connection +\& my $client = $server\->accept(); +\& +\& # get information about a newly connected client +\& my $client_address = $client\->peerhost(); +\& my $client_port = $client\->peerport(); +\& say "Connection from $client_address:$client_port"; +\& +\& # read up to 1024 characters from the connected client +\& my $data = ""; +\& $client\->recv($data, 1024); +\& say "received data: $data"; +\& +\& # write response data to the connected client +\& $data = "ok"; +\& $client\->send($data); +\& +\& # notify client that response has been sent +\& $client\->shutdown(SHUT_WR); +\& } +\& +\& $server\->close(); +.Ve +.PP +A client for such a server could be +.PP +.Vb 3 +\& use strict; +\& use warnings; +\& use feature \*(Aqsay\*(Aq; +\& +\& use IO::Socket qw(AF_INET AF_UNIX SOCK_STREAM SHUT_WR); +\& +\& my $client = IO::Socket\->new( +\& Domain => AF_INET, +\& Type => SOCK_STREAM, +\& proto => \*(Aqtcp\*(Aq, +\& PeerPort => 3333, +\& PeerHost => \*(Aq0.0.0.0\*(Aq, +\& ) || die "Can\*(Aqt open socket: $@"; +\& +\& say "Sending Hello World!"; +\& my $size = $client\->send("Hello World!"); +\& say "Sent data of length: $size"; +\& +\& $client\->shutdown(SHUT_WR); +\& +\& my $buffer; +\& $client\->recv($buffer, 1024); +\& say "Got back $buffer"; +\& +\& $client\->close(); +.Ve +.SH "LIMITATIONS" +.IX Header "LIMITATIONS" +On some systems, for an IO::Socket object created with \f(CW\*(C`new_from_fd\*(C'\fR, +or created with \*(L"accept\*(R" in IO::Socket from such an object, the +\&\*(L"protocol\*(R" in IO::Socket, \*(L"sockdomain\*(R" in IO::Socket and +\&\*(L"socktype\*(R" in IO::Socket methods may return \f(CW\*(C`undef\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Socket, IO::Handle, IO::Socket::INET, IO::Socket::UNIX, +IO::Socket::IP +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr. \fBatmark()\fR by Lincoln Stein. Currently maintained by the +Perl Porters. Please report all bugs to . +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (c) 1997\-8 Graham Barr . All rights reserved. +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +The \fBatmark()\fR implementation: Copyright 2001, Lincoln Stein . +This module is distributed under the same terms as Perl itself. +Feel free to use, modify and redistribute it as long as you retain +the correct attribution. diff --git a/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AGunzip.3 b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AGunzip.3 new file mode 100644 index 0000000000000000000000000000000000000000..a6da998783a1ba8fb890caac84e00438de818c2d --- /dev/null +++ b/data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AGunzip.3 @@ -0,0 +1,953 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "IO::Uncompress::Gunzip 3" +.TH IO::Uncompress::Gunzip 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +IO::Uncompress::Gunzip \- Read RFC 1952 files/buffers +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ; +\& +\& my $status = gunzip $input => $output [,OPTS] +\& or die "gunzip failed: $GunzipError\en"; +\& +\& my $z = new IO::Uncompress::Gunzip $input [OPTS] +\& or die "gunzip failed: $GunzipError\en"; +\& +\& $status = $z\->read($buffer) +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& $line = $z\->getline() +\& $char = $z\->getc() +\& $char = $z\->ungetc() +\& $char = $z\->opened() +\& +\& $status = $z\->inflateSync() +\& +\& $data = $z\->trailingData() +\& $status = $z\->nextStream() +\& $data = $z\->getHeaderInfo() +\& $z\->tell() +\& $z\->seek($position, $whence) +\& $z\->binmode() +\& $z\->fileno() +\& $z\->eof() +\& $z\->close() +\& +\& $GunzipError ; +\& +\& # IO::File mode +\& +\& <$z> +\& read($z, $buffer); +\& read($z, $buffer, $length); +\& read($z, $buffer, $length, $offset); +\& tell($z) +\& seek($z, $position, $whence) +\& binmode($z) +\& fileno($z) +\& eof($z) +\& close($z) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module provides a Perl interface that allows the reading of +files/buffers that conform to \s-1RFC 1952.\s0 +.PP +For writing \s-1RFC 1952\s0 files/buffers, see the companion module IO::Compress::Gzip. +.SH "Functional Interface" +.IX Header "Functional Interface" +A top-level function, \f(CW\*(C`gunzip\*(C'\fR, is provided to carry out +\&\*(L"one-shot\*(R" uncompression between buffers and/or files. For finer +control over the uncompression process, see the \*(L"\s-1OO\s0 Interface\*(R" +section. +.PP +.Vb 1 +\& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ; +\& +\& gunzip $input_filename_or_reference => $output_filename_or_reference [,OPTS] +\& or die "gunzip failed: $GunzipError\en"; +.Ve +.PP +The functional interface needs Perl5.005 or better. +.ie n .SS "gunzip $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]" +.el .SS "gunzip \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]" +.IX Subsection "gunzip $input_filename_or_reference => $output_filename_or_reference [, OPTS]" +\&\f(CW\*(C`gunzip\*(C'\fR expects at least two parameters, +\&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR +and zero or more optional parameters (see \*(L"Optional Parameters\*(R") +.PP +\fIThe \f(CI$input_filename_or_reference\fI parameter\fR +.IX Subsection "The $input_filename_or_reference parameter" +.PP +The parameter, \f(CW$input_filename_or_reference\fR, is used to define the +source of the compressed data. +.PP +It can take one of the following forms: +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for reading and the +input data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input +data will be read from it. The string '\-' can be used as an alias for +standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data +will be read from \f(CW$$input_filename_or_reference\fR. +.IP "An array reference" 5 +.IX Item "An array reference" +If \f(CW$input_filename_or_reference\fR is an array reference, each element in +the array must be a filename. +.Sp +The input data will be read from each file in turn. +.Sp +The complete array will be walked to ensure that it only +contains valid filenames before any data is uncompressed. +.IP "An Input FileGlob string" 5 +.IX Item "An Input FileGlob string" +If \f(CW$input_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`gunzip\*(C'\fR will assume that it is an +\&\fIinput fileglob string\fR. The input is the list of files that match the +fileglob. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$input_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.PP +\fIThe \f(CI$output_filename_or_reference\fI parameter\fR +.IX Subsection "The $output_filename_or_reference parameter" +.PP +The parameter \f(CW$output_filename_or_reference\fR is used to control the +destination of the uncompressed data. This parameter can take one of +these forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is +assumed to be a filename. This file will be opened for writing and the +uncompressed data will be written to it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the +uncompressed data will be written to it. The string '\-' can be used as +an alias for standard output. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$output_filename_or_reference\fR is a scalar reference, the +uncompressed data will be stored in \f(CW$$output_filename_or_reference\fR. +.IP "An Array Reference" 5 +.IX Item "An Array Reference" +If \f(CW$output_filename_or_reference\fR is an array reference, +the uncompressed data will be pushed onto the array. +.IP "An Output FileGlob" 5 +.IX Item "An Output FileGlob" +If \f(CW$output_filename_or_reference\fR is a string that is delimited by the +characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`gunzip\*(C'\fR will assume that it is an +\&\fIoutput fileglob string\fR. The output is the list of files that match the +fileglob. +.Sp +When \f(CW$output_filename_or_reference\fR is an fileglob string, +\&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything +else is an error. +.Sp +See File::GlobMapper for more details. +.PP +If the \f(CW$output_filename_or_reference\fR parameter is any other type, +\&\f(CW\*(C`undef\*(C'\fR will be returned. +.SS "Notes" +.IX Subsection "Notes" +When \f(CW$input_filename_or_reference\fR maps to multiple compressed +files/buffers and \f(CW$output_filename_or_reference\fR is +a single file/buffer, after uncompression \f(CW$output_filename_or_reference\fR will contain a +concatenation of all the uncompressed data from each of the input +files/buffers. +.SS "Optional Parameters" +.IX Subsection "Optional Parameters" +The optional parameters for the one-shot function \f(CW\*(C`gunzip\*(C'\fR +are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the +\&\*(L"Constructor Options\*(R" section. The exceptions are listed below +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option applies to any input or output data streams to +\&\f(CW\*(C`gunzip\*(C'\fR that are filehandles. +.Sp +If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all +input and/or output filehandles being closed once \f(CW\*(C`gunzip\*(C'\fR has +completed. +.Sp +This parameter defaults to 0. +.ie n .IP """BinModeOut => 0|1""" 5 +.el .IP "\f(CWBinModeOut => 0|1\fR" 5 +.IX Item "BinModeOut => 0|1" +This option is now a no-op. All files will be written in binmode. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +The behaviour of this option is dependent on the type of output data +stream. +.RS 5 +.IP "\(bu" 5 +A Buffer +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, all uncompressed data will be append to the end of +the output buffer. Otherwise the output buffer will be cleared before any +uncompressed data is written to it. +.IP "\(bu" 5 +A Filename +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise +the contents of the file, if any, will be truncated before any uncompressed +data is written to it. +.IP "\(bu" 5 +A Filehandle +.Sp +If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of +the file via a call to \f(CW\*(C`seek\*(C'\fR before any uncompressed data is +written to it. Otherwise the file pointer will not be moved. +.RE +.RS 5 +.Sp +When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all uncompressed +data to the output data stream. +.Sp +So when the output is a filehandle it will carry out a seek to the eof +before writing any uncompressed data. If the output is a filename, it will be opened for +appending. If the output is a buffer, all uncompressed data will be +appended to the existing buffer. +.Sp +Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to +false, it will operate as follows. +.Sp +When the output is a filename, it will truncate the contents of the file +before writing any uncompressed data. If the output is a filehandle +its position will not be changed. If the output is a buffer, it will be +wiped before any uncompressed data is output. +.Sp +Defaults to 0. +.RE +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +If the input file/buffer contains multiple compressed data streams, this +option will uncompress the whole lot as a single data stream. +.Sp +Defaults to 0. +.ie n .IP """TrailingData => $scalar""" 5 +.el .IP "\f(CWTrailingData => $scalar\fR" 5 +.IX Item "TrailingData => $scalar" +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. +.Sp +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.Sp +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.Sp +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.Sp +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.Sp +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option. +.SS "Examples" +.IX Subsection "Examples" +To read the contents of the file \f(CW\*(C`file1.txt.gz\*(C'\fR and write the +uncompressed data to the file \f(CW\*(C`file1.txt\*(C'\fR. +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ; +\& +\& my $input = "file1.txt.gz"; +\& my $output = "file1.txt"; +\& gunzip $input => $output +\& or die "gunzip failed: $GunzipError\en"; +.Ve +.PP +To read from an existing Perl filehandle, \f(CW$input\fR, and write the +uncompressed data to a buffer, \f(CW$buffer\fR. +.PP +.Vb 4 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ; +\& use IO::File ; +\& +\& my $input = new IO::File " \e$buffer +\& or die "gunzip failed: $GunzipError\en"; +.Ve +.PP +To uncompress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt.gz\*(R" and store the compressed data in the same directory +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ; +\& +\& gunzip \*(Aq\*(Aq => \*(Aq\*(Aq +\& or die "gunzip failed: $GunzipError\en"; +.Ve +.PP +and if you want to compress each file one at a time, this will do the trick +.PP +.Vb 3 +\& use strict ; +\& use warnings ; +\& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ; +\& +\& for my $input ( glob "/my/home/*.txt.gz" ) +\& { +\& my $output = $input; +\& $output =~ s/.gz// ; +\& gunzip $input => $output +\& or die "Error compressing \*(Aq$input\*(Aq: $GunzipError\en"; +\& } +.Ve +.SH "OO Interface" +.IX Header "OO Interface" +.SS "Constructor" +.IX Subsection "Constructor" +The format of the constructor for IO::Uncompress::Gunzip is shown below +.PP +.Vb 2 +\& my $z = new IO::Uncompress::Gunzip $input [OPTS] +\& or die "IO::Uncompress::Gunzip failed: $GunzipError\en"; +.Ve +.PP +Returns an \f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR object on success and undef on failure. +The variable \f(CW$GunzipError\fR will contain an error message on failure. +.PP +If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from +IO::Uncompress::Gunzip can be used exactly like an IO::File filehandle. +This means that all normal input file operations can be carried out with +\&\f(CW$z\fR. For example, to read a line from a compressed file/buffer you can +use either of these forms +.PP +.Vb 2 +\& $line = $z\->getline(); +\& $line = <$z>; +.Ve +.PP +The mandatory parameter \f(CW$input\fR is used to determine the source of the +compressed data. This parameter can take one of three forms. +.IP "A filename" 5 +.IX Item "A filename" +If the \f(CW$input\fR parameter is a scalar, it is assumed to be a filename. This +file will be opened for reading and the compressed data will be read from it. +.IP "A filehandle" 5 +.IX Item "A filehandle" +If the \f(CW$input\fR parameter is a filehandle, the compressed data will be +read from it. +The string '\-' can be used as an alias for standard input. +.IP "A scalar reference" 5 +.IX Item "A scalar reference" +If \f(CW$input\fR is a scalar reference, the compressed data will be read from +\&\f(CW$$input\fR. +.SS "Constructor Options" +.IX Subsection "Constructor Options" +The option names defined below are case insensitive and can be optionally +prefixed by a '\-'. So all of the following are valid +.PP +.Vb 4 +\& \-AutoClose +\& \-autoclose +\& AUTOCLOSE +\& autoclose +.Ve +.PP +\&\s-1OPTS\s0 is a combination of the following options: +.ie n .IP """AutoClose => 0|1""" 5 +.el .IP "\f(CWAutoClose => 0|1\fR" 5 +.IX Item "AutoClose => 0|1" +This option is only valid when the \f(CW$input\fR parameter is a filehandle. If +specified, and the value is true, it will result in the file being closed once +either the \f(CW\*(C`close\*(C'\fR method is called or the IO::Uncompress::Gunzip object is +destroyed. +.Sp +This parameter defaults to 0. +.ie n .IP """MultiStream => 0|1""" 5 +.el .IP "\f(CWMultiStream => 0|1\fR" 5 +.IX Item "MultiStream => 0|1" +Allows multiple concatenated compressed streams to be treated as a single +compressed stream. Decompression will stop once either the end of the +file/buffer is reached, an error is encountered (premature eof, corrupt +compressed data) or the end of a stream is not immediately followed by the +start of another stream. +.Sp +This parameter defaults to 0. +.ie n .IP """Prime => $string""" 5 +.el .IP "\f(CWPrime => $string\fR" 5 +.IX Item "Prime => $string" +This option will uncompress the contents of \f(CW$string\fR before processing the +input file/buffer. +.Sp +This option can be useful when the compressed data is embedded in another +file/data structure and it is not possible to work out where the compressed +data begins without having to read the first few bytes. If this is the +case, the uncompression can be \fIprimed\fR with these bytes using this +option. +.ie n .IP """Transparent => 0|1""" 5 +.el .IP "\f(CWTransparent => 0|1\fR" 5 +.IX Item "Transparent => 0|1" +If this option is set and the input file/buffer is not compressed data, +the module will allow reading of it anyway. +.Sp +In addition, if the input file/buffer does contain compressed data and +there is non-compressed data immediately following it, setting this option +will make this module treat the whole file/buffer as a single data stream. +.Sp +This option defaults to 1. +.ie n .IP """BlockSize => $num""" 5 +.el .IP "\f(CWBlockSize => $num\fR" 5 +.IX Item "BlockSize => $num" +When reading the compressed input data, IO::Uncompress::Gunzip will read it in +blocks of \f(CW$num\fR bytes. +.Sp +This option defaults to 4096. +.ie n .IP """InputLength => $size""" 5 +.el .IP "\f(CWInputLength => $size\fR" 5 +.IX Item "InputLength => $size" +When present this option will limit the number of compressed bytes read +from the input file/buffer to \f(CW$size\fR. This option can be used in the +situation where there is useful data directly after the compressed data +stream and you know beforehand the exact length of the compressed data +stream. +.Sp +This option is mostly used when reading from a filehandle, in which case +the file pointer will be left pointing to the first byte directly after the +compressed data stream. +.Sp +This option defaults to off. +.ie n .IP """Append => 0|1""" 5 +.el .IP "\f(CWAppend => 0|1\fR" 5 +.IX Item "Append => 0|1" +This option controls what the \f(CW\*(C`read\*(C'\fR method does with uncompressed data. +.Sp +If set to 1, all uncompressed data will be appended to the output parameter +of the \f(CW\*(C`read\*(C'\fR method. +.Sp +If set to 0, the contents of the output parameter of the \f(CW\*(C`read\*(C'\fR method +will be overwritten by the uncompressed data. +.Sp +Defaults to 0. +.ie n .IP """Strict => 0|1""" 5 +.el .IP "\f(CWStrict => 0|1\fR" 5 +.IX Item "Strict => 0|1" +This option controls whether the extra checks defined below are used when +carrying out the decompression. When Strict is on, the extra tests are +carried out, when Strict is off they are not. +.Sp +The default for this option is off. +.RS 5 +.IP "1." 5 +If the \s-1FHCRC\s0 bit is set in the gzip \s-1FLG\s0 header byte, the \s-1CRC16\s0 bytes in the +header must match the crc16 value of the gzip header actually read. +.IP "2." 5 +If the gzip header contains a name field (\s-1FNAME\s0) it consists solely of \s-1ISO +8859\-1\s0 characters. +.IP "3." 5 +If the gzip header contains a comment field (\s-1FCOMMENT\s0) it consists solely +of \s-1ISO 8859\-1\s0 characters plus line-feed. +.IP "4." 5 +If the gzip \s-1FEXTRA\s0 header field is present it must conform to the sub-field +structure as defined in \s-1RFC 1952.\s0 +.IP "5." 5 +The \s-1CRC32\s0 and \s-1ISIZE\s0 trailer fields must be present. +.IP "6." 5 +The value of the \s-1CRC32\s0 field read must match the crc32 value of the +uncompressed data actually contained in the gzip file. +.IP "7." 5 +The value of the \s-1ISIZE\s0 fields read must match the length of the +uncompressed data actually read from the file. +.RE +.RS 5 +.RE +.ie n .IP """ParseExtra => 0|1"" If the gzip \s-1FEXTRA\s0 header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in \s-1RFC 1952.\s0" 5 +.el .IP "\f(CWParseExtra => 0|1\fR If the gzip \s-1FEXTRA\s0 header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in \s-1RFC 1952.\s0" 5 +.IX Item "ParseExtra => 0|1 If the gzip FEXTRA header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in RFC 1952." +If the \f(CW\*(C`Strict\*(C'\fR is on it will automatically enable this option. +.Sp +Defaults to 0. +.SS "Examples" +.IX Subsection "Examples" +\&\s-1TODO\s0 +.SH "Methods" +.IX Header "Methods" +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 1 +\& $status = $z\->read($buffer) +.Ve +.PP +Reads a block of compressed data (the size of the compressed block is +determined by the \f(CW\*(C`Buffer\*(C'\fR option in the constructor), uncompresses it and +writes any uncompressed data into \f(CW$buffer\fR. If the \f(CW\*(C`Append\*(C'\fR parameter is +set in the constructor, the uncompressed data will be appended to the +\&\f(CW$buffer\fR parameter. Otherwise \f(CW$buffer\fR will be overwritten. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "read" +.IX Subsection "read" +Usage is +.PP +.Vb 2 +\& $status = $z\->read($buffer, $length) +\& $status = $z\->read($buffer, $length, $offset) +\& +\& $status = read($z, $buffer, $length) +\& $status = read($z, $buffer, $length, $offset) +.Ve +.PP +Attempt to read \f(CW$length\fR bytes of uncompressed data into \f(CW$buffer\fR. +.PP +The main difference between this form of the \f(CW\*(C`read\*(C'\fR method and the +previous one, is that this one will attempt to return \fIexactly\fR \f(CW$length\fR +bytes. The only circumstances that this function will not is if end-of-file +or an \s-1IO\s0 error is encountered. +.PP +Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof +or a negative number on error. +.SS "getline" +.IX Subsection "getline" +Usage is +.PP +.Vb 2 +\& $line = $z\->getline() +\& $line = <$z> +.Ve +.PP +Reads a single line. +.PP +This method fully supports the use of the variable \f(CW$/\fR (or +\&\f(CW$INPUT_RECORD_SEPARATOR\fR or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is in use) to +determine what constitutes an end of line. Paragraph mode, record mode and +file slurp mode are all supported. +.SS "getc" +.IX Subsection "getc" +Usage is +.PP +.Vb 1 +\& $char = $z\->getc() +.Ve +.PP +Read a single character. +.SS "ungetc" +.IX Subsection "ungetc" +Usage is +.PP +.Vb 1 +\& $char = $z\->ungetc($string) +.Ve +.SS "inflateSync" +.IX Subsection "inflateSync" +Usage is +.PP +.Vb 1 +\& $status = $z\->inflateSync() +.Ve +.PP +\&\s-1TODO\s0 +.SS "getHeaderInfo" +.IX Subsection "getHeaderInfo" +Usage is +.PP +.Vb 2 +\& $hdr = $z\->getHeaderInfo(); +\& @hdrs = $z\->getHeaderInfo(); +.Ve +.PP +This method returns either a hash reference (in scalar context) or a list +or hash references (in array context) that contains information about each +of the header fields in the compressed data stream(s). +.IP "Name" 5 +.IX Item "Name" +The contents of the Name header field, if present. If no name is +present, the value will be undef. Note this is different from a zero length +name, which will return an empty string. +.IP "Comment" 5 +.IX Item "Comment" +The contents of the Comment header field, if present. If no comment is +present, the value will be undef. Note this is different from a zero length +comment, which will return an empty string. +.SS "tell" +.IX Subsection "tell" +Usage is +.PP +.Vb 2 +\& $z\->tell() +\& tell $z +.Ve +.PP +Returns the uncompressed file offset. +.SS "eof" +.IX Subsection "eof" +Usage is +.PP +.Vb 2 +\& $z\->eof(); +\& eof($z); +.Ve +.PP +Returns true if the end of the compressed input stream has been reached. +.SS "seek" +.IX Subsection "seek" +.Vb 2 +\& $z\->seek($position, $whence); +\& seek($z, $position, $whence); +.Ve +.PP +Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction +that it is only legal to seek forward in the input file/buffer. +It is a fatal error to attempt to seek backward. +.PP +Note that the implementation of \f(CW\*(C`seek\*(C'\fR in this module does not provide +true random access to a compressed file/buffer. It works by uncompressing +data from the current offset in the file/buffer until it reaches the +uncompressed offset specified in the parameters to \f(CW\*(C`seek\*(C'\fR. For very small +files this may be acceptable behaviour. For large files it may cause an +unacceptable delay. +.PP +The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET, +SEEK_CUR\s0 or \s-1SEEK_END.\s0 +.PP +Returns 1 on success, 0 on failure. +.SS "binmode" +.IX Subsection "binmode" +Usage is +.PP +.Vb 2 +\& $z\->binmode +\& binmode $z ; +.Ve +.PP +This is a noop provided for completeness. +.SS "opened" +.IX Subsection "opened" +.Vb 1 +\& $z\->opened() +.Ve +.PP +Returns true if the object currently refers to a opened file/buffer. +.SS "autoflush" +.IX Subsection "autoflush" +.Vb 2 +\& my $prev = $z\->autoflush() +\& my $prev = $z\->autoflush(EXPR) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, this method +returns the current autoflush setting for the underlying filehandle. If +\&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every +write/print operation. +.PP +If \f(CW$z\fR is associated with a buffer, this method has no effect and always +returns \f(CW\*(C`undef\*(C'\fR. +.PP +\&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or +retrieve the autoflush setting. +.SS "input_line_number" +.IX Subsection "input_line_number" +.Vb 2 +\& $z\->input_line_number() +\& $z\->input_line_number(EXPR) +.Ve +.PP +Returns the current uncompressed line number. If \f(CW\*(C`EXPR\*(C'\fR is present it has +the effect of setting the line number. Note that setting the line number +does not change the current position within the file/buffer being read. +.PP +The contents of \f(CW$/\fR are used to determine what constitutes a line +terminator. +.SS "fileno" +.IX Subsection "fileno" +.Vb 2 +\& $z\->fileno() +\& fileno($z) +.Ve +.PP +If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR +will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is +called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR. +.PP +If the \f(CW$z\fR object is associated with a buffer, this method will return +\&\f(CW\*(C`undef\*(C'\fR. +.SS "close" +.IX Subsection "close" +.Vb 2 +\& $z\->close() ; +\& close $z ; +.Ve +.PP +Closes the output file/buffer. +.PP +For most versions of Perl this method will be automatically invoked if +the IO::Uncompress::Gunzip object is destroyed (either explicitly or by the +variable with the reference to the object going out of scope). The +exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In +these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but +not until global destruction of all live objects when the program is +terminating. +.PP +Therefore, if you want your scripts to be able to run on all versions +of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic +closing. +.PP +Returns true on success, otherwise 0. +.PP +If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Uncompress::Gunzip +object was created, and the object is associated with a file, the +underlying file will also be closed. +.SS "nextStream" +.IX Subsection "nextStream" +Usage is +.PP +.Vb 1 +\& my $status = $z\->nextStream(); +.Ve +.PP +Skips to the next compressed data stream in the input file/buffer. If a new +compressed data stream is found, the eof marker will be cleared and \f(CW$.\fR +will be reset to 0. +.PP +Returns 1 if a new stream was found, 0 if none was found, and \-1 if an +error was encountered. +.SS "trailingData" +.IX Subsection "trailingData" +Usage is +.PP +.Vb 1 +\& my $data = $z\->trailingData(); +.Ve +.PP +Returns the data, if any, that is present immediately after the compressed +data stream once uncompression is complete. It only makes sense to call +this method once the end of the compressed data stream has been +encountered. +.PP +This option can be used when there is useful information immediately +following the compressed data stream, and you don't know the length of the +compressed data stream. +.PP +If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the +end of the compressed data stream to the end of the buffer. +.PP +If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is +left in the filehandle input buffer once the end of the compressed data +stream has been reached. You can then use the filehandle to read the rest +of the input file. +.PP +Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename. +.PP +If you know the length of the compressed data stream before you start +uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the +\&\f(CW\*(C`InputLength\*(C'\fR option in the constructor. +.SH "Importing" +.IX Header "Importing" +No symbolic constants are required by this IO::Uncompress::Gunzip at present. +.IP ":all" 5 +.IX Item ":all" +Imports \f(CW\*(C`gunzip\*(C'\fR and \f(CW$GunzipError\fR. +Same as doing this +.Sp +.Vb 1 +\& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ; +.Ve +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.SS "Working with Net::FTP" +.IX Subsection "Working with Net::FTP" +See IO::Compress::FAQ +.SH "SUPPORT" +.IX Header "SUPPORT" +General feedback/questions/bug reports should be sent to + (preferred) or +. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Compress::Zlib, IO::Compress::Gzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress +.PP +IO::Compress::FAQ +.PP +File::GlobMapper, Archive::Zip, +Archive::Tar, +IO::Zlib +.PP +For \s-1RFC 1950, 1951\s0 and 1952 see +, + and + +.PP +The \fIzlib\fR compression library was written by Jean-loup Gailly +\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR. +.PP +The primary site for the \fIzlib\fR compression library is +. +.PP +The primary site for gzip is . +.SH "AUTHOR" +.IX Header "AUTHOR" +This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR. +.SH "MODIFICATION HISTORY" +.IX Header "MODIFICATION HISTORY" +See the Changes file. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright (c) 2005\-2019 Paul Marquess. All rights reserved. +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/IO.3 b/data/miniconda3/man/man3/IO.3 new file mode 100644 index 0000000000000000000000000000000000000000..9ec83b0cf62a5f6d99747fd74b3925b852b3013f --- /dev/null +++ b/data/miniconda3/man/man3/IO.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "IO 3" +.TH IO 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +IO \- load various IO modules +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use IO qw(Handle File); # loads IO modules, here IO::Handle, IO::File +\& use IO; # DEPRECATED +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`IO\*(C'\fR provides a simple mechanism to load several of the \s-1IO\s0 modules +in one go. The \s-1IO\s0 modules belonging to the core are: +.PP +.Vb 8 +\& IO::Handle +\& IO::Seekable +\& IO::File +\& IO::Pipe +\& IO::Socket +\& IO::Dir +\& IO::Select +\& IO::Poll +.Ve +.PP +Some other \s-1IO\s0 modules don't belong to the perl core but can be loaded +as well if they have been installed from \s-1CPAN.\s0 You can discover which +ones exist by searching for \*(L"^IO::\*(R" on . +.PP +For more information on any of these modules, please see its respective +documentation. +.SH "DEPRECATED" +.IX Header "DEPRECATED" +.Vb 1 +\& use IO; # loads all the modules listed below +.Ve +.PP +The loaded modules are IO::Handle, IO::Seekable, IO::File, IO::Pipe, +IO::Socket, IO::Dir. You should instead explicitly import the \s-1IO\s0 +modules you want. diff --git a/data/miniconda3/man/man3/Math%3A%3ABigInt.3 b/data/miniconda3/man/man3/Math%3A%3ABigInt.3 new file mode 100644 index 0000000000000000000000000000000000000000..f4920f825272d3838c6ab22419c6026e0ed36d98 --- /dev/null +++ b/data/miniconda3/man/man3/Math%3A%3ABigInt.3 @@ -0,0 +1,2796 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Math::BigInt 3" +.TH Math::BigInt 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Math::BigInt \- Arbitrary size integer/float math package +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Math::BigInt; +\& +\& # or make it faster with huge numbers: install (optional) +\& # Math::BigInt::GMP and always use (it falls back to +\& # pure Perl if the GMP library is not installed): +\& # (See also the L section!) +\& +\& # warns if Math::BigInt::GMP cannot be found +\& use Math::BigInt lib => \*(AqGMP\*(Aq; +\& +\& # to suppress the warning use this: +\& # use Math::BigInt try => \*(AqGMP\*(Aq; +\& +\& # dies if GMP cannot be loaded: +\& # use Math::BigInt only => \*(AqGMP\*(Aq; +\& +\& my $str = \*(Aq1234567890\*(Aq; +\& my @values = (64, 74, 18); +\& my $n = 1; my $sign = \*(Aq\-\*(Aq; +\& +\& # Configuration methods (may be used as class methods and instance methods) +\& +\& Math::BigInt\->accuracy(); # get class accuracy +\& Math::BigInt\->accuracy($n); # set class accuracy +\& Math::BigInt\->precision(); # get class precision +\& Math::BigInt\->precision($n); # set class precision +\& Math::BigInt\->round_mode(); # get class rounding mode +\& Math::BigInt\->round_mode($m); # set global round mode, must be one of +\& # \*(Aqeven\*(Aq, \*(Aqodd\*(Aq, \*(Aq+inf\*(Aq, \*(Aq\-inf\*(Aq, \*(Aqzero\*(Aq, +\& # \*(Aqtrunc\*(Aq, or \*(Aqcommon\*(Aq +\& Math::BigInt\->config(); # return hash with configuration +\& +\& # Constructor methods (when the class methods below are used as instance +\& # methods, the value is assigned the invocand) +\& +\& $x = Math::BigInt\->new($str); # defaults to 0 +\& $x = Math::BigInt\->new(\*(Aq0x123\*(Aq); # from hexadecimal +\& $x = Math::BigInt\->new(\*(Aq0b101\*(Aq); # from binary +\& $x = Math::BigInt\->from_hex(\*(Aqcafe\*(Aq); # from hexadecimal +\& $x = Math::BigInt\->from_oct(\*(Aq377\*(Aq); # from octal +\& $x = Math::BigInt\->from_bin(\*(Aq1101\*(Aq); # from binary +\& $x = Math::BigInt\->from_base(\*(Aqwhy\*(Aq, 36); # from any base +\& $x = Math::BigInt\->bzero(); # create a +0 +\& $x = Math::BigInt\->bone(); # create a +1 +\& $x = Math::BigInt\->bone(\*(Aq\-\*(Aq); # create a \-1 +\& $x = Math::BigInt\->binf(); # create a +inf +\& $x = Math::BigInt\->binf(\*(Aq\-\*(Aq); # create a \-inf +\& $x = Math::BigInt\->bnan(); # create a Not\-A\-Number +\& $x = Math::BigInt\->bpi(); # returns pi +\& +\& $y = $x\->copy(); # make a copy (unlike $y = $x) +\& $y = $x\->as_int(); # return as a Math::BigInt +\& +\& # Boolean methods (these don\*(Aqt modify the invocand) +\& +\& $x\->is_zero(); # if $x is 0 +\& $x\->is_one(); # if $x is +1 +\& $x\->is_one("+"); # ditto +\& $x\->is_one("\-"); # if $x is \-1 +\& $x\->is_inf(); # if $x is +inf or \-inf +\& $x\->is_inf("+"); # if $x is +inf +\& $x\->is_inf("\-"); # if $x is \-inf +\& $x\->is_nan(); # if $x is NaN +\& +\& $x\->is_positive(); # if $x > 0 +\& $x\->is_pos(); # ditto +\& $x\->is_negative(); # if $x < 0 +\& $x\->is_neg(); # ditto +\& +\& $x\->is_odd(); # if $x is odd +\& $x\->is_even(); # if $x is even +\& $x\->is_int(); # if $x is an integer +\& +\& # Comparison methods +\& +\& $x\->bcmp($y); # compare numbers (undef, < 0, == 0, > 0) +\& $x\->bacmp($y); # compare absolutely (undef, < 0, == 0, > 0) +\& $x\->beq($y); # true if and only if $x == $y +\& $x\->bne($y); # true if and only if $x != $y +\& $x\->blt($y); # true if and only if $x < $y +\& $x\->ble($y); # true if and only if $x <= $y +\& $x\->bgt($y); # true if and only if $x > $y +\& $x\->bge($y); # true if and only if $x >= $y +\& +\& # Arithmetic methods +\& +\& $x\->bneg(); # negation +\& $x\->babs(); # absolute value +\& $x\->bsgn(); # sign function (\-1, 0, 1, or NaN) +\& $x\->bnorm(); # normalize (no\-op) +\& $x\->binc(); # increment $x by 1 +\& $x\->bdec(); # decrement $x by 1 +\& $x\->badd($y); # addition (add $y to $x) +\& $x\->bsub($y); # subtraction (subtract $y from $x) +\& $x\->bmul($y); # multiplication (multiply $x by $y) +\& $x\->bmuladd($y,$z); # $x = $x * $y + $z +\& $x\->bdiv($y); # division (floored), set $x to quotient +\& # return (quo,rem) or quo if scalar +\& $x\->btdiv($y); # division (truncated), set $x to quotient +\& # return (quo,rem) or quo if scalar +\& $x\->bmod($y); # modulus (x % y) +\& $x\->btmod($y); # modulus (truncated) +\& $x\->bmodinv($mod); # modular multiplicative inverse +\& $x\->bmodpow($y,$mod); # modular exponentiation (($x ** $y) % $mod) +\& $x\->bpow($y); # power of arguments (x ** y) +\& $x\->blog(); # logarithm of $x to base e (Euler\*(Aqs number) +\& $x\->blog($base); # logarithm of $x to base $base (e.g., base 2) +\& $x\->bexp(); # calculate e ** $x where e is Euler\*(Aqs number +\& $x\->bnok($y); # x over y (binomial coefficient n over k) +\& $x\->buparrow($n, $y); # Knuth\*(Aqs up\-arrow notation +\& $x\->backermann($y); # the Ackermann function +\& $x\->bsin(); # sine +\& $x\->bcos(); # cosine +\& $x\->batan(); # inverse tangent +\& $x\->batan2($y); # two\-argument inverse tangent +\& $x\->bsqrt(); # calculate square root +\& $x\->broot($y); # $y\*(Aqth root of $x (e.g. $y == 3 => cubic root) +\& $x\->bfac(); # factorial of $x (1*2*3*4*..$x) +\& +\& $x\->blsft($n); # left shift $n places in base 2 +\& $x\->blsft($n,$b); # left shift $n places in base $b +\& # returns (quo,rem) or quo (scalar context) +\& $x\->brsft($n); # right shift $n places in base 2 +\& $x\->brsft($n,$b); # right shift $n places in base $b +\& # returns (quo,rem) or quo (scalar context) +\& +\& # Bitwise methods +\& +\& $x\->band($y); # bitwise and +\& $x\->bior($y); # bitwise inclusive or +\& $x\->bxor($y); # bitwise exclusive or +\& $x\->bnot(); # bitwise not (two\*(Aqs complement) +\& +\& # Rounding methods +\& $x\->round($A,$P,$mode); # round to accuracy or precision using +\& # rounding mode $mode +\& $x\->bround($n); # accuracy: preserve $n digits +\& $x\->bfround($n); # $n > 0: round to $nth digit left of dec. point +\& # $n < 0: round to $nth digit right of dec. point +\& $x\->bfloor(); # round towards minus infinity +\& $x\->bceil(); # round towards plus infinity +\& $x\->bint(); # round towards zero +\& +\& # Other mathematical methods +\& +\& $x\->bgcd($y); # greatest common divisor +\& $x\->blcm($y); # least common multiple +\& +\& # Object property methods (do not modify the invocand) +\& +\& $x\->sign(); # the sign, either +, \- or NaN +\& $x\->digit($n); # the nth digit, counting from the right +\& $x\->digit(\-$n); # the nth digit, counting from the left +\& $x\->length(); # return number of digits in number +\& ($xl,$f) = $x\->length(); # length of number and length of fraction +\& # part, latter is always 0 digits long +\& # for Math::BigInt objects +\& $x\->mantissa(); # return (signed) mantissa as a Math::BigInt +\& $x\->exponent(); # return exponent as a Math::BigInt +\& $x\->parts(); # return (mantissa,exponent) as a Math::BigInt +\& $x\->sparts(); # mantissa and exponent (as integers) +\& $x\->nparts(); # mantissa and exponent (normalised) +\& $x\->eparts(); # mantissa and exponent (engineering notation) +\& $x\->dparts(); # integer and fraction part +\& +\& # Conversion methods (do not modify the invocand) +\& +\& $x\->bstr(); # decimal notation, possibly zero padded +\& $x\->bsstr(); # string in scientific notation with integers +\& $x\->bnstr(); # string in normalized notation +\& $x\->bestr(); # string in engineering notation +\& $x\->bdstr(); # string in decimal notation +\& +\& $x\->to_hex(); # as signed hexadecimal string +\& $x\->to_bin(); # as signed binary string +\& $x\->to_oct(); # as signed octal string +\& $x\->to_bytes(); # as byte string +\& $x\->to_base($b); # as string in any base +\& +\& $x\->as_hex(); # as signed hexadecimal string with prefixed 0x +\& $x\->as_bin(); # as signed binary string with prefixed 0b +\& $x\->as_oct(); # as signed octal string with prefixed 0 +\& +\& # Other conversion methods +\& +\& $x\->numify(); # return as scalar (might overflow or underflow) +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Math::BigInt provides support for arbitrary precision integers. Overloading is +also provided for Perl operators. +.SS "Input" +.IX Subsection "Input" +Input values to these routines may be any scalar number or string that looks +like a number and represents an integer. +.IP "\(bu" 4 +Leading and trailing whitespace is ignored. +.IP "\(bu" 4 +Leading and trailing zeros are ignored. +.IP "\(bu" 4 +If the string has a \*(L"0x\*(R" prefix, it is interpreted as a hexadecimal number. +.IP "\(bu" 4 +If the string has a \*(L"0b\*(R" prefix, it is interpreted as a binary number. +.IP "\(bu" 4 +One underline is allowed between any two digits. +.IP "\(bu" 4 +If the string can not be interpreted, NaN is returned. +.PP +Octal numbers are typically prefixed by \*(L"0\*(R", but since leading zeros are +stripped, these methods can not automatically recognize octal numbers, so use +the constructor \fBfrom_oct()\fR to interpret octal strings. +.PP +Some examples of valid string input +.PP +.Vb 8 +\& Input string Resulting value +\& 123 123 +\& 1.23e2 123 +\& 12300e\-2 123 +\& 0xcafe 51966 +\& 0b1101 13 +\& 67_538_754 67538754 +\& \-4_5_6.7_8_9e+0_1_0 \-4567890000000 +.Ve +.PP +Input given as scalar numbers might lose precision. Quote your input to ensure +that no digits are lost: +.PP +.Vb 2 +\& $x = Math::BigInt\->new( 56789012345678901234 ); # bad +\& $x = Math::BigInt\->new(\*(Aq56789012345678901234\*(Aq); # good +.Ve +.PP +Currently, Math::BigInt\->\fBnew()\fR defaults to 0, while Math::BigInt\->new('') +results in 'NaN'. This might change in the future, so use always the following +explicit forms to get a zero or NaN: +.PP +.Vb 2 +\& $zero = Math::BigInt\->bzero(); +\& $nan = Math::BigInt\->bnan(); +.Ve +.SS "Output" +.IX Subsection "Output" +Output values are usually Math::BigInt objects. +.PP +Boolean operators \f(CW\*(C`is_zero()\*(C'\fR, \f(CW\*(C`is_one()\*(C'\fR, \f(CW\*(C`is_inf()\*(C'\fR, etc. return true or +false. +.PP +Comparison operators \f(CW\*(C`bcmp()\*(C'\fR and \f(CW\*(C`bacmp()\*(C'\fR) return \-1, 0, 1, or +undef. +.SH "METHODS" +.IX Header "METHODS" +.SS "Configuration methods" +.IX Subsection "Configuration methods" +Each of the methods below (except \fBconfig()\fR, \fBaccuracy()\fR and \fBprecision()\fR) accepts +three additional parameters. These arguments \f(CW$A\fR, \f(CW$P\fR and \f(CW$R\fR are +\&\f(CW\*(C`accuracy\*(C'\fR, \f(CW\*(C`precision\*(C'\fR and \f(CW\*(C`round_mode\*(C'\fR. Please see the section about +\&\*(L"\s-1ACCURACY\s0 and \s-1PRECISION\*(R"\s0 for more information. +.PP +Setting a class variable effects all object instance that are created +afterwards. +.IP "\fBaccuracy()\fR" 4 +.IX Item "accuracy()" +.Vb 2 +\& Math::BigInt\->accuracy(5); # set class accuracy +\& $x\->accuracy(5); # set instance accuracy +\& +\& $A = Math::BigInt\->accuracy(); # get class accuracy +\& $A = $x\->accuracy(); # get instance accuracy +.Ve +.Sp +Set or get the accuracy, i.e., the number of significant digits. The accuracy +must be an integer. If the accuracy is set to \f(CW\*(C`undef\*(C'\fR, no rounding is done. +.Sp +Alternatively, one can round the results explicitly using one of \*(L"\fBround()\fR\*(R", +\&\*(L"\fBbround()\fR\*(R" or \*(L"\fBbfround()\fR\*(R" or by passing the desired accuracy to the method +as an additional parameter: +.Sp +.Vb 4 +\& my $x = Math::BigInt\->new(30000); +\& my $y = Math::BigInt\->new(7); +\& print scalar $x\->copy()\->bdiv($y, 2); # prints 4300 +\& print scalar $x\->copy()\->bdiv($y)\->bround(2); # prints 4300 +.Ve +.Sp +Please see the section about \*(L"\s-1ACCURACY\s0 and \s-1PRECISION\*(R"\s0 for further details. +.Sp +.Vb 4 +\& $y = Math::BigInt\->new(1234567); # $y is not rounded +\& Math::BigInt\->accuracy(4); # set class accuracy to 4 +\& $x = Math::BigInt\->new(1234567); # $x is rounded automatically +\& print "$x $y"; # prints "1235000 1234567" +\& +\& print $x\->accuracy(); # prints "4" +\& print $y\->accuracy(); # also prints "4", since +\& # class accuracy is 4 +\& +\& Math::BigInt\->accuracy(5); # set class accuracy to 5 +\& print $x\->accuracy(); # prints "4", since instance +\& # accuracy is 4 +\& print $y\->accuracy(); # prints "5", since no instance +\& # accuracy, and class accuracy is 5 +.Ve +.Sp +Note: Each class has it's own globals separated from Math::BigInt, but it is +possible to subclass Math::BigInt and make the globals of the subclass aliases +to the ones from Math::BigInt. +.IP "\fBprecision()\fR" 4 +.IX Item "precision()" +.Vb 2 +\& Math::BigInt\->precision(\-2); # set class precision +\& $x\->precision(\-2); # set instance precision +\& +\& $P = Math::BigInt\->precision(); # get class precision +\& $P = $x\->precision(); # get instance precision +.Ve +.Sp +Set or get the precision, i.e., the place to round relative to the decimal +point. The precision must be a integer. Setting the precision to \f(CW$P\fR means that +each number is rounded up or down, depending on the rounding mode, to the +nearest multiple of 10**$P. If the precision is set to \f(CW\*(C`undef\*(C'\fR, no rounding is +done. +.Sp +You might want to use \*(L"\fBaccuracy()\fR\*(R" instead. With \*(L"\fBaccuracy()\fR\*(R" you set the +number of digits each result should have, with \*(L"\fBprecision()\fR\*(R" you set the +place where to round. +.Sp +Please see the section about \*(L"\s-1ACCURACY\s0 and \s-1PRECISION\*(R"\s0 for further details. +.Sp +.Vb 4 +\& $y = Math::BigInt\->new(1234567); # $y is not rounded +\& Math::BigInt\->precision(4); # set class precision to 4 +\& $x = Math::BigInt\->new(1234567); # $x is rounded automatically +\& print $x; # prints "1230000" +.Ve +.Sp +Note: Each class has its own globals separated from Math::BigInt, but it is +possible to subclass Math::BigInt and make the globals of the subclass aliases +to the ones from Math::BigInt. +.IP "\fBdiv_scale()\fR" 4 +.IX Item "div_scale()" +Set/get the fallback accuracy. This is the accuracy used when neither accuracy +nor precision is set explicitly. It is used when a computation might otherwise +attempt to return an infinite number of digits. +.IP "\fBround_mode()\fR" 4 +.IX Item "round_mode()" +Set/get the rounding mode. +.IP "\fBupgrade()\fR" 4 +.IX Item "upgrade()" +Set/get the class for upgrading. When a computation might result in a +non-integer, the operands are upgraded to this class. This is used for instance +by bignum. The default is \f(CW\*(C`undef\*(C'\fR, thus the following operation creates +a Math::BigInt, not a Math::BigFloat: +.Sp +.Vb 2 +\& my $i = Math::BigInt\->new(123); +\& my $f = Math::BigFloat\->new(\*(Aq123.1\*(Aq); +\& +\& print $i + $f, "\en"; # prints 246 +.Ve +.IP "\fBdowngrade()\fR" 4 +.IX Item "downgrade()" +Set/get the class for downgrading. The default is \f(CW\*(C`undef\*(C'\fR. Downgrading is not +done by Math::BigInt. +.IP "\fBmodify()\fR" 4 +.IX Item "modify()" +.Vb 1 +\& $x\->modify(\*(Aqbpowd\*(Aq); +.Ve +.Sp +This method returns 0 if the object can be modified with the given operation, +or 1 if not. +.Sp +This is used for instance by Math::BigInt::Constant. +.IP "\fBconfig()\fR" 4 +.IX Item "config()" +.Vb 2 +\& Math::BigInt\->config("trap_nan" => 1); # set +\& $accu = Math::BigInt\->config("accuracy"); # get +.Ve +.Sp +Set or get class variables. Read-only parameters are marked as \s-1RO.\s0 Read-write +parameters are marked as \s-1RW.\s0 The following parameters are supported. +.Sp +.Vb 10 +\& Parameter RO/RW Description +\& Example +\& ============================================================ +\& lib RO Name of the math backend library +\& Math::BigInt::Calc +\& lib_version RO Version of the math backend library +\& 0.30 +\& class RO The class of config you just called +\& Math::BigRat +\& version RO version number of the class you used +\& 0.10 +\& upgrade RW To which class numbers are upgraded +\& undef +\& downgrade RW To which class numbers are downgraded +\& undef +\& precision RW Global precision +\& undef +\& accuracy RW Global accuracy +\& undef +\& round_mode RW Global round mode +\& even +\& div_scale RW Fallback accuracy for division etc. +\& 40 +\& trap_nan RW Trap NaNs +\& undef +\& trap_inf RW Trap +inf/\-inf +\& undef +.Ve +.SS "Constructor methods" +.IX Subsection "Constructor methods" +.IP "\fBnew()\fR" 4 +.IX Item "new()" +.Vb 1 +\& $x = Math::BigInt\->new($str,$A,$P,$R); +.Ve +.Sp +Creates a new Math::BigInt object from a scalar or another Math::BigInt object. +The input is accepted as decimal, hexadecimal (with leading '0x') or binary +(with leading '0b'). +.Sp +See \*(L"Input\*(R" for more info on accepted input formats. +.IP "\fBfrom_hex()\fR" 4 +.IX Item "from_hex()" +.Vb 1 +\& $x = Math::BigInt\->from_hex("0xcafe"); # input is hexadecimal +.Ve +.Sp +Interpret input as a hexadecimal string. A \*(L"0x\*(R" or \*(L"x\*(R" prefix is optional. A +single underscore character may be placed right after the prefix, if present, +or between any two digits. If the input is invalid, a NaN is returned. +.IP "\fBfrom_oct()\fR" 4 +.IX Item "from_oct()" +.Vb 1 +\& $x = Math::BigInt\->from_oct("0775"); # input is octal +.Ve +.Sp +Interpret the input as an octal string and return the corresponding value. A +\&\*(L"0\*(R" (zero) prefix is optional. A single underscore character may be placed +right after the prefix, if present, or between any two digits. If the input is +invalid, a NaN is returned. +.IP "\fBfrom_bin()\fR" 4 +.IX Item "from_bin()" +.Vb 1 +\& $x = Math::BigInt\->from_bin("0b10011"); # input is binary +.Ve +.Sp +Interpret the input as a binary string. A \*(L"0b\*(R" or \*(L"b\*(R" prefix is optional. A +single underscore character may be placed right after the prefix, if present, +or between any two digits. If the input is invalid, a NaN is returned. +.IP "\fBfrom_bytes()\fR" 4 +.IX Item "from_bytes()" +.Vb 1 +\& $x = Math::BigInt\->from_bytes("\exf3\ex6b"); # $x = 62315 +.Ve +.Sp +Interpret the input as a byte string, assuming big endian byte order. The +output is always a non-negative, finite integer. +.Sp +In some special cases, \fBfrom_bytes()\fR matches the conversion done by \fBunpack()\fR: +.Sp +.Vb 3 +\& $b = "\ex4e"; # one char byte string +\& $x = Math::BigInt\->from_bytes($b); # = 78 +\& $y = unpack "C", $b; # ditto, but scalar +\& +\& $b = "\exf3\ex6b"; # two char byte string +\& $x = Math::BigInt\->from_bytes($b); # = 62315 +\& $y = unpack "S>", $b; # ditto, but scalar +\& +\& $b = "\ex2d\exe0\ex49\exad"; # four char byte string +\& $x = Math::BigInt\->from_bytes($b); # = 769673645 +\& $y = unpack "L>", $b; # ditto, but scalar +\& +\& $b = "\ex2d\exe0\ex49\exad\ex2d\exe0\ex49\exad"; # eight char byte string +\& $x = Math::BigInt\->from_bytes($b); # = 3305723134637787565 +\& $y = unpack "Q>", $b; # ditto, but scalar +.Ve +.IP "\fBfrom_base()\fR" 4 +.IX Item "from_base()" +Given a string, a base, and an optional collation sequence, interpret the +string as a number in the given base. The collation sequence describes the +value of each character in the string. +.Sp +If a collation sequence is not given, a default collation sequence is used. If +the base is less than or equal to 36, the collation sequence is the string +consisting of the 36 characters \*(L"0\*(R" to \*(L"9\*(R" and \*(L"A\*(R" to \*(L"Z\*(R". In this case, the +letter case in the input is ignored. If the base is greater than 36, and +smaller than or equal to 62, the collation sequence is the string consisting of +the 62 characters \*(L"0\*(R" to \*(L"9\*(R", \*(L"A\*(R" to \*(L"Z\*(R", and \*(L"a\*(R" to \*(L"z\*(R". A base larger than 62 +requires the collation sequence to be specified explicitly. +.Sp +These examples show standard binary, octal, and hexadecimal conversion. All +cases return 250. +.Sp +.Vb 3 +\& $x = Math::BigInt\->from_base("11111010", 2); +\& $x = Math::BigInt\->from_base("372", 8); +\& $x = Math::BigInt\->from_base("fa", 16); +.Ve +.Sp +When the base is less than or equal to 36, and no collation sequence is given, +the letter case is ignored, so both of these also return 250: +.Sp +.Vb 2 +\& $x = Math::BigInt\->from_base("6Y", 16); +\& $x = Math::BigInt\->from_base("6y", 16); +.Ve +.Sp +When the base greater than 36, and no collation sequence is given, the default +collation sequence contains both uppercase and lowercase letters, so +the letter case in the input is not ignored: +.Sp +.Vb 5 +\& $x = Math::BigInt\->from_base("6S", 37); # $x is 250 +\& $x = Math::BigInt\->from_base("6s", 37); # $x is 276 +\& $x = Math::BigInt\->from_base("121", 3); # $x is 16 +\& $x = Math::BigInt\->from_base("XYZ", 36); # $x is 44027 +\& $x = Math::BigInt\->from_base("Why", 42); # $x is 58314 +.Ve +.Sp +The collation sequence can be any set of unique characters. These two cases +are equivalent +.Sp +.Vb 2 +\& $x = Math::BigInt\->from_base("100", 2, "01"); # $x is 4 +\& $x = Math::BigInt\->from_base("|\-\-", 2, "\-|"); # $x is 4 +.Ve +.IP "\fBbzero()\fR" 4 +.IX Item "bzero()" +.Vb 2 +\& $x = Math::BigInt\->bzero(); +\& $x\->bzero(); +.Ve +.Sp +Returns a new Math::BigInt object representing zero. If used as an instance +method, assigns the value to the invocand. +.IP "\fBbone()\fR" 4 +.IX Item "bone()" +.Vb 6 +\& $x = Math::BigInt\->bone(); # +1 +\& $x = Math::BigInt\->bone("+"); # +1 +\& $x = Math::BigInt\->bone("\-"); # \-1 +\& $x\->bone(); # +1 +\& $x\->bone("+"); # +1 +\& $x\->bone(\*(Aq\-\*(Aq); # \-1 +.Ve +.Sp +Creates a new Math::BigInt object representing one. The optional argument is +either '\-' or '+', indicating whether you want plus one or minus one. If used +as an instance method, assigns the value to the invocand. +.IP "\fBbinf()\fR" 4 +.IX Item "binf()" +.Vb 1 +\& $x = Math::BigInt\->binf($sign); +.Ve +.Sp +Creates a new Math::BigInt object representing infinity. The optional argument +is either '\-' or '+', indicating whether you want infinity or minus infinity. +If used as an instance method, assigns the value to the invocand. +.Sp +.Vb 2 +\& $x\->binf(); +\& $x\->binf(\*(Aq\-\*(Aq); +.Ve +.IP "\fBbnan()\fR" 4 +.IX Item "bnan()" +.Vb 1 +\& $x = Math::BigInt\->bnan(); +.Ve +.Sp +Creates a new Math::BigInt object representing NaN (Not A Number). If used as +an instance method, assigns the value to the invocand. +.Sp +.Vb 1 +\& $x\->bnan(); +.Ve +.IP "\fBbpi()\fR" 4 +.IX Item "bpi()" +.Vb 2 +\& $x = Math::BigInt\->bpi(100); # 3 +\& $x\->bpi(100); # 3 +.Ve +.Sp +Creates a new Math::BigInt object representing \s-1PI.\s0 If used as an instance +method, assigns the value to the invocand. With Math::BigInt this always +returns 3. +.Sp +If upgrading is in effect, returns \s-1PI,\s0 rounded to N digits with the current +rounding mode: +.Sp +.Vb 4 +\& use Math::BigFloat; +\& use Math::BigInt upgrade => "Math::BigFloat"; +\& print Math::BigInt\->bpi(3), "\en"; # 3.14 +\& print Math::BigInt\->bpi(100), "\en"; # 3.1415.... +.Ve +.IP "\fBcopy()\fR" 4 +.IX Item "copy()" +.Vb 1 +\& $x\->copy(); # make a true copy of $x (unlike $y = $x) +.Ve +.IP "\fBas_int()\fR" 4 +.IX Item "as_int()" +.PD 0 +.IP "\fBas_number()\fR" 4 +.IX Item "as_number()" +.PD +These methods are called when Math::BigInt encounters an object it doesn't know +how to handle. For instance, assume \f(CW$x\fR is a Math::BigInt, or subclass thereof, +and \f(CW$y\fR is defined, but not a Math::BigInt, or subclass thereof. If you do +.Sp +.Vb 1 +\& $x \-> badd($y); +.Ve +.Sp +\&\f(CW$y\fR needs to be converted into an object that \f(CW$x\fR can deal with. This is done by +first checking if \f(CW$y\fR is something that \f(CW$x\fR might be upgraded to. If that is the +case, no further attempts are made. The next is to see if \f(CW$y\fR supports the +method \f(CW\*(C`as_int()\*(C'\fR. If it does, \f(CW\*(C`as_int()\*(C'\fR is called, but if it doesn't, the +next thing is to see if \f(CW$y\fR supports the method \f(CW\*(C`as_number()\*(C'\fR. If it does, +\&\f(CW\*(C`as_number()\*(C'\fR is called. The method \f(CW\*(C`as_int()\*(C'\fR (and \f(CW\*(C`as_number()\*(C'\fR) is +expected to return either an object that has the same class as \f(CW$x\fR, a subclass +thereof, or a string that \f(CW\*(C`ref($x)\->new()\*(C'\fR can parse to create an object. +.Sp +\&\f(CW\*(C`as_number()\*(C'\fR is an alias to \f(CW\*(C`as_int()\*(C'\fR. \f(CW\*(C`as_number\*(C'\fR was introduced in +v1.22, while \f(CW\*(C`as_int()\*(C'\fR was introduced in v1.68. +.Sp +In Math::BigInt, \f(CW\*(C`as_int()\*(C'\fR has the same effect as \f(CW\*(C`copy()\*(C'\fR. +.SS "Boolean methods" +.IX Subsection "Boolean methods" +None of these methods modify the invocand object. +.IP "\fBis_zero()\fR" 4 +.IX Item "is_zero()" +.Vb 1 +\& $x\->is_zero(); # true if $x is 0 +.Ve +.Sp +Returns true if the invocand is zero and false otherwise. +.IP "is_one( [ \s-1SIGN\s0 ])" 4 +.IX Item "is_one( [ SIGN ])" +.Vb 3 +\& $x\->is_one(); # true if $x is +1 +\& $x\->is_one("+"); # ditto +\& $x\->is_one("\-"); # true if $x is \-1 +.Ve +.Sp +Returns true if the invocand is one and false otherwise. +.IP "\fBis_finite()\fR" 4 +.IX Item "is_finite()" +.Vb 1 +\& $x\->is_finite(); # true if $x is not +inf, \-inf or NaN +.Ve +.Sp +Returns true if the invocand is a finite number, i.e., it is neither +inf, +\&\-inf, nor NaN. +.IP "is_inf( [ \s-1SIGN\s0 ] )" 4 +.IX Item "is_inf( [ SIGN ] )" +.Vb 3 +\& $x\->is_inf(); # true if $x is +inf +\& $x\->is_inf("+"); # ditto +\& $x\->is_inf("\-"); # true if $x is \-inf +.Ve +.Sp +Returns true if the invocand is infinite and false otherwise. +.IP "\fBis_nan()\fR" 4 +.IX Item "is_nan()" +.Vb 1 +\& $x\->is_nan(); # true if $x is NaN +.Ve +.IP "\fBis_positive()\fR" 4 +.IX Item "is_positive()" +.PD 0 +.IP "\fBis_pos()\fR" 4 +.IX Item "is_pos()" +.PD +.Vb 2 +\& $x\->is_positive(); # true if > 0 +\& $x\->is_pos(); # ditto +.Ve +.Sp +Returns true if the invocand is positive and false otherwise. A \f(CW\*(C`NaN\*(C'\fR is +neither positive nor negative. +.IP "\fBis_negative()\fR" 4 +.IX Item "is_negative()" +.PD 0 +.IP "\fBis_neg()\fR" 4 +.IX Item "is_neg()" +.PD +.Vb 2 +\& $x\->is_negative(); # true if < 0 +\& $x\->is_neg(); # ditto +.Ve +.Sp +Returns true if the invocand is negative and false otherwise. A \f(CW\*(C`NaN\*(C'\fR is +neither positive nor negative. +.IP "\fBis_non_positive()\fR" 4 +.IX Item "is_non_positive()" +.Vb 1 +\& $x\->is_non_positive(); # true if <= 0 +.Ve +.Sp +Returns true if the invocand is negative or zero. +.IP "\fBis_non_negative()\fR" 4 +.IX Item "is_non_negative()" +.Vb 1 +\& $x\->is_non_negative(); # true if >= 0 +.Ve +.Sp +Returns true if the invocand is positive or zero. +.IP "\fBis_odd()\fR" 4 +.IX Item "is_odd()" +.Vb 1 +\& $x\->is_odd(); # true if odd, false for even +.Ve +.Sp +Returns true if the invocand is odd and false otherwise. \f(CW\*(C`NaN\*(C'\fR, \f(CW\*(C`+inf\*(C'\fR, and +\&\f(CW\*(C`\-inf\*(C'\fR are neither odd nor even. +.IP "\fBis_even()\fR" 4 +.IX Item "is_even()" +.Vb 1 +\& $x\->is_even(); # true if $x is even +.Ve +.Sp +Returns true if the invocand is even and false otherwise. \f(CW\*(C`NaN\*(C'\fR, \f(CW\*(C`+inf\*(C'\fR, +\&\f(CW\*(C`\-inf\*(C'\fR are not integers and are neither odd nor even. +.IP "\fBis_int()\fR" 4 +.IX Item "is_int()" +.Vb 1 +\& $x\->is_int(); # true if $x is an integer +.Ve +.Sp +Returns true if the invocand is an integer and false otherwise. \f(CW\*(C`NaN\*(C'\fR, +\&\f(CW\*(C`+inf\*(C'\fR, \f(CW\*(C`\-inf\*(C'\fR are not integers. +.SS "Comparison methods" +.IX Subsection "Comparison methods" +None of these methods modify the invocand object. Note that a \f(CW\*(C`NaN\*(C'\fR is neither +less than, greater than, or equal to anything else, even a \f(CW\*(C`NaN\*(C'\fR. +.IP "\fBbcmp()\fR" 4 +.IX Item "bcmp()" +.Vb 1 +\& $x\->bcmp($y); +.Ve +.Sp +Returns \-1, 0, 1 depending on whether \f(CW$x\fR is less than, equal to, or grater than +\&\f(CW$y\fR. Returns undef if any operand is a NaN. +.IP "\fBbacmp()\fR" 4 +.IX Item "bacmp()" +.Vb 1 +\& $x\->bacmp($y); +.Ve +.Sp +Returns \-1, 0, 1 depending on whether the absolute value of \f(CW$x\fR is less than, +equal to, or grater than the absolute value of \f(CW$y\fR. Returns undef if any operand +is a NaN. +.IP "\fBbeq()\fR" 4 +.IX Item "beq()" +.Vb 1 +\& $x \-> beq($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is equal to \f(CW$y\fR, and false otherwise. +.IP "\fBbne()\fR" 4 +.IX Item "bne()" +.Vb 1 +\& $x \-> bne($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is not equal to \f(CW$y\fR, and false otherwise. +.IP "\fBblt()\fR" 4 +.IX Item "blt()" +.Vb 1 +\& $x \-> blt($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is equal to \f(CW$y\fR, and false otherwise. +.IP "\fBble()\fR" 4 +.IX Item "ble()" +.Vb 1 +\& $x \-> ble($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is less than or equal to \f(CW$y\fR, and false +otherwise. +.IP "\fBbgt()\fR" 4 +.IX Item "bgt()" +.Vb 1 +\& $x \-> bgt($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is greater than \f(CW$y\fR, and false otherwise. +.IP "\fBbge()\fR" 4 +.IX Item "bge()" +.Vb 1 +\& $x \-> bge($y); +.Ve +.Sp +Returns true if and only if \f(CW$x\fR is greater than or equal to \f(CW$y\fR, and false +otherwise. +.SS "Arithmetic methods" +.IX Subsection "Arithmetic methods" +These methods modify the invocand object and returns it. +.IP "\fBbneg()\fR" 4 +.IX Item "bneg()" +.Vb 1 +\& $x\->bneg(); +.Ve +.Sp +Negate the number, e.g. change the sign between '+' and '\-', or between '+inf' +and '\-inf', respectively. Does nothing for NaN or zero. +.IP "\fBbabs()\fR" 4 +.IX Item "babs()" +.Vb 1 +\& $x\->babs(); +.Ve +.Sp +Set the number to its absolute value, e.g. change the sign from '\-' to '+' +and from '\-inf' to '+inf', respectively. Does nothing for NaN or positive +numbers. +.IP "\fBbsgn()\fR" 4 +.IX Item "bsgn()" +.Vb 1 +\& $x\->bsgn(); +.Ve +.Sp +Signum function. Set the number to \-1, 0, or 1, depending on whether the +number is negative, zero, or positive, respectively. Does not modify NaNs. +.IP "\fBbnorm()\fR" 4 +.IX Item "bnorm()" +.Vb 1 +\& $x\->bnorm(); # normalize (no\-op) +.Ve +.Sp +Normalize the number. This is a no-op and is provided only for backwards +compatibility. +.IP "\fBbinc()\fR" 4 +.IX Item "binc()" +.Vb 1 +\& $x\->binc(); # increment x by 1 +.Ve +.IP "\fBbdec()\fR" 4 +.IX Item "bdec()" +.Vb 1 +\& $x\->bdec(); # decrement x by 1 +.Ve +.IP "\fBbadd()\fR" 4 +.IX Item "badd()" +.Vb 1 +\& $x\->badd($y); # addition (add $y to $x) +.Ve +.IP "\fBbsub()\fR" 4 +.IX Item "bsub()" +.Vb 1 +\& $x\->bsub($y); # subtraction (subtract $y from $x) +.Ve +.IP "\fBbmul()\fR" 4 +.IX Item "bmul()" +.Vb 1 +\& $x\->bmul($y); # multiplication (multiply $x by $y) +.Ve +.IP "\fBbmuladd()\fR" 4 +.IX Item "bmuladd()" +.Vb 1 +\& $x\->bmuladd($y,$z); +.Ve +.Sp +Multiply \f(CW$x\fR by \f(CW$y\fR, and then add \f(CW$z\fR to the result, +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbdiv()\fR" 4 +.IX Item "bdiv()" +.Vb 1 +\& $x\->bdiv($y); # divide, set $x to quotient +.Ve +.Sp +Divides \f(CW$x\fR by \f(CW$y\fR by doing floored division (F\-division), where the quotient is +the floored (rounded towards negative infinity) quotient of the two operands. +In list context, returns the quotient and the remainder. The remainder is +either zero or has the same sign as the second operand. In scalar context, only +the quotient is returned. +.Sp +The quotient is always the greatest integer less than or equal to the +real-valued quotient of the two operands, and the remainder (when it is +non-zero) always has the same sign as the second operand; so, for example, +.Sp +.Vb 6 +\& 1 / 4 => ( 0, 1) +\& 1 / \-4 => (\-1, \-3) +\& \-3 / 4 => (\-1, 1) +\& \-3 / \-4 => ( 0, \-3) +\& \-11 / 2 => (\-5, 1) +\& 11 / \-2 => (\-5, \-1) +.Ve +.Sp +The behavior of the overloaded operator % agrees with the behavior of Perl's +built-in % operator (as documented in the perlop manpage), and the equation +.Sp +.Vb 1 +\& $x == ($x / $y) * $y + ($x % $y) +.Ve +.Sp +holds true for any finite \f(CW$x\fR and finite, non-zero \f(CW$y\fR. +.Sp +Perl's \*(L"use integer\*(R" might change the behaviour of % and / for scalars. This is +because under 'use integer' Perl does what the underlying C library thinks is +right, and this varies. However, \*(L"use integer\*(R" does not change the way things +are done with Math::BigInt objects. +.IP "\fBbtdiv()\fR" 4 +.IX Item "btdiv()" +.Vb 1 +\& $x\->btdiv($y); # divide, set $x to quotient +.Ve +.Sp +Divides \f(CW$x\fR by \f(CW$y\fR by doing truncated division (T\-division), where quotient is +the truncated (rouneded towards zero) quotient of the two operands. In list +context, returns the quotient and the remainder. The remainder is either zero +or has the same sign as the first operand. In scalar context, only the quotient +is returned. +.IP "\fBbmod()\fR" 4 +.IX Item "bmod()" +.Vb 1 +\& $x\->bmod($y); # modulus (x % y) +.Ve +.Sp +Returns \f(CW$x\fR modulo \f(CW$y\fR, i.e., the remainder after floored division (F\-division). +This method is like Perl's % operator. See \*(L"\fBbdiv()\fR\*(R". +.IP "\fBbtmod()\fR" 4 +.IX Item "btmod()" +.Vb 1 +\& $x\->btmod($y); # modulus +.Ve +.Sp +Returns the remainer after truncated division (T\-division). See \*(L"\fBbtdiv()\fR\*(R". +.IP "\fBbmodinv()\fR" 4 +.IX Item "bmodinv()" +.Vb 1 +\& $x\->bmodinv($mod); # modular multiplicative inverse +.Ve +.Sp +Returns the multiplicative inverse of \f(CW$x\fR modulo \f(CW$mod\fR. If +.Sp +.Vb 1 +\& $y = $x \-> copy() \-> bmodinv($mod) +.Ve +.Sp +then \f(CW$y\fR is the number closest to zero, and with the same sign as \f(CW$mod\fR, +satisfying +.Sp +.Vb 1 +\& ($x * $y) % $mod = 1 % $mod +.Ve +.Sp +If \f(CW$x\fR and \f(CW$y\fR are non-zero, they must be relative primes, i.e., +\&\f(CW\*(C`bgcd($y, $mod)==1\*(C'\fR. '\f(CW\*(C`NaN\*(C'\fR' is returned when no modular multiplicative +inverse exists. +.IP "\fBbmodpow()\fR" 4 +.IX Item "bmodpow()" +.Vb 2 +\& $num\->bmodpow($exp,$mod); # modular exponentiation +\& # ($num**$exp % $mod) +.Ve +.Sp +Returns the value of \f(CW$num\fR taken to the power \f(CW$exp\fR in the modulus +\&\f(CW$mod\fR using binary exponentiation. \f(CW\*(C`bmodpow\*(C'\fR is far superior to +writing +.Sp +.Vb 1 +\& $num ** $exp % $mod +.Ve +.Sp +because it is much faster \- it reduces internal variables into +the modulus whenever possible, so it operates on smaller numbers. +.Sp +\&\f(CW\*(C`bmodpow\*(C'\fR also supports negative exponents. +.Sp +.Vb 1 +\& bmodpow($num, \-1, $mod) +.Ve +.Sp +is exactly equivalent to +.Sp +.Vb 1 +\& bmodinv($num, $mod) +.Ve +.IP "\fBbpow()\fR" 4 +.IX Item "bpow()" +.Vb 1 +\& $x\->bpow($y); # power of arguments (x ** y) +.Ve +.Sp +\&\f(CW\*(C`bpow()\*(C'\fR (and the rounding functions) now modifies the first argument and +returns it, unlike the old code which left it alone and only returned the +result. This is to be consistent with \f(CW\*(C`badd()\*(C'\fR etc. The first three modifies +\&\f(CW$x\fR, the last one won't: +.Sp +.Vb 4 +\& print bpow($x,$i),"\en"; # modify $x +\& print $x\->bpow($i),"\en"; # ditto +\& print $x **= $i,"\en"; # the same +\& print $x ** $i,"\en"; # leave $x alone +.Ve +.Sp +The form \f(CW\*(C`$x **= $y\*(C'\fR is faster than \f(CW\*(C`$x = $x ** $y;\*(C'\fR, though. +.IP "\fBblog()\fR" 4 +.IX Item "blog()" +.Vb 1 +\& $x\->blog($base, $accuracy); # logarithm of x to the base $base +.Ve +.Sp +If \f(CW$base\fR is not defined, Euler's number (e) is used: +.Sp +.Vb 1 +\& print $x\->blog(undef, 100); # log(x) to 100 digits +.Ve +.IP "\fBbexp()\fR" 4 +.IX Item "bexp()" +.Vb 1 +\& $x\->bexp($accuracy); # calculate e ** X +.Ve +.Sp +Calculates the expression \f(CW\*(C`e ** $x\*(C'\fR where \f(CW\*(C`e\*(C'\fR is Euler's number. +.Sp +This method was added in v1.82 of Math::BigInt (April 2007). +.Sp +See also \*(L"\fBblog()\fR\*(R". +.IP "\fBbnok()\fR" 4 +.IX Item "bnok()" +.Vb 1 +\& $x\->bnok($y); # x over y (binomial coefficient n over k) +.Ve +.Sp +Calculates the binomial coefficient n over k, also called the \*(L"choose\*(R" +function, which is +.Sp +.Vb 3 +\& ( n ) n! +\& | | = \-\-\-\-\-\-\-\- +\& ( k ) k!(n\-k)! +.Ve +.Sp +when n and k are non-negative. This method implements the full Kronenburg +extension (Kronenburg, M.J. \*(L"The Binomial Coefficient for Negative Arguments.\*(R" +18 May 2011. http://arxiv.org/abs/1105.3689/) illustrated by the following +pseudo-code: +.Sp +.Vb 8 +\& if n >= 0 and k >= 0: +\& return binomial(n, k) +\& if k >= 0: +\& return (\-1)^k*binomial(\-n+k\-1, k) +\& if k <= n: +\& return (\-1)^(n\-k)*binomial(\-k\-1, n\-k) +\& else +\& return 0 +.Ve +.Sp +The behaviour is identical to the behaviour of the Maple and Mathematica +function for negative integers n, k. +.IP "\fBbuparrow()\fR" 4 +.IX Item "buparrow()" +.PD 0 +.IP "\fBuparrow()\fR" 4 +.IX Item "uparrow()" +.PD +.Vb 2 +\& $a \-> buparrow($n, $b); # modifies $a +\& $x = $a \-> uparrow($n, $b); # does not modify $a +.Ve +.Sp +This method implements Knuth's up-arrow notation, where \f(CW$n\fR is a non-negative +integer representing the number of up-arrows. \f(CW$n\fR = 0 gives multiplication, \f(CW$n\fR = +1 gives exponentiation, \f(CW$n\fR = 2 gives tetration, \f(CW$n\fR = 3 gives hexation etc. The +following illustrates the relation between the first values of \f(CW$n\fR. +.Sp +See . +.IP "\fBbackermann()\fR" 4 +.IX Item "backermann()" +.PD 0 +.IP "\fBackermann()\fR" 4 +.IX Item "ackermann()" +.PD +.Vb 2 +\& $m \-> backermann($n); # modifies $a +\& $x = $m \-> ackermann($n); # does not modify $a +.Ve +.Sp +This method implements the Ackermann function: +.Sp +.Vb 3 +\& / n + 1 if m = 0 +\& A(m, n) = | A(m\-1, 1) if m > 0 and n = 0 +\& \e A(m\-1, A(m, n\-1)) if m > 0 and n > 0 +.Ve +.Sp +Its value grows rapidly, even for small inputs. For example, A(4, 2) is an +integer of 19729 decimal digits. +.Sp +See https://en.wikipedia.org/wiki/Ackermann_function +.IP "\fBbsin()\fR" 4 +.IX Item "bsin()" +.Vb 2 +\& my $x = Math::BigInt\->new(1); +\& print $x\->bsin(100), "\en"; +.Ve +.Sp +Calculate the sine of \f(CW$x\fR, modifying \f(CW$x\fR in place. +.Sp +In Math::BigInt, unless upgrading is in effect, the result is truncated to an +integer. +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbcos()\fR" 4 +.IX Item "bcos()" +.Vb 2 +\& my $x = Math::BigInt\->new(1); +\& print $x\->bcos(100), "\en"; +.Ve +.Sp +Calculate the cosine of \f(CW$x\fR, modifying \f(CW$x\fR in place. +.Sp +In Math::BigInt, unless upgrading is in effect, the result is truncated to an +integer. +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbatan()\fR" 4 +.IX Item "batan()" +.Vb 2 +\& my $x = Math::BigFloat\->new(0.5); +\& print $x\->batan(100), "\en"; +.Ve +.Sp +Calculate the arcus tangens of \f(CW$x\fR, modifying \f(CW$x\fR in place. +.Sp +In Math::BigInt, unless upgrading is in effect, the result is truncated to an +integer. +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbatan2()\fR" 4 +.IX Item "batan2()" +.Vb 3 +\& my $x = Math::BigInt\->new(1); +\& my $y = Math::BigInt\->new(1); +\& print $y\->batan2($x), "\en"; +.Ve +.Sp +Calculate the arcus tangens of \f(CW$y\fR divided by \f(CW$x\fR, modifying \f(CW$y\fR in place. +.Sp +In Math::BigInt, unless upgrading is in effect, the result is truncated to an +integer. +.Sp +This method was added in v1.87 of Math::BigInt (June 2007). +.IP "\fBbsqrt()\fR" 4 +.IX Item "bsqrt()" +.Vb 1 +\& $x\->bsqrt(); # calculate square root +.Ve +.Sp +\&\f(CW\*(C`bsqrt()\*(C'\fR returns the square root truncated to an integer. +.Sp +If you want a better approximation of the square root, then use: +.Sp +.Vb 4 +\& $x = Math::BigFloat\->new(12); +\& Math::BigFloat\->precision(0); +\& Math::BigFloat\->round_mode(\*(Aqeven\*(Aq); +\& print $x\->copy\->bsqrt(),"\en"; # 4 +\& +\& Math::BigFloat\->precision(2); +\& print $x\->bsqrt(),"\en"; # 3.46 +\& print $x\->bsqrt(3),"\en"; # 3.464 +.Ve +.IP "\fBbroot()\fR" 4 +.IX Item "broot()" +.Vb 1 +\& $x\->broot($N); +.Ve +.Sp +Calculates the N'th root of \f(CW$x\fR. +.IP "\fBbfac()\fR" 4 +.IX Item "bfac()" +.Vb 1 +\& $x\->bfac(); # factorial of $x (1*2*3*4*..*$x) +.Ve +.Sp +Returns the factorial of \f(CW$x\fR, i.e., the product of all positive integers up +to and including \f(CW$x\fR. +.IP "\fBbdfac()\fR" 4 +.IX Item "bdfac()" +.Vb 1 +\& $x\->bdfac(); # double factorial of $x (1*2*3*4*..*$x) +.Ve +.Sp +Returns the double factorial of \f(CW$x\fR. If \f(CW$x\fR is an even integer, returns the +product of all positive, even integers up to and including \f(CW$x\fR, i.e., +2*4*6*...*$x. If \f(CW$x\fR is an odd integer, returns the product of all positive, +odd integers, i.e., 1*3*5*...*$x. +.IP "\fBbfib()\fR" 4 +.IX Item "bfib()" +.Vb 2 +\& $F = $n\->bfib(); # a single Fibonacci number +\& @F = $n\->bfib(); # a list of Fibonacci numbers +.Ve +.Sp +In scalar context, returns a single Fibonacci number. In list context, returns +a list of Fibonacci numbers. The invocand is the last element in the output. +.Sp +The Fibonacci sequence is defined by +.Sp +.Vb 3 +\& F(0) = 0 +\& F(1) = 1 +\& F(n) = F(n\-1) + F(n\-2) +.Ve +.Sp +In list context, F(0) and F(n) is the first and last number in the output, +respectively. For example, if \f(CW$n\fR is 12, then \f(CW\*(C`@F = $n\->bfib()\*(C'\fR returns the +following values, F(0) to F(12): +.Sp +.Vb 1 +\& 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144 +.Ve +.Sp +The sequence can also be extended to negative index n using the re-arranged +recurrence relation +.Sp +.Vb 1 +\& F(n\-2) = F(n) \- F(n\-1) +.Ve +.Sp +giving the bidirectional sequence +.Sp +.Vb 2 +\& n \-7 \-6 \-5 \-4 \-3 \-2 \-1 0 1 2 3 4 5 6 7 +\& F(n) 13 \-8 5 \-3 2 \-1 1 0 1 1 2 3 5 8 13 +.Ve +.Sp +If \f(CW$n\fR is \-12, the following values, F(0) to F(12), are returned: +.Sp +.Vb 1 +\& 0, 1, \-1, 2, \-3, 5, \-8, 13, \-21, 34, \-55, 89, \-144 +.Ve +.IP "\fBblucas()\fR" 4 +.IX Item "blucas()" +.Vb 2 +\& $F = $n\->blucas(); # a single Lucas number +\& @F = $n\->blucas(); # a list of Lucas numbers +.Ve +.Sp +In scalar context, returns a single Lucas number. In list context, returns a +list of Lucas numbers. The invocand is the last element in the output. +.Sp +The Lucas sequence is defined by +.Sp +.Vb 3 +\& L(0) = 2 +\& L(1) = 1 +\& L(n) = L(n\-1) + L(n\-2) +.Ve +.Sp +In list context, L(0) and L(n) is the first and last number in the output, +respectively. For example, if \f(CW$n\fR is 12, then \f(CW\*(C`@L = $n\->blucas()\*(C'\fR returns +the following values, L(0) to L(12): +.Sp +.Vb 1 +\& 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, 322 +.Ve +.Sp +The sequence can also be extended to negative index n using the re-arranged +recurrence relation +.Sp +.Vb 1 +\& L(n\-2) = L(n) \- L(n\-1) +.Ve +.Sp +giving the bidirectional sequence +.Sp +.Vb 2 +\& n \-7 \-6 \-5 \-4 \-3 \-2 \-1 0 1 2 3 4 5 6 7 +\& L(n) 29 \-18 11 \-7 4 \-3 1 2 1 3 4 7 11 18 29 +.Ve +.Sp +If \f(CW$n\fR is \-12, the following values, L(0) to L(\-12), are returned: +.Sp +.Vb 1 +\& 2, 1, \-3, 4, \-7, 11, \-18, 29, \-47, 76, \-123, 199, \-322 +.Ve +.IP "\fBbrsft()\fR" 4 +.IX Item "brsft()" +.Vb 2 +\& $x\->brsft($n); # right shift $n places in base 2 +\& $x\->brsft($n, $b); # right shift $n places in base $b +.Ve +.Sp +The latter is equivalent to +.Sp +.Vb 1 +\& $x \-> bdiv($b \-> copy() \-> bpow($n)) +.Ve +.IP "\fBblsft()\fR" 4 +.IX Item "blsft()" +.Vb 2 +\& $x\->blsft($n); # left shift $n places in base 2 +\& $x\->blsft($n, $b); # left shift $n places in base $b +.Ve +.Sp +The latter is equivalent to +.Sp +.Vb 1 +\& $x \-> bmul($b \-> copy() \-> bpow($n)) +.Ve +.SS "Bitwise methods" +.IX Subsection "Bitwise methods" +.IP "\fBband()\fR" 4 +.IX Item "band()" +.Vb 1 +\& $x\->band($y); # bitwise and +.Ve +.IP "\fBbior()\fR" 4 +.IX Item "bior()" +.Vb 1 +\& $x\->bior($y); # bitwise inclusive or +.Ve +.IP "\fBbxor()\fR" 4 +.IX Item "bxor()" +.Vb 1 +\& $x\->bxor($y); # bitwise exclusive or +.Ve +.IP "\fBbnot()\fR" 4 +.IX Item "bnot()" +.Vb 1 +\& $x\->bnot(); # bitwise not (two\*(Aqs complement) +.Ve +.Sp +Two's complement (bitwise not). This is equivalent to, but faster than, +.Sp +.Vb 1 +\& $x\->binc()\->bneg(); +.Ve +.SS "Rounding methods" +.IX Subsection "Rounding methods" +.IP "\fBround()\fR" 4 +.IX Item "round()" +.Vb 1 +\& $x\->round($A,$P,$round_mode); +.Ve +.Sp +Round \f(CW$x\fR to accuracy \f(CW$A\fR or precision \f(CW$P\fR using the round mode +\&\f(CW$round_mode\fR. +.IP "\fBbround()\fR" 4 +.IX Item "bround()" +.Vb 1 +\& $x\->bround($N); # accuracy: preserve $N digits +.Ve +.Sp +Rounds \f(CW$x\fR to an accuracy of \f(CW$N\fR digits. +.IP "\fBbfround()\fR" 4 +.IX Item "bfround()" +.Vb 1 +\& $x\->bfround($N); +.Ve +.Sp +Rounds to a multiple of 10**$N. Examples: +.Sp +.Vb 1 +\& Input N Result +\& +\& 123456.123456 3 123500 +\& 123456.123456 2 123450 +\& 123456.123456 \-2 123456.12 +\& 123456.123456 \-3 123456.123 +.Ve +.IP "\fBbfloor()\fR" 4 +.IX Item "bfloor()" +.Vb 1 +\& $x\->bfloor(); +.Ve +.Sp +Round \f(CW$x\fR towards minus infinity, i.e., set \f(CW$x\fR to the largest integer less than +or equal to \f(CW$x\fR. +.IP "\fBbceil()\fR" 4 +.IX Item "bceil()" +.Vb 1 +\& $x\->bceil(); +.Ve +.Sp +Round \f(CW$x\fR towards plus infinity, i.e., set \f(CW$x\fR to the smallest integer greater +than or equal to \f(CW$x\fR). +.IP "\fBbint()\fR" 4 +.IX Item "bint()" +.Vb 1 +\& $x\->bint(); +.Ve +.Sp +Round \f(CW$x\fR towards zero. +.SS "Other mathematical methods" +.IX Subsection "Other mathematical methods" +.IP "\fBbgcd()\fR" 4 +.IX Item "bgcd()" +.Vb 2 +\& $x \-> bgcd($y); # GCD of $x and $y +\& $x \-> bgcd($y, $z, ...); # GCD of $x, $y, $z, ... +.Ve +.Sp +Returns the greatest common divisor (\s-1GCD\s0). +.IP "\fBblcm()\fR" 4 +.IX Item "blcm()" +.Vb 2 +\& $x \-> blcm($y); # LCM of $x and $y +\& $x \-> blcm($y, $z, ...); # LCM of $x, $y, $z, ... +.Ve +.Sp +Returns the least common multiple (\s-1LCM\s0). +.SS "Object property methods" +.IX Subsection "Object property methods" +.IP "\fBsign()\fR" 4 +.IX Item "sign()" +.Vb 1 +\& $x\->sign(); +.Ve +.Sp +Return the sign, of \f(CW$x\fR, meaning either \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`\-\*(C'\fR, \f(CW\*(C`\-inf\*(C'\fR, \f(CW\*(C`+inf\*(C'\fR or NaN. +.Sp +If you want \f(CW$x\fR to have a certain sign, use one of the following methods: +.Sp +.Vb 5 +\& $x\->babs(); # \*(Aq+\*(Aq +\& $x\->babs()\->bneg(); # \*(Aq\-\*(Aq +\& $x\->bnan(); # \*(AqNaN\*(Aq +\& $x\->binf(); # \*(Aq+inf\*(Aq +\& $x\->binf(\*(Aq\-\*(Aq); # \*(Aq\-inf\*(Aq +.Ve +.IP "\fBdigit()\fR" 4 +.IX Item "digit()" +.Vb 1 +\& $x\->digit($n); # return the nth digit, counting from right +.Ve +.Sp +If \f(CW$n\fR is negative, returns the digit counting from left. +.IP "\fBdigitsum()\fR" 4 +.IX Item "digitsum()" +.Vb 1 +\& $x\->digitsum(); +.Ve +.Sp +Computes the sum of the base 10 digits and returns it. +.IP "\fBbdigitsum()\fR" 4 +.IX Item "bdigitsum()" +.Vb 1 +\& $x\->bdigitsum(); +.Ve +.Sp +Computes the sum of the base 10 digits and assigns the result to the invocand. +.IP "\fBlength()\fR" 4 +.IX Item "length()" +.Vb 2 +\& $x\->length(); +\& ($xl, $fl) = $x\->length(); +.Ve +.Sp +Returns the number of digits in the decimal representation of the number. In +list context, returns the length of the integer and fraction part. For +Math::BigInt objects, the length of the fraction part is always 0. +.Sp +The following probably doesn't do what you expect: +.Sp +.Vb 2 +\& $c = Math::BigInt\->new(123); +\& print $c\->length(),"\en"; # prints 30 +.Ve +.Sp +It prints both the number of digits in the number and in the fraction part +since print calls \f(CW\*(C`length()\*(C'\fR in list context. Use something like: +.Sp +.Vb 1 +\& print scalar $c\->length(),"\en"; # prints 3 +.Ve +.IP "\fBmantissa()\fR" 4 +.IX Item "mantissa()" +.Vb 1 +\& $x\->mantissa(); +.Ve +.Sp +Return the signed mantissa of \f(CW$x\fR as a Math::BigInt. +.IP "\fBexponent()\fR" 4 +.IX Item "exponent()" +.Vb 1 +\& $x\->exponent(); +.Ve +.Sp +Return the exponent of \f(CW$x\fR as a Math::BigInt. +.IP "\fBparts()\fR" 4 +.IX Item "parts()" +.Vb 1 +\& $x\->parts(); +.Ve +.Sp +Returns the significand (mantissa) and the exponent as integers. In +Math::BigFloat, both are returned as Math::BigInt objects. +.IP "\fBsparts()\fR" 4 +.IX Item "sparts()" +Returns the significand (mantissa) and the exponent as integers. In scalar +context, only the significand is returned. The significand is the integer with +the smallest absolute value. The output of \f(CW\*(C`sparts()\*(C'\fR corresponds to the +output from \f(CW\*(C`bsstr()\*(C'\fR. +.Sp +In Math::BigInt, this method is identical to \f(CW\*(C`parts()\*(C'\fR. +.IP "\fBnparts()\fR" 4 +.IX Item "nparts()" +Returns the significand (mantissa) and exponent corresponding to normalized +notation. In scalar context, only the significand is returned. For finite +non-zero numbers, the significand's absolute value is greater than or equal to +1 and less than 10. The output of \f(CW\*(C`nparts()\*(C'\fR corresponds to the output from +\&\f(CW\*(C`bnstr()\*(C'\fR. In Math::BigInt, if the significand can not be represented as an +integer, upgrading is performed or NaN is returned. +.IP "\fBeparts()\fR" 4 +.IX Item "eparts()" +Returns the significand (mantissa) and exponent corresponding to engineering +notation. In scalar context, only the significand is returned. For finite +non-zero numbers, the significand's absolute value is greater than or equal to +1 and less than 1000, and the exponent is a multiple of 3. The output of +\&\f(CW\*(C`eparts()\*(C'\fR corresponds to the output from \f(CW\*(C`bestr()\*(C'\fR. In Math::BigInt, if the +significand can not be represented as an integer, upgrading is performed or NaN +is returned. +.IP "\fBdparts()\fR" 4 +.IX Item "dparts()" +Returns the integer part and the fraction part. If the fraction part can not be +represented as an integer, upgrading is performed or NaN is returned. The +output of \f(CW\*(C`dparts()\*(C'\fR corresponds to the output from \f(CW\*(C`bdstr()\*(C'\fR. +.SS "String conversion methods" +.IX Subsection "String conversion methods" +.IP "\fBbstr()\fR" 4 +.IX Item "bstr()" +Returns a string representing the number using decimal notation. In +Math::BigFloat, the output is zero padded according to the current accuracy or +precision, if any of those are defined. +.IP "\fBbsstr()\fR" 4 +.IX Item "bsstr()" +Returns a string representing the number using scientific notation where both +the significand (mantissa) and the exponent are integers. The output +corresponds to the output from \f(CW\*(C`sparts()\*(C'\fR. +.Sp +.Vb 5 +\& 123 is returned as "123e+0" +\& 1230 is returned as "123e+1" +\& 12300 is returned as "123e+2" +\& 12000 is returned as "12e+3" +\& 10000 is returned as "1e+4" +.Ve +.IP "\fBbnstr()\fR" 4 +.IX Item "bnstr()" +Returns a string representing the number using normalized notation, the most +common variant of scientific notation. For finite non-zero numbers, the +absolute value of the significand is greater than or equal to 1 and less than +10. The output corresponds to the output from \f(CW\*(C`nparts()\*(C'\fR. +.Sp +.Vb 5 +\& 123 is returned as "1.23e+2" +\& 1230 is returned as "1.23e+3" +\& 12300 is returned as "1.23e+4" +\& 12000 is returned as "1.2e+4" +\& 10000 is returned as "1e+4" +.Ve +.IP "\fBbestr()\fR" 4 +.IX Item "bestr()" +Returns a string representing the number using engineering notation. For finite +non-zero numbers, the absolute value of the significand is greater than or +equal to 1 and less than 1000, and the exponent is a multiple of 3. The output +corresponds to the output from \f(CW\*(C`eparts()\*(C'\fR. +.Sp +.Vb 5 +\& 123 is returned as "123e+0" +\& 1230 is returned as "1.23e+3" +\& 12300 is returned as "12.3e+3" +\& 12000 is returned as "12e+3" +\& 10000 is returned as "10e+3" +.Ve +.IP "\fBbdstr()\fR" 4 +.IX Item "bdstr()" +Returns a string representing the number using decimal notation. The output +corresponds to the output from \f(CW\*(C`dparts()\*(C'\fR. +.Sp +.Vb 5 +\& 123 is returned as "123" +\& 1230 is returned as "1230" +\& 12300 is returned as "12300" +\& 12000 is returned as "12000" +\& 10000 is returned as "10000" +.Ve +.IP "\fBto_hex()\fR" 4 +.IX Item "to_hex()" +.Vb 1 +\& $x\->to_hex(); +.Ve +.Sp +Returns a hexadecimal string representation of the number. See also \fBfrom_hex()\fR. +.IP "\fBto_bin()\fR" 4 +.IX Item "to_bin()" +.Vb 1 +\& $x\->to_bin(); +.Ve +.Sp +Returns a binary string representation of the number. See also \fBfrom_bin()\fR. +.IP "\fBto_oct()\fR" 4 +.IX Item "to_oct()" +.Vb 1 +\& $x\->to_oct(); +.Ve +.Sp +Returns an octal string representation of the number. See also \fBfrom_oct()\fR. +.IP "\fBto_bytes()\fR" 4 +.IX Item "to_bytes()" +.Vb 2 +\& $x = Math::BigInt\->new("1667327589"); +\& $s = $x\->to_bytes(); # $s = "cafe" +.Ve +.Sp +Returns a byte string representation of the number using big endian byte +order. The invocand must be a non-negative, finite integer. See also \fBfrom_bytes()\fR. +.IP "\fBto_base()\fR" 4 +.IX Item "to_base()" +.Vb 4 +\& $x = Math::BigInt\->new("250"); +\& $x\->to_base(2); # returns "11111010" +\& $x\->to_base(8); # returns "372" +\& $x\->to_base(16); # returns "fa" +.Ve +.Sp +Returns a string representation of the number in the given base. If a collation +sequence is given, the collation sequence determines which characters are used +in the output. +.Sp +Here are some more examples +.Sp +.Vb 4 +\& $x = Math::BigInt\->new("16")\->to_base(3); # returns "121" +\& $x = Math::BigInt\->new("44027")\->to_base(36); # returns "XYZ" +\& $x = Math::BigInt\->new("58314")\->to_base(42); # returns "Why" +\& $x = Math::BigInt\->new("4")\->to_base(2, "\-|"); # returns "|\-\-" +.Ve +.Sp +See \fBfrom_base()\fR for information and examples. +.IP "\fBas_hex()\fR" 4 +.IX Item "as_hex()" +.Vb 1 +\& $x\->as_hex(); +.Ve +.Sp +As, \f(CW\*(C`to_hex()\*(C'\fR, but with a \*(L"0x\*(R" prefix. +.IP "\fBas_bin()\fR" 4 +.IX Item "as_bin()" +.Vb 1 +\& $x\->as_bin(); +.Ve +.Sp +As, \f(CW\*(C`to_bin()\*(C'\fR, but with a \*(L"0b\*(R" prefix. +.IP "\fBas_oct()\fR" 4 +.IX Item "as_oct()" +.Vb 1 +\& $x\->as_oct(); +.Ve +.Sp +As, \f(CW\*(C`to_oct()\*(C'\fR, but with a \*(L"0\*(R" prefix. +.IP "\fBas_bytes()\fR" 4 +.IX Item "as_bytes()" +This is just an alias for \f(CW\*(C`to_bytes()\*(C'\fR. +.SS "Other conversion methods" +.IX Subsection "Other conversion methods" +.IP "\fBnumify()\fR" 4 +.IX Item "numify()" +.Vb 1 +\& print $x\->numify(); +.Ve +.Sp +Returns a Perl scalar from \f(CW$x\fR. It is used automatically whenever a scalar is +needed, for instance in array index operations. +.SH "ACCURACY and PRECISION" +.IX Header "ACCURACY and PRECISION" +Math::BigInt and Math::BigFloat have full support for accuracy and precision +based rounding, both automatically after every operation, as well as manually. +.PP +This section describes the accuracy/precision handling in Math::BigInt and +Math::BigFloat as it used to be and as it is now, complete with an explanation +of all terms and abbreviations. +.PP +Not yet implemented things (but with correct description) are marked with '!', +things that need to be answered are marked with '?'. +.PP +In the next paragraph follows a short description of terms used here (because +these may differ from terms used by others people or documentation). +.PP +During the rest of this document, the shortcuts A (for accuracy), P (for +precision), F (fallback) and R (rounding mode) are be used. +.SS "Precision P" +.IX Subsection "Precision P" +Precision is a fixed number of digits before (positive) or after (negative) the +decimal point. For example, 123.45 has a precision of \-2. 0 means an integer +like 123 (or 120). A precision of 2 means at least two digits to the left of +the decimal point are zero, so 123 with P = 1 becomes 120. Note that numbers +with zeros before the decimal point may have different precisions, because 1200 +can have P = 0, 1 or 2 (depending on what the initial value was). It could also +have p < 0, when the digits after the decimal point are zero. +.PP +The string output (of floating point numbers) is padded with zeros: +.PP +.Vb 9 +\& Initial value P A Result String +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& 1234.01 \-3 1000 1000 +\& 1234 \-2 1200 1200 +\& 1234.5 \-1 1230 1230 +\& 1234.001 1 1234 1234.0 +\& 1234.01 0 1234 1234 +\& 1234.01 2 1234.01 1234.01 +\& 1234.01 5 1234.01 1234.01000 +.Ve +.PP +For Math::BigInt objects, no padding occurs. +.SS "Accuracy A" +.IX Subsection "Accuracy A" +Number of significant digits. Leading zeros are not counted. A number may have +an accuracy greater than the non-zero digits when there are zeros in it or +trailing zeros. For example, 123.456 has A of 6, 10203 has 5, 123.0506 has 7, +123.45000 has 8 and 0.000123 has 3. +.PP +The string output (of floating point numbers) is padded with zeros: +.PP +.Vb 5 +\& Initial value P A Result String +\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- +\& 1234.01 3 1230 1230 +\& 1234.01 6 1234.01 1234.01 +\& 1234.1 8 1234.1 1234.1000 +.Ve +.PP +For Math::BigInt objects, no padding occurs. +.SS "Fallback F" +.IX Subsection "Fallback F" +When both A and P are undefined, this is used as a fallback accuracy when +dividing numbers. +.SS "Rounding mode R" +.IX Subsection "Rounding mode R" +When rounding a number, different 'styles' or 'kinds' of rounding are possible. +(Note that random rounding, as in Math::Round, is not implemented.) +.PP +\fIDirected rounding\fR +.IX Subsection "Directed rounding" +.PP +These round modes always round in the same direction. +.IP "'trunc'" 4 +.IX Item "'trunc'" +Round towards zero. Remove all digits following the rounding place, i.e., +replace them with zeros. Thus, 987.65 rounded to tens (P=1) becomes 980, and +rounded to the fourth significant digit becomes 987.6 (A=4). 123.456 rounded to +the second place after the decimal point (P=\-2) becomes 123.46. This +corresponds to the \s-1IEEE 754\s0 rounding mode 'roundTowardZero'. +.PP +\fIRounding to nearest\fR +.IX Subsection "Rounding to nearest" +.PP +These rounding modes round to the nearest digit. They differ in how they +determine which way to round in the ambiguous case when there is a tie. +.IP "'even'" 4 +.IX Item "'even'" +Round towards the nearest even digit, e.g., when rounding to nearest integer, +\&\-5.5 becomes \-6, 4.5 becomes 4, but 4.501 becomes 5. This corresponds to the +\&\s-1IEEE 754\s0 rounding mode 'roundTiesToEven'. +.IP "'odd'" 4 +.IX Item "'odd'" +Round towards the nearest odd digit, e.g., when rounding to nearest integer, +4.5 becomes 5, \-5.5 becomes \-5, but 5.501 becomes 6. This corresponds to the +\&\s-1IEEE 754\s0 rounding mode 'roundTiesToOdd'. +.IP "'+inf'" 4 +.IX Item "'+inf'" +Round towards plus infinity, i.e., always round up. E.g., when rounding to the +nearest integer, 4.5 becomes 5, \-5.5 becomes \-5, and 4.501 also becomes 5. This +corresponds to the \s-1IEEE 754\s0 rounding mode 'roundTiesToPositive'. +.IP "'\-inf'" 4 +.IX Item "'-inf'" +Round towards minus infinity, i.e., always round down. E.g., when rounding to +the nearest integer, 4.5 becomes 4, \-5.5 becomes \-6, but 4.501 becomes 5. This +corresponds to the \s-1IEEE 754\s0 rounding mode 'roundTiesToNegative'. +.IP "'zero'" 4 +.IX Item "'zero'" +Round towards zero, i.e., round positive numbers down and negative numbers up. +E.g., when rounding to the nearest integer, 4.5 becomes 4, \-5.5 becomes \-5, but +4.501 becomes 5. This corresponds to the \s-1IEEE 754\s0 rounding mode +\&'roundTiesToZero'. +.IP "'common'" 4 +.IX Item "'common'" +Round away from zero, i.e., round to the number with the largest absolute +value. E.g., when rounding to the nearest integer, \-1.5 becomes \-2, 1.5 becomes +2 and 1.49 becomes 1. This corresponds to the \s-1IEEE 754\s0 rounding mode +\&'roundTiesToAway'. +.PP +The handling of A & P in \s-1MBI/MBF\s0 (the old core code shipped with Perl versions +<= 5.7.2) is like this: +.IP "Precision" 4 +.IX Item "Precision" +.Vb 3 +\& * bfround($p) is able to round to $p number of digits after the decimal +\& point +\& * otherwise P is unused +.Ve +.IP "Accuracy (significant digits)" 4 +.IX Item "Accuracy (significant digits)" +.Vb 10 +\& * bround($a) rounds to $a significant digits +\& * only bdiv() and bsqrt() take A as (optional) parameter +\& + other operations simply create the same number (bneg etc), or +\& more (bmul) of digits +\& + rounding/truncating is only done when explicitly calling one +\& of bround or bfround, and never for Math::BigInt (not implemented) +\& * bsqrt() simply hands its accuracy argument over to bdiv. +\& * the documentation and the comment in the code indicate two +\& different ways on how bdiv() determines the maximum number +\& of digits it should calculate, and the actual code does yet +\& another thing +\& POD: +\& max($Math::BigFloat::div_scale,length(dividend)+length(divisor)) +\& Comment: +\& result has at most max(scale, length(dividend), length(divisor)) digits +\& Actual code: +\& scale = max(scale, length(dividend)\-1,length(divisor)\-1); +\& scale += length(divisor) \- length(dividend); +\& So for lx = 3, ly = 9, scale = 10, scale will actually be 16 (10 +\& So for lx = 3, ly = 9, scale = 10, scale will actually be 16 +\& (10+9\-3). Actually, the \*(Aqdifference\*(Aq added to the scale is cal\- +\& culated from the number of "significant digits" in dividend and +\& divisor, which is derived by looking at the length of the man\- +\& tissa. Which is wrong, since it includes the + sign (oops) and +\& actually gets 2 for \*(Aq+100\*(Aq and 4 for \*(Aq+101\*(Aq. Oops again. Thus +\& 124/3 with div_scale=1 will get you \*(Aq41.3\*(Aq based on the strange +\& assumption that 124 has 3 significant digits, while 120/7 will +\& get you \*(Aq17\*(Aq, not \*(Aq17.1\*(Aq since 120 is thought to have 2 signif\- +\& icant digits. The rounding after the division then uses the +\& remainder and $y to determine whether it must round up or down. +\& ? I have no idea which is the right way. That\*(Aqs why I used a slightly more +\& ? simple scheme and tweaked the few failing testcases to match it. +.Ve +.PP +This is how it works now: +.IP "Setting/Accessing" 4 +.IX Item "Setting/Accessing" +.Vb 10 +\& * You can set the A global via Math::BigInt\->accuracy() or +\& Math::BigFloat\->accuracy() or whatever class you are using. +\& * You can also set P globally by using Math::SomeClass\->precision() +\& likewise. +\& * Globals are classwide, and not inherited by subclasses. +\& * to undefine A, use Math::SomeCLass\->accuracy(undef); +\& * to undefine P, use Math::SomeClass\->precision(undef); +\& * Setting Math::SomeClass\->accuracy() clears automatically +\& Math::SomeClass\->precision(), and vice versa. +\& * To be valid, A must be > 0, P can have any value. +\& * If P is negative, this means round to the P\*(Aqth place to the right of the +\& decimal point; positive values mean to the left of the decimal point. +\& P of 0 means round to integer. +\& * to find out the current global A, use Math::SomeClass\->accuracy() +\& * to find out the current global P, use Math::SomeClass\->precision() +\& * use $x\->accuracy() respective $x\->precision() for the local +\& setting of $x. +\& * Please note that $x\->accuracy() respective $x\->precision() +\& return eventually defined global A or P, when $x\*(Aqs A or P is not +\& set. +.Ve +.IP "Creating numbers" 4 +.IX Item "Creating numbers" +.Vb 12 +\& * When you create a number, you can give the desired A or P via: +\& $x = Math::BigInt\->new($number,$A,$P); +\& * Only one of A or P can be defined, otherwise the result is NaN +\& * If no A or P is give ($x = Math::BigInt\->new($number) form), then the +\& globals (if set) will be used. Thus changing the global defaults later on +\& will not change the A or P of previously created numbers (i.e., A and P of +\& $x will be what was in effect when $x was created) +\& * If given undef for A and P, NO rounding will occur, and the globals will +\& NOT be used. This is used by subclasses to create numbers without +\& suffering rounding in the parent. Thus a subclass is able to have its own +\& globals enforced upon creation of a number by using +\& $x = Math::BigInt\->new($number,undef,undef): +\& +\& use Math::BigInt::SomeSubclass; +\& use Math::BigInt; +\& +\& Math::BigInt\->accuracy(2); +\& Math::BigInt::SomeSubClass\->accuracy(3); +\& $x = Math::BigInt::SomeSubClass\->new(1234); +\& +\& $x is now 1230, and not 1200. A subclass might choose to implement +\& this otherwise, e.g. falling back to the parent\*(Aqs A and P. +.Ve +.IP "Usage" 4 +.IX Item "Usage" +.Vb 7 +\& * If A or P are enabled/defined, they are used to round the result of each +\& operation according to the rules below +\& * Negative P is ignored in Math::BigInt, since Math::BigInt objects never +\& have digits after the decimal point +\& * Math::BigFloat uses Math::BigInt internally, but setting A or P inside +\& Math::BigInt as globals does not tamper with the parts of a Math::BigFloat. +\& A flag is used to mark all Math::BigFloat numbers as \*(Aqnever round\*(Aq. +.Ve +.IP "Precedence" 4 +.IX Item "Precedence" +.Vb 10 +\& * It only makes sense that a number has only one of A or P at a time. +\& If you set either A or P on one object, or globally, the other one will +\& be automatically cleared. +\& * If two objects are involved in an operation, and one of them has A in +\& effect, and the other P, this results in an error (NaN). +\& * A takes precedence over P (Hint: A comes before P). +\& If neither of them is defined, nothing is used, i.e. the result will have +\& as many digits as it can (with an exception for bdiv/bsqrt) and will not +\& be rounded. +\& * There is another setting for bdiv() (and thus for bsqrt()). If neither of +\& A or P is defined, bdiv() will use a fallback (F) of $div_scale digits. +\& If either the dividend\*(Aqs or the divisor\*(Aqs mantissa has more digits than +\& the value of F, the higher value will be used instead of F. +\& This is to limit the digits (A) of the result (just consider what would +\& happen with unlimited A and P in the case of 1/3 :\-) +\& * bdiv will calculate (at least) 4 more digits than required (determined by +\& A, P or F), and, if F is not used, round the result +\& (this will still fail in the case of a result like 0.12345000000001 with A +\& or P of 5, but this can not be helped \- or can it?) +\& * Thus you can have the math done by on Math::Big* class in two modi: +\& + never round (this is the default): +\& This is done by setting A and P to undef. No math operation +\& will round the result, with bdiv() and bsqrt() as exceptions to guard +\& against overflows. You must explicitly call bround(), bfround() or +\& round() (the latter with parameters). +\& Note: Once you have rounded a number, the settings will \*(Aqstick\*(Aq on it +\& and \*(Aqinfect\*(Aq all other numbers engaged in math operations with it, since +\& local settings have the highest precedence. So, to get SaferRound[tm], +\& use a copy() before rounding like this: +\& +\& $x = Math::BigFloat\->new(12.34); +\& $y = Math::BigFloat\->new(98.76); +\& $z = $x * $y; # 1218.6984 +\& print $x\->copy()\->bround(3); # 12.3 (but A is now 3!) +\& $z = $x * $y; # still 1218.6984, without +\& # copy would have been 1210! +\& +\& + round after each op: +\& After each single operation (except for testing like is_zero()), the +\& method round() is called and the result is rounded appropriately. By +\& setting proper values for A and P, you can have all\-the\-same\-A or +\& all\-the\-same\-P modes. For example, Math::Currency might set A to undef, +\& and P to \-2, globally. +\& +\& ?Maybe an extra option that forbids local A & P settings would be in order, +\& ?so that intermediate rounding does not \*(Aqpoison\*(Aq further math? +.Ve +.IP "Overriding globals" 4 +.IX Item "Overriding globals" +.Vb 10 +\& * you will be able to give A, P and R as an argument to all the calculation +\& routines; the second parameter is A, the third one is P, and the fourth is +\& R (shift right by one for binary operations like badd). P is used only if +\& the first parameter (A) is undefined. These three parameters override the +\& globals in the order detailed as follows, i.e. the first defined value +\& wins: +\& (local: per object, global: global default, parameter: argument to sub) +\& + parameter A +\& + parameter P +\& + local A (if defined on both of the operands: smaller one is taken) +\& + local P (if defined on both of the operands: bigger one is taken) +\& + global A +\& + global P +\& + global F +\& * bsqrt() will hand its arguments to bdiv(), as it used to, only now for two +\& arguments (A and P) instead of one +.Ve +.IP "Local settings" 4 +.IX Item "Local settings" +.Vb 5 +\& * You can set A or P locally by using $x\->accuracy() or +\& $x\->precision() +\& and thus force different A and P for different objects/numbers. +\& * Setting A or P this way immediately rounds $x to the new value. +\& * $x\->accuracy() clears $x\->precision(), and vice versa. +.Ve +.IP "Rounding" 4 +.IX Item "Rounding" +.Vb 10 +\& * the rounding routines will use the respective global or local settings. +\& bround() is for accuracy rounding, while bfround() is for precision +\& * the two rounding functions take as the second parameter one of the +\& following rounding modes (R): +\& \*(Aqeven\*(Aq, \*(Aqodd\*(Aq, \*(Aq+inf\*(Aq, \*(Aq\-inf\*(Aq, \*(Aqzero\*(Aq, \*(Aqtrunc\*(Aq, \*(Aqcommon\*(Aq +\& * you can set/get the global R by using Math::SomeClass\->round_mode() +\& or by setting $Math::SomeClass::round_mode +\& * after each operation, $result\->round() is called, and the result may +\& eventually be rounded (that is, if A or P were set either locally, +\& globally or as parameter to the operation) +\& * to manually round a number, call $x\->round($A,$P,$round_mode); +\& this will round the number by using the appropriate rounding function +\& and then normalize it. +\& * rounding modifies the local settings of the number: +\& +\& $x = Math::BigFloat\->new(123.456); +\& $x\->accuracy(5); +\& $x\->bround(4); +\& +\& Here 4 takes precedence over 5, so 123.5 is the result and $x\->accuracy() +\& will be 4 from now on. +.Ve +.IP "Default values" 4 +.IX Item "Default values" +.Vb 4 +\& * R: \*(Aqeven\*(Aq +\& * F: 40 +\& * A: undef +\& * P: undef +.Ve +.IP "Remarks" 4 +.IX Item "Remarks" +.Vb 5 +\& * The defaults are set up so that the new code gives the same results as +\& the old code (except in a few cases on bdiv): +\& + Both A and P are undefined and thus will not be used for rounding +\& after each operation. +\& + round() is thus a no\-op, unless given extra parameters A and P +.Ve +.SH "Infinity and Not a Number" +.IX Header "Infinity and Not a Number" +While Math::BigInt has extensive handling of inf and NaN, certain quirks +remain. +.IP "\fBoct()\fR/\fBhex()\fR" 4 +.IX Item "oct()/hex()" +These perl routines currently (as of Perl v.5.8.6) cannot handle passed inf. +.Sp +.Vb 9 +\& te@linux:~> perl \-wle \*(Aqprint 2 ** 3333\*(Aq +\& Inf +\& te@linux:~> perl \-wle \*(Aqprint 2 ** 3333 == 2 ** 3333\*(Aq +\& 1 +\& te@linux:~> perl \-wle \*(Aqprint oct(2 ** 3333)\*(Aq +\& 0 +\& te@linux:~> perl \-wle \*(Aqprint hex(2 ** 3333)\*(Aq +\& Illegal hexadecimal digit \*(AqI\*(Aq ignored at \-e line 1. +\& 0 +.Ve +.Sp +The same problems occur if you pass them Math::BigInt\->\fBbinf()\fR objects. Since +overloading these routines is not possible, this cannot be fixed from +Math::BigInt. +.SH "INTERNALS" +.IX Header "INTERNALS" +You should neither care about nor depend on the internal representation; it +might change without notice. Use \fB\s-1ONLY\s0\fR method calls like \f(CW\*(C`$x\->sign();\*(C'\fR +instead relying on the internal representation. +.SS "\s-1MATH LIBRARY\s0" +.IX Subsection "MATH LIBRARY" +Math with the numbers is done (by default) by a module called +\&\f(CW\*(C`Math::BigInt::Calc\*(C'\fR. This is equivalent to saying: +.PP +.Vb 1 +\& use Math::BigInt try => \*(AqCalc\*(Aq; +.Ve +.PP +You can change this backend library by using: +.PP +.Vb 1 +\& use Math::BigInt try => \*(AqGMP\*(Aq; +.Ve +.PP +\&\fBNote\fR: General purpose packages should not be explicit about the library to +use; let the script author decide which is best. +.PP +If your script works with huge numbers and Calc is too slow for them, you can +also for the loading of one of these libraries and if none of them can be used, +the code dies: +.PP +.Vb 1 +\& use Math::BigInt only => \*(AqGMP,Pari\*(Aq; +.Ve +.PP +The following would first try to find Math::BigInt::Foo, then +Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc: +.PP +.Vb 1 +\& use Math::BigInt try => \*(AqFoo,Math::BigInt::Bar\*(Aq; +.Ve +.PP +The library that is loaded last is used. Note that this can be overwritten at +any time by loading a different library, and numbers constructed with different +libraries cannot be used in math operations together. +.PP +\fIWhat library to use?\fR +.IX Subsection "What library to use?" +.PP +\&\fBNote\fR: General purpose packages should not be explicit about the library to +use; let the script author decide which is best. +.PP +Math::BigInt::GMP and Math::BigInt::Pari are in cases involving big +numbers much faster than Calc, however it is slower when dealing with very +small numbers (less than about 20 digits) and when converting very large +numbers to decimal (for instance for printing, rounding, calculating their +length in decimal etc). +.PP +So please select carefully what library you want to use. +.PP +Different low-level libraries use different formats to store the numbers. +However, you should \fB\s-1NOT\s0\fR depend on the number having a specific format +internally. +.PP +See the respective math library module documentation for further details. +.SS "\s-1SIGN\s0" +.IX Subsection "SIGN" +The sign is either '+', '\-', 'NaN', '+inf' or '\-inf'. +.PP +A sign of 'NaN' is used to represent the result when input arguments are not +numbers or as a result of 0/0. '+inf' and '\-inf' represent plus respectively +minus infinity. You get '+inf' when dividing a positive number by 0, and '\-inf' +when dividing any negative number by 0. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +.Vb 1 +\& use Math::BigInt; +\& +\& sub bigint { Math::BigInt\->new(shift); } +\& +\& $x = Math::BigInt\->bstr("1234") # string "1234" +\& $x = "$x"; # same as bstr() +\& $x = Math::BigInt\->bneg("1234"); # Math::BigInt "\-1234" +\& $x = Math::BigInt\->babs("\-12345"); # Math::BigInt "12345" +\& $x = Math::BigInt\->bnorm("\-0.00"); # Math::BigInt "0" +\& $x = bigint(1) + bigint(2); # Math::BigInt "3" +\& $x = bigint(1) + "2"; # ditto (auto\-Math::BigIntify of "2") +\& $x = bigint(1); # Math::BigInt "1" +\& $x = $x + 5 / 2; # Math::BigInt "3" +\& $x = $x ** 3; # Math::BigInt "27" +\& $x *= 2; # Math::BigInt "54" +\& $x = Math::BigInt\->new(0); # Math::BigInt "0" +\& $x\-\-; # Math::BigInt "\-1" +\& $x = Math::BigInt\->badd(4,5) # Math::BigInt "9" +\& print $x\->bsstr(); # 9e+0 +.Ve +.PP +Examples for rounding: +.PP +.Vb 2 +\& use Math::BigFloat; +\& use Test::More; +\& +\& $x = Math::BigFloat\->new(123.4567); +\& $y = Math::BigFloat\->new(123.456789); +\& Math::BigFloat\->accuracy(4); # no more A than 4 +\& +\& is ($x\->copy()\->bround(),123.4); # even rounding +\& print $x\->copy()\->bround(),"\en"; # 123.4 +\& Math::BigFloat\->round_mode(\*(Aqodd\*(Aq); # round to odd +\& print $x\->copy()\->bround(),"\en"; # 123.5 +\& Math::BigFloat\->accuracy(5); # no more A than 5 +\& Math::BigFloat\->round_mode(\*(Aqodd\*(Aq); # round to odd +\& print $x\->copy()\->bround(),"\en"; # 123.46 +\& $y = $x\->copy()\->bround(4),"\en"; # A = 4: 123.4 +\& print "$y, ",$y\->accuracy(),"\en"; # 123.4, 4 +\& +\& Math::BigFloat\->accuracy(undef); # A not important now +\& Math::BigFloat\->precision(2); # P important +\& print $x\->copy()\->bnorm(),"\en"; # 123.46 +\& print $x\->copy()\->bround(),"\en"; # 123.46 +.Ve +.PP +Examples for converting: +.PP +.Vb 2 +\& my $x = Math::BigInt\->new(\*(Aq0b1\*(Aq.\*(Aq01\*(Aq x 123); +\& print "bin: ",$x\->as_bin()," hex:",$x\->as_hex()," dec: ",$x,"\en"; +.Ve +.SH "Autocreating constants" +.IX Header "Autocreating constants" +After \f(CW\*(C`use Math::BigInt \*(Aq:constant\*(Aq\*(C'\fR all the \fBinteger\fR decimal, hexadecimal +and binary constants in the given scope are converted to \f(CW\*(C`Math::BigInt\*(C'\fR. This +conversion happens at compile time. +.PP +In particular, +.PP +.Vb 1 +\& perl \-MMath::BigInt=:constant \-e \*(Aqprint 2**100,"\en"\*(Aq +.Ve +.PP +prints the integer value of \f(CW\*(C`2**100\*(C'\fR. Note that without conversion of +constants the expression 2**100 is calculated using Perl scalars. +.PP +Please note that strings and floating point constants are not affected, so that +.PP +.Vb 1 +\& use Math::BigInt qw/:constant/; +\& +\& $x = 1234567890123456789012345678901234567890 +\& + 123456789123456789; +\& $y = \*(Aq1234567890123456789012345678901234567890\*(Aq +\& + \*(Aq123456789123456789\*(Aq; +.Ve +.PP +does not give you what you expect. You need an explicit Math::BigInt\->\fBnew()\fR +around one of the operands. You should also quote large constants to protect +loss of precision: +.PP +.Vb 1 +\& use Math::BigInt; +\& +\& $x = Math::BigInt\->new(\*(Aq1234567889123456789123456789123456789\*(Aq); +.Ve +.PP +Without the quotes Perl would convert the large number to a floating point +constant at compile time and then hand the result to Math::BigInt, which +results in an truncated result or a NaN. +.PP +This also applies to integers that look like floating point constants: +.PP +.Vb 1 +\& use Math::BigInt \*(Aq:constant\*(Aq; +\& +\& print ref(123e2),"\en"; +\& print ref(123.2e2),"\en"; +.Ve +.PP +prints nothing but newlines. Use either bignum or Math::BigFloat to get +this to work. +.SH "PERFORMANCE" +.IX Header "PERFORMANCE" +Using the form \f(CW$x\fR += \f(CW$y\fR; etc over \f(CW$x\fR = \f(CW$x\fR + \f(CW$y\fR is faster, since a copy of \f(CW$x\fR +must be made in the second case. For long numbers, the copy can eat up to 20% +of the work (in the case of addition/subtraction, less for +multiplication/division). If \f(CW$y\fR is very small compared to \f(CW$x\fR, the form \f(CW$x\fR += \f(CW$y\fR +is \s-1MUCH\s0 faster than \f(CW$x\fR = \f(CW$x\fR + \f(CW$y\fR since making the copy of \f(CW$x\fR takes more time +then the actual addition. +.PP +With a technique called copy-on-write, the cost of copying with overload could +be minimized or even completely avoided. A test implementation of \s-1COW\s0 did show +performance gains for overloaded math, but introduced a performance loss due to +a constant overhead for all other operations. So Math::BigInt does currently +not \s-1COW.\s0 +.PP +The rewritten version of this module (vs. v0.01) is slower on certain +operations, like \f(CW\*(C`new()\*(C'\fR, \f(CW\*(C`bstr()\*(C'\fR and \f(CW\*(C`numify()\*(C'\fR. The reason are that it +does now more work and handles much more cases. The time spent in these +operations is usually gained in the other math operations so that code on the +average should get (much) faster. If they don't, please contact the author. +.PP +Some operations may be slower for small numbers, but are significantly faster +for big numbers. Other operations are now constant (O(1), like \f(CW\*(C`bneg()\*(C'\fR, +\&\f(CW\*(C`babs()\*(C'\fR etc), instead of O(N) and thus nearly always take much less time. +These optimizations were done on purpose. +.PP +If you find the Calc module to slow, try to install any of the replacement +modules and see if they help you. +.SS "Alternative math libraries" +.IX Subsection "Alternative math libraries" +You can use an alternative library to drive Math::BigInt. See the section +\&\*(L"\s-1MATH LIBRARY\*(R"\s0 for more information. +.PP +For more benchmark results see . +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +.SS "Subclassing Math::BigInt" +.IX Subsection "Subclassing Math::BigInt" +The basic design of Math::BigInt allows simple subclasses with very little +work, as long as a few simple rules are followed: +.IP "\(bu" 4 +The public \s-1API\s0 must remain consistent, i.e. if a sub-class is overloading +addition, the sub-class must use the same name, in this case \fBbadd()\fR. The reason +for this is that Math::BigInt is optimized to call the object methods directly. +.IP "\(bu" 4 +The private object hash keys like \f(CW\*(C`$x\->{sign}\*(C'\fR may not be changed, but +additional keys can be added, like \f(CW\*(C`$x\->{_custom}\*(C'\fR. +.IP "\(bu" 4 +Accessor functions are available for all existing object hash keys and should +be used instead of directly accessing the internal hash keys. The reason for +this is that Math::BigInt itself has a pluggable interface which permits it to +support different storage methods. +.PP +More complex sub-classes may have to replicate more of the logic internal of +Math::BigInt if they need to change more basic behaviors. A subclass that needs +to merely change the output only needs to overload \f(CW\*(C`bstr()\*(C'\fR. +.PP +All other object methods and overloaded functions can be directly inherited +from the parent class. +.PP +At the very minimum, any subclass needs to provide its own \f(CW\*(C`new()\*(C'\fR and can +store additional hash keys in the object. There are also some package globals +that must be defined, e.g.: +.PP +.Vb 5 +\& # Globals +\& $accuracy = undef; +\& $precision = \-2; # round to 2 decimal places +\& $round_mode = \*(Aqeven\*(Aq; +\& $div_scale = 40; +.Ve +.PP +Additionally, you might want to provide the following two globals to allow +auto-upgrading and auto-downgrading to work correctly: +.PP +.Vb 2 +\& $upgrade = undef; +\& $downgrade = undef; +.Ve +.PP +This allows Math::BigInt to correctly retrieve package globals from the +subclass, like \f(CW$SubClass::precision\fR. See t/Math/BigInt/Subclass.pm or +t/Math/BigFloat/SubClass.pm completely functional subclass examples. +.PP +Don't forget to +.PP +.Vb 1 +\& use overload; +.Ve +.PP +in your subclass to automatically inherit the overloading from the parent. If +you like, you can change part of the overloading, look at Math::String for an +example. +.SH "UPGRADING" +.IX Header "UPGRADING" +When used like this: +.PP +.Vb 1 +\& use Math::BigInt upgrade => \*(AqFoo::Bar\*(Aq; +.Ve +.PP +certain operations 'upgrade' their calculation and thus the result to the class +Foo::Bar. Usually this is used in conjunction with Math::BigFloat: +.PP +.Vb 1 +\& use Math::BigInt upgrade => \*(AqMath::BigFloat\*(Aq; +.Ve +.PP +As a shortcut, you can use the module bignum: +.PP +.Vb 1 +\& use bignum; +.Ve +.PP +Also good for one-liners: +.PP +.Vb 1 +\& perl \-Mbignum \-le \*(Aqprint 2 ** 255\*(Aq +.Ve +.PP +This makes it possible to mix arguments of different classes (as in 2.5 + 2) as +well es preserve accuracy (as in \fBsqrt\fR\|(3)). +.PP +Beware: This feature is not fully implemented yet. +.SS "Auto-upgrade" +.IX Subsection "Auto-upgrade" +The following methods upgrade themselves unconditionally; that is if upgrade is +in effect, they always hands up their work: +.PP +.Vb 1 +\& div bsqrt blog bexp bpi bsin bcos batan batan2 +.Ve +.PP +All other methods upgrade themselves only when one (or all) of their arguments +are of the class mentioned in \f(CW$upgrade\fR. +.SH "EXPORTS" +.IX Header "EXPORTS" +\&\f(CW\*(C`Math::BigInt\*(C'\fR exports nothing by default, but can export the following +methods: +.PP +.Vb 2 +\& bgcd +\& blcm +.Ve +.SH "CAVEATS" +.IX Header "CAVEATS" +Some things might not work as you expect them. Below is documented what is +known to be troublesome: +.IP "Comparing numbers as strings" 4 +.IX Item "Comparing numbers as strings" +Both \f(CW\*(C`bstr()\*(C'\fR and \f(CW\*(C`bsstr()\*(C'\fR as well as stringify via overload drop the +leading '+'. This is to be consistent with Perl and to make \f(CW\*(C`cmp\*(C'\fR (especially +with overloading) to work as you expect. It also solves problems with +\&\f(CW\*(C`Test.pm\*(C'\fR and Test::More, which stringify arguments before comparing them. +.Sp +Mark Biggar said, when asked about to drop the '+' altogether, or make only +\&\f(CW\*(C`cmp\*(C'\fR work: +.Sp +.Vb 4 +\& I agree (with the first alternative), don\*(Aqt add the \*(Aq+\*(Aq on positive +\& numbers. It\*(Aqs not as important anymore with the new internal form +\& for numbers. It made doing things like abs and neg easier, but +\& those have to be done differently now anyway. +.Ve +.Sp +So, the following examples now works as expected: +.Sp +.Vb 2 +\& use Test::More tests => 1; +\& use Math::BigInt; +\& +\& my $x = Math::BigInt \-> new(3*3); +\& my $y = Math::BigInt \-> new(3*3); +\& +\& is($x,3*3, \*(Aqmultiplication\*(Aq); +\& print "$x eq 9" if $x eq $y; +\& print "$x eq 9" if $x eq \*(Aq9\*(Aq; +\& print "$x eq 9" if $x eq 3*3; +.Ve +.Sp +Additionally, the following still works: +.Sp +.Vb 3 +\& print "$x == 9" if $x == $y; +\& print "$x == 9" if $x == 9; +\& print "$x == 9" if $x == 3*3; +.Ve +.Sp +There is now a \f(CW\*(C`bsstr()\*(C'\fR method to get the string in scientific notation aka +\&\f(CW1e+2\fR instead of \f(CW100\fR. Be advised that overloaded 'eq' always uses \fBbstr()\fR +for comparison, but Perl represents some numbers as 100 and others as 1e+308. +If in doubt, convert both arguments to Math::BigInt before comparing them as +strings: +.Sp +.Vb 2 +\& use Test::More tests => 3; +\& use Math::BigInt; +\& +\& $x = Math::BigInt\->new(\*(Aq1e56\*(Aq); $y = 1e56; +\& is($x,$y); # fails +\& is($x\->bsstr(),$y); # okay +\& $y = Math::BigInt\->new($y); +\& is($x,$y); # okay +.Ve +.Sp +Alternatively, simply use \f(CW\*(C`<=>\*(C'\fR for comparisons, this always gets it +right. There is not yet a way to get a number automatically represented as a +string that matches exactly the way Perl represents it. +.Sp +See also the section about \*(L"Infinity and Not a Number\*(R" for problems in +comparing NaNs. +.IP "\fBint()\fR" 4 +.IX Item "int()" +\&\f(CW\*(C`int()\*(C'\fR returns (at least for Perl v5.7.1 and up) another Math::BigInt, not a +Perl scalar: +.Sp +.Vb 4 +\& $x = Math::BigInt\->new(123); +\& $y = int($x); # 123 as a Math::BigInt +\& $x = Math::BigFloat\->new(123.45); +\& $y = int($x); # 123 as a Math::BigFloat +.Ve +.Sp +If you want a real Perl scalar, use \f(CW\*(C`numify()\*(C'\fR: +.Sp +.Vb 1 +\& $y = $x\->numify(); # 123 as a scalar +.Ve +.Sp +This is seldom necessary, though, because this is done automatically, like when +you access an array: +.Sp +.Vb 1 +\& $z = $array[$x]; # does work automatically +.Ve +.IP "Modifying and =" 4 +.IX Item "Modifying and =" +Beware of: +.Sp +.Vb 2 +\& $x = Math::BigFloat\->new(5); +\& $y = $x; +.Ve +.Sp +This makes a second reference to the \fBsame\fR object and stores it in \f(CW$y\fR. Thus +anything that modifies \f(CW$x\fR (except overloaded operators) also modifies \f(CW$y\fR, and +vice versa. Or in other words, \f(CW\*(C`=\*(C'\fR is only safe if you modify your +Math::BigInt objects only via overloaded math. As soon as you use a method call +it breaks: +.Sp +.Vb 2 +\& $x\->bmul(2); +\& print "$x, $y\en"; # prints \*(Aq10, 10\*(Aq +.Ve +.Sp +If you want a true copy of \f(CW$x\fR, use: +.Sp +.Vb 1 +\& $y = $x\->copy(); +.Ve +.Sp +You can also chain the calls like this, this first makes a copy and then +multiply it by 2: +.Sp +.Vb 1 +\& $y = $x\->copy()\->bmul(2); +.Ve +.Sp +See also the documentation for overload.pm regarding \f(CW\*(C`=\*(C'\fR. +.IP "Overloading \-$x" 4 +.IX Item "Overloading -$x" +The following: +.Sp +.Vb 1 +\& $x = \-$x; +.Ve +.Sp +is slower than +.Sp +.Vb 1 +\& $x\->bneg(); +.Ve +.Sp +since overload calls \f(CW\*(C`sub($x,0,1);\*(C'\fR instead of \f(CW\*(C`neg($x)\*(C'\fR. The first variant +needs to preserve \f(CW$x\fR since it does not know that it later gets overwritten. +This makes a copy of \f(CW$x\fR and takes O(N), but \f(CW$x\fR\->\fBbneg()\fR is O(1). +.IP "Mixing different object types" 4 +.IX Item "Mixing different object types" +With overloaded operators, it is the first (dominating) operand that determines +which method is called. Here are some examples showing what actually gets +called in various cases. +.Sp +.Vb 2 +\& use Math::BigInt; +\& use Math::BigFloat; +\& +\& $mbf = Math::BigFloat\->new(5); +\& $mbi2 = Math::BigInt\->new(5); +\& $mbi = Math::BigInt\->new(2); +\& # what actually gets called: +\& $float = $mbf + $mbi; # $mbf\->badd($mbi) +\& $float = $mbf / $mbi; # $mbf\->bdiv($mbi) +\& $integer = $mbi + $mbf; # $mbi\->badd($mbf) +\& $integer = $mbi2 / $mbi; # $mbi2\->bdiv($mbi) +\& $integer = $mbi2 / $mbf; # $mbi2\->bdiv($mbf) +.Ve +.Sp +For instance, Math::BigInt\->\fBbdiv()\fR always returns a Math::BigInt, regardless of +whether the second operant is a Math::BigFloat. To get a Math::BigFloat you +either need to call the operation manually, make sure each operand already is a +Math::BigFloat, or cast to that type via Math::BigFloat\->\fBnew()\fR: +.Sp +.Vb 1 +\& $float = Math::BigFloat\->new($mbi2) / $mbi; # = 2.5 +.Ve +.Sp +Beware of casting the entire expression, as this would cast the +result, at which point it is too late: +.Sp +.Vb 1 +\& $float = Math::BigFloat\->new($mbi2 / $mbi); # = 2 +.Ve +.Sp +Beware also of the order of more complicated expressions like: +.Sp +.Vb 2 +\& $integer = ($mbi2 + $mbi) / $mbf; # int / float => int +\& $integer = $mbi2 / Math::BigFloat\->new($mbi); # ditto +.Ve +.Sp +If in doubt, break the expression into simpler terms, or cast all operands +to the desired resulting type. +.Sp +Scalar values are a bit different, since: +.Sp +.Vb 2 +\& $float = 2 + $mbf; +\& $float = $mbf + 2; +.Ve +.Sp +both result in the proper type due to the way the overloaded math works. +.Sp +This section also applies to other overloaded math packages, like Math::String. +.Sp +One solution to you problem might be autoupgrading|upgrading. See the +pragmas bignum, bigint and bigrat for an easy way to do this. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests to +\&\f(CW\*(C`bug\-math\-bigint at rt.cpan.org\*(C'\fR, or through the web interface at + (requires login). +We will be notified, and then you'll automatically be notified of progress on +your bug as I make changes. +.SH "SUPPORT" +.IX Header "SUPPORT" +You can find documentation for this module with the perldoc command. +.PP +.Vb 1 +\& perldoc Math::BigInt +.Ve +.PP +You can also look for information at: +.IP "\(bu" 4 +\&\s-1RT: CPAN\s0's request tracker +.Sp + +.IP "\(bu" 4 +AnnoCPAN: Annotated \s-1CPAN\s0 documentation +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Ratings +.Sp + +.IP "\(bu" 4 +MetaCPAN +.Sp + +.IP "\(bu" 4 +\&\s-1CPAN\s0 Testers Matrix +.Sp + +.IP "\(bu" 4 +The Bignum mailing list +.RS 4 +.IP "\(bu" 4 +Post to mailing list +.Sp +\&\f(CW\*(C`bignum at lists.scsys.co.uk\*(C'\fR +.IP "\(bu" 4 +View mailing list +.Sp + +.IP "\(bu" 4 +Subscribe/Unsubscribe +.Sp + +.RE +.RS 4 +.RE +.SH "LICENSE" +.IX Header "LICENSE" +This program is free software; you may redistribute it and/or modify it under +the same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Math::BigFloat and Math::BigRat as well as the backends +Math::BigInt::FastCalc, Math::BigInt::GMP, and Math::BigInt::Pari. +.PP +The pragmas bignum, bigint and bigrat also might be of interest +because they solve the autoupgrading/downgrading issue, at least partly. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +Mark Biggar, overloaded interface by Ilya Zakharevich, 1996\-2001. +.IP "\(bu" 4 +Completely rewritten by Tels , 2001\-2008. +.IP "\(bu" 4 +Florian Ragwitz , 2010. +.IP "\(bu" 4 +Peter John Acklam , 2011\-. +.PP +Many people contributed in one or more ways to the final beast, see the file +\&\s-1CREDITS\s0 for an (incomplete) list. If you miss your name, please drop me a +mail. Thank you! diff --git a/data/miniconda3/man/man3/Memoize.3 b/data/miniconda3/man/man3/Memoize.3 new file mode 100644 index 0000000000000000000000000000000000000000..f439e935596f878c7f0a9e8b406c6c313e80a640 --- /dev/null +++ b/data/miniconda3/man/man3/Memoize.3 @@ -0,0 +1,919 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Memoize 3" +.TH Memoize 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Memoize \- Make functions faster by trading space for time +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 4 +\& # This is the documentation for Memoize 1.03 +\& use Memoize; +\& memoize(\*(Aqslow_function\*(Aq); +\& slow_function(arguments); # Is faster than it was before +.Ve +.PP +This is normally all you need to know. However, many options are available: +.PP +.Vb 1 +\& memoize(function, options...); +.Ve +.PP +Options include: +.PP +.Vb 2 +\& NORMALIZER => function +\& INSTALL => new_name +\& +\& SCALAR_CACHE => \*(AqMEMORY\*(Aq +\& SCALAR_CACHE => [\*(AqHASH\*(Aq, \e%cache_hash ] +\& SCALAR_CACHE => \*(AqFAULT\*(Aq +\& SCALAR_CACHE => \*(AqMERGE\*(Aq +\& +\& LIST_CACHE => \*(AqMEMORY\*(Aq +\& LIST_CACHE => [\*(AqHASH\*(Aq, \e%cache_hash ] +\& LIST_CACHE => \*(AqFAULT\*(Aq +\& LIST_CACHE => \*(AqMERGE\*(Aq +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +`Memoizing' a function makes it faster by trading space for time. It +does this by caching the return values of the function in a table. +If you call the function again with the same arguments, \f(CW\*(C`memoize\*(C'\fR +jumps in and gives you the value out of the table, instead of letting +the function compute the value all over again. +.PP +Here is an extreme example. Consider the Fibonacci sequence, defined +by the following function: +.PP +.Vb 6 +\& # Compute Fibonacci numbers +\& sub fib { +\& my $n = shift; +\& return $n if $n < 2; +\& fib($n\-1) + fib($n\-2); +\& } +.Ve +.PP +This function is very slow. Why? To compute fib(14), it first wants +to compute fib(13) and fib(12), and add the results. But to compute +fib(13), it first has to compute fib(12) and fib(11), and then it +comes back and computes fib(12) all over again even though the answer +is the same. And both of the times that it wants to compute fib(12), +it has to compute fib(11) from scratch, and then it has to do it +again each time it wants to compute fib(13). This function does so +much recomputing of old results that it takes a really long time to +run\-\-\-fib(14) makes 1,200 extra recursive calls to itself, to compute +and recompute things that it already computed. +.PP +This function is a good candidate for memoization. If you memoize the +`fib' function above, it will compute fib(14) exactly once, the first +time it needs to, and then save the result in a table. Then if you +ask for fib(14) again, it gives you the result out of the table. +While computing fib(14), instead of computing fib(12) twice, it does +it once; the second time it needs the value it gets it from the table. +It doesn't compute fib(11) four times; it computes it once, getting it +from the table the next three times. Instead of making 1,200 +recursive calls to `fib', it makes 15. This makes the function about +150 times faster. +.PP +You could do the memoization yourself, by rewriting the function, like +this: +.PP +.Vb 9 +\& # Compute Fibonacci numbers, memoized version +\& { my @fib; +\& sub fib { +\& my $n = shift; +\& return $fib[$n] if defined $fib[$n]; +\& return $fib[$n] = $n if $n < 2; +\& $fib[$n] = fib($n\-1) + fib($n\-2); +\& } +\& } +.Ve +.PP +Or you could use this module, like this: +.PP +.Vb 2 +\& use Memoize; +\& memoize(\*(Aqfib\*(Aq); +\& +\& # Rest of the fib function just like the original version. +.Ve +.PP +This makes it easy to turn memoizing on and off. +.PP +Here's an even simpler example: I wrote a simple ray tracer; the +program would look in a certain direction, figure out what it was +looking at, and then convert the `color' value (typically a string +like `red') of that object to a red, green, and blue pixel value, like +this: +.PP +.Vb 6 +\& for ($direction = 0; $direction < 300; $direction++) { +\& # Figure out which object is in direction $direction +\& $color = $object\->{color}; +\& ($r, $g, $b) = @{&ColorToRGB($color)}; +\& ... +\& } +.Ve +.PP +Since there are relatively few objects in a picture, there are only a +few colors, which get looked up over and over again. Memoizing +\&\f(CW\*(C`ColorToRGB\*(C'\fR sped up the program by several percent. +.SH "DETAILS" +.IX Header "DETAILS" +This module exports exactly one function, \f(CW\*(C`memoize\*(C'\fR. The rest of the +functions in this package are None of Your Business. +.PP +You should say +.PP +.Vb 1 +\& memoize(function) +.Ve +.PP +where \f(CW\*(C`function\*(C'\fR is the name of the function you want to memoize, or +a reference to it. \f(CW\*(C`memoize\*(C'\fR returns a reference to the new, +memoized version of the function, or \f(CW\*(C`undef\*(C'\fR on a non-fatal error. +At present, there are no non-fatal errors, but there might be some in +the future. +.PP +If \f(CW\*(C`function\*(C'\fR was the name of a function, then \f(CW\*(C`memoize\*(C'\fR hides the +old version and installs the new memoized version under the old name, +so that \f(CW\*(C`&function(...)\*(C'\fR actually invokes the memoized version. +.SH "OPTIONS" +.IX Header "OPTIONS" +There are some optional options you can pass to \f(CW\*(C`memoize\*(C'\fR to change +the way it behaves a little. To supply options, invoke \f(CW\*(C`memoize\*(C'\fR +like this: +.PP +.Vb 5 +\& memoize(function, NORMALIZER => function, +\& INSTALL => newname, +\& SCALAR_CACHE => option, +\& LIST_CACHE => option +\& ); +.Ve +.PP +Each of these options is optional; you can include some, all, or none +of them. +.SS "\s-1INSTALL\s0" +.IX Subsection "INSTALL" +If you supply a function name with \f(CW\*(C`INSTALL\*(C'\fR, memoize will install +the new, memoized version of the function under the name you give. +For example, +.PP +.Vb 1 +\& memoize(\*(Aqfib\*(Aq, INSTALL => \*(Aqfastfib\*(Aq) +.Ve +.PP +installs the memoized version of \f(CW\*(C`fib\*(C'\fR as \f(CW\*(C`fastfib\*(C'\fR; without the +\&\f(CW\*(C`INSTALL\*(C'\fR option it would have replaced the old \f(CW\*(C`fib\*(C'\fR with the +memoized version. +.PP +To prevent \f(CW\*(C`memoize\*(C'\fR from installing the memoized version anywhere, use +\&\f(CW\*(C`INSTALL => undef\*(C'\fR. +.SS "\s-1NORMALIZER\s0" +.IX Subsection "NORMALIZER" +Suppose your function looks like this: +.PP +.Vb 6 +\& # Typical call: f(\*(Aqaha!\*(Aq, A => 11, B => 12); +\& sub f { +\& my $a = shift; +\& my %hash = @_; +\& $hash{B} ||= 2; # B defaults to 2 +\& $hash{C} ||= 7; # C defaults to 7 +\& +\& # Do something with $a, %hash +\& } +.Ve +.PP +Now, the following calls to your function are all completely equivalent: +.PP +.Vb 6 +\& f(OUCH); +\& f(OUCH, B => 2); +\& f(OUCH, C => 7); +\& f(OUCH, B => 2, C => 7); +\& f(OUCH, C => 7, B => 2); +\& (etc.) +.Ve +.PP +However, unless you tell \f(CW\*(C`Memoize\*(C'\fR that these calls are equivalent, +it will not know that, and it will compute the values for these +invocations of your function separately, and store them separately. +.PP +To prevent this, supply a \f(CW\*(C`NORMALIZER\*(C'\fR function that turns the +program arguments into a string in a way that equivalent arguments +turn into the same string. A \f(CW\*(C`NORMALIZER\*(C'\fR function for \f(CW\*(C`f\*(C'\fR above +might look like this: +.PP +.Vb 5 +\& sub normalize_f { +\& my $a = shift; +\& my %hash = @_; +\& $hash{B} ||= 2; +\& $hash{C} ||= 7; +\& +\& join(\*(Aq,\*(Aq, $a, map ($_ => $hash{$_}) sort keys %hash); +\& } +.Ve +.PP +Each of the argument lists above comes out of the \f(CW\*(C`normalize_f\*(C'\fR +function looking exactly the same, like this: +.PP +.Vb 1 +\& OUCH,B,2,C,7 +.Ve +.PP +You would tell \f(CW\*(C`Memoize\*(C'\fR to use this normalizer this way: +.PP +.Vb 1 +\& memoize(\*(Aqf\*(Aq, NORMALIZER => \*(Aqnormalize_f\*(Aq); +.Ve +.PP +\&\f(CW\*(C`memoize\*(C'\fR knows that if the normalized version of the arguments is +the same for two argument lists, then it can safely look up the value +that it computed for one argument list and return it as the result of +calling the function with the other argument list, even if the +argument lists look different. +.PP +The default normalizer just concatenates the arguments with character +28 in between. (In \s-1ASCII,\s0 this is called \s-1FS\s0 or control\-\e.) This +always works correctly for functions with only one string argument, +and also when the arguments never contain character 28. However, it +can confuse certain argument lists: +.PP +.Vb 3 +\& normalizer("a\e034", "b") +\& normalizer("a", "\e034b") +\& normalizer("a\e034\e034b") +.Ve +.PP +for example. +.PP +Since hash keys are strings, the default normalizer will not +distinguish between \f(CW\*(C`undef\*(C'\fR and the empty string. It also won't work +when the function's arguments are references. For example, consider a +function \f(CW\*(C`g\*(C'\fR which gets two arguments: A number, and a reference to +an array of numbers: +.PP +.Vb 1 +\& g(13, [1,2,3,4,5,6,7]); +.Ve +.PP +The default normalizer will turn this into something like +\&\f(CW"13\e034ARRAY(0x436c1f)"\fR. That would be all right, except that a +subsequent array of numbers might be stored at a different location +even though it contains the same data. If this happens, \f(CW\*(C`Memoize\*(C'\fR +will think that the arguments are different, even though they are +equivalent. In this case, a normalizer like this is appropriate: +.PP +.Vb 1 +\& sub normalize { join \*(Aq \*(Aq, $_[0], @{$_[1]} } +.Ve +.PP +For the example above, this produces the key \*(L"13 1 2 3 4 5 6 7\*(R". +.PP +Another use for normalizers is when the function depends on data other +than those in its arguments. Suppose you have a function which +returns a value which depends on the current hour of the day: +.PP +.Vb 10 +\& sub on_duty { +\& my ($problem_type) = @_; +\& my $hour = (localtime)[2]; +\& open my $fh, "$DIR/$problem_type" or die...; +\& my $line; +\& while ($hour\-\- > 0) +\& $line = <$fh>; +\& } +\& return $line; +\& } +.Ve +.PP +At 10:23, this function generates the 10th line of a data file; at +3:45 \s-1PM\s0 it generates the 15th line instead. By default, \f(CW\*(C`Memoize\*(C'\fR +will only see the \f(CW$problem_type\fR argument. To fix this, include the +current hour in the normalizer: +.PP +.Vb 1 +\& sub normalize { join \*(Aq \*(Aq, (localtime)[2], @_ } +.Ve +.PP +The calling context of the function (scalar or list context) is +propagated to the normalizer. This means that if the memoized +function will treat its arguments differently in list context than it +would in scalar context, you can have the normalizer function select +its behavior based on the results of \f(CW\*(C`wantarray\*(C'\fR. Even if called in +a list context, a normalizer should still return a single string. +.ie n .SS """SCALAR_CACHE"", ""LIST_CACHE""" +.el .SS "\f(CWSCALAR_CACHE\fP, \f(CWLIST_CACHE\fP" +.IX Subsection "SCALAR_CACHE, LIST_CACHE" +Normally, \f(CW\*(C`Memoize\*(C'\fR caches your function's return values into an +ordinary Perl hash variable. However, you might like to have the +values cached on the disk, so that they persist from one run of your +program to the next, or you might like to associate some other +interesting semantics with the cached values. +.PP +There's a slight complication under the hood of \f(CW\*(C`Memoize\*(C'\fR: There are +actually \fItwo\fR caches, one for scalar values and one for list values. +When your function is called in scalar context, its return value is +cached in one hash, and when your function is called in list context, +its value is cached in the other hash. You can control the caching +behavior of both contexts independently with these options. +.PP +The argument to \f(CW\*(C`LIST_CACHE\*(C'\fR or \f(CW\*(C`SCALAR_CACHE\*(C'\fR must either be one of +the following four strings: +.PP +.Vb 4 +\& MEMORY +\& FAULT +\& MERGE +\& HASH +.Ve +.PP +or else it must be a reference to an array whose first element is one of +these four strings, such as \f(CW\*(C`[HASH, arguments...]\*(C'\fR. +.ie n .IP """MEMORY""" 4 +.el .IP "\f(CWMEMORY\fR" 4 +.IX Item "MEMORY" +\&\f(CW\*(C`MEMORY\*(C'\fR means that return values from the function will be cached in +an ordinary Perl hash variable. The hash variable will not persist +after the program exits. This is the default. +.ie n .IP """HASH""" 4 +.el .IP "\f(CWHASH\fR" 4 +.IX Item "HASH" +\&\f(CW\*(C`HASH\*(C'\fR allows you to specify that a particular hash that you supply +will be used as the cache. You can tie this hash beforehand to give +it any behavior you want. +.Sp +A tied hash can have any semantics at all. It is typically tied to an +on-disk database, so that cached values are stored in the database and +retrieved from it again when needed, and the disk file typically +persists after your program has exited. See \f(CW\*(C`perltie\*(C'\fR for more +complete details about \f(CW\*(C`tie\*(C'\fR. +.Sp +A typical example is: +.Sp +.Vb 3 +\& use DB_File; +\& tie my %cache => \*(AqDB_File\*(Aq, $filename, O_RDWR|O_CREAT, 0666; +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache]; +.Ve +.Sp +This has the effect of storing the cache in a \f(CW\*(C`DB_File\*(C'\fR database +whose name is in \f(CW$filename\fR. The cache will persist after the +program has exited. Next time the program runs, it will find the +cache already populated from the previous run of the program. Or you +can forcibly populate the cache by constructing a batch program that +runs in the background and populates the cache file. Then when you +come to run your real program the memoized function will be fast +because all its results have been precomputed. +.Sp +Another reason to use \f(CW\*(C`HASH\*(C'\fR is to provide your own hash variable. +You can then inspect or modify the contents of the hash to gain finer +control over the cache management. +.ie n .IP """TIE""" 4 +.el .IP "\f(CWTIE\fR" 4 +.IX Item "TIE" +This option is no longer supported. It is still documented only to +aid in the debugging of old programs that use it. Old programs should +be converted to use the \f(CW\*(C`HASH\*(C'\fR option instead. +.Sp +.Vb 1 +\& memoize ... [\*(AqTIE\*(Aq, PACKAGE, ARGS...] +.Ve +.Sp +is merely a shortcut for +.Sp +.Vb 4 +\& require PACKAGE; +\& { tie my %cache, PACKAGE, ARGS...; +\& memoize ... [HASH => \e%cache]; +\& } +.Ve +.ie n .IP """FAULT""" 4 +.el .IP "\f(CWFAULT\fR" 4 +.IX Item "FAULT" +\&\f(CW\*(C`FAULT\*(C'\fR means that you never expect to call the function in scalar +(or list) context, and that if \f(CW\*(C`Memoize\*(C'\fR detects such a call, it +should abort the program. The error message is one of +.Sp +.Vb 2 +\& \`foo\*(Aq function called in forbidden list context at line ... +\& \`foo\*(Aq function called in forbidden scalar context at line ... +.Ve +.ie n .IP """MERGE""" 4 +.el .IP "\f(CWMERGE\fR" 4 +.IX Item "MERGE" +\&\f(CW\*(C`MERGE\*(C'\fR normally means that the memoized function does not +distinguish between list and sclar context, and that return values in +both contexts should be stored together. Both \f(CW\*(C`LIST_CACHE => +MERGE\*(C'\fR and \f(CW\*(C`SCALAR_CACHE => MERGE\*(C'\fR mean the same thing. +.Sp +Consider this function: +.Sp +.Vb 4 +\& sub complicated { +\& # ... time\-consuming calculation of $result +\& return $result; +\& } +.Ve +.Sp +The \f(CW\*(C`complicated\*(C'\fR function will return the same numeric \f(CW$result\fR +regardless of whether it is called in list or in scalar context. +.Sp +Normally, the following code will result in two calls to \f(CW\*(C`complicated\*(C'\fR, even +if \f(CW\*(C`complicated\*(C'\fR is memoized: +.Sp +.Vb 3 +\& $x = complicated(142); +\& ($y) = complicated(142); +\& $z = complicated(142); +.Ve +.Sp +The first call will cache the result, say 37, in the scalar cache; the +second will cach the list \f(CW\*(C`(37)\*(C'\fR in the list cache. The third call +doesn't call the real \f(CW\*(C`complicated\*(C'\fR function; it gets the value 37 +from the scalar cache. +.Sp +Obviously, the second call to \f(CW\*(C`complicated\*(C'\fR is a waste of time, and +storing its return value is a waste of space. Specifying \f(CW\*(C`LIST_CACHE +=> MERGE\*(C'\fR will make \f(CW\*(C`memoize\*(C'\fR use the same cache for scalar and +list context return values, so that the second call uses the scalar +cache that was populated by the first call. \f(CW\*(C`complicated\*(C'\fR ends up +being called only once, and both subsequent calls return \f(CW3\fR from the +cache, regardless of the calling context. +.PP +\fIList values in scalar context\fR +.IX Subsection "List values in scalar context" +.PP +Consider this function: +.PP +.Vb 1 +\& sub iota { return reverse (1..$_[0]) } +.Ve +.PP +This function normally returns a list. Suppose you memoize it and +merge the caches: +.PP +.Vb 1 +\& memoize \*(Aqiota\*(Aq, SCALAR_CACHE => \*(AqMERGE\*(Aq; +\& +\& @i7 = iota(7); +\& $i7 = iota(7); +.Ve +.PP +Here the first call caches the list (1,2,3,4,5,6,7). The second call +does not really make sense. \f(CW\*(C`Memoize\*(C'\fR cannot guess what behavior +\&\f(CW\*(C`iota\*(C'\fR should have in scalar context without actually calling it in +scalar context. Normally \f(CW\*(C`Memoize\*(C'\fR \fIwould\fR call \f(CW\*(C`iota\*(C'\fR in scalar +context and cache the result, but the \f(CW\*(C`SCALAR_CACHE => \*(AqMERGE\*(Aq\*(C'\fR +option says not to do that, but to use the cache list-context value +instead. But it cannot return a list of seven elements in a scalar +context. In this case \f(CW$i7\fR will receive the \fBfirst element\fR of the +cached list value, namely 7. +.PP +\fIMerged disk caches\fR +.IX Subsection "Merged disk caches" +.PP +Another use for \f(CW\*(C`MERGE\*(C'\fR is when you want both kinds of return values +stored in the same disk file; this saves you from having to deal with +two disk files instead of one. You can use a normalizer function to +keep the two sets of return values separate. For example: +.PP +.Vb 1 +\& tie my %cache => \*(AqMLDBM\*(Aq, \*(AqDB_File\*(Aq, $filename, ...; +\& +\& memoize \*(Aqmyfunc\*(Aq, +\& NORMALIZER => \*(Aqn\*(Aq, +\& SCALAR_CACHE => [HASH => \e%cache], +\& LIST_CACHE => \*(AqMERGE\*(Aq, +\& ; +\& +\& sub n { +\& my $context = wantarray() ? \*(AqL\*(Aq : \*(AqS\*(Aq; +\& # ... now compute the hash key from the arguments ... +\& $hashkey = "$context:$hashkey"; +\& } +.Ve +.PP +This normalizer function will store scalar context return values in +the disk file under keys that begin with \f(CW\*(C`S:\*(C'\fR, and list context +return values under keys that begin with \f(CW\*(C`L:\*(C'\fR. +.SH "OTHER FACILITIES" +.IX Header "OTHER FACILITIES" +.ie n .SS """unmemoize""" +.el .SS "\f(CWunmemoize\fP" +.IX Subsection "unmemoize" +There's an \f(CW\*(C`unmemoize\*(C'\fR function that you can import if you want to. +Why would you want to? Here's an example: Suppose you have your cache +tied to a \s-1DBM\s0 file, and you want to make sure that the cache is +written out to disk if someone interrupts the program. If the program +exits normally, this will happen anyway, but if someone types +control-C or something then the program will terminate immediately +without synchronizing the database. So what you can do instead is +.PP +.Vb 1 +\& $SIG{INT} = sub { unmemoize \*(Aqfunction\*(Aq }; +.Ve +.PP +\&\f(CW\*(C`unmemoize\*(C'\fR accepts a reference to, or the name of a previously +memoized function, and undoes whatever it did to provide the memoized +version in the first place, including making the name refer to the +unmemoized version if appropriate. It returns a reference to the +unmemoized version of the function. +.PP +If you ask it to unmemoize a function that was never memoized, it +croaks. +.ie n .SS """flush_cache""" +.el .SS "\f(CWflush_cache\fP" +.IX Subsection "flush_cache" +\&\f(CW\*(C`flush_cache(function)\*(C'\fR will flush out the caches, discarding \fIall\fR +the cached data. The argument may be a function name or a reference +to a function. For finer control over when data is discarded or +expired, see the documentation for \f(CW\*(C`Memoize::Expire\*(C'\fR, included in +this package. +.PP +Note that if the cache is a tied hash, \f(CW\*(C`flush_cache\*(C'\fR will attempt to +invoke the \f(CW\*(C`CLEAR\*(C'\fR method on the hash. If there is no \f(CW\*(C`CLEAR\*(C'\fR +method, this will cause a run-time error. +.PP +An alternative approach to cache flushing is to use the \f(CW\*(C`HASH\*(C'\fR option +(see above) to request that \f(CW\*(C`Memoize\*(C'\fR use a particular hash variable +as its cache. Then you can examine or modify the hash at any time in +any way you desire. You may flush the cache by using \f(CW\*(C`%hash = ()\*(C'\fR. +.SH "CAVEATS" +.IX Header "CAVEATS" +Memoization is not a cure-all: +.IP "\(bu" 4 +Do not memoize a function whose behavior depends on program +state other than its own arguments, such as global variables, the time +of day, or file input. These functions will not produce correct +results when memoized. For a particularly easy example: +.Sp +.Vb 3 +\& sub f { +\& time; +\& } +.Ve +.Sp +This function takes no arguments, and as far as \f(CW\*(C`Memoize\*(C'\fR is +concerned, it always returns the same result. \f(CW\*(C`Memoize\*(C'\fR is wrong, of +course, and the memoized version of this function will call \f(CW\*(C`time\*(C'\fR once +to get the current time, and it will return that same time +every time you call it after that. +.IP "\(bu" 4 +Do not memoize a function with side effects. +.Sp +.Vb 5 +\& sub f { +\& my ($a, $b) = @_; +\& my $s = $a + $b; +\& print "$a + $b = $s.\en"; +\& } +.Ve +.Sp +This function accepts two arguments, adds them, and prints their sum. +Its return value is the numuber of characters it printed, but you +probably didn't care about that. But \f(CW\*(C`Memoize\*(C'\fR doesn't understand +that. If you memoize this function, you will get the result you +expect the first time you ask it to print the sum of 2 and 3, but +subsequent calls will return 1 (the return value of +\&\f(CW\*(C`print\*(C'\fR) without actually printing anything. +.IP "\(bu" 4 +Do not memoize a function that returns a data structure that is +modified by its caller. +.Sp +Consider these functions: \f(CW\*(C`getusers\*(C'\fR returns a list of users somehow, +and then \f(CW\*(C`main\*(C'\fR throws away the first user on the list and prints the +rest: +.Sp +.Vb 7 +\& sub main { +\& my $userlist = getusers(); +\& shift @$userlist; +\& foreach $u (@$userlist) { +\& print "User $u\en"; +\& } +\& } +\& +\& sub getusers { +\& my @users; +\& # Do something to get a list of users; +\& \e@users; # Return reference to list. +\& } +.Ve +.Sp +If you memoize \f(CW\*(C`getusers\*(C'\fR here, it will work right exactly once. The +reference to the users list will be stored in the memo table. \f(CW\*(C`main\*(C'\fR +will discard the first element from the referenced list. The next +time you invoke \f(CW\*(C`main\*(C'\fR, \f(CW\*(C`Memoize\*(C'\fR will not call \f(CW\*(C`getusers\*(C'\fR; it will +just return the same reference to the same list it got last time. But +this time the list has already had its head removed; \f(CW\*(C`main\*(C'\fR will +erroneously remove another element from it. The list will get shorter +and shorter every time you call \f(CW\*(C`main\*(C'\fR. +.Sp +Similarly, this: +.Sp +.Vb 3 +\& $u1 = getusers(); +\& $u2 = getusers(); +\& pop @$u1; +.Ve +.Sp +will modify \f(CW$u2\fR as well as \f(CW$u1\fR, because both variables are references +to the same array. Had \f(CW\*(C`getusers\*(C'\fR not been memoized, \f(CW$u1\fR and \f(CW$u2\fR +would have referred to different arrays. +.IP "\(bu" 4 +Do not memoize a very simple function. +.Sp +Recently someone mentioned to me that the Memoize module made his +program run slower instead of faster. It turned out that he was +memoizing the following function: +.Sp +.Vb 3 +\& sub square { +\& $_[0] * $_[0]; +\& } +.Ve +.Sp +I pointed out that \f(CW\*(C`Memoize\*(C'\fR uses a hash, and that looking up a +number in the hash is necessarily going to take a lot longer than a +single multiplication. There really is no way to speed up the +\&\f(CW\*(C`square\*(C'\fR function. +.Sp +Memoization is not magical. +.SH "PERSISTENT CACHE SUPPORT" +.IX Header "PERSISTENT CACHE SUPPORT" +You can tie the cache tables to any sort of tied hash that you want +to, as long as it supports \f(CW\*(C`TIEHASH\*(C'\fR, \f(CW\*(C`FETCH\*(C'\fR, \f(CW\*(C`STORE\*(C'\fR, and +\&\f(CW\*(C`EXISTS\*(C'\fR. For example, +.PP +.Vb 2 +\& tie my %cache => \*(AqGDBM_File\*(Aq, $filename, O_RDWR|O_CREAT, 0666; +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache]; +.Ve +.PP +works just fine. For some storage methods, you need a little glue. +.PP +\&\f(CW\*(C`SDBM_File\*(C'\fR doesn't supply an \f(CW\*(C`EXISTS\*(C'\fR method, so included in this +package is a glue module called \f(CW\*(C`Memoize::SDBM_File\*(C'\fR which does +provide one. Use this instead of plain \f(CW\*(C`SDBM_File\*(C'\fR to store your +cache table on disk in an \f(CW\*(C`SDBM_File\*(C'\fR database: +.PP +.Vb 2 +\& tie my %cache => \*(AqMemoize::SDBM_File\*(Aq, $filename, O_RDWR|O_CREAT, 0666; +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache]; +.Ve +.PP +\&\f(CW\*(C`NDBM_File\*(C'\fR has the same problem and the same solution. (Use +\&\f(CW\*(C`Memoize::NDBM_File instead of plain NDBM_File.\*(C'\fR) +.PP +\&\f(CW\*(C`Storable\*(C'\fR isn't a tied hash class at all. You can use it to store a +hash to disk and retrieve it again, but you can't modify the hash while +it's on the disk. So if you want to store your cache table in a +\&\f(CW\*(C`Storable\*(C'\fR database, use \f(CW\*(C`Memoize::Storable\*(C'\fR, which puts a hashlike +front-end onto \f(CW\*(C`Storable\*(C'\fR. The hash table is actually kept in +memory, and is loaded from your \f(CW\*(C`Storable\*(C'\fR file at the time you +memoize the function, and stored back at the time you unmemoize the +function (or when your program exits): +.PP +.Vb 2 +\& tie my %cache => \*(AqMemoize::Storable\*(Aq, $filename; +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache]; +\& +\& tie my %cache => \*(AqMemoize::Storable\*(Aq, $filename, \*(Aqnstore\*(Aq; +\& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache]; +.Ve +.PP +Include the `nstore' option to have the \f(CW\*(C`Storable\*(C'\fR database written +in `network order'. (See Storable for more details about this.) +.PP +The \f(CW\*(C`flush_cache()\*(C'\fR function will raise a run-time error unless the +tied package provides a \f(CW\*(C`CLEAR\*(C'\fR method. +.SH "EXPIRATION SUPPORT" +.IX Header "EXPIRATION SUPPORT" +See Memoize::Expire, which is a plug-in module that adds expiration +functionality to Memoize. If you don't like the kinds of policies +that Memoize::Expire implements, it is easy to write your own plug-in +module to implement whatever policy you desire. Memoize comes with +several examples. An expiration manager that implements a \s-1LRU\s0 policy +is available on \s-1CPAN\s0 as Memoize::ExpireLRU. +.SH "BUGS" +.IX Header "BUGS" +The test suite is much better, but always needs improvement. +.PP +There is some problem with the way \f(CW\*(C`goto &f\*(C'\fR works under threaded +Perl, perhaps because of the lexical scoping of \f(CW@_\fR. This is a bug +in Perl, and until it is resolved, memoized functions will see a +slightly different \f(CW\*(C`caller()\*(C'\fR and will perform a little more slowly +on threaded perls than unthreaded perls. +.PP +Some versions of \f(CW\*(C`DB_File\*(C'\fR won't let you store data under a key of +length 0. That means that if you have a function \f(CW\*(C`f\*(C'\fR which you +memoized and the cache is in a \f(CW\*(C`DB_File\*(C'\fR database, then the value of +\&\f(CW\*(C`f()\*(C'\fR (\f(CW\*(C`f\*(C'\fR called with no arguments) will not be memoized. If this +is a big problem, you can supply a normalizer function that prepends +\&\f(CW"x"\fR to every key. +.SH "MAILING LIST" +.IX Header "MAILING LIST" +To join a very low-traffic mailing list for announcements about +\&\f(CW\*(C`Memoize\*(C'\fR, send an empty note to \f(CW\*(C`mjd\-perl\-memoize\-request@plover.com\*(C'\fR. +.SH "AUTHOR" +.IX Header "AUTHOR" +Mark-Jason Dominus (\f(CW\*(C`mjd\-perl\-memoize+@plover.com\*(C'\fR), Plover Systems co. +.PP +See the \f(CW\*(C`Memoize.pm\*(C'\fR Page at http://perl.plover.com/Memoize/ +for news and upgrades. Near this page, at +http://perl.plover.com/MiniMemoize/ there is an article about +memoization and about the internals of Memoize that appeared in The +Perl Journal, issue #13. (This article is also included in the +Memoize distribution as `article.html'.) +.PP +The author's book \fIHigher-Order Perl\fR (2005, \s-1ISBN 1558607013,\s0 published +by Morgan Kaufmann) discusses memoization (and many other +topics) in tremendous detail. It is available on-line for free. +For more information, visit http://hop.perl.plover.com/ . +.PP +To join a mailing list for announcements about \f(CW\*(C`Memoize\*(C'\fR, send an +empty message to \f(CW\*(C`mjd\-perl\-memoize\-request@plover.com\*(C'\fR. This mailing +list is for announcements only and has extremely low traffic\-\-\-fewer than +two messages per year. +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 1998, 1999, 2000, 2001, 2012 by Mark Jason Dominus +.PP +This library is free software; you may redistribute it and/or modify +it under the same terms as Perl itself. +.SH "THANK YOU" +.IX Header "THANK YOU" +Many thanks to Florian Ragwitz for administration and packaging +assistance, to John Tromp for bug reports, to Jonathan Roy for bug reports +and suggestions, to Michael Schwern for other bug reports and patches, +to Mike Cariaso for helping me to figure out the Right Thing to Do +About Expiration, to Joshua Gerth, Joshua Chamas, Jonathan Roy +(again), Mark D. Anderson, and Andrew Johnson for more suggestions +about expiration, to Brent Powers for the Memoize::ExpireLRU module, +to Ariel Scolnicov for delightful messages about the Fibonacci +function, to Dion Almaer for thought-provoking suggestions about the +default normalizer, to Walt Mankowski and Kurt Starsinic for much help +investigating problems under threaded Perl, to Alex Dudkevich for +reporting the bug in prototyped functions and for checking my patch, +to Tony Bass for many helpful suggestions, to Jonathan Roy (again) for +finding a use for \f(CW\*(C`unmemoize()\*(C'\fR, to Philippe Verdret for enlightening +discussion of \f(CW\*(C`Hook::PrePostCall\*(C'\fR, to Nat Torkington for advice I +ignored, to Chris Nandor for portability advice, to Randal Schwartz +for suggesting the '\f(CW\*(C`flush_cache\*(C'\fR function, and to Jenda Krynicky for +being a light in the world. +.PP +Special thanks to Jarkko Hietaniemi, the 5.8.0 pumpking, for including +this module in the core and for his patient and helpful guidance +during the integration process. +.SH "POD ERRORS" +.IX Header "POD ERRORS" +Hey! \fBThe above document had some coding errors, which are explained below:\fR +.IP "Around line 755:" 4 +.IX Item "Around line 755:" +You forgot a '=back' before '=head3' +.IP "Around line 804:" 4 +.IX Item "Around line 804:" +=back without =over diff --git a/data/miniconda3/man/man3/Net%3A%3ANNTP.3 b/data/miniconda3/man/man3/Net%3A%3ANNTP.3 new file mode 100644 index 0000000000000000000000000000000000000000..dde7aee36af1fbd217d8ed9d72617c89e5b2803f --- /dev/null +++ b/data/miniconda3/man/man3/Net%3A%3ANNTP.3 @@ -0,0 +1,598 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Net::NNTP 3" +.TH Net::NNTP 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Net::NNTP \- NNTP Client class +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Net::NNTP; +\& +\& $nntp = Net::NNTP\->new("some.host.name"); +\& $nntp\->quit; +\& +\& # start with SSL, e.g. nntps +\& $nntp = Net::NNTP\->new("some.host.name", SSL => 1); +\& +\& # start with plain and upgrade to SSL +\& $nntp = Net::NNTP\->new("some.host.name"); +\& $nntp\->starttls; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`Net::NNTP\*(C'\fR is a class implementing a simple \s-1NNTP\s0 client in Perl as described +in \s-1RFC977\s0 and \s-1RFC4642.\s0 +With IO::Socket::SSL installed it also provides support for implicit and +explicit \s-1TLS\s0 encryption, i.e. \s-1NNTPS\s0 or \s-1NNTP+STARTTLS.\s0 +.PP +The Net::NNTP class is a subclass of Net::Cmd and (depending on avaibility) of +IO::Socket::IP, IO::Socket::INET6 or IO::Socket::INET. +.SH "CONSTRUCTOR" +.IX Header "CONSTRUCTOR" +.IP "new ( [ \s-1HOST\s0 ] [, \s-1OPTIONS\s0 ])" 4 +.IX Item "new ( [ HOST ] [, OPTIONS ])" +This is the constructor for a new Net::NNTP object. \f(CW\*(C`HOST\*(C'\fR is the +name of the remote host to which a \s-1NNTP\s0 connection is required. If not +given then it may be passed as the \f(CW\*(C`Host\*(C'\fR option described below. If no host is passed +then two environment variables are checked, first \f(CW\*(C`NNTPSERVER\*(C'\fR then +\&\f(CW\*(C`NEWSHOST\*(C'\fR, then \f(CW\*(C`Net::Config\*(C'\fR is checked, and if a host is not found +then \f(CW\*(C`news\*(C'\fR is used. +.Sp +\&\f(CW\*(C`OPTIONS\*(C'\fR are passed in a hash like fashion, using key and value pairs. +Possible options are: +.Sp +\&\fBHost\fR \- \s-1NNTP\s0 host to connect to. It may be a single scalar, as defined for +the \f(CW\*(C`PeerAddr\*(C'\fR option in IO::Socket::INET, or a reference to +an array with hosts to try in turn. The \*(L"host\*(R" method will return the value +which was used to connect to the host. +.Sp +\&\fBPort\fR \- port to connect to. +Default \- 119 for plain \s-1NNTP\s0 and 563 for immediate \s-1SSL\s0 (nntps). +.Sp +\&\fB\s-1SSL\s0\fR \- If the connection should be done from start with \s-1SSL,\s0 contrary to later +upgrade with \f(CW\*(C`starttls\*(C'\fR. +You can use \s-1SSL\s0 arguments as documented in IO::Socket::SSL, but it will +usually use the right arguments already. +.Sp +\&\fBTimeout\fR \- Maximum time, in seconds, to wait for a response from the +\&\s-1NNTP\s0 server, a value of zero will cause all \s-1IO\s0 operations to block. +(default: 120) +.Sp +\&\fBDebug\fR \- Enable the printing of debugging information to \s-1STDERR\s0 +.Sp +\&\fBReader\fR \- If the remote server is \s-1INN\s0 then initially the connection +will be to innd, by default \f(CW\*(C`Net::NNTP\*(C'\fR will issue a \f(CW\*(C`MODE READER\*(C'\fR command +so that the remote server becomes nnrpd. If the \f(CW\*(C`Reader\*(C'\fR option is given +with a value of zero, then this command will not be sent and the +connection will be left talking to innd. +.Sp +\&\fBLocalAddr\fR and \fBLocalPort\fR \- These parameters are passed directly +to IO::Socket to allow binding the socket to a specific local address and port. +.Sp +\&\fBDomain\fR \- This parameter is passed directly to IO::Socket and makes it +possible to enforce IPv4 connections even if IO::Socket::IP is used as super +class. Alternatively \fBFamily\fR can be used. +.SH "METHODS" +.IX Header "METHODS" +Unless otherwise stated all methods return either a \fItrue\fR or \fIfalse\fR +value, with \fItrue\fR meaning that the operation was a success. When a method +states that it returns a value, failure will be returned as \fIundef\fR or an +empty list. +.PP +\&\f(CW\*(C`Net::NNTP\*(C'\fR inherits from \f(CW\*(C`Net::Cmd\*(C'\fR so methods defined in \f(CW\*(C`Net::Cmd\*(C'\fR may +be used to send commands to the remote \s-1NNTP\s0 server in addition to the methods +documented here. +.IP "host ()" 4 +.IX Item "host ()" +Returns the value used by the constructor, and passed to IO::Socket::INET, +to connect to the host. +.IP "starttls ()" 4 +.IX Item "starttls ()" +Upgrade existing plain connection to \s-1SSL.\s0 +Any arguments necessary for \s-1SSL\s0 must be given in \f(CW\*(C`new\*(C'\fR already. +.IP "article ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4 +.IX Item "article ( [ MSGID|MSGNUM ], [FH] )" +Retrieve the header, a blank line, then the body (text) of the +specified article. +.Sp +If \f(CW\*(C`FH\*(C'\fR is specified then it is expected to be a valid filehandle +and the result will be printed to it, on success a true value will be +returned. If \f(CW\*(C`FH\*(C'\fR is not specified then the return value, on success, +will be a reference to an array containing the article requested, each +entry in the array will contain one line of the article. +.Sp +If no arguments are passed then the current article in the currently +selected newsgroup is fetched. +.Sp +\&\f(CW\*(C`MSGNUM\*(C'\fR is a numeric id of an article in the current newsgroup, and +will change the current article pointer. \f(CW\*(C`MSGID\*(C'\fR is the message id of +an article as shown in that article's header. It is anticipated that the +client will obtain the \f(CW\*(C`MSGID\*(C'\fR from a list provided by the \f(CW\*(C`newnews\*(C'\fR +command, from references contained within another article, or from the +message-id provided in the response to some other commands. +.Sp +If there is an error then \f(CW\*(C`undef\*(C'\fR will be returned. +.IP "body ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4 +.IX Item "body ( [ MSGID|MSGNUM ], [FH] )" +Like \f(CW\*(C`article\*(C'\fR but only fetches the body of the article. +.IP "head ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4 +.IX Item "head ( [ MSGID|MSGNUM ], [FH] )" +Like \f(CW\*(C`article\*(C'\fR but only fetches the headers for the article. +.IP "articlefh ( [ MSGID|MSGNUM ] )" 4 +.IX Item "articlefh ( [ MSGID|MSGNUM ] )" +.PD 0 +.IP "bodyfh ( [ MSGID|MSGNUM ] )" 4 +.IX Item "bodyfh ( [ MSGID|MSGNUM ] )" +.IP "headfh ( [ MSGID|MSGNUM ] )" 4 +.IX Item "headfh ( [ MSGID|MSGNUM ] )" +.PD +These are similar to \fBarticle()\fR, \fBbody()\fR and \fBhead()\fR, but rather than +returning the requested data directly, they return a tied filehandle +from which to read the article. +.IP "nntpstat ( [ MSGID|MSGNUM ] )" 4 +.IX Item "nntpstat ( [ MSGID|MSGNUM ] )" +The \f(CW\*(C`nntpstat\*(C'\fR command is similar to the \f(CW\*(C`article\*(C'\fR command except that no +text is returned. When selecting by message number within a group, +the \f(CW\*(C`nntpstat\*(C'\fR command serves to set the \*(L"current article pointer\*(R" without +sending text. +.Sp +Using the \f(CW\*(C`nntpstat\*(C'\fR command to +select by message-id is valid but of questionable value, since a +selection by message-id does \fBnot\fR alter the \*(L"current article pointer\*(R". +.Sp +Returns the message-id of the \*(L"current article\*(R". +.IP "group ( [ \s-1GROUP\s0 ] )" 4 +.IX Item "group ( [ GROUP ] )" +Set and/or get the current group. If \f(CW\*(C`GROUP\*(C'\fR is not given then information +is returned on the current group. +.Sp +In a scalar context it returns the group name. +.Sp +In an array context the return value is a list containing, the number +of articles in the group, the number of the first article, the number +of the last article and the group name. +.IP "help ( )" 4 +.IX Item "help ( )" +Request help text (a short summary of commands that are understood by this +implementation) from the server. Returns the text or undef upon failure. +.IP "ihave ( \s-1MSGID\s0 [, \s-1MESSAGE\s0 ])" 4 +.IX Item "ihave ( MSGID [, MESSAGE ])" +The \f(CW\*(C`ihave\*(C'\fR command informs the server that the client has an article +whose id is \f(CW\*(C`MSGID\*(C'\fR. If the server desires a copy of that +article and \f(CW\*(C`MESSAGE\*(C'\fR has been given then it will be sent. +.Sp +Returns \fItrue\fR if the server desires the article and \f(CW\*(C`MESSAGE\*(C'\fR was +successfully sent, if specified. +.Sp +If \f(CW\*(C`MESSAGE\*(C'\fR is not specified then the message must be sent using the +\&\f(CW\*(C`datasend\*(C'\fR and \f(CW\*(C`dataend\*(C'\fR methods from Net::Cmd +.Sp +\&\f(CW\*(C`MESSAGE\*(C'\fR can be either an array of lines or a reference to an array +and must be encoded by the caller to octets of whatever encoding is required, +e.g. by using the Encode module's \f(CW\*(C`encode()\*(C'\fR function. +.IP "last ()" 4 +.IX Item "last ()" +Set the \*(L"current article pointer\*(R" to the previous article in the current +newsgroup. +.Sp +Returns the message-id of the article. +.IP "date ()" 4 +.IX Item "date ()" +Returns the date on the remote server. This date will be in a \s-1UNIX\s0 time +format (seconds since 1970) +.IP "postok ()" 4 +.IX Item "postok ()" +\&\f(CW\*(C`postok\*(C'\fR will return \fItrue\fR if the servers initial response indicated +that it will allow posting. +.IP "authinfo ( \s-1USER, PASS\s0 )" 4 +.IX Item "authinfo ( USER, PASS )" +Authenticates to the server (using the original \s-1AUTHINFO USER / AUTHINFO PASS\s0 +form, defined in \s-1RFC2980\s0) using the supplied username and password. Please +note that the password is sent in clear text to the server. This command +should not be used with valuable passwords unless the connection to the server +is somehow protected. +.IP "authinfo_simple ( \s-1USER, PASS\s0 )" 4 +.IX Item "authinfo_simple ( USER, PASS )" +Authenticates to the server (using the proposed \s-1NNTP V2 AUTHINFO SIMPLE\s0 form, +defined and deprecated in \s-1RFC2980\s0) using the supplied username and password. +As with \*(L"authinfo\*(R" the password is sent in clear text. +.IP "list ()" 4 +.IX Item "list ()" +Obtain information about all the active newsgroups. The results is a reference +to a hash where the key is a group name and each value is a reference to an +array. The elements in this array are:\- the last article number in the group, +the first article number in the group and any information flags about the group. +.IP "newgroups ( \s-1SINCE\s0 [, \s-1DISTRIBUTIONS\s0 ])" 4 +.IX Item "newgroups ( SINCE [, DISTRIBUTIONS ])" +\&\f(CW\*(C`SINCE\*(C'\fR is a time value and \f(CW\*(C`DISTRIBUTIONS\*(C'\fR is either a distribution +pattern or a reference to a list of distribution patterns. +The result is the same as \f(CW\*(C`list\*(C'\fR, but the +groups return will be limited to those created after \f(CW\*(C`SINCE\*(C'\fR and, if +specified, in one of the distribution areas in \f(CW\*(C`DISTRIBUTIONS\*(C'\fR. +.IP "newnews ( \s-1SINCE\s0 [, \s-1GROUPS\s0 [, \s-1DISTRIBUTIONS\s0 ]])" 4 +.IX Item "newnews ( SINCE [, GROUPS [, DISTRIBUTIONS ]])" +\&\f(CW\*(C`SINCE\*(C'\fR is a time value. \f(CW\*(C`GROUPS\*(C'\fR is either a group pattern or a reference +to a list of group patterns. \f(CW\*(C`DISTRIBUTIONS\*(C'\fR is either a distribution +pattern or a reference to a list of distribution patterns. +.Sp +Returns a reference to a list which contains the message-ids of all news posted +after \f(CW\*(C`SINCE\*(C'\fR, that are in a groups which matched \f(CW\*(C`GROUPS\*(C'\fR and a +distribution which matches \f(CW\*(C`DISTRIBUTIONS\*(C'\fR. +.IP "next ()" 4 +.IX Item "next ()" +Set the \*(L"current article pointer\*(R" to the next article in the current +newsgroup. +.Sp +Returns the message-id of the article. +.IP "post ( [ \s-1MESSAGE\s0 ] )" 4 +.IX Item "post ( [ MESSAGE ] )" +Post a new article to the news server. If \f(CW\*(C`MESSAGE\*(C'\fR is specified and posting +is allowed then the message will be sent. +.Sp +If \f(CW\*(C`MESSAGE\*(C'\fR is not specified then the message must be sent using the +\&\f(CW\*(C`datasend\*(C'\fR and \f(CW\*(C`dataend\*(C'\fR methods from Net::Cmd +.Sp +\&\f(CW\*(C`MESSAGE\*(C'\fR can be either an array of lines or a reference to an array +and must be encoded by the caller to octets of whatever encoding is required, +e.g. by using the Encode module's \f(CW\*(C`encode()\*(C'\fR function. +.Sp +The message, either sent via \f(CW\*(C`datasend\*(C'\fR or as the \f(CW\*(C`MESSAGE\*(C'\fR +parameter, must be in the format as described by \s-1RFC822\s0 and must +contain From:, Newsgroups: and Subject: headers. +.IP "postfh ()" 4 +.IX Item "postfh ()" +Post a new article to the news server using a tied filehandle. If +posting is allowed, this method will return a tied filehandle that you +can \fBprint()\fR the contents of the article to be posted. You must +explicitly \fBclose()\fR the filehandle when you are finished posting the +article, and the return value from the \fBclose()\fR call will indicate +whether the message was successfully posted. +.IP "slave ()" 4 +.IX Item "slave ()" +Tell the remote server that I am not a user client, but probably another +news server. +.IP "quit ()" 4 +.IX Item "quit ()" +Quit the remote server and close the socket connection. +.IP "can_inet6 ()" 4 +.IX Item "can_inet6 ()" +Returns whether we can use IPv6. +.IP "can_ssl ()" 4 +.IX Item "can_ssl ()" +Returns whether we can use \s-1SSL.\s0 +.SS "Extension methods" +.IX Subsection "Extension methods" +These methods use commands that are not part of the \s-1RFC977\s0 documentation. Some +servers may not support all of them. +.IP "newsgroups ( [ \s-1PATTERN\s0 ] )" 4 +.IX Item "newsgroups ( [ PATTERN ] )" +Returns a reference to a hash where the keys are all the group names which +match \f(CW\*(C`PATTERN\*(C'\fR, or all of the groups if no pattern is specified, and +each value contains the description text for the group. +.IP "distributions ()" 4 +.IX Item "distributions ()" +Returns a reference to a hash where the keys are all the possible +distribution names and the values are the distribution descriptions. +.IP "distribution_patterns ()" 4 +.IX Item "distribution_patterns ()" +Returns a reference to an array where each element, itself an array +reference, consists of the three fields of a line of the distrib.pats list +maintained by some \s-1NNTP\s0 servers, namely: a weight, a wildmat and a value +which the client may use to construct a Distribution header. +.IP "subscriptions ()" 4 +.IX Item "subscriptions ()" +Returns a reference to a list which contains a list of groups which +are recommended for a new user to subscribe to. +.IP "overview_fmt ()" 4 +.IX Item "overview_fmt ()" +Returns a reference to an array which contain the names of the fields returned +by \f(CW\*(C`xover\*(C'\fR. +.IP "active_times ()" 4 +.IX Item "active_times ()" +Returns a reference to a hash where the keys are the group names and each +value is a reference to an array containing the time the groups was created +and an identifier, possibly an Email address, of the creator. +.IP "active ( [ \s-1PATTERN\s0 ] )" 4 +.IX Item "active ( [ PATTERN ] )" +Similar to \f(CW\*(C`list\*(C'\fR but only active groups that match the pattern are returned. +\&\f(CW\*(C`PATTERN\*(C'\fR can be a group pattern. +.IP "xgtitle ( \s-1PATTERN\s0 )" 4 +.IX Item "xgtitle ( PATTERN )" +Returns a reference to a hash where the keys are all the group names which +match \f(CW\*(C`PATTERN\*(C'\fR and each value is the description text for the group. +.IP "xhdr ( \s-1HEADER,\s0 MESSAGE-SPEC )" 4 +.IX Item "xhdr ( HEADER, MESSAGE-SPEC )" +Obtain the header field \f(CW\*(C`HEADER\*(C'\fR for all the messages specified. +.Sp +The return value will be a reference +to a hash where the keys are the message numbers and each value contains +the text of the requested header for that message. +.IP "xover ( MESSAGE-SPEC )" 4 +.IX Item "xover ( MESSAGE-SPEC )" +The return value will be a reference +to a hash where the keys are the message numbers and each value contains +a reference to an array which contains the overview fields for that +message. +.Sp +The names of the fields can be obtained by calling \f(CW\*(C`overview_fmt\*(C'\fR. +.IP "xpath ( MESSAGE-ID )" 4 +.IX Item "xpath ( MESSAGE-ID )" +Returns the path name to the file on the server which contains the specified +message. +.IP "xpat ( \s-1HEADER, PATTERN,\s0 MESSAGE-SPEC)" 4 +.IX Item "xpat ( HEADER, PATTERN, MESSAGE-SPEC)" +The result is the same as \f(CW\*(C`xhdr\*(C'\fR except the is will be restricted to +headers where the text of the header matches \f(CW\*(C`PATTERN\*(C'\fR +.IP "xrover ()" 4 +.IX Item "xrover ()" +The \s-1XROVER\s0 command returns reference information for the article(s) +specified. +.Sp +Returns a reference to a \s-1HASH\s0 where the keys are the message numbers and the +values are the References: lines from the articles +.IP "listgroup ( [ \s-1GROUP\s0 ] )" 4 +.IX Item "listgroup ( [ GROUP ] )" +Returns a reference to a list of all the active messages in \f(CW\*(C`GROUP\*(C'\fR, or +the current group if \f(CW\*(C`GROUP\*(C'\fR is not specified. +.IP "reader ()" 4 +.IX Item "reader ()" +Tell the server that you are a reader and not another server. +.Sp +This is required by some servers. For example if you are connecting to +an \s-1INN\s0 server and you have transfer permission your connection will +be connected to the transfer daemon, not the \s-1NNTP\s0 daemon. Issuing +this command will cause the transfer daemon to hand over control +to the \s-1NNTP\s0 daemon. +.Sp +Some servers do not understand this command, but issuing it and ignoring +the response is harmless. +.SH "UNSUPPORTED" +.IX Header "UNSUPPORTED" +The following \s-1NNTP\s0 command are unsupported by the package, and there are +no plans to do so. +.PP +.Vb 4 +\& AUTHINFO GENERIC +\& XTHREAD +\& XSEARCH +\& XINDEX +.Ve +.SH "DEFINITIONS" +.IX Header "DEFINITIONS" +.IP "MESSAGE-SPEC" 4 +.IX Item "MESSAGE-SPEC" +\&\f(CW\*(C`MESSAGE\-SPEC\*(C'\fR is either a single message-id, a single message number, or +a reference to a list of two message numbers. +.Sp +If \f(CW\*(C`MESSAGE\-SPEC\*(C'\fR is a reference to a list of two message numbers and the +second number in a range is less than or equal to the first then the range +represents all messages in the group after the first message number. +.Sp +\&\fB\s-1NOTE\s0\fR For compatibility reasons only with earlier versions of Net::NNTP +a message spec can be passed as a list of two numbers, this is deprecated +and a reference to the list should now be passed +.IP "\s-1PATTERN\s0" 4 +.IX Item "PATTERN" +The \f(CW\*(C`NNTP\*(C'\fR protocol uses the \f(CW\*(C`WILDMAT\*(C'\fR format for patterns. +The \s-1WILDMAT\s0 format was first developed by Rich Salz based on +the format used in the \s-1UNIX\s0 \*(L"find\*(R" command to articulate +file names. It was developed to provide a uniform mechanism +for matching patterns in the same manner that the \s-1UNIX\s0 shell +matches filenames. +.Sp +Patterns are implicitly anchored at the +beginning and end of each string when testing for a match. +.Sp +There are five pattern matching operations other than a strict +one-to-one match between the pattern and the source to be +checked for a match. +.Sp +The first is an asterisk \f(CW\*(C`*\*(C'\fR to match any sequence of zero or more +characters. +.Sp +The second is a question mark \f(CW\*(C`?\*(C'\fR to match any single character. The +third specifies a specific set of characters. +.Sp +The set is specified as a list of characters, or as a range of characters +where the beginning and end of the range are separated by a minus (or dash) +character, or as any combination of lists and ranges. The dash can +also be included in the set as a character it if is the beginning +or end of the set. This set is enclosed in square brackets. The +close square bracket \f(CW\*(C`]\*(C'\fR may be used in a set if it is the first +character in the set. +.Sp +The fourth operation is the same as the +logical not of the third operation and is specified the same +way as the third with the addition of a caret character \f(CW\*(C`^\*(C'\fR at +the beginning of the test string just inside the open square +bracket. +.Sp +The final operation uses the backslash character to +invalidate the special meaning of an open square bracket \f(CW\*(C`[\*(C'\fR, +the asterisk, backslash or the question mark. Two backslashes in +sequence will result in the evaluation of the backslash as a +character with no special meaning. +.RS 4 +.IP "Examples" 4 +.IX Item "Examples" +.PD 0 +.ie n .IP """[^]\-]""" 4 +.el .IP "\f(CW[^]\-]\fR" 4 +.IX Item "[^]-]" +.PD +matches any single character other than a close square +bracket or a minus sign/dash. +.ie n .IP "*bdc" 4 +.el .IP "\f(CW*bdc\fR" 4 +.IX Item "*bdc" +matches any string that ends with the string \*(L"bdc\*(R" +including the string \*(L"bdc\*(R" (without quotes). +.ie n .IP """[0\-9a\-zA\-Z]""" 4 +.el .IP "\f(CW[0\-9a\-zA\-Z]\fR" 4 +.IX Item "[0-9a-zA-Z]" +matches any single printable alphanumeric \s-1ASCII\s0 character. +.ie n .IP """a??d""" 4 +.el .IP "\f(CWa??d\fR" 4 +.IX Item "a??d" +matches any four character string which begins +with a and ends with d. +.RE +.RS 4 +.RE +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Net::Cmd, +IO::Socket::SSL +.SH "AUTHOR" +.IX Header "AUTHOR" +Graham Barr <\fIgbarr@pobox.com\fR>. +.PP +Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version +1.22_02. +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright (C) 1995\-1997 Graham Barr. All rights reserved. +.PP +Copyright (C) 2013\-2016 Steve Hay. All rights reserved. +.SH "LICENCE" +.IX Header "LICENCE" +This module is free software; you can redistribute it and/or modify it under the +same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public +License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file. diff --git a/data/miniconda3/man/man3/POSIX.3 b/data/miniconda3/man/man3/POSIX.3 new file mode 100644 index 0000000000000000000000000000000000000000..e683c15c76d04197deb95a490b4eb3d8bf753b14 --- /dev/null +++ b/data/miniconda3/man/man3/POSIX.3 @@ -0,0 +1,3082 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "POSIX 3" +.TH POSIX 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +POSIX \- Perl interface to IEEE Std 1003.1 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& use POSIX (); +\& use POSIX qw(setsid); +\& use POSIX qw(:errno_h :fcntl_h); +\& +\& printf "EINTR is %d\en", EINTR; +\& +\& $sess_id = POSIX::setsid(); +\& +\& $fd = POSIX::open($path, O_CREAT|O_EXCL|O_WRONLY, 0644); +\& # note: that\*(Aqs a filedescriptor, *NOT* a filehandle +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \s-1POSIX\s0 module permits you to access all (or nearly all) the standard +\&\s-1POSIX 1003.1\s0 identifiers. Many of these identifiers have been given Perl-ish +interfaces. +.PP +This document gives a condensed list of the features available in the \s-1POSIX\s0 +module. Consult your operating system's manpages for general information on +most features. Consult perlfunc for functions which are noted as being +identical or almost identical to Perl's builtin functions. +.PP +The first section describes \s-1POSIX\s0 functions from the 1003.1 specification. +The second section describes some classes for signal objects, \s-1TTY\s0 objects, +and other miscellaneous objects. The remaining sections list various +constants and macros in an organization which roughly follows \s-1IEEE\s0 Std +1003.1b\-1993. +.SH "CAVEATS" +.IX Header "CAVEATS" +\&\fIEverything is exported by default\fR (with a handful of exceptions). +This is an unfortunate backwards compatibility feature and its use is +\&\fBstrongly discouraged\fR. +You should either prevent the exporting (by saying \f(CW\*(C`use\ POSIX\ ();\*(C'\fR, +as usual) and then use fully qualified names (e.g. \f(CW\*(C`POSIX::SEEK_END\*(C'\fR), +or give an explicit import list. +If you do neither and opt for the default (as in \f(CW\*(C`use\ POSIX;\*(C'\fR), you +will import \fIhundreds and hundreds\fR of symbols into your namespace. +.PP +A few functions are not implemented because they are C specific. If you +attempt to call these, they will print a message telling you that they +aren't implemented, and suggest using the Perl equivalent, should one +exist. For example, trying to access the \f(CW\*(C`setjmp()\*(C'\fR call will elicit the +message "\f(CW\*(C`setjmp() is C\-specific: use eval {} instead\*(C'\fR". +.PP +Furthermore, some evil vendors will claim 1003.1 compliance, but in fact +are not so: they will not pass the \s-1PCTS\s0 (\s-1POSIX\s0 Compliance Test Suites). +For example, one vendor may not define \f(CW\*(C`EDEADLK\*(C'\fR, or the semantics of the +errno values set by \f(CWopen(2)\fR might not be quite right. Perl does not +attempt to verify \s-1POSIX\s0 compliance. That means you can currently +successfully say \*(L"use \s-1POSIX\*(R",\s0 and then later in your program you find +that your vendor has been lax and there's no usable \f(CW\*(C`ICANON\*(C'\fR macro after +all. This could be construed to be a bug. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +.ie n .IP """_exit""" 8 +.el .IP "\f(CW_exit\fR" 8 +.IX Item "_exit" +This is identical to the C function \f(CW\*(C`_exit()\*(C'\fR. It exits the program +immediately which means among other things buffered I/O is \fBnot\fR flushed. +.Sp +Note that when using threads and in Linux this is \fBnot\fR a good way to +exit a thread because in Linux processes and threads are kind of the +same thing (Note: while this is the situation in early 2003 there are +projects under way to have threads with more POSIXly semantics in Linux). +If you want not to return from a thread, detach the thread. +.ie n .IP """abort""" 8 +.el .IP "\f(CWabort\fR" 8 +.IX Item "abort" +This is identical to the C function \f(CW\*(C`abort()\*(C'\fR. It terminates the +process with a \f(CW\*(C`SIGABRT\*(C'\fR signal unless caught by a signal handler or +if the handler does not return normally (it e.g. does a \f(CW\*(C`longjmp\*(C'\fR). +.ie n .IP """abs""" 8 +.el .IP "\f(CWabs\fR" 8 +.IX Item "abs" +This is identical to Perl's builtin \f(CW\*(C`abs()\*(C'\fR function, returning the absolute +value of its numerical argument (except that \f(CW\*(C`POSIX::abs()\*(C'\fR must be provided +an explicit value (rather than relying on an implicit \f(CW$_\fR): +.Sp +.Vb 1 +\& $absolute_value = POSIX::abs(42); # good +\& +\& $absolute_value = POSIX::abs(); # throws exception +.Ve +.ie n .IP """access""" 8 +.el .IP "\f(CWaccess\fR" 8 +.IX Item "access" +Determines the accessibility of a file. +.Sp +.Vb 3 +\& if( POSIX::access( "/", &POSIX::R_OK ) ){ +\& print "have read permission\en"; +\& } +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. Note: do not use \f(CW\*(C`access()\*(C'\fR for +security purposes. Between the \f(CW\*(C`access()\*(C'\fR call and the operation +you are preparing for the permissions might change: a classic +\&\fIrace condition\fR. +.ie n .IP """acos""" 8 +.el .IP "\f(CWacos\fR" 8 +.IX Item "acos" +This is identical to the C function \f(CW\*(C`acos()\*(C'\fR, returning +the arcus cosine of its numerical argument. See also Math::Trig. +.ie n .IP """acosh""" 8 +.el .IP "\f(CWacosh\fR" 8 +.IX Item "acosh" +This is identical to the C function \f(CW\*(C`acosh()\*(C'\fR, returning the +hyperbolic arcus cosine of its numerical argument [C99]. See also +Math::Trig. +.ie n .IP """alarm""" 8 +.el .IP "\f(CWalarm\fR" 8 +.IX Item "alarm" +This is identical to Perl's builtin \f(CW\*(C`alarm()\*(C'\fR function, either for arming or +disarming the \f(CW\*(C`SIGARLM\*(C'\fR timer, except that \f(CW\*(C`POSIX::alarm()\*(C'\fR must be provided +an explicit value (rather than relying on an implicit \f(CW$_\fR): +.Sp +.Vb 1 +\& POSIX::alarm(3) # good +\& +\& POSIX::alarm() # throws exception +.Ve +.ie n .IP """asctime""" 8 +.el .IP "\f(CWasctime\fR" 8 +.IX Item "asctime" +This is identical to the C function \f(CW\*(C`asctime()\*(C'\fR. It returns +a string of the form +.Sp +.Vb 1 +\& "Fri Jun 2 18:22:13 2000\en\e0" +.Ve +.Sp +and it is called thusly +.Sp +.Vb 2 +\& $asctime = asctime($sec, $min, $hour, $mday, $mon, +\& $year, $wday, $yday, $isdst); +.Ve +.Sp +The \f(CW$mon\fR is zero-based: January equals \f(CW0\fR. The \f(CW$year\fR is +1900\-based: 2001 equals \f(CW101\fR. \f(CW$wday\fR and \f(CW$yday\fR default to zero +(and are usually ignored anyway), and \f(CW$isdst\fR defaults to \-1. +.ie n .IP """asin""" 8 +.el .IP "\f(CWasin\fR" 8 +.IX Item "asin" +This is identical to the C function \f(CW\*(C`asin()\*(C'\fR, returning +the arcus sine of its numerical argument. See also Math::Trig. +.ie n .IP """asinh""" 8 +.el .IP "\f(CWasinh\fR" 8 +.IX Item "asinh" +This is identical to the C function \f(CW\*(C`asinh()\*(C'\fR, returning the +hyperbolic arcus sine of its numerical argument [C99]. See also +Math::Trig. +.ie n .IP """assert""" 8 +.el .IP "\f(CWassert\fR" 8 +.IX Item "assert" +Unimplemented, but you can use \*(L"die\*(R" in perlfunc and the Carp module +to achieve similar things. +.ie n .IP """atan""" 8 +.el .IP "\f(CWatan\fR" 8 +.IX Item "atan" +This is identical to the C function \f(CW\*(C`atan()\*(C'\fR, returning the +arcus tangent of its numerical argument. See also Math::Trig. +.ie n .IP """atanh""" 8 +.el .IP "\f(CWatanh\fR" 8 +.IX Item "atanh" +This is identical to the C function \f(CW\*(C`atanh()\*(C'\fR, returning the +hyperbolic arcus tangent of its numerical argument [C99]. See also +Math::Trig. +.ie n .IP """atan2""" 8 +.el .IP "\f(CWatan2\fR" 8 +.IX Item "atan2" +This is identical to Perl's builtin \f(CW\*(C`atan2()\*(C'\fR function, returning +the arcus tangent defined by its two numerical arguments, the \fIy\fR +coordinate and the \fIx\fR coordinate. See also Math::Trig. +.ie n .IP """atexit""" 8 +.el .IP "\f(CWatexit\fR" 8 +.IX Item "atexit" +Not implemented. \f(CW\*(C`atexit()\*(C'\fR is C\-specific: use \f(CW\*(C`END {}\*(C'\fR instead, see perlmod. +.ie n .IP """atof""" 8 +.el .IP "\f(CWatof\fR" 8 +.IX Item "atof" +Not implemented. \f(CW\*(C`atof()\*(C'\fR is C\-specific. Perl converts strings to numbers transparently. +If you need to force a scalar to a number, add a zero to it. +.ie n .IP """atoi""" 8 +.el .IP "\f(CWatoi\fR" 8 +.IX Item "atoi" +Not implemented. \f(CW\*(C`atoi()\*(C'\fR is C\-specific. Perl converts strings to numbers transparently. +If you need to force a scalar to a number, add a zero to it. +If you need to have just the integer part, see \*(L"int\*(R" in perlfunc. +.ie n .IP """atol""" 8 +.el .IP "\f(CWatol\fR" 8 +.IX Item "atol" +Not implemented. \f(CW\*(C`atol()\*(C'\fR is C\-specific. Perl converts strings to numbers transparently. +If you need to force a scalar to a number, add a zero to it. +If you need to have just the integer part, see \*(L"int\*(R" in perlfunc. +.ie n .IP """bsearch""" 8 +.el .IP "\f(CWbsearch\fR" 8 +.IX Item "bsearch" +\&\f(CW\*(C`bsearch()\*(C'\fR not supplied. For doing binary search on wordlists, +see Search::Dict. +.ie n .IP """calloc""" 8 +.el .IP "\f(CWcalloc\fR" 8 +.IX Item "calloc" +Not implemented. \f(CW\*(C`calloc()\*(C'\fR is C\-specific. Perl does memory management transparently. +.ie n .IP """cbrt""" 8 +.el .IP "\f(CWcbrt\fR" 8 +.IX Item "cbrt" +The cube root [C99]. +.ie n .IP """ceil""" 8 +.el .IP "\f(CWceil\fR" 8 +.IX Item "ceil" +This is identical to the C function \f(CW\*(C`ceil()\*(C'\fR, returning the smallest +integer value greater than or equal to the given numerical argument. +.ie n .IP """chdir""" 8 +.el .IP "\f(CWchdir\fR" 8 +.IX Item "chdir" +This is identical to Perl's builtin \f(CW\*(C`chdir()\*(C'\fR function, allowing one to +change the working (default) directory \*(-- see \*(L"chdir\*(R" in perlfunc \*(-- with the +exception that \f(CW\*(C`POSIX::chdir()\*(C'\fR must be provided an explicit value (rather +than relying on an implicit \f(CW$_\fR): +.Sp +.Vb 1 +\& $rv = POSIX::chdir(\*(Aqpath/to/dir\*(Aq); # good +\& +\& $rv = POSIX::chdir(); # throws exception +.Ve +.ie n .IP """chmod""" 8 +.el .IP "\f(CWchmod\fR" 8 +.IX Item "chmod" +This is identical to Perl's builtin \f(CW\*(C`chmod()\*(C'\fR function, allowing +one to change file and directory permissions \*(-- see \*(L"chmod\*(R" in perlfunc \*(-- with +the exception that \f(CW\*(C`POSIX::chmod()\*(C'\fR can only change one file at a time +(rather than a list of files): +.Sp +.Vb 1 +\& $c = chmod 0664, $file1, $file2; # good +\& +\& $c = POSIX::chmod 0664, $file1; # throws exception +\& +\& $c = POSIX::chmod 0664, $file1, $file2; # throws exception +.Ve +.Sp +As with the built-in \f(CW\*(C`chmod()\*(C'\fR, \f(CW$file\fR may be a filename or a file +handle. +.ie n .IP """chown""" 8 +.el .IP "\f(CWchown\fR" 8 +.IX Item "chown" +This is identical to Perl's builtin \f(CW\*(C`chown()\*(C'\fR function, allowing one +to change file and directory owners and groups, see \*(L"chown\*(R" in perlfunc. +.ie n .IP """clearerr""" 8 +.el .IP "\f(CWclearerr\fR" 8 +.IX Item "clearerr" +Not implemented. Use the method \f(CW\*(C`IO::Handle::clearerr()\*(C'\fR instead, to reset the error +state (if any) and \s-1EOF\s0 state (if any) of the given stream. +.ie n .IP """clock""" 8 +.el .IP "\f(CWclock\fR" 8 +.IX Item "clock" +This is identical to the C function \f(CW\*(C`clock()\*(C'\fR, returning the +amount of spent processor time in microseconds. +.ie n .IP """close""" 8 +.el .IP "\f(CWclose\fR" 8 +.IX Item "close" +Close the file. This uses file descriptors such as those obtained by calling +\&\f(CW\*(C`POSIX::open\*(C'\fR. +.Sp +.Vb 2 +\& $fd = POSIX::open( "foo", &POSIX::O_RDONLY ); +\& POSIX::close( $fd ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.Sp +See also \*(L"close\*(R" in perlfunc. +.ie n .IP """closedir""" 8 +.el .IP "\f(CWclosedir\fR" 8 +.IX Item "closedir" +This is identical to Perl's builtin \f(CW\*(C`closedir()\*(C'\fR function for closing +a directory handle, see \*(L"closedir\*(R" in perlfunc. +.ie n .IP """cos""" 8 +.el .IP "\f(CWcos\fR" 8 +.IX Item "cos" +This is identical to Perl's builtin \f(CW\*(C`cos()\*(C'\fR function, for returning +the cosine of its numerical argument, see \*(L"cos\*(R" in perlfunc. +See also Math::Trig. +.ie n .IP """cosh""" 8 +.el .IP "\f(CWcosh\fR" 8 +.IX Item "cosh" +This is identical to the C function \f(CW\*(C`cosh()\*(C'\fR, for returning +the hyperbolic cosine of its numeric argument. See also Math::Trig. +.ie n .IP """copysign""" 8 +.el .IP "\f(CWcopysign\fR" 8 +.IX Item "copysign" +Returns \f(CW\*(C`x\*(C'\fR but with the sign of \f(CW\*(C`y\*(C'\fR [C99]. +.Sp +.Vb 1 +\& $x_with_sign_of_y = POSIX::copysign($x, $y); +.Ve +.Sp +See also \*(L"signbit\*(R". +.ie n .IP """creat""" 8 +.el .IP "\f(CWcreat\fR" 8 +.IX Item "creat" +Create a new file. This returns a file descriptor like the ones returned by +\&\f(CW\*(C`POSIX::open\*(C'\fR. Use \f(CW\*(C`POSIX::close\*(C'\fR to close the file. +.Sp +.Vb 2 +\& $fd = POSIX::creat( "foo", 0611 ); +\& POSIX::close( $fd ); +.Ve +.Sp +See also \*(L"sysopen\*(R" in perlfunc and its \f(CW\*(C`O_CREAT\*(C'\fR flag. +.ie n .IP """ctermid""" 8 +.el .IP "\f(CWctermid\fR" 8 +.IX Item "ctermid" +Generates the path name for the controlling terminal. +.Sp +.Vb 1 +\& $path = POSIX::ctermid(); +.Ve +.ie n .IP """ctime""" 8 +.el .IP "\f(CWctime\fR" 8 +.IX Item "ctime" +This is identical to the C function \f(CW\*(C`ctime()\*(C'\fR and equivalent +to \f(CW\*(C`asctime(localtime(...))\*(C'\fR, see \*(L"asctime\*(R" and \*(L"localtime\*(R". +.ie n .IP """cuserid"" [\s-1POSIX.1\-1988\s0]" 8 +.el .IP "\f(CWcuserid\fR [\s-1POSIX.1\-1988\s0]" 8 +.IX Item "cuserid [POSIX.1-1988]" +Get the login name of the owner of the current process. +.Sp +.Vb 1 +\& $name = POSIX::cuserid(); +.Ve +.Sp +Note: this function has not been specified by \s-1POSIX\s0 since 1990 and is included +only for backwards compatibility. New code should use \f(CW\*(C`getlogin()\*(C'\fR instead. +.ie n .IP """difftime""" 8 +.el .IP "\f(CWdifftime\fR" 8 +.IX Item "difftime" +This is identical to the C function \f(CW\*(C`difftime()\*(C'\fR, for returning +the time difference (in seconds) between two times (as returned +by \f(CW\*(C`time()\*(C'\fR), see \*(L"time\*(R". +.ie n .IP """div""" 8 +.el .IP "\f(CWdiv\fR" 8 +.IX Item "div" +Not implemented. \f(CW\*(C`div()\*(C'\fR is C\-specific, use \*(L"int\*(R" in perlfunc on the usual \f(CW\*(C`/\*(C'\fR division and +the modulus \f(CW\*(C`%\*(C'\fR. +.ie n .IP """dup""" 8 +.el .IP "\f(CWdup\fR" 8 +.IX Item "dup" +This is similar to the C function \f(CW\*(C`dup()\*(C'\fR, for duplicating a file +descriptor. +.Sp +This uses file descriptors such as those obtained by calling +\&\f(CW\*(C`POSIX::open\*(C'\fR. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """dup2""" 8 +.el .IP "\f(CWdup2\fR" 8 +.IX Item "dup2" +This is similar to the C function \f(CW\*(C`dup2()\*(C'\fR, for duplicating a file +descriptor to an another known file descriptor. +.Sp +This uses file descriptors such as those obtained by calling +\&\f(CW\*(C`POSIX::open\*(C'\fR. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """erf""" 8 +.el .IP "\f(CWerf\fR" 8 +.IX Item "erf" +The error function [C99]. +.ie n .IP """erfc""" 8 +.el .IP "\f(CWerfc\fR" 8 +.IX Item "erfc" +The complementary error function [C99]. +.ie n .IP """errno""" 8 +.el .IP "\f(CWerrno\fR" 8 +.IX Item "errno" +Returns the value of errno. +.Sp +.Vb 1 +\& $errno = POSIX::errno(); +.Ve +.Sp +This identical to the numerical values of the \f(CW$!\fR, see \*(L"$ERRNO\*(R" in perlvar. +.ie n .IP """execl""" 8 +.el .IP "\f(CWexecl\fR" 8 +.IX Item "execl" +Not implemented. \f(CW\*(C`execl()\*(C'\fR is C\-specific, see \*(L"exec\*(R" in perlfunc. +.ie n .IP """execle""" 8 +.el .IP "\f(CWexecle\fR" 8 +.IX Item "execle" +Not implemented. \f(CW\*(C`execle()\*(C'\fR is C\-specific, see \*(L"exec\*(R" in perlfunc. +.ie n .IP """execlp""" 8 +.el .IP "\f(CWexeclp\fR" 8 +.IX Item "execlp" +Not implemented. \f(CW\*(C`execlp()\*(C'\fR is C\-specific, see \*(L"exec\*(R" in perlfunc. +.ie n .IP """execv""" 8 +.el .IP "\f(CWexecv\fR" 8 +.IX Item "execv" +Not implemented. \f(CW\*(C`execv()\*(C'\fR is C\-specific, see \*(L"exec\*(R" in perlfunc. +.ie n .IP """execve""" 8 +.el .IP "\f(CWexecve\fR" 8 +.IX Item "execve" +Not implemented. \f(CW\*(C`execve()\*(C'\fR is C\-specific, see \*(L"exec\*(R" in perlfunc. +.ie n .IP """execvp""" 8 +.el .IP "\f(CWexecvp\fR" 8 +.IX Item "execvp" +Not implemented. \f(CW\*(C`execvp()\*(C'\fR is C\-specific, see \*(L"exec\*(R" in perlfunc. +.ie n .IP """exit""" 8 +.el .IP "\f(CWexit\fR" 8 +.IX Item "exit" +This is identical to Perl's builtin \f(CW\*(C`exit()\*(C'\fR function for exiting the +program, see \*(L"exit\*(R" in perlfunc. +.ie n .IP """exp""" 8 +.el .IP "\f(CWexp\fR" 8 +.IX Item "exp" +This is identical to Perl's builtin \f(CW\*(C`exp()\*(C'\fR function for +returning the exponent (\fIe\fR\-based) of the numerical argument, +see \*(L"exp\*(R" in perlfunc. +.ie n .IP """expm1""" 8 +.el .IP "\f(CWexpm1\fR" 8 +.IX Item "expm1" +Equivalent to \f(CW\*(C`exp(x) \- 1\*(C'\fR, but more precise for small argument values [C99]. +.Sp +See also \*(L"log1p\*(R". +.ie n .IP """fabs""" 8 +.el .IP "\f(CWfabs\fR" 8 +.IX Item "fabs" +This is identical to Perl's builtin \f(CW\*(C`abs()\*(C'\fR function for returning +the absolute value of the numerical argument, see \*(L"abs\*(R" in perlfunc. +.ie n .IP """fclose""" 8 +.el .IP "\f(CWfclose\fR" 8 +.IX Item "fclose" +Not implemented. Use method \f(CW\*(C`IO::Handle::close()\*(C'\fR instead, or see \*(L"close\*(R" in perlfunc. +.ie n .IP """fcntl""" 8 +.el .IP "\f(CWfcntl\fR" 8 +.IX Item "fcntl" +This is identical to Perl's builtin \f(CW\*(C`fcntl()\*(C'\fR function, +see \*(L"fcntl\*(R" in perlfunc. +.ie n .IP """fdopen""" 8 +.el .IP "\f(CWfdopen\fR" 8 +.IX Item "fdopen" +Not implemented. Use method \f(CW\*(C`IO::Handle::new_from_fd()\*(C'\fR instead, or see \*(L"open\*(R" in perlfunc. +.ie n .IP """feof""" 8 +.el .IP "\f(CWfeof\fR" 8 +.IX Item "feof" +Not implemented. Use method \f(CW\*(C`IO::Handle::eof()\*(C'\fR instead, or see \*(L"eof\*(R" in perlfunc. +.ie n .IP """ferror""" 8 +.el .IP "\f(CWferror\fR" 8 +.IX Item "ferror" +Not implemented. Use method \f(CW\*(C`IO::Handle::error()\*(C'\fR instead. +.ie n .IP """fflush""" 8 +.el .IP "\f(CWfflush\fR" 8 +.IX Item "fflush" +Not implemented. Use method \f(CW\*(C`IO::Handle::flush()\*(C'\fR instead. +See also \f(CW\*(C`"$OUTPUT_AUTOFLUSH" in perlvar\*(C'\fR. +.ie n .IP """fgetc""" 8 +.el .IP "\f(CWfgetc\fR" 8 +.IX Item "fgetc" +Not implemented. Use method \f(CW\*(C`IO::Handle::getc()\*(C'\fR instead, or see \*(L"read\*(R" in perlfunc. +.ie n .IP """fgetpos""" 8 +.el .IP "\f(CWfgetpos\fR" 8 +.IX Item "fgetpos" +Not implemented. Use method \f(CW\*(C`IO::Seekable::getpos()\*(C'\fR instead, or see \*(L"seek\*(R" in perlfunc. +.ie n .IP """fgets""" 8 +.el .IP "\f(CWfgets\fR" 8 +.IX Item "fgets" +Not implemented. Use method \f(CW\*(C`IO::Handle::gets()\*(C'\fR instead. Similar to <>, also known +as \*(L"readline\*(R" in perlfunc. +.ie n .IP """fileno""" 8 +.el .IP "\f(CWfileno\fR" 8 +.IX Item "fileno" +Not implemented. Use method \f(CW\*(C`IO::Handle::fileno()\*(C'\fR instead, or see \*(L"fileno\*(R" in perlfunc. +.ie n .IP """floor""" 8 +.el .IP "\f(CWfloor\fR" 8 +.IX Item "floor" +This is identical to the C function \f(CW\*(C`floor()\*(C'\fR, returning the largest +integer value less than or equal to the numerical argument. +.ie n .IP """fdim""" 8 +.el .IP "\f(CWfdim\fR" 8 +.IX Item "fdim" +\&\*(L"Positive difference\*(R", \f(CW\*(C`x\ \-\ y\*(C'\fR if \f(CW\*(C`x\ >\ y\*(C'\fR, zero otherwise [C99]. +.ie n .IP """fegetround""" 8 +.el .IP "\f(CWfegetround\fR" 8 +.IX Item "fegetround" +Returns the current floating point rounding mode, one of +.Sp +.Vb 1 +\& FE_TONEAREST FE_TOWARDZERO FE_UPWARD FE_DOWNWARD +.Ve +.Sp +\&\f(CW\*(C`FE_TONEAREST\*(C'\fR is like \*(L"round\*(R", \f(CW\*(C`FE_TOWARDZERO\*(C'\fR is like \*(L"trunc\*(R" [C99]. +.ie n .IP """fesetround""" 8 +.el .IP "\f(CWfesetround\fR" 8 +.IX Item "fesetround" +Sets the floating point rounding mode, see \*(L"fegetround\*(R" [C99]. +.ie n .IP """fma""" 8 +.el .IP "\f(CWfma\fR" 8 +.IX Item "fma" +\&\*(L"Fused multiply-add\*(R", \f(CW\*(C`x\ *\ y\ +\ z\*(C'\fR, possibly faster (and less lossy) +than the explicit two operations [C99]. +.Sp +.Vb 1 +\& my $fused = POSIX::fma($x, $y, $z); +.Ve +.ie n .IP """fmax""" 8 +.el .IP "\f(CWfmax\fR" 8 +.IX Item "fmax" +Maximum of \f(CW\*(C`x\*(C'\fR and \f(CW\*(C`y\*(C'\fR, except when either is \f(CW\*(C`NaN\*(C'\fR, returns the other [C99]. +.Sp +.Vb 1 +\& my $min = POSIX::fmax($x, $y); +.Ve +.ie n .IP """fmin""" 8 +.el .IP "\f(CWfmin\fR" 8 +.IX Item "fmin" +Minimum of \f(CW\*(C`x\*(C'\fR and \f(CW\*(C`y\*(C'\fR, except when either is \f(CW\*(C`NaN\*(C'\fR, returns the other [C99]. +.Sp +.Vb 1 +\& my $min = POSIX::fmin($x, $y); +.Ve +.ie n .IP """fmod""" 8 +.el .IP "\f(CWfmod\fR" 8 +.IX Item "fmod" +This is identical to the C function \f(CW\*(C`fmod()\*(C'\fR. +.Sp +.Vb 1 +\& $r = fmod($x, $y); +.Ve +.Sp +It returns the remainder \f(CW\*(C`$r\ =\ $x\ \-\ $n*$y\*(C'\fR, where \f(CW\*(C`$n\ =\ trunc($x/$y)\*(C'\fR. +The \f(CW$r\fR has the same sign as \f(CW$x\fR and magnitude (absolute value) +less than the magnitude of \f(CW$y\fR. +.ie n .IP """fopen""" 8 +.el .IP "\f(CWfopen\fR" 8 +.IX Item "fopen" +Not implemented. Use method \f(CW\*(C`IO::File::open()\*(C'\fR instead, or see \*(L"open\*(R" in perlfunc. +.ie n .IP """fork""" 8 +.el .IP "\f(CWfork\fR" 8 +.IX Item "fork" +This is identical to Perl's builtin \f(CW\*(C`fork()\*(C'\fR function +for duplicating the current process, see \*(L"fork\*(R" in perlfunc +and perlfork if you are in Windows. +.ie n .IP """fpathconf""" 8 +.el .IP "\f(CWfpathconf\fR" 8 +.IX Item "fpathconf" +Retrieves the value of a configurable limit on a file or directory. This +uses file descriptors such as those obtained by calling \f(CW\*(C`POSIX::open\*(C'\fR. +.Sp +The following will determine the maximum length of the longest allowable +pathname on the filesystem which holds \fI/var/foo\fR. +.Sp +.Vb 2 +\& $fd = POSIX::open( "/var/foo", &POSIX::O_RDONLY ); +\& $path_max = POSIX::fpathconf($fd, &POSIX::_PC_PATH_MAX); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """fpclassify""" 8 +.el .IP "\f(CWfpclassify\fR" 8 +.IX Item "fpclassify" +Returns one of +.Sp +.Vb 1 +\& FP_NORMAL FP_ZERO FP_SUBNORMAL FP_INFINITE FP_NAN +.Ve +.Sp +telling the class of the argument [C99]. \f(CW\*(C`FP_INFINITE\*(C'\fR is positive +or negative infinity, \f(CW\*(C`FP_NAN\*(C'\fR is not-a-number. \f(CW\*(C`FP_SUBNORMAL\*(C'\fR +means subnormal numbers (also known as denormals), very small numbers +with low precision. \f(CW\*(C`FP_ZERO\*(C'\fR is zero. \f(CW\*(C`FP_NORMAL\*(C'\fR is all the rest. +.ie n .IP """fprintf""" 8 +.el .IP "\f(CWfprintf\fR" 8 +.IX Item "fprintf" +Not implemented. \f(CW\*(C`fprintf()\*(C'\fR is C\-specific, see \*(L"printf\*(R" in perlfunc instead. +.ie n .IP """fputc""" 8 +.el .IP "\f(CWfputc\fR" 8 +.IX Item "fputc" +Not implemented. \f(CW\*(C`fputc()\*(C'\fR is C\-specific, see \*(L"print\*(R" in perlfunc instead. +.ie n .IP """fputs""" 8 +.el .IP "\f(CWfputs\fR" 8 +.IX Item "fputs" +Not implemented. \f(CW\*(C`fputs()\*(C'\fR is C\-specific, see \*(L"print\*(R" in perlfunc instead. +.ie n .IP """fread""" 8 +.el .IP "\f(CWfread\fR" 8 +.IX Item "fread" +Not implemented. \f(CW\*(C`fread()\*(C'\fR is C\-specific, see \*(L"read\*(R" in perlfunc instead. +.ie n .IP """free""" 8 +.el .IP "\f(CWfree\fR" 8 +.IX Item "free" +Not implemented. \f(CW\*(C`free()\*(C'\fR is C\-specific. Perl does memory management transparently. +.ie n .IP """freopen""" 8 +.el .IP "\f(CWfreopen\fR" 8 +.IX Item "freopen" +Not implemented. \f(CW\*(C`freopen()\*(C'\fR is C\-specific, see \*(L"open\*(R" in perlfunc instead. +.ie n .IP """frexp""" 8 +.el .IP "\f(CWfrexp\fR" 8 +.IX Item "frexp" +Return the mantissa and exponent of a floating-point number. +.Sp +.Vb 1 +\& ($mantissa, $exponent) = POSIX::frexp( 1.234e56 ); +.Ve +.ie n .IP """fscanf""" 8 +.el .IP "\f(CWfscanf\fR" 8 +.IX Item "fscanf" +Not implemented. \f(CW\*(C`fscanf()\*(C'\fR is C\-specific, use <> and regular expressions instead. +.ie n .IP """fseek""" 8 +.el .IP "\f(CWfseek\fR" 8 +.IX Item "fseek" +Not implemented. Use method \f(CW\*(C`IO::Seekable::seek()\*(C'\fR instead, or see \*(L"seek\*(R" in perlfunc. +.ie n .IP """fsetpos""" 8 +.el .IP "\f(CWfsetpos\fR" 8 +.IX Item "fsetpos" +Not implemented. Use method \f(CW\*(C`IO::Seekable::setpos()\*(C'\fR instead, or seek \*(L"seek\*(R" in perlfunc. +.ie n .IP """fstat""" 8 +.el .IP "\f(CWfstat\fR" 8 +.IX Item "fstat" +Get file status. This uses file descriptors such as those obtained by +calling \f(CW\*(C`POSIX::open\*(C'\fR. The data returned is identical to the data from +Perl's builtin \f(CW\*(C`stat\*(C'\fR function. +.Sp +.Vb 2 +\& $fd = POSIX::open( "foo", &POSIX::O_RDONLY ); +\& @stats = POSIX::fstat( $fd ); +.Ve +.ie n .IP """fsync""" 8 +.el .IP "\f(CWfsync\fR" 8 +.IX Item "fsync" +Not implemented. Use method \f(CW\*(C`IO::Handle::sync()\*(C'\fR instead. +.ie n .IP """ftell""" 8 +.el .IP "\f(CWftell\fR" 8 +.IX Item "ftell" +Not implemented. Use method \f(CW\*(C`IO::Seekable::tell()\*(C'\fR instead, or see \*(L"tell\*(R" in perlfunc. +.ie n .IP """fwrite""" 8 +.el .IP "\f(CWfwrite\fR" 8 +.IX Item "fwrite" +Not implemented. \f(CW\*(C`fwrite()\*(C'\fR is C\-specific, see \*(L"print\*(R" in perlfunc instead. +.ie n .IP """getc""" 8 +.el .IP "\f(CWgetc\fR" 8 +.IX Item "getc" +This is identical to Perl's builtin \f(CW\*(C`getc()\*(C'\fR function, +see \*(L"getc\*(R" in perlfunc. +.ie n .IP """getchar""" 8 +.el .IP "\f(CWgetchar\fR" 8 +.IX Item "getchar" +Returns one character from \s-1STDIN.\s0 Identical to Perl's \f(CW\*(C`getc()\*(C'\fR, +see \*(L"getc\*(R" in perlfunc. +.ie n .IP """getcwd""" 8 +.el .IP "\f(CWgetcwd\fR" 8 +.IX Item "getcwd" +Returns the name of the current working directory. +See also Cwd. +.ie n .IP """getegid""" 8 +.el .IP "\f(CWgetegid\fR" 8 +.IX Item "getegid" +Returns the effective group identifier. Similar to Perl' s builtin +variable \f(CW$(\fR, see \*(L"$EGID\*(R" in perlvar. +.ie n .IP """getenv""" 8 +.el .IP "\f(CWgetenv\fR" 8 +.IX Item "getenv" +Returns the value of the specified environment variable. +The same information is available through the \f(CW%ENV\fR array. +.ie n .IP """geteuid""" 8 +.el .IP "\f(CWgeteuid\fR" 8 +.IX Item "geteuid" +Returns the effective user identifier. Identical to Perl's builtin \f(CW$>\fR +variable, see \*(L"$EUID\*(R" in perlvar. +.ie n .IP """getgid""" 8 +.el .IP "\f(CWgetgid\fR" 8 +.IX Item "getgid" +Returns the user's real group identifier. Similar to Perl's builtin +variable \f(CW$)\fR, see \*(L"$GID\*(R" in perlvar. +.ie n .IP """getgrgid""" 8 +.el .IP "\f(CWgetgrgid\fR" 8 +.IX Item "getgrgid" +This is identical to Perl's builtin \f(CW\*(C`getgrgid()\*(C'\fR function for +returning group entries by group identifiers, see +\&\*(L"getgrgid\*(R" in perlfunc. +.ie n .IP """getgrnam""" 8 +.el .IP "\f(CWgetgrnam\fR" 8 +.IX Item "getgrnam" +This is identical to Perl's builtin \f(CW\*(C`getgrnam()\*(C'\fR function for +returning group entries by group names, see \*(L"getgrnam\*(R" in perlfunc. +.ie n .IP """getgroups""" 8 +.el .IP "\f(CWgetgroups\fR" 8 +.IX Item "getgroups" +Returns the ids of the user's supplementary groups. Similar to Perl's +builtin variable \f(CW$)\fR, see \*(L"$GID\*(R" in perlvar. +.ie n .IP """getlogin""" 8 +.el .IP "\f(CWgetlogin\fR" 8 +.IX Item "getlogin" +This is identical to Perl's builtin \f(CW\*(C`getlogin()\*(C'\fR function for +returning the user name associated with the current session, see +\&\*(L"getlogin\*(R" in perlfunc. +.ie n .IP """getpayload""" 8 +.el .IP "\f(CWgetpayload\fR" 8 +.IX Item "getpayload" +.Vb 2 +\& use POSIX \*(Aq:nan_payload\*(Aq; +\& getpayload($var) +.Ve +.Sp +Returns the \f(CW\*(C`NaN\*(C'\fR payload. +.Sp +Note the \s-1API\s0 instability warning in \*(L"setpayload\*(R". +.Sp +See \*(L"nan\*(R" for more discussion about \f(CW\*(C`NaN\*(C'\fR. +.ie n .IP """getpgrp""" 8 +.el .IP "\f(CWgetpgrp\fR" 8 +.IX Item "getpgrp" +This is identical to Perl's builtin \f(CW\*(C`getpgrp()\*(C'\fR function for +returning the process group identifier of the current process, see +\&\*(L"getpgrp\*(R" in perlfunc. +.ie n .IP """getpid""" 8 +.el .IP "\f(CWgetpid\fR" 8 +.IX Item "getpid" +Returns the process identifier. Identical to Perl's builtin +variable \f(CW$$\fR, see \*(L"$PID\*(R" in perlvar. +.ie n .IP """getppid""" 8 +.el .IP "\f(CWgetppid\fR" 8 +.IX Item "getppid" +This is identical to Perl's builtin \f(CW\*(C`getppid()\*(C'\fR function for +returning the process identifier of the parent process of the current +process , see \*(L"getppid\*(R" in perlfunc. +.ie n .IP """getpwnam""" 8 +.el .IP "\f(CWgetpwnam\fR" 8 +.IX Item "getpwnam" +This is identical to Perl's builtin \f(CW\*(C`getpwnam()\*(C'\fR function for +returning user entries by user names, see \*(L"getpwnam\*(R" in perlfunc. +.ie n .IP """getpwuid""" 8 +.el .IP "\f(CWgetpwuid\fR" 8 +.IX Item "getpwuid" +This is identical to Perl's builtin \f(CW\*(C`getpwuid()\*(C'\fR function for +returning user entries by user identifiers, see \*(L"getpwuid\*(R" in perlfunc. +.ie n .IP """gets""" 8 +.el .IP "\f(CWgets\fR" 8 +.IX Item "gets" +Returns one line from \f(CW\*(C`STDIN\*(C'\fR, similar to <>, also known +as the \f(CW\*(C`readline()\*(C'\fR function, see \*(L"readline\*(R" in perlfunc. +.Sp +\&\fB\s-1NOTE\s0\fR: if you have C programs that still use \f(CW\*(C`gets()\*(C'\fR, be very +afraid. The \f(CW\*(C`gets()\*(C'\fR function is a source of endless grief because +it has no buffer overrun checks. It should \fBnever\fR be used. The +\&\f(CW\*(C`fgets()\*(C'\fR function should be preferred instead. +.ie n .IP """getuid""" 8 +.el .IP "\f(CWgetuid\fR" 8 +.IX Item "getuid" +Returns the user's identifier. Identical to Perl's builtin \f(CW$<\fR variable, +see \*(L"$UID\*(R" in perlvar. +.ie n .IP """gmtime""" 8 +.el .IP "\f(CWgmtime\fR" 8 +.IX Item "gmtime" +This is identical to Perl's builtin \f(CW\*(C`gmtime()\*(C'\fR function for +converting seconds since the epoch to a date in Greenwich Mean Time, +see \*(L"gmtime\*(R" in perlfunc. +.ie n .IP """hypot""" 8 +.el .IP "\f(CWhypot\fR" 8 +.IX Item "hypot" +Equivalent to \f(CW\*(C`sqrt(x\ *\ x\ +\ y\ *\ y)\*(C'\fR except more stable on very large +or very small arguments [C99]. +.ie n .IP """ilogb""" 8 +.el .IP "\f(CWilogb\fR" 8 +.IX Item "ilogb" +Integer binary logarithm [C99] +.Sp +For example \f(CW\*(C`ilogb(20)\*(C'\fR is 4, as an integer. +.Sp +See also \*(L"logb\*(R". +.ie n .IP """Inf""" 8 +.el .IP "\f(CWInf\fR" 8 +.IX Item "Inf" +The infinity as a constant: +.Sp +.Vb 3 +\& use POSIX qw(Inf); +\& my $pos_inf = +Inf; # Or just Inf. +\& my $neg_inf = \-Inf; +.Ve +.Sp +See also \*(L"isinf\*(R", and \*(L"fpclassify\*(R". +.ie n .IP """isalnum""" 8 +.el .IP "\f(CWisalnum\fR" 8 +.IX Item "isalnum" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:alnum:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """isalpha""" 8 +.el .IP "\f(CWisalpha\fR" 8 +.IX Item "isalpha" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:alpha:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """isatty""" 8 +.el .IP "\f(CWisatty\fR" 8 +.IX Item "isatty" +Returns a boolean indicating whether the specified filehandle is connected +to a tty. Similar to the \f(CW\*(C`\-t\*(C'\fR operator, see \*(L"\-X\*(R" in perlfunc. +.ie n .IP """iscntrl""" 8 +.el .IP "\f(CWiscntrl\fR" 8 +.IX Item "iscntrl" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:cntrl:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """isdigit""" 8 +.el .IP "\f(CWisdigit\fR" 8 +.IX Item "isdigit" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:digit:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """isfinite""" 8 +.el .IP "\f(CWisfinite\fR" 8 +.IX Item "isfinite" +Returns true if the argument is a finite number (that is, not an +infinity, or the not-a-number) [C99]. +.Sp +See also \*(L"isinf\*(R", \*(L"isnan\*(R", and \*(L"fpclassify\*(R". +.ie n .IP """isgraph""" 8 +.el .IP "\f(CWisgraph\fR" 8 +.IX Item "isgraph" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:graph:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """isgreater""" 8 +.el .IP "\f(CWisgreater\fR" 8 +.IX Item "isgreater" +(Also \f(CW\*(C`isgreaterequal\*(C'\fR, \f(CW\*(C`isless\*(C'\fR, \f(CW\*(C`islessequal\*(C'\fR, \f(CW\*(C`islessgreater\*(C'\fR, +\&\f(CW\*(C`isunordered\*(C'\fR) +.Sp +Floating point comparisons which handle the \f(CW\*(C`NaN\*(C'\fR [C99]. +.ie n .IP """isinf""" 8 +.el .IP "\f(CWisinf\fR" 8 +.IX Item "isinf" +Returns true if the argument is an infinity (positive or negative) [C99]. +.Sp +See also \*(L"Inf\*(R", \*(L"isnan\*(R", \*(L"isfinite\*(R", and \*(L"fpclassify\*(R". +.ie n .IP """islower""" 8 +.el .IP "\f(CWislower\fR" 8 +.IX Item "islower" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:lower:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """isnan""" 8 +.el .IP "\f(CWisnan\fR" 8 +.IX Item "isnan" +Returns true if the argument is \f(CW\*(C`NaN\*(C'\fR (not-a-number) [C99]. +.Sp +Note that you cannot test for "\f(CW\*(C`NaN\*(C'\fR\-ness" with +.Sp +.Vb 1 +\& $x == $x +.Ve +.Sp +since the \f(CW\*(C`NaN\*(C'\fR is not equivalent to anything, \fBincluding itself\fR. +.Sp +See also \*(L"nan\*(R", \*(L"NaN\*(R", \*(L"isinf\*(R", and \*(L"fpclassify\*(R". +.ie n .IP """isnormal""" 8 +.el .IP "\f(CWisnormal\fR" 8 +.IX Item "isnormal" +Returns true if the argument is normal (that is, not a subnormal/denormal, +and not an infinity, or a not-a-number) [C99]. +.Sp +See also \*(L"isfinite\*(R", and \*(L"fpclassify\*(R". +.ie n .IP """isprint""" 8 +.el .IP "\f(CWisprint\fR" 8 +.IX Item "isprint" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:print:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """ispunct""" 8 +.el .IP "\f(CWispunct\fR" 8 +.IX Item "ispunct" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:punct:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """issignaling""" 8 +.el .IP "\f(CWissignaling\fR" 8 +.IX Item "issignaling" +.Vb 2 +\& use POSIX \*(Aq:nan_payload\*(Aq; +\& issignaling($var, $payload) +.Ve +.Sp +Return true if the argument is a \fIsignaling\fR NaN. +.Sp +Note the \s-1API\s0 instability warning in \*(L"setpayload\*(R". +.Sp +See \*(L"nan\*(R" for more discussion about \f(CW\*(C`NaN\*(C'\fR. +.ie n .IP """isspace""" 8 +.el .IP "\f(CWisspace\fR" 8 +.IX Item "isspace" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:space:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """isupper""" 8 +.el .IP "\f(CWisupper\fR" 8 +.IX Item "isupper" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:upper:]]+\ $\ /x\*(C'\fR, which you should convert +to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """isxdigit""" 8 +.el .IP "\f(CWisxdigit\fR" 8 +.IX Item "isxdigit" +This function has been removed as of v5.24. It was very similar to +matching against \f(CW\*(C`qr/\ ^\ [[:xdigit:]]+\ $\ /x\*(C'\fR, which you should +convert to use instead. See \*(L"\s-1POSIX\s0 Character Classes\*(R" in perlrecharclass. +.ie n .IP """j0""" 8 +.el .IP "\f(CWj0\fR" 8 +.IX Item "j0" +.PD 0 +.ie n .IP """j1""" 8 +.el .IP "\f(CWj1\fR" 8 +.IX Item "j1" +.ie n .IP """jn""" 8 +.el .IP "\f(CWjn\fR" 8 +.IX Item "jn" +.ie n .IP """y0""" 8 +.el .IP "\f(CWy0\fR" 8 +.IX Item "y0" +.ie n .IP """y1""" 8 +.el .IP "\f(CWy1\fR" 8 +.IX Item "y1" +.ie n .IP """yn""" 8 +.el .IP "\f(CWyn\fR" 8 +.IX Item "yn" +.PD +The Bessel function of the first kind of the order zero. +.ie n .IP """kill""" 8 +.el .IP "\f(CWkill\fR" 8 +.IX Item "kill" +This is identical to Perl's builtin \f(CW\*(C`kill()\*(C'\fR function for sending +signals to processes (often to terminate them), see \*(L"kill\*(R" in perlfunc. +.ie n .IP """labs""" 8 +.el .IP "\f(CWlabs\fR" 8 +.IX Item "labs" +Not implemented. (For returning absolute values of long integers.) +\&\f(CW\*(C`labs()\*(C'\fR is C\-specific, see \*(L"abs\*(R" in perlfunc instead. +.ie n .IP """lchown""" 8 +.el .IP "\f(CWlchown\fR" 8 +.IX Item "lchown" +This is identical to the C function, except the order of arguments is +consistent with Perl's builtin \f(CW\*(C`chown()\*(C'\fR with the added restriction +of only one path, not a list of paths. Does the same thing as the +\&\f(CW\*(C`chown()\*(C'\fR function but changes the owner of a symbolic link instead +of the file the symbolic link points to. +.Sp +.Vb 1 +\& POSIX::lchown($uid, $gid, $file_path); +.Ve +.ie n .IP """ldexp""" 8 +.el .IP "\f(CWldexp\fR" 8 +.IX Item "ldexp" +This is identical to the C function \f(CW\*(C`ldexp()\*(C'\fR +for multiplying floating point numbers with powers of two. +.Sp +.Vb 1 +\& $x_quadrupled = POSIX::ldexp($x, 2); +.Ve +.ie n .IP """ldiv""" 8 +.el .IP "\f(CWldiv\fR" 8 +.IX Item "ldiv" +Not implemented. (For computing dividends of long integers.) +\&\f(CW\*(C`ldiv()\*(C'\fR is C\-specific, use \f(CW\*(C`/\*(C'\fR and \f(CW\*(C`int()\*(C'\fR instead. +.ie n .IP """lgamma""" 8 +.el .IP "\f(CWlgamma\fR" 8 +.IX Item "lgamma" +The logarithm of the Gamma function [C99]. +.Sp +See also \*(L"tgamma\*(R". +.ie n .IP """log1p""" 8 +.el .IP "\f(CWlog1p\fR" 8 +.IX Item "log1p" +Equivalent to \f(CW\*(C`log(1\ +\ x)\*(C'\fR, but more stable results for small argument +values [C99]. +.ie n .IP """log2""" 8 +.el .IP "\f(CWlog2\fR" 8 +.IX Item "log2" +Logarithm base two [C99]. +.Sp +See also \*(L"expm1\*(R". +.ie n .IP """logb""" 8 +.el .IP "\f(CWlogb\fR" 8 +.IX Item "logb" +Integer binary logarithm [C99]. +.Sp +For example \f(CW\*(C`logb(20)\*(C'\fR is 4, as a floating point number. +.Sp +See also \*(L"ilogb\*(R". +.ie n .IP """link""" 8 +.el .IP "\f(CWlink\fR" 8 +.IX Item "link" +This is identical to Perl's builtin \f(CW\*(C`link()\*(C'\fR function +for creating hard links into files, see \*(L"link\*(R" in perlfunc. +.ie n .IP """localeconv""" 8 +.el .IP "\f(CWlocaleconv\fR" 8 +.IX Item "localeconv" +Get numeric formatting information. Returns a reference to a hash +containing the formatting values of the locale that currently underlies +the program, regardless of whether or not it is called from within the +scope of a \f(CW\*(C`use\ locale\*(C'\fR. Users of this function should also read +perllocale, which provides a comprehensive discussion of Perl locale +handling, including +a section devoted to this function. +Prior to Perl 5.28, or when operating in a non thread-safe environment, +it should not be used in a threaded application unless it's certain that +the underlying locale is C or \s-1POSIX.\s0 This is because it otherwise +changes the locale, which globally affects all threads simultaneously. +Windows platforms starting with Visual Studio 2005 are mostly +thread-safe, but use of this function in those prior to Visual Studio +2015 can interfere with a thread that has called +\&\*(L"switch_to_global_locale\*(R" in perlapi. +.Sp +Here is how to query the database for the \fBde\fR (Deutsch or German) locale. +.Sp +.Vb 10 +\& my $loc = POSIX::setlocale( &POSIX::LC_ALL, "de" ); +\& print "Locale: \e"$loc\e"\en"; +\& my $lconv = POSIX::localeconv(); +\& foreach my $property (qw( +\& decimal_point +\& thousands_sep +\& grouping +\& int_curr_symbol +\& currency_symbol +\& mon_decimal_point +\& mon_thousands_sep +\& mon_grouping +\& positive_sign +\& negative_sign +\& int_frac_digits +\& frac_digits +\& p_cs_precedes +\& p_sep_by_space +\& n_cs_precedes +\& n_sep_by_space +\& p_sign_posn +\& n_sign_posn +\& int_p_cs_precedes +\& int_p_sep_by_space +\& int_n_cs_precedes +\& int_n_sep_by_space +\& int_p_sign_posn +\& int_n_sign_posn +\& )) +\& { +\& printf qq(%s: "%s",\en), +\& $property, $lconv\->{$property}; +\& } +.Ve +.Sp +The members whose names begin with \f(CW\*(C`int_p_\*(C'\fR and \f(CW\*(C`int_n_\*(C'\fR were added by +\&\s-1POSIX.1\-2008\s0 and are only available on systems that support them. +.ie n .IP """localtime""" 8 +.el .IP "\f(CWlocaltime\fR" 8 +.IX Item "localtime" +This is identical to Perl's builtin \f(CW\*(C`localtime()\*(C'\fR function for +converting seconds since the epoch to a date see \*(L"localtime\*(R" in perlfunc except +that \f(CW\*(C`POSIX::localtime()\*(C'\fR must be provided an explicit value (rather than +relying on an implicit \f(CW$_\fR): +.Sp +.Vb 1 +\& @localtime = POSIX::localtime(time); # good +\& +\& @localtime = localtime(); # good +\& +\& @localtime = POSIX::localtime(); # throws exception +.Ve +.ie n .IP """log""" 8 +.el .IP "\f(CWlog\fR" 8 +.IX Item "log" +This is identical to Perl's builtin \f(CW\*(C`log()\*(C'\fR function, +returning the natural (\fIe\fR\-based) logarithm of the numerical argument, +see \*(L"log\*(R" in perlfunc. +.ie n .IP """log10""" 8 +.el .IP "\f(CWlog10\fR" 8 +.IX Item "log10" +This is identical to the C function \f(CW\*(C`log10()\*(C'\fR, +returning the 10\-base logarithm of the numerical argument. +You can also use +.Sp +.Vb 1 +\& sub log10 { log($_[0]) / log(10) } +.Ve +.Sp +or +.Sp +.Vb 1 +\& sub log10 { log($_[0]) / 2.30258509299405 } +.Ve +.Sp +or +.Sp +.Vb 1 +\& sub log10 { log($_[0]) * 0.434294481903252 } +.Ve +.ie n .IP """longjmp""" 8 +.el .IP "\f(CWlongjmp\fR" 8 +.IX Item "longjmp" +Not implemented. \f(CW\*(C`longjmp()\*(C'\fR is C\-specific: use \*(L"die\*(R" in perlfunc instead. +.ie n .IP """lseek""" 8 +.el .IP "\f(CWlseek\fR" 8 +.IX Item "lseek" +Move the file's read/write position. This uses file descriptors such as +those obtained by calling \f(CW\*(C`POSIX::open\*(C'\fR. +.Sp +.Vb 2 +\& $fd = POSIX::open( "foo", &POSIX::O_RDONLY ); +\& $off_t = POSIX::lseek( $fd, 0, &POSIX::SEEK_SET ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """lrint""" 8 +.el .IP "\f(CWlrint\fR" 8 +.IX Item "lrint" +Depending on the current floating point rounding mode, rounds the +argument either toward nearest (like \*(L"round\*(R"), toward zero (like +\&\*(L"trunc\*(R"), downward (toward negative infinity), or upward (toward +positive infinity) [C99]. +.Sp +For the rounding mode, see \*(L"fegetround\*(R". +.ie n .IP """lround""" 8 +.el .IP "\f(CWlround\fR" 8 +.IX Item "lround" +Like \*(L"round\*(R", but as integer, as opposed to floating point [C99]. +.Sp +See also \*(L"ceil\*(R", \*(L"floor\*(R", \*(L"trunc\*(R". +.Sp +Owing to an oversight, this is not currently exported by default, or as part of +the \f(CW\*(C`:math_h_c99\*(C'\fR export tag; importing it must therefore be done by explicit +name. +.ie n .IP """malloc""" 8 +.el .IP "\f(CWmalloc\fR" 8 +.IX Item "malloc" +Not implemented. \f(CW\*(C`malloc()\*(C'\fR is C\-specific. Perl does memory management transparently. +.ie n .IP """mblen""" 8 +.el .IP "\f(CWmblen\fR" 8 +.IX Item "mblen" +This is the same as the C function \f(CW\*(C`mblen()\*(C'\fR on unthreaded perls. On +threaded perls, it transparently (almost) substitutes the more +thread-safe \f(CW\*(C`mbrlen\*(C'\fR(3), if available, instead of \f(CW\*(C`mblen\*(C'\fR. +.Sp +Core Perl does not have any support for wide and multibyte locales, +except Unicode \s-1UTF\-8\s0 locales. This function, in conjunction with +\&\*(L"mbtowc\*(R" and \*(L"wctomb\*(R" may be used to roll your own decoding/encoding +of other types of multi-byte locales. +.Sp +Use \f(CW\*(C`undef\*(C'\fR as the first parameter to this function to get the effect +of passing \s-1NULL\s0 as the first parameter to \f(CW\*(C`mblen\*(C'\fR. This resets any +shift state to its initial value. The return value is undefined if +\&\f(CW\*(C`mbrlen\*(C'\fR was substituted, so you should never rely on it. +.Sp +When the first parameter is a scalar containing a value that either is a +\&\s-1PV\s0 string or can be forced into one, the return value is the number of +bytes occupied by the first character of that string; or 0 if that first +character is the wide \s-1NUL\s0 character; or negative if there is an error. +This is based on the locale that currently underlies the program, +regardless of whether or not the function is called from Perl code that +is within the scope of \f(CW\*(C`use\ locale\*(C'\fR. Perl makes no attempt at +hiding from your code any differences in the \f(CW\*(C`errno\*(C'\fR setting between +\&\f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbrlen\*(C'\fR. It does set \f(CW\*(C`errno\*(C'\fR to 0 before calling them. +.Sp +The optional second parameter is ignored if it is larger than the +actual length of the first parameter string. +.ie n .IP """mbtowc""" 8 +.el .IP "\f(CWmbtowc\fR" 8 +.IX Item "mbtowc" +This is the same as the C function \f(CW\*(C`mbtowc()\*(C'\fR on unthreaded perls. On +threaded perls, it transparently (almost) substitutes the more +thread-safe \f(CW\*(C`mbrtowc\*(C'\fR(3), if available, instead of \f(CW\*(C`mbtowc\*(C'\fR. +.Sp +Core Perl does not have any support for wide and multibyte locales, +except Unicode \s-1UTF\-8\s0 locales. This function, in conjunction with +\&\*(L"mblen\*(R" and \*(L"wctomb\*(R" may be used to roll your own decoding/encoding +of other types of multi-byte locales. +.Sp +The first parameter is a scalar into which, upon success, the wide +character represented by the multi-byte string contained in the second +parameter is stored. The optional third parameter is ignored if it is +larger than the actual length of the second parameter string. +.Sp +Use \f(CW\*(C`undef\*(C'\fR as the second parameter to this function to get the effect +of passing \s-1NULL\s0 as the second parameter to \f(CW\*(C`mbtowc\*(C'\fR. This resets any +shift state to its initial value. The return value is undefined if +\&\f(CW\*(C`mbrtowc\*(C'\fR was substituted, so you should never rely on it. +.Sp +When the second parameter is a scalar containing a value that either is +a \s-1PV\s0 string or can be forced into one, the return value is the number of +bytes occupied by the first character of that string; or 0 if that first +character is the wide \s-1NUL\s0 character; or negative if there is an error. +This is based on the locale that currently underlies the program, +regardless of whether or not the function is called from Perl code that +is within the scope of \f(CW\*(C`use\ locale\*(C'\fR. Perl makes no attempt at +hiding from your code any differences in the \f(CW\*(C`errno\*(C'\fR setting between +\&\f(CW\*(C`mbtowc\*(C'\fR and \f(CW\*(C`mbrtowc\*(C'\fR. It does set \f(CW\*(C`errno\*(C'\fR to 0 before calling +them. +.ie n .IP """memchr""" 8 +.el .IP "\f(CWmemchr\fR" 8 +.IX Item "memchr" +Not implemented. \f(CW\*(C`memchr()\*(C'\fR is C\-specific, see \*(L"index\*(R" in perlfunc instead. +.ie n .IP """memcmp""" 8 +.el .IP "\f(CWmemcmp\fR" 8 +.IX Item "memcmp" +Not implemented. \f(CW\*(C`memcmp()\*(C'\fR is C\-specific, use \f(CW\*(C`eq\*(C'\fR instead, see perlop. +.ie n .IP """memcpy""" 8 +.el .IP "\f(CWmemcpy\fR" 8 +.IX Item "memcpy" +Not implemented. \f(CW\*(C`memcpy()\*(C'\fR is C\-specific, use \f(CW\*(C`=\*(C'\fR, see perlop, or see \*(L"substr\*(R" in perlfunc. +.ie n .IP """memmove""" 8 +.el .IP "\f(CWmemmove\fR" 8 +.IX Item "memmove" +Not implemented. \f(CW\*(C`memmove()\*(C'\fR is C\-specific, use \f(CW\*(C`=\*(C'\fR, see perlop, or see \*(L"substr\*(R" in perlfunc. +.ie n .IP """memset""" 8 +.el .IP "\f(CWmemset\fR" 8 +.IX Item "memset" +Not implemented. \f(CW\*(C`memset()\*(C'\fR is C\-specific, use \f(CW\*(C`x\*(C'\fR instead, see perlop. +.ie n .IP """mkdir""" 8 +.el .IP "\f(CWmkdir\fR" 8 +.IX Item "mkdir" +This is identical to Perl's builtin \f(CW\*(C`mkdir()\*(C'\fR function +for creating directories, see \*(L"mkdir\*(R" in perlfunc. +.ie n .IP """mkfifo""" 8 +.el .IP "\f(CWmkfifo\fR" 8 +.IX Item "mkfifo" +This is similar to the C function \f(CW\*(C`mkfifo()\*(C'\fR for creating +\&\s-1FIFO\s0 special files. +.Sp +.Vb 1 +\& if (mkfifo($path, $mode)) { .... +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. The \f(CW$mode\fR is similar to the +mode of \f(CW\*(C`mkdir()\*(C'\fR, see \*(L"mkdir\*(R" in perlfunc, though for \f(CW\*(C`mkfifo\*(C'\fR +you \fBmust\fR specify the \f(CW$mode\fR. +.ie n .IP """mktime""" 8 +.el .IP "\f(CWmktime\fR" 8 +.IX Item "mktime" +Convert date/time info to a calendar time. +.Sp +Synopsis: +.Sp +.Vb 2 +\& mktime(sec, min, hour, mday, mon, year, wday = 0, +\& yday = 0, isdst = \-1) +.Ve +.Sp +The month (\f(CW\*(C`mon\*(C'\fR), weekday (\f(CW\*(C`wday\*(C'\fR), and yearday (\f(CW\*(C`yday\*(C'\fR) begin at zero, +\&\fIi.e.\fR, January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1. The +year (\f(CW\*(C`year\*(C'\fR) is given in years since 1900; \fIi.e.\fR, the year 1995 is 95; the +year 2001 is 101. Consult your system's \f(CW\*(C`mktime()\*(C'\fR manpage for details +about these and the other arguments. +.Sp +Calendar time for December 12, 1995, at 10:30 am. +.Sp +.Vb 2 +\& $time_t = POSIX::mktime( 0, 30, 10, 12, 11, 95 ); +\& print "Date = ", POSIX::ctime($time_t); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """modf""" 8 +.el .IP "\f(CWmodf\fR" 8 +.IX Item "modf" +Return the integral and fractional parts of a floating-point number. +.Sp +.Vb 1 +\& ($fractional, $integral) = POSIX::modf( 3.14 ); +.Ve +.Sp +See also \*(L"round\*(R". +.ie n .IP """NaN""" 8 +.el .IP "\f(CWNaN\fR" 8 +.IX Item "NaN" +The not-a-number as a constant: +.Sp +.Vb 2 +\& use POSIX qw(NaN); +\& my $nan = NaN; +.Ve +.Sp +See also \*(L"nan\*(R", \f(CW\*(C`/isnan\*(C'\fR, and \*(L"fpclassify\*(R". +.ie n .IP """nan""" 8 +.el .IP "\f(CWnan\fR" 8 +.IX Item "nan" +.Vb 1 +\& my $nan = nan(); +.Ve +.Sp +Returns \f(CW\*(C`NaN\*(C'\fR, not-a-number [C99]. +.Sp +The returned NaN is always a \fIquiet\fR NaN, as opposed to \fIsignaling\fR. +.Sp +With an argument, can be used to generate a NaN with \fIpayload\fR. +The argument is first interpreted as a floating point number, +but then any fractional parts are truncated (towards zero), +and the value is interpreted as an unsigned integer. +The bits of this integer are stored in the unused bits of the NaN. +.Sp +The result has a dual nature: it is a NaN, but it also carries +the integer inside it. The integer can be retrieved with \*(L"getpayload\*(R". +Note, though, that the payload is not propagated, not even on copies, +and definitely not in arithmetic operations. +.Sp +How many bits fit in the NaN depends on what kind of floating points +are being used, but on the most common platforms (64\-bit \s-1IEEE 754,\s0 +or the x86 80\-bit long doubles) there are 51 and 61 bits available, +respectively. (There would be 52 and 62, but the quiet/signaling +bit of NaNs takes away one.) However, because of the floating\-point\-to\- +integer-and-back conversions, please test carefully whether you get back +what you put in. If your integers are only 32 bits wide, you probably +should not rely on more than 32 bits of payload. +.Sp +Whether a \*(L"signaling\*(R" NaN is in any way different from a \*(L"quiet\*(R" NaN, +depends on the platform. Also note that the payload of the default +NaN (no argument to \fBnan()\fR) is not necessarily zero, use \f(CW\*(C`setpayload\*(C'\fR +to explicitly set the payload. On some platforms like the 32\-bit x86, +(unless using the 80\-bit long doubles) the signaling bit is not supported +at all. +.Sp +See also \*(L"isnan\*(R", \*(L"NaN\*(R", \*(L"setpayload\*(R" and \*(L"issignaling\*(R". +.ie n .IP """nearbyint""" 8 +.el .IP "\f(CWnearbyint\fR" 8 +.IX Item "nearbyint" +Returns the nearest integer to the argument, according to the current +rounding mode (see \*(L"fegetround\*(R") [C99]. +.ie n .IP """nextafter""" 8 +.el .IP "\f(CWnextafter\fR" 8 +.IX Item "nextafter" +Returns the next representable floating point number after \f(CW\*(C`x\*(C'\fR in the +direction of \f(CW\*(C`y\*(C'\fR [C99]. +.Sp +.Vb 1 +\& my $nextafter = POSIX::nextafter($x, $y); +.Ve +.Sp +Like \*(L"nexttoward\*(R", but potentially less accurate. +.ie n .IP """nexttoward""" 8 +.el .IP "\f(CWnexttoward\fR" 8 +.IX Item "nexttoward" +Returns the next representable floating point number after \f(CW\*(C`x\*(C'\fR in the +direction of \f(CW\*(C`y\*(C'\fR [C99]. +.Sp +.Vb 1 +\& my $nexttoward = POSIX::nexttoward($x, $y); +.Ve +.Sp +Like \*(L"nextafter\*(R", but potentially more accurate. +.ie n .IP """nice""" 8 +.el .IP "\f(CWnice\fR" 8 +.IX Item "nice" +This is similar to the C function \f(CW\*(C`nice()\*(C'\fR, for changing +the scheduling preference of the current process. Positive +arguments mean a more polite process, negative values a more +needy process. Normal (non-root) user processes can only change towards +being more polite. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """offsetof""" 8 +.el .IP "\f(CWoffsetof\fR" 8 +.IX Item "offsetof" +Not implemented. \f(CW\*(C`offsetof()\*(C'\fR is C\-specific, you probably want to see \*(L"pack\*(R" in perlfunc instead. +.ie n .IP """open""" 8 +.el .IP "\f(CWopen\fR" 8 +.IX Item "open" +Open a file for reading for writing. This returns file descriptors, not +Perl filehandles. Use \f(CW\*(C`POSIX::close\*(C'\fR to close the file. +.Sp +Open a file read-only with mode 0666. +.Sp +.Vb 1 +\& $fd = POSIX::open( "foo" ); +.Ve +.Sp +Open a file for read and write. +.Sp +.Vb 1 +\& $fd = POSIX::open( "foo", &POSIX::O_RDWR ); +.Ve +.Sp +Open a file for write, with truncation. +.Sp +.Vb 3 +\& $fd = POSIX::open( +\& "foo", &POSIX::O_WRONLY | &POSIX::O_TRUNC +\& ); +.Ve +.Sp +Create a new file with mode 0640. Set up the file for writing. +.Sp +.Vb 3 +\& $fd = POSIX::open( +\& "foo", &POSIX::O_CREAT | &POSIX::O_WRONLY, 0640 +\& ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.Sp +See also \*(L"sysopen\*(R" in perlfunc. +.ie n .IP """opendir""" 8 +.el .IP "\f(CWopendir\fR" 8 +.IX Item "opendir" +Open a directory for reading. +.Sp +.Vb 3 +\& $dir = POSIX::opendir( "/var" ); +\& @files = POSIX::readdir( $dir ); +\& POSIX::closedir( $dir ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """pathconf""" 8 +.el .IP "\f(CWpathconf\fR" 8 +.IX Item "pathconf" +Retrieves the value of a configurable limit on a file or directory. +.Sp +The following will determine the maximum length of the longest allowable +pathname on the filesystem which holds \f(CW\*(C`/var\*(C'\fR. +.Sp +.Vb 2 +\& $path_max = POSIX::pathconf( "/var", +\& &POSIX::_PC_PATH_MAX ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """pause""" 8 +.el .IP "\f(CWpause\fR" 8 +.IX Item "pause" +This is similar to the C function \f(CW\*(C`pause()\*(C'\fR, which suspends +the execution of the current process until a signal is received. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """perror""" 8 +.el .IP "\f(CWperror\fR" 8 +.IX Item "perror" +This is identical to the C function \f(CW\*(C`perror()\*(C'\fR, which outputs to the +standard error stream the specified message followed by \f(CW": "\fR and the +current error string. Use the \f(CW\*(C`warn()\*(C'\fR function and the \f(CW$!\fR +variable instead, see \*(L"warn\*(R" in perlfunc and \*(L"$ERRNO\*(R" in perlvar. +.ie n .IP """pipe""" 8 +.el .IP "\f(CWpipe\fR" 8 +.IX Item "pipe" +Create an interprocess channel. This returns file descriptors like those +returned by \f(CW\*(C`POSIX::open\*(C'\fR. +.Sp +.Vb 3 +\& my ($read, $write) = POSIX::pipe(); +\& POSIX::write( $write, "hello", 5 ); +\& POSIX::read( $read, $buf, 5 ); +.Ve +.Sp +See also \*(L"pipe\*(R" in perlfunc. +.ie n .IP """pow""" 8 +.el .IP "\f(CWpow\fR" 8 +.IX Item "pow" +Computes \f(CW$x\fR raised to the power \f(CW$exponent\fR. +.Sp +.Vb 1 +\& $ret = POSIX::pow( $x, $exponent ); +.Ve +.Sp +You can also use the \f(CW\*(C`**\*(C'\fR operator, see perlop. +.ie n .IP """printf""" 8 +.el .IP "\f(CWprintf\fR" 8 +.IX Item "printf" +Formats and prints the specified arguments to \f(CW\*(C`STDOUT\*(C'\fR. +See also \*(L"printf\*(R" in perlfunc. +.ie n .IP """putc""" 8 +.el .IP "\f(CWputc\fR" 8 +.IX Item "putc" +Not implemented. \f(CW\*(C`putc()\*(C'\fR is C\-specific, see \*(L"print\*(R" in perlfunc instead. +.ie n .IP """putchar""" 8 +.el .IP "\f(CWputchar\fR" 8 +.IX Item "putchar" +Not implemented. \f(CW\*(C`putchar()\*(C'\fR is C\-specific, see \*(L"print\*(R" in perlfunc instead. +.ie n .IP """puts""" 8 +.el .IP "\f(CWputs\fR" 8 +.IX Item "puts" +Not implemented. \f(CW\*(C`puts()\*(C'\fR is C\-specific, see \*(L"print\*(R" in perlfunc instead. +.ie n .IP """qsort""" 8 +.el .IP "\f(CWqsort\fR" 8 +.IX Item "qsort" +Not implemented. \f(CW\*(C`qsort()\*(C'\fR is C\-specific, see \*(L"sort\*(R" in perlfunc instead. +.ie n .IP """raise""" 8 +.el .IP "\f(CWraise\fR" 8 +.IX Item "raise" +Sends the specified signal to the current process. +See also \*(L"kill\*(R" in perlfunc and the \f(CW$$\fR in \*(L"$PID\*(R" in perlvar. +.ie n .IP """rand""" 8 +.el .IP "\f(CWrand\fR" 8 +.IX Item "rand" +Not implemented. \f(CW\*(C`rand()\*(C'\fR is non-portable, see \*(L"rand\*(R" in perlfunc instead. +.ie n .IP """read""" 8 +.el .IP "\f(CWread\fR" 8 +.IX Item "read" +Read from a file. This uses file descriptors such as those obtained by +calling \f(CW\*(C`POSIX::open\*(C'\fR. If the buffer \f(CW$buf\fR is not large enough for the +read then Perl will extend it to make room for the request. +.Sp +.Vb 2 +\& $fd = POSIX::open( "foo", &POSIX::O_RDONLY ); +\& $bytes = POSIX::read( $fd, $buf, 3 ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.Sp +See also \*(L"sysread\*(R" in perlfunc. +.ie n .IP """readdir""" 8 +.el .IP "\f(CWreaddir\fR" 8 +.IX Item "readdir" +This is identical to Perl's builtin \f(CW\*(C`readdir()\*(C'\fR function +for reading directory entries, see \*(L"readdir\*(R" in perlfunc. +.ie n .IP """realloc""" 8 +.el .IP "\f(CWrealloc\fR" 8 +.IX Item "realloc" +Not implemented. \f(CW\*(C`realloc()\*(C'\fR is C\-specific. Perl does memory management transparently. +.ie n .IP """remainder""" 8 +.el .IP "\f(CWremainder\fR" 8 +.IX Item "remainder" +Given \f(CW\*(C`x\*(C'\fR and \f(CW\*(C`y\*(C'\fR, returns the value \f(CW\*(C`x\ \-\ n*y\*(C'\fR, where \f(CW\*(C`n\*(C'\fR is the integer +closest to \f(CW\*(C`x\*(C'\fR/\f(CW\*(C`y\*(C'\fR. [C99] +.Sp +.Vb 1 +\& my $remainder = POSIX::remainder($x, $y) +.Ve +.Sp +See also \*(L"remquo\*(R". +.ie n .IP """remove""" 8 +.el .IP "\f(CWremove\fR" 8 +.IX Item "remove" +Deletes a name from the filesystem. Calls \*(L"unlink\*(R" in perlfunc for +files and \*(L"rmdir\*(R" in perlfunc for directories. +.ie n .IP """remquo""" 8 +.el .IP "\f(CWremquo\fR" 8 +.IX Item "remquo" +Like \*(L"remainder\*(R" but also returns the low-order bits of the quotient (n) +[C99] +.Sp +(This is quite esoteric interface, mainly used to implement numerical +algorithms.) +.ie n .IP """rename""" 8 +.el .IP "\f(CWrename\fR" 8 +.IX Item "rename" +This is identical to Perl's builtin \f(CW\*(C`rename()\*(C'\fR function +for renaming files, see \*(L"rename\*(R" in perlfunc. +.ie n .IP """rewind""" 8 +.el .IP "\f(CWrewind\fR" 8 +.IX Item "rewind" +Seeks to the beginning of the file. +.ie n .IP """rewinddir""" 8 +.el .IP "\f(CWrewinddir\fR" 8 +.IX Item "rewinddir" +This is identical to Perl's builtin \f(CW\*(C`rewinddir()\*(C'\fR function for +rewinding directory entry streams, see \*(L"rewinddir\*(R" in perlfunc. +.ie n .IP """rint""" 8 +.el .IP "\f(CWrint\fR" 8 +.IX Item "rint" +Identical to \*(L"lrint\*(R". +.ie n .IP """rmdir""" 8 +.el .IP "\f(CWrmdir\fR" 8 +.IX Item "rmdir" +This is identical to Perl's builtin \f(CW\*(C`rmdir()\*(C'\fR function +for removing (empty) directories, see \*(L"rmdir\*(R" in perlfunc. +.ie n .IP """round""" 8 +.el .IP "\f(CWround\fR" 8 +.IX Item "round" +Returns the integer (but still as floating point) nearest to the +argument [C99]. +.Sp +See also \*(L"ceil\*(R", \*(L"floor\*(R", \*(L"lround\*(R", \*(L"modf\*(R", and \*(L"trunc\*(R". +.ie n .IP """scalbn""" 8 +.el .IP "\f(CWscalbn\fR" 8 +.IX Item "scalbn" +Returns \f(CW\*(C`x\ *\ 2**y\*(C'\fR [C99]. +.Sp +See also \*(L"frexp\*(R" and \*(L"ldexp\*(R". +.ie n .IP """scanf""" 8 +.el .IP "\f(CWscanf\fR" 8 +.IX Item "scanf" +Not implemented. \f(CW\*(C`scanf()\*(C'\fR is C\-specific, use <> and regular expressions instead, +see perlre. +.ie n .IP """setgid""" 8 +.el .IP "\f(CWsetgid\fR" 8 +.IX Item "setgid" +Sets the real group identifier and the effective group identifier for +this process. Similar to assigning a value to the Perl's builtin +\&\f(CW$)\fR variable, see \*(L"$EGID\*(R" in perlvar, except that the latter +will change only the real user identifier, and that the \fBsetgid()\fR +uses only a single numeric argument, as opposed to a space-separated +list of numbers. +.ie n .IP """setjmp""" 8 +.el .IP "\f(CWsetjmp\fR" 8 +.IX Item "setjmp" +Not implemented. \f(CW\*(C`setjmp()\*(C'\fR is C\-specific: use \f(CW\*(C`eval {}\*(C'\fR instead, +see \*(L"eval\*(R" in perlfunc. +.ie n .IP """setlocale""" 8 +.el .IP "\f(CWsetlocale\fR" 8 +.IX Item "setlocale" +\&\s-1WARNING\s0! Prior to Perl 5.28 or on a system that does not support +thread-safe locale operations, do \s-1NOT\s0 use this function in a +thread. The locale will change in all other threads at the +same time, and should your thread get paused by the operating system, +and another started, that thread will not have the locale it is +expecting. On some platforms, there can be a race leading to segfaults +if two threads call this function nearly simultaneously. This warning +does not apply on unthreaded builds, or on perls where +\&\f(CW\*(C`${^SAFE_LOCALES}\*(C'\fR exists and is non-zero; namely Perl 5.28 and later +compiled to be locale-thread-safe. +.Sp +This function +modifies and queries the program's underlying locale. Users of this +function should read perllocale, whch provides a comprehensive +discussion of Perl locale handling, knowledge of which is necessary to +properly use this function. It contains +a section devoted to this function. +The discussion here is merely a summary reference for \f(CW\*(C`setlocale()\*(C'\fR. +Note that Perl itself is almost entirely unaffected by the locale +except within the scope of \f(CW"use\ locale"\fR. (Exceptions are listed +in \*(L"Not within the scope of \*(R"use locale"" in perllocale, and +locale-dependent functions within the \s-1POSIX\s0 module \s-1ARE\s0 always affected +by the current locale.) +.Sp +The following examples assume +.Sp +.Vb 1 +\& use POSIX qw(setlocale LC_ALL LC_CTYPE); +.Ve +.Sp +has been issued. +.Sp +The following will set the traditional \s-1UNIX\s0 system locale behavior +(the second argument \f(CW"C"\fR). +.Sp +.Vb 1 +\& $loc = setlocale( LC_ALL, "C" ); +.Ve +.Sp +The following will query the current \f(CW\*(C`LC_CTYPE\*(C'\fR category. (No second +argument means 'query'.) +.Sp +.Vb 1 +\& $loc = setlocale( LC_CTYPE ); +.Ve +.Sp +The following will set the \f(CW\*(C`LC_CTYPE\*(C'\fR behaviour according to the locale +environment variables (the second argument \f(CW""\fR). +Please see your system's \f(CWsetlocale(3)\fR documentation for the locale +environment variables' meaning or consult perllocale. +.Sp +.Vb 1 +\& $loc = setlocale( LC_CTYPE, "" ); +.Ve +.Sp +The following will set the \f(CW\*(C`LC_COLLATE\*(C'\fR behaviour to Argentinian +Spanish. \fB\s-1NOTE\s0\fR: The naming and availability of locales depends on +your operating system. Please consult perllocale for how to find +out which locales are available in your system. +.Sp +.Vb 1 +\& $loc = setlocale( LC_COLLATE, "es_AR.ISO8859\-1" ); +.Ve +.ie n .IP """setpayload""" 8 +.el .IP "\f(CWsetpayload\fR" 8 +.IX Item "setpayload" +.Vb 2 +\& use POSIX \*(Aq:nan_payload\*(Aq; +\& setpayload($var, $payload); +.Ve +.Sp +Sets the \f(CW\*(C`NaN\*(C'\fR payload of var. +.Sp +\&\s-1NOTE:\s0 the NaN payload APIs are based on the latest (as of June 2015) +proposed \s-1ISO C\s0 interfaces, but they are not yet a standard. Things +may change. +.Sp +See \*(L"nan\*(R" for more discussion about \f(CW\*(C`NaN\*(C'\fR. +.Sp +See also \*(L"setpayloadsig\*(R", \*(L"isnan\*(R", \*(L"getpayload\*(R", and \*(L"issignaling\*(R". +.ie n .IP """setpayloadsig""" 8 +.el .IP "\f(CWsetpayloadsig\fR" 8 +.IX Item "setpayloadsig" +.Vb 2 +\& use POSIX \*(Aq:nan_payload\*(Aq; +\& setpayloadsig($var, $payload); +.Ve +.Sp +Like \*(L"setpayload\*(R" but also makes the NaN \fIsignaling\fR. +.Sp +Depending on the platform the NaN may or may not behave differently. +.Sp +Note the \s-1API\s0 instability warning in \*(L"setpayload\*(R". +.Sp +Note that because how the floating point formats work out, on the most +common platforms signaling payload of zero is best avoided, +since it might end up being identical to \f(CW\*(C`+Inf\*(C'\fR. +.Sp +See also \*(L"nan\*(R", \*(L"isnan\*(R", \*(L"getpayload\*(R", and \*(L"issignaling\*(R". +.ie n .IP """setpgid""" 8 +.el .IP "\f(CWsetpgid\fR" 8 +.IX Item "setpgid" +This is similar to the C function \f(CW\*(C`setpgid()\*(C'\fR for +setting the process group identifier of the current process. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """setsid""" 8 +.el .IP "\f(CWsetsid\fR" 8 +.IX Item "setsid" +This is identical to the C function \f(CW\*(C`setsid()\*(C'\fR for +setting the session identifier of the current process. +.ie n .IP """setuid""" 8 +.el .IP "\f(CWsetuid\fR" 8 +.IX Item "setuid" +Sets the real user identifier and the effective user identifier for +this process. Similar to assigning a value to the Perl's builtin +\&\f(CW$<\fR variable, see \*(L"$UID\*(R" in perlvar, except that the latter +will change only the real user identifier. +.ie n .IP """sigaction""" 8 +.el .IP "\f(CWsigaction\fR" 8 +.IX Item "sigaction" +Detailed signal management. This uses \f(CW\*(C`POSIX::SigAction\*(C'\fR objects for +the \f(CW\*(C`action\*(C'\fR and \f(CW\*(C`oldaction\*(C'\fR arguments (the oldaction can also be +just a hash reference). Consult your system's \f(CW\*(C`sigaction\*(C'\fR manpage +for details, see also \f(CW\*(C`POSIX::SigRt\*(C'\fR. +.Sp +Synopsis: +.Sp +.Vb 1 +\& sigaction(signal, action, oldaction = 0) +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. The \f(CW\*(C`signal\*(C'\fR must be a number (like +\&\f(CW\*(C`SIGHUP\*(C'\fR), not a string (like \f(CW"SIGHUP"\fR), though Perl does try hard +to understand you. +.Sp +If you use the \f(CW\*(C`SA_SIGINFO\*(C'\fR flag, the signal handler will in addition to +the first argument, the signal name, also receive a second argument, a +hash reference, inside which are the following keys with the following +semantics, as defined by POSIX/SUSv3: +.Sp +.Vb 5 +\& signo the signal number +\& errno the error number +\& code if this is zero or less, the signal was sent by +\& a user process and the uid and pid make sense, +\& otherwise the signal was sent by the kernel +.Ve +.Sp +The constants for specific \f(CW\*(C`code\*(C'\fR values can be imported individually +or using the \f(CW\*(C`:signal_h_si_code\*(C'\fR tag. +.Sp +The following are also defined by POSIX/SUSv3, but unfortunately +not very widely implemented: +.Sp +.Vb 6 +\& pid the process id generating the signal +\& uid the uid of the process id generating the signal +\& status exit value or signal for SIGCHLD +\& band band event for SIGPOLL +\& addr address of faulting instruction or memory +\& reference for SIGILL, SIGFPE, SIGSEGV or SIGBUS +.Ve +.Sp +A third argument is also passed to the handler, which contains a copy +of the raw binary contents of the \f(CW\*(C`siginfo\*(C'\fR structure: if a system has +some non-POSIX fields, this third argument is where to \f(CW\*(C`unpack()\*(C'\fR them +from. +.Sp +Note that not all \f(CW\*(C`siginfo\*(C'\fR values make sense simultaneously (some are +valid only for certain signals, for example), and not all values make +sense from Perl perspective, you should to consult your system's +\&\f(CW\*(C`sigaction\*(C'\fR and possibly also \f(CW\*(C`siginfo\*(C'\fR documentation. +.ie n .IP """siglongjmp""" 8 +.el .IP "\f(CWsiglongjmp\fR" 8 +.IX Item "siglongjmp" +Not implemented. \f(CW\*(C`siglongjmp()\*(C'\fR is C\-specific: use \*(L"die\*(R" in perlfunc instead. +.ie n .IP """signbit""" 8 +.el .IP "\f(CWsignbit\fR" 8 +.IX Item "signbit" +Returns zero for positive arguments, non-zero for negative arguments [C99]. +.ie n .IP """sigpending""" 8 +.el .IP "\f(CWsigpending\fR" 8 +.IX Item "sigpending" +Examine signals that are blocked and pending. This uses \f(CW\*(C`POSIX::SigSet\*(C'\fR +objects for the \f(CW\*(C`sigset\*(C'\fR argument. Consult your system's \f(CW\*(C`sigpending\*(C'\fR +manpage for details. +.Sp +Synopsis: +.Sp +.Vb 1 +\& sigpending(sigset) +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """sigprocmask""" 8 +.el .IP "\f(CWsigprocmask\fR" 8 +.IX Item "sigprocmask" +Change and/or examine calling process's signal mask. This uses +\&\f(CW\*(C`POSIX::SigSet\*(C'\fR objects for the \f(CW\*(C`sigset\*(C'\fR and \f(CW\*(C`oldsigset\*(C'\fR arguments. +Consult your system's \f(CW\*(C`sigprocmask\*(C'\fR manpage for details. +.Sp +Synopsis: +.Sp +.Vb 1 +\& sigprocmask(how, sigset, oldsigset = 0) +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.Sp +Note that you can't reliably block or unblock a signal from its own signal +handler if you're using safe signals. Other signals can be blocked or unblocked +reliably. +.ie n .IP """sigsetjmp""" 8 +.el .IP "\f(CWsigsetjmp\fR" 8 +.IX Item "sigsetjmp" +Not implemented. \f(CW\*(C`sigsetjmp()\*(C'\fR is C\-specific: use \f(CW\*(C`eval {}\*(C'\fR instead, +see \*(L"eval\*(R" in perlfunc. +.ie n .IP """sigsuspend""" 8 +.el .IP "\f(CWsigsuspend\fR" 8 +.IX Item "sigsuspend" +Install a signal mask and suspend process until signal arrives. This uses +\&\f(CW\*(C`POSIX::SigSet\*(C'\fR objects for the \f(CW\*(C`signal_mask\*(C'\fR argument. Consult your +system's \f(CW\*(C`sigsuspend\*(C'\fR manpage for details. +.Sp +Synopsis: +.Sp +.Vb 1 +\& sigsuspend(signal_mask) +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """sin""" 8 +.el .IP "\f(CWsin\fR" 8 +.IX Item "sin" +This is identical to Perl's builtin \f(CW\*(C`sin()\*(C'\fR function +for returning the sine of the numerical argument, +see \*(L"sin\*(R" in perlfunc. See also Math::Trig. +.ie n .IP """sinh""" 8 +.el .IP "\f(CWsinh\fR" 8 +.IX Item "sinh" +This is identical to the C function \f(CW\*(C`sinh()\*(C'\fR +for returning the hyperbolic sine of the numerical argument. +See also Math::Trig. +.ie n .IP """sleep""" 8 +.el .IP "\f(CWsleep\fR" 8 +.IX Item "sleep" +This is functionally identical to Perl's builtin \f(CW\*(C`sleep()\*(C'\fR function +for suspending the execution of the current for process for certain +number of seconds, see \*(L"sleep\*(R" in perlfunc. There is one significant +difference, however: \f(CW\*(C`POSIX::sleep()\*(C'\fR returns the number of +\&\fBunslept\fR seconds, while the \f(CW\*(C`CORE::sleep()\*(C'\fR returns the +number of slept seconds. +.ie n .IP """sprintf""" 8 +.el .IP "\f(CWsprintf\fR" 8 +.IX Item "sprintf" +This is similar to Perl's builtin \f(CW\*(C`sprintf()\*(C'\fR function +for returning a string that has the arguments formatted as requested, +see \*(L"sprintf\*(R" in perlfunc. +.ie n .IP """sqrt""" 8 +.el .IP "\f(CWsqrt\fR" 8 +.IX Item "sqrt" +This is identical to Perl's builtin \f(CW\*(C`sqrt()\*(C'\fR function. +for returning the square root of the numerical argument, +see \*(L"sqrt\*(R" in perlfunc. +.ie n .IP """srand""" 8 +.el .IP "\f(CWsrand\fR" 8 +.IX Item "srand" +Give a seed the pseudorandom number generator, see \*(L"srand\*(R" in perlfunc. +.ie n .IP """sscanf""" 8 +.el .IP "\f(CWsscanf\fR" 8 +.IX Item "sscanf" +Not implemented. \f(CW\*(C`sscanf()\*(C'\fR is C\-specific, use regular expressions instead, +see perlre. +.ie n .IP """stat""" 8 +.el .IP "\f(CWstat\fR" 8 +.IX Item "stat" +This is identical to Perl's builtin \f(CW\*(C`stat()\*(C'\fR function +for returning information about files and directories. +.ie n .IP """strcat""" 8 +.el .IP "\f(CWstrcat\fR" 8 +.IX Item "strcat" +Not implemented. \f(CW\*(C`strcat()\*(C'\fR is C\-specific, use \f(CW\*(C`.=\*(C'\fR instead, see perlop. +.ie n .IP """strchr""" 8 +.el .IP "\f(CWstrchr\fR" 8 +.IX Item "strchr" +Not implemented. \f(CW\*(C`strchr()\*(C'\fR is C\-specific, see \*(L"index\*(R" in perlfunc instead. +.ie n .IP """strcmp""" 8 +.el .IP "\f(CWstrcmp\fR" 8 +.IX Item "strcmp" +Not implemented. \f(CW\*(C`strcmp()\*(C'\fR is C\-specific, use \f(CW\*(C`eq\*(C'\fR or \f(CW\*(C`cmp\*(C'\fR instead, see perlop. +.ie n .IP """strcoll""" 8 +.el .IP "\f(CWstrcoll\fR" 8 +.IX Item "strcoll" +This is identical to the C function \f(CW\*(C`strcoll()\*(C'\fR +for collating (comparing) strings transformed using +the \f(CW\*(C`strxfrm()\*(C'\fR function. Not really needed since +Perl can do this transparently, see perllocale. +.Sp +Beware that in a \s-1UTF\-8\s0 locale, anything you pass to this function must +be in \s-1UTF\-8\s0; and when not in a \s-1UTF\-8\s0 locale, anything passed must not be +\&\s-1UTF\-8\s0 encoded. +.ie n .IP """strcpy""" 8 +.el .IP "\f(CWstrcpy\fR" 8 +.IX Item "strcpy" +Not implemented. \f(CW\*(C`strcpy()\*(C'\fR is C\-specific, use \f(CW\*(C`=\*(C'\fR instead, see perlop. +.ie n .IP """strcspn""" 8 +.el .IP "\f(CWstrcspn\fR" 8 +.IX Item "strcspn" +Not implemented. \f(CW\*(C`strcspn()\*(C'\fR is C\-specific, use regular expressions instead, +see perlre. +.ie n .IP """strerror""" 8 +.el .IP "\f(CWstrerror\fR" 8 +.IX Item "strerror" +Returns the error string for the specified errno. +Identical to the string form of \f(CW$!\fR, see \*(L"$ERRNO\*(R" in perlvar. +.ie n .IP """strftime""" 8 +.el .IP "\f(CWstrftime\fR" 8 +.IX Item "strftime" +Convert date and time information to string. Returns the string. +.Sp +Synopsis: +.Sp +.Vb 2 +\& strftime(fmt, sec, min, hour, mday, mon, year, +\& wday = \-1, yday = \-1, isdst = \-1) +.Ve +.Sp +The month (\f(CW\*(C`mon\*(C'\fR), weekday (\f(CW\*(C`wday\*(C'\fR), and yearday (\f(CW\*(C`yday\*(C'\fR) begin at zero, +\&\fIi.e.\fR, January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1. The +year (\f(CW\*(C`year\*(C'\fR) is given in years since 1900, \fIi.e.\fR, the year 1995 is 95; the +year 2001 is 101. Consult your system's \f(CW\*(C`strftime()\*(C'\fR manpage for details +about these and the other arguments. +.Sp +If you want your code to be portable, your format (\f(CW\*(C`fmt\*(C'\fR) argument +should use only the conversion specifiers defined by the \s-1ANSI C\s0 +standard (C89, to play safe). These are \f(CW\*(C`aAbBcdHIjmMpSUwWxXyYZ%\*(C'\fR. +But even then, the \fBresults\fR of some of the conversion specifiers are +non-portable. For example, the specifiers \f(CW\*(C`aAbBcpZ\*(C'\fR change according +to the locale settings of the user, and both how to set locales (the +locale names) and what output to expect are non-standard. +The specifier \f(CW\*(C`c\*(C'\fR changes according to the timezone settings of the +user and the timezone computation rules of the operating system. +The \f(CW\*(C`Z\*(C'\fR specifier is notoriously unportable since the names of +timezones are non-standard. Sticking to the numeric specifiers is the +safest route. +.Sp +The given arguments are made consistent as though by calling +\&\f(CW\*(C`mktime()\*(C'\fR before calling your system's \f(CW\*(C`strftime()\*(C'\fR function, +except that the \f(CW\*(C`isdst\*(C'\fR value is not affected. +.Sp +The string for Tuesday, December 12, 1995. +.Sp +.Vb 3 +\& $str = POSIX::strftime( "%A, %B %d, %Y", +\& 0, 0, 0, 12, 11, 95, 2 ); +\& print "$str\en"; +.Ve +.ie n .IP """strlen""" 8 +.el .IP "\f(CWstrlen\fR" 8 +.IX Item "strlen" +Not implemented. \f(CW\*(C`strlen()\*(C'\fR is C\-specific, use \f(CW\*(C`length()\*(C'\fR instead, see \*(L"length\*(R" in perlfunc. +.ie n .IP """strncat""" 8 +.el .IP "\f(CWstrncat\fR" 8 +.IX Item "strncat" +Not implemented. \f(CW\*(C`strncat()\*(C'\fR is C\-specific, use \f(CW\*(C`.=\*(C'\fR instead, see perlop. +.ie n .IP """strncmp""" 8 +.el .IP "\f(CWstrncmp\fR" 8 +.IX Item "strncmp" +Not implemented. \f(CW\*(C`strncmp()\*(C'\fR is C\-specific, use \f(CW\*(C`eq\*(C'\fR instead, see perlop. +.ie n .IP """strncpy""" 8 +.el .IP "\f(CWstrncpy\fR" 8 +.IX Item "strncpy" +Not implemented. \f(CW\*(C`strncpy()\*(C'\fR is C\-specific, use \f(CW\*(C`=\*(C'\fR instead, see perlop. +.ie n .IP """strpbrk""" 8 +.el .IP "\f(CWstrpbrk\fR" 8 +.IX Item "strpbrk" +Not implemented. \f(CW\*(C`strpbrk()\*(C'\fR is C\-specific, use regular expressions instead, +see perlre. +.ie n .IP """strrchr""" 8 +.el .IP "\f(CWstrrchr\fR" 8 +.IX Item "strrchr" +Not implemented. \f(CW\*(C`strrchr()\*(C'\fR is C\-specific, see \*(L"rindex\*(R" in perlfunc instead. +.ie n .IP """strspn""" 8 +.el .IP "\f(CWstrspn\fR" 8 +.IX Item "strspn" +Not implemented. \f(CW\*(C`strspn()\*(C'\fR is C\-specific, use regular expressions instead, +see perlre. +.ie n .IP """strstr""" 8 +.el .IP "\f(CWstrstr\fR" 8 +.IX Item "strstr" +This is identical to Perl's builtin \f(CW\*(C`index()\*(C'\fR function, +see \*(L"index\*(R" in perlfunc. +.ie n .IP """strtod""" 8 +.el .IP "\f(CWstrtod\fR" 8 +.IX Item "strtod" +String to double translation. Returns the parsed number and the number +of characters in the unparsed portion of the string. Truly +POSIX-compliant systems set \f(CW$!\fR (\f(CW$ERRNO\fR) to indicate a translation +error, so clear \f(CW$!\fR before calling \f(CW\*(C`strtod\*(C'\fR. However, non-POSIX systems +may not check for overflow, and therefore will never set \f(CW$!\fR. +.Sp +\&\f(CW\*(C`strtod\*(C'\fR respects any \s-1POSIX\s0 \f(CW\*(C`setlocale()\*(C'\fR \f(CW\*(C`LC_NUMERIC\*(C'\fR settings, +regardless of whether or not it is called from Perl code that is within +the scope of \f(CW\*(C`use\ locale\*(C'\fR. Prior to Perl 5.28, or when operating in +a non thread-safe environment, it should not be used in a threaded +application unless it's certain that the underlying locale is C +or \s-1POSIX.\s0 This is because it otherwise changes the locale, which +globally affects all threads simultaneously. +.Sp +To parse a string \f(CW$str\fR as a floating point number use +.Sp +.Vb 2 +\& $! = 0; +\& ($num, $n_unparsed) = POSIX::strtod($str); +.Ve +.Sp +The second returned item and \f(CW$!\fR can be used to check for valid input: +.Sp +.Vb 3 +\& if (($str eq \*(Aq\*(Aq) || ($n_unparsed != 0) || $!) { +\& die "Non\-numeric input $str" . ($! ? ": $!\en" : "\en"); +\& } +.Ve +.Sp +When called in a scalar context \f(CW\*(C`strtod\*(C'\fR returns the parsed number. +.ie n .IP """strtok""" 8 +.el .IP "\f(CWstrtok\fR" 8 +.IX Item "strtok" +Not implemented. \f(CW\*(C`strtok()\*(C'\fR is C\-specific, use regular expressions instead, see +perlre, or \*(L"split\*(R" in perlfunc. +.ie n .IP """strtol""" 8 +.el .IP "\f(CWstrtol\fR" 8 +.IX Item "strtol" +String to (long) integer translation. Returns the parsed number and +the number of characters in the unparsed portion of the string. Truly +POSIX-compliant systems set \f(CW$!\fR (\f(CW$ERRNO\fR) to indicate a translation +error, so clear \f(CW$!\fR before calling \f(CW\*(C`strtol\*(C'\fR. However, non-POSIX systems +may not check for overflow, and therefore will never set \f(CW$!\fR. +.Sp +\&\f(CW\*(C`strtol\*(C'\fR should respect any \s-1POSIX\s0 \fI\f(BIsetlocale()\fI\fR settings. +.Sp +To parse a string \f(CW$str\fR as a number in some base \f(CW$base\fR use +.Sp +.Vb 2 +\& $! = 0; +\& ($num, $n_unparsed) = POSIX::strtol($str, $base); +.Ve +.Sp +The base should be zero or between 2 and 36, inclusive. When the base +is zero or omitted \f(CW\*(C`strtol\*(C'\fR will use the string itself to determine the +base: a leading \*(L"0x\*(R" or \*(L"0X\*(R" means hexadecimal; a leading \*(L"0\*(R" means +octal; any other leading characters mean decimal. Thus, \*(L"1234\*(R" is +parsed as a decimal number, \*(L"01234\*(R" as an octal number, and \*(L"0x1234\*(R" +as a hexadecimal number. +.Sp +The second returned item and \f(CW$!\fR can be used to check for valid input: +.Sp +.Vb 3 +\& if (($str eq \*(Aq\*(Aq) || ($n_unparsed != 0) || !$!) { +\& die "Non\-numeric input $str" . $! ? ": $!\en" : "\en"; +\& } +.Ve +.Sp +When called in a scalar context \f(CW\*(C`strtol\*(C'\fR returns the parsed number. +.ie n .IP """strtold""" 8 +.el .IP "\f(CWstrtold\fR" 8 +.IX Item "strtold" +Like \*(L"strtod\*(R" but for long doubles. Defined only if the +system supports long doubles. +.ie n .IP """strtoul""" 8 +.el .IP "\f(CWstrtoul\fR" 8 +.IX Item "strtoul" +String to unsigned (long) integer translation. \f(CW\*(C`strtoul()\*(C'\fR is identical +to \f(CW\*(C`strtol()\*(C'\fR except that \f(CW\*(C`strtoul()\*(C'\fR only parses unsigned integers. See +\&\*(L"strtol\*(R" for details. +.Sp +Note: Some vendors supply \f(CW\*(C`strtod()\*(C'\fR and \f(CW\*(C`strtol()\*(C'\fR but not \f(CW\*(C`strtoul()\*(C'\fR. +Other vendors that do supply \f(CW\*(C`strtoul()\*(C'\fR parse \*(L"\-1\*(R" as a valid value. +.ie n .IP """strxfrm""" 8 +.el .IP "\f(CWstrxfrm\fR" 8 +.IX Item "strxfrm" +String transformation. Returns the transformed string. +.Sp +.Vb 1 +\& $dst = POSIX::strxfrm( $src ); +.Ve +.Sp +Used in conjunction with the \f(CW\*(C`strcoll()\*(C'\fR function, see \*(L"strcoll\*(R". +.Sp +Not really needed since Perl can do this transparently, see +perllocale. +.Sp +Beware that in a \s-1UTF\-8\s0 locale, anything you pass to this function must +be in \s-1UTF\-8\s0; and when not in a \s-1UTF\-8\s0 locale, anything passed must not be +\&\s-1UTF\-8\s0 encoded. +.ie n .IP """sysconf""" 8 +.el .IP "\f(CWsysconf\fR" 8 +.IX Item "sysconf" +Retrieves values of system configurable variables. +.Sp +The following will get the machine's clock speed. +.Sp +.Vb 1 +\& $clock_ticks = POSIX::sysconf( &POSIX::_SC_CLK_TCK ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """system""" 8 +.el .IP "\f(CWsystem\fR" 8 +.IX Item "system" +This is identical to Perl's builtin \f(CW\*(C`system()\*(C'\fR function, see +\&\*(L"system\*(R" in perlfunc. +.ie n .IP """tan""" 8 +.el .IP "\f(CWtan\fR" 8 +.IX Item "tan" +This is identical to the C function \f(CW\*(C`tan()\*(C'\fR, returning the +tangent of the numerical argument. See also Math::Trig. +.ie n .IP """tanh""" 8 +.el .IP "\f(CWtanh\fR" 8 +.IX Item "tanh" +This is identical to the C function \f(CW\*(C`tanh()\*(C'\fR, returning the +hyperbolic tangent of the numerical argument. See also Math::Trig. +.ie n .IP """tcdrain""" 8 +.el .IP "\f(CWtcdrain\fR" 8 +.IX Item "tcdrain" +This is similar to the C function \f(CW\*(C`tcdrain()\*(C'\fR for draining +the output queue of its argument stream. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """tcflow""" 8 +.el .IP "\f(CWtcflow\fR" 8 +.IX Item "tcflow" +This is similar to the C function \f(CW\*(C`tcflow()\*(C'\fR for controlling +the flow of its argument stream. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """tcflush""" 8 +.el .IP "\f(CWtcflush\fR" 8 +.IX Item "tcflush" +This is similar to the C function \f(CW\*(C`tcflush()\*(C'\fR for flushing +the I/O buffers of its argument stream. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """tcgetpgrp""" 8 +.el .IP "\f(CWtcgetpgrp\fR" 8 +.IX Item "tcgetpgrp" +This is identical to the C function \f(CW\*(C`tcgetpgrp()\*(C'\fR for returning the +process group identifier of the foreground process group of the controlling +terminal. +.ie n .IP """tcsendbreak""" 8 +.el .IP "\f(CWtcsendbreak\fR" 8 +.IX Item "tcsendbreak" +This is similar to the C function \f(CW\*(C`tcsendbreak()\*(C'\fR for sending +a break on its argument stream. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """tcsetpgrp""" 8 +.el .IP "\f(CWtcsetpgrp\fR" 8 +.IX Item "tcsetpgrp" +This is similar to the C function \f(CW\*(C`tcsetpgrp()\*(C'\fR for setting the +process group identifier of the foreground process group of the controlling +terminal. +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """tgamma""" 8 +.el .IP "\f(CWtgamma\fR" 8 +.IX Item "tgamma" +The Gamma function [C99]. +.Sp +See also \*(L"lgamma\*(R". +.ie n .IP """time""" 8 +.el .IP "\f(CWtime\fR" 8 +.IX Item "time" +This is identical to Perl's builtin \f(CW\*(C`time()\*(C'\fR function +for returning the number of seconds since the epoch +(whatever it is for the system), see \*(L"time\*(R" in perlfunc. +.ie n .IP """times""" 8 +.el .IP "\f(CWtimes\fR" 8 +.IX Item "times" +The \f(CW\*(C`times()\*(C'\fR function returns elapsed realtime since some point in the past +(such as system startup), user and system times for this process, and user +and system times used by child processes. All times are returned in clock +ticks. +.Sp +.Vb 2 +\& ($realtime, $user, $system, $cuser, $csystem) +\& = POSIX::times(); +.Ve +.Sp +Note: Perl's builtin \f(CW\*(C`times()\*(C'\fR function returns four values, measured in +seconds. +.ie n .IP """tmpfile""" 8 +.el .IP "\f(CWtmpfile\fR" 8 +.IX Item "tmpfile" +Not implemented. Use method \f(CW\*(C`IO::File::new_tmpfile()\*(C'\fR instead, or see File::Temp. +.ie n .IP """tmpnam""" 8 +.el .IP "\f(CWtmpnam\fR" 8 +.IX Item "tmpnam" +For security reasons, which are probably detailed in your system's +documentation for the C library \f(CW\*(C`tmpnam()\*(C'\fR function, this interface +is no longer available; instead use File::Temp. +.ie n .IP """tolower""" 8 +.el .IP "\f(CWtolower\fR" 8 +.IX Item "tolower" +This function has been removed as of v5.26. +This is identical to the C function, except that it can apply to a single +character or to a whole string, and currently operates as if the locale +always is \*(L"C\*(R". Consider using the \f(CW\*(C`lc()\*(C'\fR function, see \*(L"lc\*(R" in perlfunc, +see \*(L"lc\*(R" in perlfunc, or the equivalent \f(CW\*(C`\eL\*(C'\fR operator inside doublequotish +strings. +.ie n .IP """toupper""" 8 +.el .IP "\f(CWtoupper\fR" 8 +.IX Item "toupper" +This function has been removed as of v5.26. +This is similar to the C function, except that it can apply to a single +character or to a whole string, and currently operates as if the locale +always is \*(L"C\*(R". Consider using the \f(CW\*(C`uc()\*(C'\fR function, see \*(L"uc\*(R" in perlfunc, +or the equivalent \f(CW\*(C`\eU\*(C'\fR operator inside doublequotish strings. +.ie n .IP """trunc""" 8 +.el .IP "\f(CWtrunc\fR" 8 +.IX Item "trunc" +Returns the integer toward zero from the argument [C99]. +.Sp +See also \*(L"ceil\*(R", \*(L"floor\*(R", and \*(L"round\*(R". +.ie n .IP """ttyname""" 8 +.el .IP "\f(CWttyname\fR" 8 +.IX Item "ttyname" +This is identical to the C function \f(CW\*(C`ttyname()\*(C'\fR for returning the +name of the current terminal. +.ie n .IP """tzname""" 8 +.el .IP "\f(CWtzname\fR" 8 +.IX Item "tzname" +Retrieves the time conversion information from the \f(CW\*(C`tzname\*(C'\fR variable. +.Sp +.Vb 2 +\& POSIX::tzset(); +\& ($std, $dst) = POSIX::tzname(); +.Ve +.ie n .IP """tzset""" 8 +.el .IP "\f(CWtzset\fR" 8 +.IX Item "tzset" +This is identical to the C function \f(CW\*(C`tzset()\*(C'\fR for setting +the current timezone based on the environment variable \f(CW\*(C`TZ\*(C'\fR, +to be used by \f(CW\*(C`ctime()\*(C'\fR, \f(CW\*(C`localtime()\*(C'\fR, \f(CW\*(C`mktime()\*(C'\fR, and \f(CW\*(C`strftime()\*(C'\fR +functions. +.ie n .IP """umask""" 8 +.el .IP "\f(CWumask\fR" 8 +.IX Item "umask" +This is identical to Perl's builtin \f(CW\*(C`umask()\*(C'\fR function +for setting (and querying) the file creation permission mask, +see \*(L"umask\*(R" in perlfunc. +.ie n .IP """uname""" 8 +.el .IP "\f(CWuname\fR" 8 +.IX Item "uname" +Get name of current operating system. +.Sp +.Vb 2 +\& ($sysname, $nodename, $release, $version, $machine) +\& = POSIX::uname(); +.Ve +.Sp +Note that the actual meanings of the various fields are not +that well standardized, do not expect any great portability. +The \f(CW$sysname\fR might be the name of the operating system, +the \f(CW$nodename\fR might be the name of the host, the \f(CW$release\fR +might be the (major) release number of the operating system, +the \f(CW$version\fR might be the (minor) release number of the +operating system, and the \f(CW$machine\fR might be a hardware identifier. +Maybe. +.ie n .IP """ungetc""" 8 +.el .IP "\f(CWungetc\fR" 8 +.IX Item "ungetc" +Not implemented. Use method \f(CW\*(C`IO::Handle::ungetc()\*(C'\fR instead. +.ie n .IP """unlink""" 8 +.el .IP "\f(CWunlink\fR" 8 +.IX Item "unlink" +This is identical to Perl's builtin \f(CW\*(C`unlink()\*(C'\fR function +for removing files, see \*(L"unlink\*(R" in perlfunc. +.ie n .IP """utime""" 8 +.el .IP "\f(CWutime\fR" 8 +.IX Item "utime" +This is identical to Perl's builtin \f(CW\*(C`utime()\*(C'\fR function +for changing the time stamps of files and directories, +see \*(L"utime\*(R" in perlfunc. +.ie n .IP """vfprintf""" 8 +.el .IP "\f(CWvfprintf\fR" 8 +.IX Item "vfprintf" +Not implemented. \f(CW\*(C`vfprintf()\*(C'\fR is C\-specific, see \*(L"printf\*(R" in perlfunc instead. +.ie n .IP """vprintf""" 8 +.el .IP "\f(CWvprintf\fR" 8 +.IX Item "vprintf" +Not implemented. \f(CW\*(C`vprintf()\*(C'\fR is C\-specific, see \*(L"printf\*(R" in perlfunc instead. +.ie n .IP """vsprintf""" 8 +.el .IP "\f(CWvsprintf\fR" 8 +.IX Item "vsprintf" +Not implemented. \f(CW\*(C`vsprintf()\*(C'\fR is C\-specific, see \*(L"sprintf\*(R" in perlfunc instead. +.ie n .IP """wait""" 8 +.el .IP "\f(CWwait\fR" 8 +.IX Item "wait" +This is identical to Perl's builtin \f(CW\*(C`wait()\*(C'\fR function, +see \*(L"wait\*(R" in perlfunc. +.ie n .IP """waitpid""" 8 +.el .IP "\f(CWwaitpid\fR" 8 +.IX Item "waitpid" +Wait for a child process to change state. This is identical to Perl's +builtin \f(CW\*(C`waitpid()\*(C'\fR function, see \*(L"waitpid\*(R" in perlfunc. +.Sp +.Vb 2 +\& $pid = POSIX::waitpid( \-1, POSIX::WNOHANG ); +\& print "status = ", ($? / 256), "\en"; +.Ve +.Sp +See \*(L"mblen\*(R". +.ie n .IP """wctomb""" 8 +.el .IP "\f(CWwctomb\fR" 8 +.IX Item "wctomb" +This is the same as the C function \f(CW\*(C`wctomb()\*(C'\fR on unthreaded perls. On +threaded perls, it transparently (almost) substitutes the more +thread-safe \f(CW\*(C`wcrtomb\*(C'\fR(3), if available, instead of \f(CW\*(C`wctomb\*(C'\fR. +.Sp +Core Perl does not have any support for wide and multibyte locales, +except Unicode \s-1UTF\-8\s0 locales. This function, in conjunction with +\&\*(L"mblen\*(R" and \*(L"mbtowc\*(R" may be used to roll your own decoding/encoding +of other types of multi-byte locales. +.Sp +Use \f(CW\*(C`undef\*(C'\fR as the first parameter to this function to get the effect +of passing \s-1NULL\s0 as the first parameter to \f(CW\*(C`wctomb\*(C'\fR. This resets any +shift state to its initial value. The return value is undefined if +\&\f(CW\*(C`wcrtomb\*(C'\fR was substituted, so you should never rely on it. +.Sp +When the first parameter is a scalar, the code point contained in the +scalar second parameter is converted into a multi-byte string and stored +into the first parameter scalar. This is based on the locale that +currently underlies the program, regardless of whether or not the +function is called from Perl code that is within the scope of \f(CW\*(C`use\ locale\*(C'\fR. The return value is the number of bytes stored; or negative +if the code point isn't representable in the current locale. Perl makes +no attempt at hiding from your code any differences in the \f(CW\*(C`errno\*(C'\fR +setting between \f(CW\*(C`wctomb\*(C'\fR and \f(CW\*(C`wcrtomb\*(C'\fR. It does set \f(CW\*(C`errno\*(C'\fR to 0 +before calling them. +.ie n .IP """write""" 8 +.el .IP "\f(CWwrite\fR" 8 +.IX Item "write" +Write to a file. This uses file descriptors such as those obtained by +calling \f(CW\*(C`POSIX::open\*(C'\fR. +.Sp +.Vb 3 +\& $fd = POSIX::open( "foo", &POSIX::O_WRONLY ); +\& $buf = "hello"; +\& $bytes = POSIX::write( $fd, $buf, 5 ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.Sp +See also \*(L"syswrite\*(R" in perlfunc. +.SH "CLASSES" +.IX Header "CLASSES" +.ie n .SS """POSIX::SigAction""" +.el .SS "\f(CWPOSIX::SigAction\fP" +.IX Subsection "POSIX::SigAction" +.ie n .IP """new""" 8 +.el .IP "\f(CWnew\fR" 8 +.IX Item "new" +Creates a new \f(CW\*(C`POSIX::SigAction\*(C'\fR object which corresponds to the C +\&\f(CW\*(C`struct sigaction\*(C'\fR. This object will be destroyed automatically when +it is no longer needed. The first parameter is the handler, a sub +reference. The second parameter is a \f(CW\*(C`POSIX::SigSet\*(C'\fR object, it +defaults to the empty set. The third parameter contains the +\&\f(CW\*(C`sa_flags\*(C'\fR, it defaults to 0. +.Sp +.Vb 4 +\& $sigset = POSIX::SigSet\->new(SIGINT, SIGQUIT); +\& $sigaction = POSIX::SigAction\->new( +\& \e&handler, $sigset, &POSIX::SA_NOCLDSTOP +\& ); +.Ve +.Sp +This \f(CW\*(C`POSIX::SigAction\*(C'\fR object is intended for use with the \f(CW\*(C`POSIX::sigaction()\*(C'\fR +function. +.ie n .IP """handler""" 8 +.el .IP "\f(CWhandler\fR" 8 +.IX Item "handler" +.PD 0 +.ie n .IP """mask""" 8 +.el .IP "\f(CWmask\fR" 8 +.IX Item "mask" +.ie n .IP """flags""" 8 +.el .IP "\f(CWflags\fR" 8 +.IX Item "flags" +.PD +accessor functions to get/set the values of a SigAction object. +.Sp +.Vb 2 +\& $sigset = $sigaction\->mask; +\& $sigaction\->flags(&POSIX::SA_RESTART); +.Ve +.ie n .IP """safe""" 8 +.el .IP "\f(CWsafe\fR" 8 +.IX Item "safe" +accessor function for the \*(L"safe signals\*(R" flag of a SigAction object; see +perlipc for general information on safe (a.k.a. \*(L"deferred\*(R") signals. If +you wish to handle a signal safely, use this accessor to set the \*(L"safe\*(R" flag +in the \f(CW\*(C`POSIX::SigAction\*(C'\fR object: +.Sp +.Vb 1 +\& $sigaction\->safe(1); +.Ve +.Sp +You may also examine the \*(L"safe\*(R" flag on the output action object which is +filled in when given as the third parameter to \f(CW\*(C`POSIX::sigaction()\*(C'\fR: +.Sp +.Vb 4 +\& sigaction(SIGINT, $new_action, $old_action); +\& if ($old_action\->safe) { +\& # previous SIGINT handler used safe signals +\& } +.Ve +.ie n .SS """POSIX::SigRt""" +.el .SS "\f(CWPOSIX::SigRt\fP" +.IX Subsection "POSIX::SigRt" +.ie n .IP "%SIGRT" 8 +.el .IP "\f(CW%SIGRT\fR" 8 +.IX Item "%SIGRT" +A hash of the \s-1POSIX\s0 realtime signal handlers. It is an extension of +the standard \f(CW%SIG\fR, the \f(CW$POSIX::SIGRT{SIGRTMIN}\fR is roughly equivalent +to \f(CW$SIG{SIGRTMIN}\fR, but the right \s-1POSIX\s0 moves (see below) are made with +the \f(CW\*(C`POSIX::SigSet\*(C'\fR and \f(CW\*(C`POSIX::sigaction\*(C'\fR instead of accessing the \f(CW%SIG\fR. +.Sp +You can set the \f(CW%POSIX::SIGRT\fR elements to set the \s-1POSIX\s0 realtime +signal handlers, use \f(CW\*(C`delete\*(C'\fR and \f(CW\*(C`exists\*(C'\fR on the elements, and use +\&\f(CW\*(C`scalar\*(C'\fR on the \f(CW%POSIX::SIGRT\fR to find out how many \s-1POSIX\s0 realtime +signals there are available \f(CW\*(C`(SIGRTMAX\ \-\ SIGRTMIN\ +\ 1\*(C'\fR, the \f(CW\*(C`SIGRTMAX\*(C'\fR is +a valid \s-1POSIX\s0 realtime signal). +.Sp +Setting the \f(CW%SIGRT\fR elements is equivalent to calling this: +.Sp +.Vb 6 +\& sub new { +\& my ($rtsig, $handler, $flags) = @_; +\& my $sigset = POSIX::SigSet($rtsig); +\& my $sigact = POSIX::SigAction\->new($handler,$sigset,$flags); +\& sigaction($rtsig, $sigact); +\& } +.Ve +.Sp +The flags default to zero, if you want something different you can +either use \f(CW\*(C`local\*(C'\fR on \f(CW$POSIX::SigRt::SIGACTION_FLAGS\fR, or you can +derive from POSIX::SigRt and define your own \f(CW\*(C`new()\*(C'\fR (the tied hash +\&\s-1STORE\s0 method of the \f(CW%SIGRT\fR calls \f(CW\*(C`new($rtsig, $handler, $SIGACTION_FLAGS)\*(C'\fR, +where the \f(CW$rtsig\fR ranges from zero to \f(CW\*(C`SIGRTMAX\ \-\ SIGRTMIN\ +\ 1)\*(C'\fR. +.Sp +Just as with any signal, you can use \f(CW\*(C`sigaction($rtsig, undef, $oa)\*(C'\fR to +retrieve the installed signal handler (or, rather, the signal action). +.Sp +\&\fB\s-1NOTE:\s0\fR whether \s-1POSIX\s0 realtime signals really work in your system, or +whether Perl has been compiled so that it works with them, is outside +of this discussion. +.ie n .IP """SIGRTMIN""" 8 +.el .IP "\f(CWSIGRTMIN\fR" 8 +.IX Item "SIGRTMIN" +Return the minimum \s-1POSIX\s0 realtime signal number available, or \f(CW\*(C`undef\*(C'\fR +if no \s-1POSIX\s0 realtime signals are available. +.ie n .IP """SIGRTMAX""" 8 +.el .IP "\f(CWSIGRTMAX\fR" 8 +.IX Item "SIGRTMAX" +Return the maximum \s-1POSIX\s0 realtime signal number available, or \f(CW\*(C`undef\*(C'\fR +if no \s-1POSIX\s0 realtime signals are available. +.ie n .SS """POSIX::SigSet""" +.el .SS "\f(CWPOSIX::SigSet\fP" +.IX Subsection "POSIX::SigSet" +.ie n .IP """new""" 8 +.el .IP "\f(CWnew\fR" 8 +.IX Item "new" +Create a new SigSet object. This object will be destroyed automatically +when it is no longer needed. Arguments may be supplied to initialize the +set. +.Sp +Create an empty set. +.Sp +.Vb 1 +\& $sigset = POSIX::SigSet\->new; +.Ve +.Sp +Create a set with \f(CW\*(C`SIGUSR1\*(C'\fR. +.Sp +.Vb 1 +\& $sigset = POSIX::SigSet\->new( &POSIX::SIGUSR1 ); +.Ve +.Sp +Throws an error if any of the signals supplied cannot be added to the +set. +.ie n .IP """addset""" 8 +.el .IP "\f(CWaddset\fR" 8 +.IX Item "addset" +Add a signal to a SigSet object. +.Sp +.Vb 1 +\& $sigset\->addset( &POSIX::SIGUSR2 ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """delset""" 8 +.el .IP "\f(CWdelset\fR" 8 +.IX Item "delset" +Remove a signal from the SigSet object. +.Sp +.Vb 1 +\& $sigset\->delset( &POSIX::SIGUSR2 ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """emptyset""" 8 +.el .IP "\f(CWemptyset\fR" 8 +.IX Item "emptyset" +Initialize the SigSet object to be empty. +.Sp +.Vb 1 +\& $sigset\->emptyset(); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """fillset""" 8 +.el .IP "\f(CWfillset\fR" 8 +.IX Item "fillset" +Initialize the SigSet object to include all signals. +.Sp +.Vb 1 +\& $sigset\->fillset(); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """ismember""" 8 +.el .IP "\f(CWismember\fR" 8 +.IX Item "ismember" +Tests the SigSet object to see if it contains a specific signal. +.Sp +.Vb 3 +\& if( $sigset\->ismember( &POSIX::SIGUSR1 ) ){ +\& print "contains SIGUSR1\en"; +\& } +.Ve +.ie n .SS """POSIX::Termios""" +.el .SS "\f(CWPOSIX::Termios\fP" +.IX Subsection "POSIX::Termios" +.ie n .IP """new""" 8 +.el .IP "\f(CWnew\fR" 8 +.IX Item "new" +Create a new Termios object. This object will be destroyed automatically +when it is no longer needed. A Termios object corresponds to the \f(CW\*(C`termios\*(C'\fR +C struct. \f(CW\*(C`new()\*(C'\fR mallocs a new one, \f(CW\*(C`getattr()\*(C'\fR fills it from a file descriptor, +and \f(CW\*(C`setattr()\*(C'\fR sets a file descriptor's parameters to match Termios' contents. +.Sp +.Vb 1 +\& $termios = POSIX::Termios\->new; +.Ve +.ie n .IP """getattr""" 8 +.el .IP "\f(CWgetattr\fR" 8 +.IX Item "getattr" +Get terminal control attributes. +.Sp +Obtain the attributes for \f(CW\*(C`stdin\*(C'\fR. +.Sp +.Vb 2 +\& $termios\->getattr( 0 ) # Recommended for clarity. +\& $termios\->getattr() +.Ve +.Sp +Obtain the attributes for stdout. +.Sp +.Vb 1 +\& $termios\->getattr( 1 ) +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """getcc""" 8 +.el .IP "\f(CWgetcc\fR" 8 +.IX Item "getcc" +Retrieve a value from the \f(CW\*(C`c_cc\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. The \f(CW\*(C`c_cc\*(C'\fR field is +an array so an index must be specified. +.Sp +.Vb 1 +\& $c_cc[1] = $termios\->getcc(1); +.Ve +.ie n .IP """getcflag""" 8 +.el .IP "\f(CWgetcflag\fR" 8 +.IX Item "getcflag" +Retrieve the \f(CW\*(C`c_cflag\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. +.Sp +.Vb 1 +\& $c_cflag = $termios\->getcflag; +.Ve +.ie n .IP """getiflag""" 8 +.el .IP "\f(CWgetiflag\fR" 8 +.IX Item "getiflag" +Retrieve the \f(CW\*(C`c_iflag\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. +.Sp +.Vb 1 +\& $c_iflag = $termios\->getiflag; +.Ve +.ie n .IP """getispeed""" 8 +.el .IP "\f(CWgetispeed\fR" 8 +.IX Item "getispeed" +Retrieve the input baud rate. +.Sp +.Vb 1 +\& $ispeed = $termios\->getispeed; +.Ve +.ie n .IP """getlflag""" 8 +.el .IP "\f(CWgetlflag\fR" 8 +.IX Item "getlflag" +Retrieve the \f(CW\*(C`c_lflag\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. +.Sp +.Vb 1 +\& $c_lflag = $termios\->getlflag; +.Ve +.ie n .IP """getoflag""" 8 +.el .IP "\f(CWgetoflag\fR" 8 +.IX Item "getoflag" +Retrieve the \f(CW\*(C`c_oflag\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. +.Sp +.Vb 1 +\& $c_oflag = $termios\->getoflag; +.Ve +.ie n .IP """getospeed""" 8 +.el .IP "\f(CWgetospeed\fR" 8 +.IX Item "getospeed" +Retrieve the output baud rate. +.Sp +.Vb 1 +\& $ospeed = $termios\->getospeed; +.Ve +.ie n .IP """setattr""" 8 +.el .IP "\f(CWsetattr\fR" 8 +.IX Item "setattr" +Set terminal control attributes. +.Sp +Set attributes immediately for stdout. +.Sp +.Vb 1 +\& $termios\->setattr( 1, &POSIX::TCSANOW ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """setcc""" 8 +.el .IP "\f(CWsetcc\fR" 8 +.IX Item "setcc" +Set a value in the \f(CW\*(C`c_cc\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. The \f(CW\*(C`c_cc\*(C'\fR field is an +array so an index must be specified. +.Sp +.Vb 1 +\& $termios\->setcc( &POSIX::VEOF, 1 ); +.Ve +.ie n .IP """setcflag""" 8 +.el .IP "\f(CWsetcflag\fR" 8 +.IX Item "setcflag" +Set the \f(CW\*(C`c_cflag\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. +.Sp +.Vb 1 +\& $termios\->setcflag( $c_cflag | &POSIX::CLOCAL ); +.Ve +.ie n .IP """setiflag""" 8 +.el .IP "\f(CWsetiflag\fR" 8 +.IX Item "setiflag" +Set the \f(CW\*(C`c_iflag\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. +.Sp +.Vb 1 +\& $termios\->setiflag( $c_iflag | &POSIX::BRKINT ); +.Ve +.ie n .IP """setispeed""" 8 +.el .IP "\f(CWsetispeed\fR" 8 +.IX Item "setispeed" +Set the input baud rate. +.Sp +.Vb 1 +\& $termios\->setispeed( &POSIX::B9600 ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.ie n .IP """setlflag""" 8 +.el .IP "\f(CWsetlflag\fR" 8 +.IX Item "setlflag" +Set the \f(CW\*(C`c_lflag\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. +.Sp +.Vb 1 +\& $termios\->setlflag( $c_lflag | &POSIX::ECHO ); +.Ve +.ie n .IP """setoflag""" 8 +.el .IP "\f(CWsetoflag\fR" 8 +.IX Item "setoflag" +Set the \f(CW\*(C`c_oflag\*(C'\fR field of a \f(CW\*(C`termios\*(C'\fR object. +.Sp +.Vb 1 +\& $termios\->setoflag( $c_oflag | &POSIX::OPOST ); +.Ve +.ie n .IP """setospeed""" 8 +.el .IP "\f(CWsetospeed\fR" 8 +.IX Item "setospeed" +Set the output baud rate. +.Sp +.Vb 1 +\& $termios\->setospeed( &POSIX::B9600 ); +.Ve +.Sp +Returns \f(CW\*(C`undef\*(C'\fR on failure. +.IP "Baud rate values" 8 +.IX Item "Baud rate values" +\&\f(CW\*(C`B38400\*(C'\fR \f(CW\*(C`B75\*(C'\fR \f(CW\*(C`B200\*(C'\fR \f(CW\*(C`B134\*(C'\fR \f(CW\*(C`B300\*(C'\fR \f(CW\*(C`B1800\*(C'\fR \f(CW\*(C`B150\*(C'\fR \f(CW\*(C`B0\*(C'\fR \f(CW\*(C`B19200\*(C'\fR \f(CW\*(C`B1200\*(C'\fR \f(CW\*(C`B9600\*(C'\fR \f(CW\*(C`B600\*(C'\fR \f(CW\*(C`B4800\*(C'\fR \f(CW\*(C`B50\*(C'\fR \f(CW\*(C`B2400\*(C'\fR \f(CW\*(C`B110\*(C'\fR +.IP "Terminal interface values" 8 +.IX Item "Terminal interface values" +\&\f(CW\*(C`TCSADRAIN\*(C'\fR \f(CW\*(C`TCSANOW\*(C'\fR \f(CW\*(C`TCOON\*(C'\fR \f(CW\*(C`TCIOFLUSH\*(C'\fR \f(CW\*(C`TCOFLUSH\*(C'\fR \f(CW\*(C`TCION\*(C'\fR \f(CW\*(C`TCIFLUSH\*(C'\fR \f(CW\*(C`TCSAFLUSH\*(C'\fR \f(CW\*(C`TCIOFF\*(C'\fR \f(CW\*(C`TCOOFF\*(C'\fR +.ie n .IP """c_cc"" field values" 8 +.el .IP "\f(CWc_cc\fR field values" 8 +.IX Item "c_cc field values" +\&\f(CW\*(C`VEOF\*(C'\fR \f(CW\*(C`VEOL\*(C'\fR \f(CW\*(C`VERASE\*(C'\fR \f(CW\*(C`VINTR\*(C'\fR \f(CW\*(C`VKILL\*(C'\fR \f(CW\*(C`VQUIT\*(C'\fR \f(CW\*(C`VSUSP\*(C'\fR \f(CW\*(C`VSTART\*(C'\fR \f(CW\*(C`VSTOP\*(C'\fR \f(CW\*(C`VMIN\*(C'\fR \f(CW\*(C`VTIME\*(C'\fR \f(CW\*(C`NCCS\*(C'\fR +.ie n .IP """c_cflag"" field values" 8 +.el .IP "\f(CWc_cflag\fR field values" 8 +.IX Item "c_cflag field values" +\&\f(CW\*(C`CLOCAL\*(C'\fR \f(CW\*(C`CREAD\*(C'\fR \f(CW\*(C`CSIZE\*(C'\fR \f(CW\*(C`CS5\*(C'\fR \f(CW\*(C`CS6\*(C'\fR \f(CW\*(C`CS7\*(C'\fR \f(CW\*(C`CS8\*(C'\fR \f(CW\*(C`CSTOPB\*(C'\fR \f(CW\*(C`HUPCL\*(C'\fR \f(CW\*(C`PARENB\*(C'\fR \f(CW\*(C`PARODD\*(C'\fR +.ie n .IP """c_iflag"" field values" 8 +.el .IP "\f(CWc_iflag\fR field values" 8 +.IX Item "c_iflag field values" +\&\f(CW\*(C`BRKINT\*(C'\fR \f(CW\*(C`ICRNL\*(C'\fR \f(CW\*(C`IGNBRK\*(C'\fR \f(CW\*(C`IGNCR\*(C'\fR \f(CW\*(C`IGNPAR\*(C'\fR \f(CW\*(C`INLCR\*(C'\fR \f(CW\*(C`INPCK\*(C'\fR \f(CW\*(C`ISTRIP\*(C'\fR \f(CW\*(C`IXOFF\*(C'\fR \f(CW\*(C`IXON\*(C'\fR \f(CW\*(C`PARMRK\*(C'\fR +.ie n .IP """c_lflag"" field values" 8 +.el .IP "\f(CWc_lflag\fR field values" 8 +.IX Item "c_lflag field values" +\&\f(CW\*(C`ECHO\*(C'\fR \f(CW\*(C`ECHOE\*(C'\fR \f(CW\*(C`ECHOK\*(C'\fR \f(CW\*(C`ECHONL\*(C'\fR \f(CW\*(C`ICANON\*(C'\fR \f(CW\*(C`IEXTEN\*(C'\fR \f(CW\*(C`ISIG\*(C'\fR \f(CW\*(C`NOFLSH\*(C'\fR \f(CW\*(C`TOSTOP\*(C'\fR +.ie n .IP """c_oflag"" field values" 8 +.el .IP "\f(CWc_oflag\fR field values" 8 +.IX Item "c_oflag field values" +\&\f(CW\*(C`OPOST\*(C'\fR +.SH "PATHNAME CONSTANTS" +.IX Header "PATHNAME CONSTANTS" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`_PC_CHOWN_RESTRICTED\*(C'\fR \f(CW\*(C`_PC_LINK_MAX\*(C'\fR \f(CW\*(C`_PC_MAX_CANON\*(C'\fR \f(CW\*(C`_PC_MAX_INPUT\*(C'\fR \f(CW\*(C`_PC_NAME_MAX\*(C'\fR +\&\f(CW\*(C`_PC_NO_TRUNC\*(C'\fR \f(CW\*(C`_PC_PATH_MAX\*(C'\fR \f(CW\*(C`_PC_PIPE_BUF\*(C'\fR \f(CW\*(C`_PC_VDISABLE\*(C'\fR +.SH "POSIX CONSTANTS" +.IX Header "POSIX CONSTANTS" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`_POSIX_ARG_MAX\*(C'\fR \f(CW\*(C`_POSIX_CHILD_MAX\*(C'\fR \f(CW\*(C`_POSIX_CHOWN_RESTRICTED\*(C'\fR \f(CW\*(C`_POSIX_JOB_CONTROL\*(C'\fR +\&\f(CW\*(C`_POSIX_LINK_MAX\*(C'\fR \f(CW\*(C`_POSIX_MAX_CANON\*(C'\fR \f(CW\*(C`_POSIX_MAX_INPUT\*(C'\fR \f(CW\*(C`_POSIX_NAME_MAX\*(C'\fR +\&\f(CW\*(C`_POSIX_NGROUPS_MAX\*(C'\fR \f(CW\*(C`_POSIX_NO_TRUNC\*(C'\fR \f(CW\*(C`_POSIX_OPEN_MAX\*(C'\fR \f(CW\*(C`_POSIX_PATH_MAX\*(C'\fR +\&\f(CW\*(C`_POSIX_PIPE_BUF\*(C'\fR \f(CW\*(C`_POSIX_SAVED_IDS\*(C'\fR \f(CW\*(C`_POSIX_SSIZE_MAX\*(C'\fR \f(CW\*(C`_POSIX_STREAM_MAX\*(C'\fR +\&\f(CW\*(C`_POSIX_TZNAME_MAX\*(C'\fR \f(CW\*(C`_POSIX_VDISABLE\*(C'\fR \f(CW\*(C`_POSIX_VERSION\*(C'\fR +.SH "RESOURCE CONSTANTS" +.IX Header "RESOURCE CONSTANTS" +Imported with the \f(CW\*(C`:sys_resource_h\*(C'\fR tag. +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`PRIO_PROCESS\*(C'\fR \f(CW\*(C`PRIO_PGRP\*(C'\fR \f(CW\*(C`PRIO_USER\*(C'\fR +.SH "SYSTEM CONFIGURATION" +.IX Header "SYSTEM CONFIGURATION" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`_SC_ARG_MAX\*(C'\fR \f(CW\*(C`_SC_CHILD_MAX\*(C'\fR \f(CW\*(C`_SC_CLK_TCK\*(C'\fR \f(CW\*(C`_SC_JOB_CONTROL\*(C'\fR \f(CW\*(C`_SC_NGROUPS_MAX\*(C'\fR +\&\f(CW\*(C`_SC_OPEN_MAX\*(C'\fR \f(CW\*(C`_SC_PAGESIZE\*(C'\fR \f(CW\*(C`_SC_SAVED_IDS\*(C'\fR \f(CW\*(C`_SC_STREAM_MAX\*(C'\fR \f(CW\*(C`_SC_TZNAME_MAX\*(C'\fR +\&\f(CW\*(C`_SC_VERSION\*(C'\fR +.SH "ERRNO" +.IX Header "ERRNO" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`E2BIG\*(C'\fR \f(CW\*(C`EACCES\*(C'\fR \f(CW\*(C`EADDRINUSE\*(C'\fR \f(CW\*(C`EADDRNOTAVAIL\*(C'\fR \f(CW\*(C`EAFNOSUPPORT\*(C'\fR \f(CW\*(C`EAGAIN\*(C'\fR \f(CW\*(C`EALREADY\*(C'\fR \f(CW\*(C`EBADF\*(C'\fR \f(CW\*(C`EBADMSG\*(C'\fR +\&\f(CW\*(C`EBUSY\*(C'\fR \f(CW\*(C`ECANCELED\*(C'\fR \f(CW\*(C`ECHILD\*(C'\fR \f(CW\*(C`ECONNABORTED\*(C'\fR \f(CW\*(C`ECONNREFUSED\*(C'\fR \f(CW\*(C`ECONNRESET\*(C'\fR \f(CW\*(C`EDEADLK\*(C'\fR \f(CW\*(C`EDESTADDRREQ\*(C'\fR +\&\f(CW\*(C`EDOM\*(C'\fR \f(CW\*(C`EDQUOT\*(C'\fR \f(CW\*(C`EEXIST\*(C'\fR \f(CW\*(C`EFAULT\*(C'\fR \f(CW\*(C`EFBIG\*(C'\fR \f(CW\*(C`EHOSTDOWN\*(C'\fR \f(CW\*(C`EHOSTUNREACH\*(C'\fR \f(CW\*(C`EIDRM\*(C'\fR \f(CW\*(C`EILSEQ\*(C'\fR \f(CW\*(C`EINPROGRESS\*(C'\fR +\&\f(CW\*(C`EINTR\*(C'\fR \f(CW\*(C`EINVAL\*(C'\fR \f(CW\*(C`EIO\*(C'\fR \f(CW\*(C`EISCONN\*(C'\fR \f(CW\*(C`EISDIR\*(C'\fR \f(CW\*(C`ELOOP\*(C'\fR \f(CW\*(C`EMFILE\*(C'\fR \f(CW\*(C`EMLINK\*(C'\fR \f(CW\*(C`EMSGSIZE\*(C'\fR \f(CW\*(C`ENAMETOOLONG\*(C'\fR +\&\f(CW\*(C`ENETDOWN\*(C'\fR \f(CW\*(C`ENETRESET\*(C'\fR \f(CW\*(C`ENETUNREACH\*(C'\fR \f(CW\*(C`ENFILE\*(C'\fR \f(CW\*(C`ENOBUFS\*(C'\fR \f(CW\*(C`ENODATA\*(C'\fR \f(CW\*(C`ENODEV\*(C'\fR \f(CW\*(C`ENOENT\*(C'\fR \f(CW\*(C`ENOEXEC\*(C'\fR +\&\f(CW\*(C`ENOLCK\*(C'\fR \f(CW\*(C`ENOLINK\*(C'\fR \f(CW\*(C`ENOMEM\*(C'\fR \f(CW\*(C`ENOMSG\*(C'\fR \f(CW\*(C`ENOPROTOOPT\*(C'\fR \f(CW\*(C`ENOSPC\*(C'\fR \f(CW\*(C`ENOSR\*(C'\fR \f(CW\*(C`ENOSTR\*(C'\fR \f(CW\*(C`ENOSYS\*(C'\fR \f(CW\*(C`ENOTBLK\*(C'\fR +\&\f(CW\*(C`ENOTCONN\*(C'\fR \f(CW\*(C`ENOTDIR\*(C'\fR \f(CW\*(C`ENOTEMPTY\*(C'\fR \f(CW\*(C`ENOTRECOVERABLE\*(C'\fR \f(CW\*(C`ENOTSOCK\*(C'\fR \f(CW\*(C`ENOTSUP\*(C'\fR \f(CW\*(C`ENOTTY\*(C'\fR \f(CW\*(C`ENXIO\*(C'\fR +\&\f(CW\*(C`EOPNOTSUPP\*(C'\fR \f(CW\*(C`EOTHER\*(C'\fR \f(CW\*(C`EOVERFLOW\*(C'\fR \f(CW\*(C`EOWNERDEAD\*(C'\fR \f(CW\*(C`EPERM\*(C'\fR \f(CW\*(C`EPFNOSUPPORT\*(C'\fR \f(CW\*(C`EPIPE\*(C'\fR \f(CW\*(C`EPROCLIM\*(C'\fR \f(CW\*(C`EPROTO\*(C'\fR +\&\f(CW\*(C`EPROTONOSUPPORT\*(C'\fR \f(CW\*(C`EPROTOTYPE\*(C'\fR \f(CW\*(C`ERANGE\*(C'\fR \f(CW\*(C`EREMOTE\*(C'\fR \f(CW\*(C`ERESTART\*(C'\fR \f(CW\*(C`EROFS\*(C'\fR \f(CW\*(C`ESHUTDOWN\*(C'\fR +\&\f(CW\*(C`ESOCKTNOSUPPORT\*(C'\fR \f(CW\*(C`ESPIPE\*(C'\fR \f(CW\*(C`ESRCH\*(C'\fR \f(CW\*(C`ESTALE\*(C'\fR \f(CW\*(C`ETIME\*(C'\fR \f(CW\*(C`ETIMEDOUT\*(C'\fR \f(CW\*(C`ETOOMANYREFS\*(C'\fR \f(CW\*(C`ETXTBSY\*(C'\fR \f(CW\*(C`EUSERS\*(C'\fR +\&\f(CW\*(C`EWOULDBLOCK\*(C'\fR \f(CW\*(C`EXDEV\*(C'\fR +.SH "FCNTL" +.IX Header "FCNTL" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`FD_CLOEXEC\*(C'\fR \f(CW\*(C`F_DUPFD\*(C'\fR \f(CW\*(C`F_GETFD\*(C'\fR \f(CW\*(C`F_GETFL\*(C'\fR \f(CW\*(C`F_GETLK\*(C'\fR \f(CW\*(C`F_OK\*(C'\fR \f(CW\*(C`F_RDLCK\*(C'\fR \f(CW\*(C`F_SETFD\*(C'\fR \f(CW\*(C`F_SETFL\*(C'\fR \f(CW\*(C`F_SETLK\*(C'\fR +\&\f(CW\*(C`F_SETLKW\*(C'\fR \f(CW\*(C`F_UNLCK\*(C'\fR \f(CW\*(C`F_WRLCK\*(C'\fR \f(CW\*(C`O_ACCMODE\*(C'\fR \f(CW\*(C`O_APPEND\*(C'\fR \f(CW\*(C`O_CREAT\*(C'\fR \f(CW\*(C`O_EXCL\*(C'\fR \f(CW\*(C`O_NOCTTY\*(C'\fR \f(CW\*(C`O_NONBLOCK\*(C'\fR +\&\f(CW\*(C`O_RDONLY\*(C'\fR \f(CW\*(C`O_RDWR\*(C'\fR \f(CW\*(C`O_TRUNC\*(C'\fR \f(CW\*(C`O_WRONLY\*(C'\fR +.SH "FLOAT" +.IX Header "FLOAT" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`DBL_DIG\*(C'\fR \f(CW\*(C`DBL_EPSILON\*(C'\fR \f(CW\*(C`DBL_MANT_DIG\*(C'\fR \f(CW\*(C`DBL_MAX\*(C'\fR \f(CW\*(C`DBL_MAX_10_EXP\*(C'\fR \f(CW\*(C`DBL_MAX_EXP\*(C'\fR \f(CW\*(C`DBL_MIN\*(C'\fR +\&\f(CW\*(C`DBL_MIN_10_EXP\*(C'\fR \f(CW\*(C`DBL_MIN_EXP\*(C'\fR \f(CW\*(C`FLT_DIG\*(C'\fR \f(CW\*(C`FLT_EPSILON\*(C'\fR \f(CW\*(C`FLT_MANT_DIG\*(C'\fR \f(CW\*(C`FLT_MAX\*(C'\fR +\&\f(CW\*(C`FLT_MAX_10_EXP\*(C'\fR \f(CW\*(C`FLT_MAX_EXP\*(C'\fR \f(CW\*(C`FLT_MIN\*(C'\fR \f(CW\*(C`FLT_MIN_10_EXP\*(C'\fR \f(CW\*(C`FLT_MIN_EXP\*(C'\fR \f(CW\*(C`FLT_RADIX\*(C'\fR +\&\f(CW\*(C`FLT_ROUNDS\*(C'\fR \f(CW\*(C`LDBL_DIG\*(C'\fR \f(CW\*(C`LDBL_EPSILON\*(C'\fR \f(CW\*(C`LDBL_MANT_DIG\*(C'\fR \f(CW\*(C`LDBL_MAX\*(C'\fR \f(CW\*(C`LDBL_MAX_10_EXP\*(C'\fR +\&\f(CW\*(C`LDBL_MAX_EXP\*(C'\fR \f(CW\*(C`LDBL_MIN\*(C'\fR \f(CW\*(C`LDBL_MIN_10_EXP\*(C'\fR \f(CW\*(C`LDBL_MIN_EXP\*(C'\fR +.SH "FLOATING-POINT ENVIRONMENT" +.IX Header "FLOATING-POINT ENVIRONMENT" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`FE_DOWNWARD\*(C'\fR \f(CW\*(C`FE_TONEAREST\*(C'\fR \f(CW\*(C`FE_TOWARDZERO\*(C'\fR \f(CW\*(C`FE_UPWARD\*(C'\fR +on systems that support them. +.SH "LIMITS" +.IX Header "LIMITS" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`ARG_MAX\*(C'\fR \f(CW\*(C`CHAR_BIT\*(C'\fR \f(CW\*(C`CHAR_MAX\*(C'\fR \f(CW\*(C`CHAR_MIN\*(C'\fR \f(CW\*(C`CHILD_MAX\*(C'\fR \f(CW\*(C`INT_MAX\*(C'\fR \f(CW\*(C`INT_MIN\*(C'\fR \f(CW\*(C`LINK_MAX\*(C'\fR \f(CW\*(C`LONG_MAX\*(C'\fR +\&\f(CW\*(C`LONG_MIN\*(C'\fR \f(CW\*(C`MAX_CANON\*(C'\fR \f(CW\*(C`MAX_INPUT\*(C'\fR \f(CW\*(C`MB_LEN_MAX\*(C'\fR \f(CW\*(C`NAME_MAX\*(C'\fR \f(CW\*(C`NGROUPS_MAX\*(C'\fR \f(CW\*(C`OPEN_MAX\*(C'\fR \f(CW\*(C`PATH_MAX\*(C'\fR +\&\f(CW\*(C`PIPE_BUF\*(C'\fR \f(CW\*(C`SCHAR_MAX\*(C'\fR \f(CW\*(C`SCHAR_MIN\*(C'\fR \f(CW\*(C`SHRT_MAX\*(C'\fR \f(CW\*(C`SHRT_MIN\*(C'\fR \f(CW\*(C`SSIZE_MAX\*(C'\fR \f(CW\*(C`STREAM_MAX\*(C'\fR \f(CW\*(C`TZNAME_MAX\*(C'\fR +\&\f(CW\*(C`UCHAR_MAX\*(C'\fR \f(CW\*(C`UINT_MAX\*(C'\fR \f(CW\*(C`ULONG_MAX\*(C'\fR \f(CW\*(C`USHRT_MAX\*(C'\fR +.SH "LOCALE" +.IX Header "LOCALE" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`LC_ALL\*(C'\fR \f(CW\*(C`LC_COLLATE\*(C'\fR \f(CW\*(C`LC_CTYPE\*(C'\fR \f(CW\*(C`LC_MONETARY\*(C'\fR \f(CW\*(C`LC_NUMERIC\*(C'\fR \f(CW\*(C`LC_TIME\*(C'\fR \f(CW\*(C`LC_MESSAGES\*(C'\fR +on systems that support them. +.SH "MATH" +.IX Header "MATH" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`HUGE_VAL\*(C'\fR +.Sp +\&\f(CW\*(C`FP_ILOGB0\*(C'\fR \f(CW\*(C`FP_ILOGBNAN\*(C'\fR \f(CW\*(C`FP_INFINITE\*(C'\fR \f(CW\*(C`FP_NAN\*(C'\fR \f(CW\*(C`FP_NORMAL\*(C'\fR \f(CW\*(C`FP_SUBNORMAL\*(C'\fR \f(CW\*(C`FP_ZERO\*(C'\fR +\&\f(CW\*(C`INFINITY\*(C'\fR \f(CW\*(C`NAN\*(C'\fR \f(CW\*(C`Inf\*(C'\fR \f(CW\*(C`NaN\*(C'\fR +\&\f(CW\*(C`M_1_PI\*(C'\fR \f(CW\*(C`M_2_PI\*(C'\fR \f(CW\*(C`M_2_SQRTPI\*(C'\fR \f(CW\*(C`M_E\*(C'\fR \f(CW\*(C`M_LN10\*(C'\fR \f(CW\*(C`M_LN2\*(C'\fR \f(CW\*(C`M_LOG10E\*(C'\fR \f(CW\*(C`M_LOG2E\*(C'\fR \f(CW\*(C`M_PI\*(C'\fR +\&\f(CW\*(C`M_PI_2\*(C'\fR \f(CW\*(C`M_PI_4\*(C'\fR \f(CW\*(C`M_SQRT1_2\*(C'\fR \f(CW\*(C`M_SQRT2\*(C'\fR +on systems with C99 support. +.SH "SIGNAL" +.IX Header "SIGNAL" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`SA_NOCLDSTOP\*(C'\fR \f(CW\*(C`SA_NOCLDWAIT\*(C'\fR \f(CW\*(C`SA_NODEFER\*(C'\fR \f(CW\*(C`SA_ONSTACK\*(C'\fR \f(CW\*(C`SA_RESETHAND\*(C'\fR \f(CW\*(C`SA_RESTART\*(C'\fR +\&\f(CW\*(C`SA_SIGINFO\*(C'\fR \f(CW\*(C`SIGABRT\*(C'\fR \f(CW\*(C`SIGALRM\*(C'\fR \f(CW\*(C`SIGCHLD\*(C'\fR \f(CW\*(C`SIGCONT\*(C'\fR \f(CW\*(C`SIGFPE\*(C'\fR \f(CW\*(C`SIGHUP\*(C'\fR \f(CW\*(C`SIGILL\*(C'\fR \f(CW\*(C`SIGINT\*(C'\fR +\&\f(CW\*(C`SIGKILL\*(C'\fR \f(CW\*(C`SIGPIPE\*(C'\fR \f(CW\*(C`SIGQUIT\*(C'\fR \f(CW\*(C`SIGSEGV\*(C'\fR \f(CW\*(C`SIGSTOP\*(C'\fR \f(CW\*(C`SIGTERM\*(C'\fR \f(CW\*(C`SIGTSTP\*(C'\fR \f(CW\*(C`SIGTTIN\*(C'\fR \f(CW\*(C`SIGTTOU\*(C'\fR +\&\f(CW\*(C`SIGUSR1\*(C'\fR \f(CW\*(C`SIGUSR2\*(C'\fR \f(CW\*(C`SIG_BLOCK\*(C'\fR \f(CW\*(C`SIG_DFL\*(C'\fR \f(CW\*(C`SIG_ERR\*(C'\fR \f(CW\*(C`SIG_IGN\*(C'\fR \f(CW\*(C`SIG_SETMASK\*(C'\fR +\&\f(CW\*(C`SIG_UNBLOCK\*(C'\fR +\&\f(CW\*(C`ILL_ILLOPC\*(C'\fR \f(CW\*(C`ILL_ILLOPN\*(C'\fR \f(CW\*(C`ILL_ILLADR\*(C'\fR \f(CW\*(C`ILL_ILLTRP\*(C'\fR \f(CW\*(C`ILL_PRVOPC\*(C'\fR \f(CW\*(C`ILL_PRVREG\*(C'\fR \f(CW\*(C`ILL_COPROC\*(C'\fR +\&\f(CW\*(C`ILL_BADSTK\*(C'\fR \f(CW\*(C`FPE_INTDIV\*(C'\fR \f(CW\*(C`FPE_INTOVF\*(C'\fR \f(CW\*(C`FPE_FLTDIV\*(C'\fR \f(CW\*(C`FPE_FLTOVF\*(C'\fR \f(CW\*(C`FPE_FLTUND\*(C'\fR \f(CW\*(C`FPE_FLTRES\*(C'\fR +\&\f(CW\*(C`FPE_FLTINV\*(C'\fR \f(CW\*(C`FPE_FLTSUB\*(C'\fR \f(CW\*(C`SEGV_MAPERR\*(C'\fR \f(CW\*(C`SEGV_ACCERR\*(C'\fR \f(CW\*(C`BUS_ADRALN\*(C'\fR \f(CW\*(C`BUS_ADRERR\*(C'\fR +\&\f(CW\*(C`BUS_OBJERR\*(C'\fR \f(CW\*(C`TRAP_BRKPT\*(C'\fR \f(CW\*(C`TRAP_TRACE\*(C'\fR \f(CW\*(C`CLD_EXITED\*(C'\fR \f(CW\*(C`CLD_KILLED\*(C'\fR \f(CW\*(C`CLD_DUMPED\*(C'\fR \f(CW\*(C`CLD_TRAPPED\*(C'\fR +\&\f(CW\*(C`CLD_STOPPED\*(C'\fR \f(CW\*(C`CLD_CONTINUED\*(C'\fR \f(CW\*(C`POLL_IN\*(C'\fR \f(CW\*(C`POLL_OUT\*(C'\fR \f(CW\*(C`POLL_MSG\*(C'\fR \f(CW\*(C`POLL_ERR\*(C'\fR \f(CW\*(C`POLL_PRI\*(C'\fR +\&\f(CW\*(C`POLL_HUP\*(C'\fR \f(CW\*(C`SI_USER\*(C'\fR \f(CW\*(C`SI_QUEUE\*(C'\fR \f(CW\*(C`SI_TIMER\*(C'\fR \f(CW\*(C`SI_ASYNCIO\*(C'\fR \f(CW\*(C`SI_MESGQ\*(C'\fR +.SH "STAT" +.IX Header "STAT" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`S_IRGRP\*(C'\fR \f(CW\*(C`S_IROTH\*(C'\fR \f(CW\*(C`S_IRUSR\*(C'\fR \f(CW\*(C`S_IRWXG\*(C'\fR \f(CW\*(C`S_IRWXO\*(C'\fR \f(CW\*(C`S_IRWXU\*(C'\fR \f(CW\*(C`S_ISGID\*(C'\fR \f(CW\*(C`S_ISUID\*(C'\fR \f(CW\*(C`S_IWGRP\*(C'\fR \f(CW\*(C`S_IWOTH\*(C'\fR +\&\f(CW\*(C`S_IWUSR\*(C'\fR \f(CW\*(C`S_IXGRP\*(C'\fR \f(CW\*(C`S_IXOTH\*(C'\fR \f(CW\*(C`S_IXUSR\*(C'\fR +.IP "Macros" 8 +.IX Item "Macros" +\&\f(CW\*(C`S_ISBLK\*(C'\fR \f(CW\*(C`S_ISCHR\*(C'\fR \f(CW\*(C`S_ISDIR\*(C'\fR \f(CW\*(C`S_ISFIFO\*(C'\fR \f(CW\*(C`S_ISREG\*(C'\fR +.SH "STDLIB" +.IX Header "STDLIB" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`EXIT_FAILURE\*(C'\fR \f(CW\*(C`EXIT_SUCCESS\*(C'\fR \f(CW\*(C`MB_CUR_MAX\*(C'\fR \f(CW\*(C`RAND_MAX\*(C'\fR +.SH "STDIO" +.IX Header "STDIO" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`BUFSIZ\*(C'\fR \f(CW\*(C`EOF\*(C'\fR \f(CW\*(C`FILENAME_MAX\*(C'\fR \f(CW\*(C`L_ctermid\*(C'\fR \f(CW\*(C`L_cuserid\*(C'\fR \f(CW\*(C`TMP_MAX\*(C'\fR +.SH "TIME" +.IX Header "TIME" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`CLK_TCK\*(C'\fR \f(CW\*(C`CLOCKS_PER_SEC\*(C'\fR +.SH "UNISTD" +.IX Header "UNISTD" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`R_OK\*(C'\fR \f(CW\*(C`SEEK_CUR\*(C'\fR \f(CW\*(C`SEEK_END\*(C'\fR \f(CW\*(C`SEEK_SET\*(C'\fR \f(CW\*(C`STDIN_FILENO\*(C'\fR \f(CW\*(C`STDOUT_FILENO\*(C'\fR \f(CW\*(C`STDERR_FILENO\*(C'\fR \f(CW\*(C`W_OK\*(C'\fR \f(CW\*(C`X_OK\*(C'\fR +.SH "WAIT" +.IX Header "WAIT" +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`WNOHANG\*(C'\fR \f(CW\*(C`WUNTRACED\*(C'\fR +.RS 8 +.ie n .IP """WNOHANG""" 16 +.el .IP "\f(CWWNOHANG\fR" 16 +.IX Item "WNOHANG" +Do not suspend the calling process until a child process +changes state but instead return immediately. +.ie n .IP """WUNTRACED""" 16 +.el .IP "\f(CWWUNTRACED\fR" 16 +.IX Item "WUNTRACED" +Catch stopped child processes. +.RE +.RS 8 +.RE +.IP "Macros" 8 +.IX Item "Macros" +\&\f(CW\*(C`WIFEXITED\*(C'\fR \f(CW\*(C`WEXITSTATUS\*(C'\fR \f(CW\*(C`WIFSIGNALED\*(C'\fR \f(CW\*(C`WTERMSIG\*(C'\fR \f(CW\*(C`WIFSTOPPED\*(C'\fR \f(CW\*(C`WSTOPSIG\*(C'\fR +.RS 8 +.ie n .IP """WIFEXITED""" 16 +.el .IP "\f(CWWIFEXITED\fR" 16 +.IX Item "WIFEXITED" +\&\f(CW\*(C`WIFEXITED(${^CHILD_ERROR_NATIVE})\*(C'\fR returns true if the child process +exited normally (\f(CW\*(C`exit()\*(C'\fR or by falling off the end of \f(CW\*(C`main()\*(C'\fR) +.ie n .IP """WEXITSTATUS""" 16 +.el .IP "\f(CWWEXITSTATUS\fR" 16 +.IX Item "WEXITSTATUS" +\&\f(CW\*(C`WEXITSTATUS(${^CHILD_ERROR_NATIVE})\*(C'\fR returns the normal exit status of +the child process (only meaningful if \f(CW\*(C`WIFEXITED(${^CHILD_ERROR_NATIVE})\*(C'\fR +is true) +.ie n .IP """WIFSIGNALED""" 16 +.el .IP "\f(CWWIFSIGNALED\fR" 16 +.IX Item "WIFSIGNALED" +\&\f(CW\*(C`WIFSIGNALED(${^CHILD_ERROR_NATIVE})\*(C'\fR returns true if the child process +terminated because of a signal +.ie n .IP """WTERMSIG""" 16 +.el .IP "\f(CWWTERMSIG\fR" 16 +.IX Item "WTERMSIG" +\&\f(CW\*(C`WTERMSIG(${^CHILD_ERROR_NATIVE})\*(C'\fR returns the signal the child process +terminated for (only meaningful if +\&\f(CW\*(C`WIFSIGNALED(${^CHILD_ERROR_NATIVE})\*(C'\fR +is true) +.ie n .IP """WIFSTOPPED""" 16 +.el .IP "\f(CWWIFSTOPPED\fR" 16 +.IX Item "WIFSTOPPED" +\&\f(CW\*(C`WIFSTOPPED(${^CHILD_ERROR_NATIVE})\*(C'\fR returns true if the child process is +currently stopped (can happen only if you specified the \s-1WUNTRACED\s0 flag +to \f(CW\*(C`waitpid()\*(C'\fR) +.ie n .IP """WSTOPSIG""" 16 +.el .IP "\f(CWWSTOPSIG\fR" 16 +.IX Item "WSTOPSIG" +\&\f(CW\*(C`WSTOPSIG(${^CHILD_ERROR_NATIVE})\*(C'\fR returns the signal the child process +was stopped for (only meaningful if +\&\f(CW\*(C`WIFSTOPPED(${^CHILD_ERROR_NATIVE})\*(C'\fR +is true) +.RE +.RS 8 +.RE +.SH "WINSOCK" +.IX Header "WINSOCK" +(Windows only.) +.IP "Constants" 8 +.IX Item "Constants" +\&\f(CW\*(C`WSAEINTR\*(C'\fR \f(CW\*(C`WSAEBADF\*(C'\fR \f(CW\*(C`WSAEACCES\*(C'\fR \f(CW\*(C`WSAEFAULT\*(C'\fR \f(CW\*(C`WSAEINVAL\*(C'\fR \f(CW\*(C`WSAEMFILE\*(C'\fR \f(CW\*(C`WSAEWOULDBLOCK\*(C'\fR +\&\f(CW\*(C`WSAEINPROGRESS\*(C'\fR \f(CW\*(C`WSAEALREADY\*(C'\fR \f(CW\*(C`WSAENOTSOCK\*(C'\fR \f(CW\*(C`WSAEDESTADDRREQ\*(C'\fR \f(CW\*(C`WSAEMSGSIZE\*(C'\fR +\&\f(CW\*(C`WSAEPROTOTYPE\*(C'\fR \f(CW\*(C`WSAENOPROTOOPT\*(C'\fR \f(CW\*(C`WSAEPROTONOSUPPORT\*(C'\fR \f(CW\*(C`WSAESOCKTNOSUPPORT\*(C'\fR +\&\f(CW\*(C`WSAEOPNOTSUPP\*(C'\fR \f(CW\*(C`WSAEPFNOSUPPORT\*(C'\fR \f(CW\*(C`WSAEAFNOSUPPORT\*(C'\fR \f(CW\*(C`WSAEADDRINUSE\*(C'\fR +\&\f(CW\*(C`WSAEADDRNOTAVAIL\*(C'\fR \f(CW\*(C`WSAENETDOWN\*(C'\fR \f(CW\*(C`WSAENETUNREACH\*(C'\fR \f(CW\*(C`WSAENETRESET\*(C'\fR \f(CW\*(C`WSAECONNABORTED\*(C'\fR +\&\f(CW\*(C`WSAECONNRESET\*(C'\fR \f(CW\*(C`WSAENOBUFS\*(C'\fR \f(CW\*(C`WSAEISCONN\*(C'\fR \f(CW\*(C`WSAENOTCONN\*(C'\fR \f(CW\*(C`WSAESHUTDOWN\*(C'\fR +\&\f(CW\*(C`WSAETOOMANYREFS\*(C'\fR \f(CW\*(C`WSAETIMEDOUT\*(C'\fR \f(CW\*(C`WSAECONNREFUSED\*(C'\fR \f(CW\*(C`WSAELOOP\*(C'\fR \f(CW\*(C`WSAENAMETOOLONG\*(C'\fR +\&\f(CW\*(C`WSAEHOSTDOWN\*(C'\fR \f(CW\*(C`WSAEHOSTUNREACH\*(C'\fR \f(CW\*(C`WSAENOTEMPTY\*(C'\fR \f(CW\*(C`WSAEPROCLIM\*(C'\fR \f(CW\*(C`WSAEUSERS\*(C'\fR +\&\f(CW\*(C`WSAEDQUOT\*(C'\fR \f(CW\*(C`WSAESTALE\*(C'\fR \f(CW\*(C`WSAEREMOTE\*(C'\fR \f(CW\*(C`WSAEDISCON\*(C'\fR \f(CW\*(C`WSAENOMORE\*(C'\fR \f(CW\*(C`WSAECANCELLED\*(C'\fR +\&\f(CW\*(C`WSAEINVALIDPROCTABLE\*(C'\fR \f(CW\*(C`WSAEINVALIDPROVIDER\*(C'\fR \f(CW\*(C`WSAEPROVIDERFAILEDINIT\*(C'\fR +\&\f(CW\*(C`WSAEREFUSED\*(C'\fR diff --git a/data/miniconda3/man/man3/Parse%3A%3ACPAN%3A%3AMeta.3 b/data/miniconda3/man/man3/Parse%3A%3ACPAN%3A%3AMeta.3 new file mode 100644 index 0000000000000000000000000000000000000000..92830ac2a36957434a13da6e0af762590d4763aa --- /dev/null +++ b/data/miniconda3/man/man3/Parse%3A%3ACPAN%3A%3AMeta.3 @@ -0,0 +1,327 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Parse::CPAN::Meta 3" +.TH Parse::CPAN::Meta 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Parse::CPAN::Meta \- Parse META.yml and META.json CPAN metadata files +.SH "VERSION" +.IX Header "VERSION" +version 2.150010 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& ############################################# +\& # In your file +\& +\& \-\-\- +\& name: My\-Distribution +\& version: 1.23 +\& resources: +\& homepage: "http://example.com/dist/My\-Distribution" +\& +\& +\& ############################################# +\& # In your program +\& +\& use Parse::CPAN::Meta; +\& +\& my $distmeta = Parse::CPAN::Meta\->load_file(\*(AqMETA.yml\*(Aq); +\& +\& # Reading properties +\& my $name = $distmeta\->{name}; +\& my $version = $distmeta\->{version}; +\& my $homepage = $distmeta\->{resources}{homepage}; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBParse::CPAN::Meta\fR is a parser for \fI\s-1META\s0.json\fR and \fI\s-1META\s0.yml\fR files, using +\&\s-1JSON::PP\s0 and/or CPAN::Meta::YAML. +.PP +\&\fBParse::CPAN::Meta\fR provides three methods: \f(CW\*(C`load_file\*(C'\fR, \f(CW\*(C`load_json_string\*(C'\fR, +and \f(CW\*(C`load_yaml_string\*(C'\fR. These will read and deserialize \s-1CPAN\s0 metafiles, and +are described below in detail. +.PP +\&\fBParse::CPAN::Meta\fR provides a legacy \s-1API\s0 of only two functions, +based on the \s-1YAML\s0 functions of the same name. Wherever possible, +identical calling semantics are used. These may only be used with \s-1YAML\s0 sources. +.PP +All error reporting is done with exceptions (die'ing). +.PP +Note that \s-1META\s0 files are expected to be in \s-1UTF\-8\s0 encoding, only. When +converted string data, it must first be decoded from \s-1UTF\-8.\s0 +.SH "METHODS" +.IX Header "METHODS" +.SS "load_file" +.IX Subsection "load_file" +.Vb 1 +\& my $metadata_structure = Parse::CPAN::Meta\->load_file(\*(AqMETA.json\*(Aq); +\& +\& my $metadata_structure = Parse::CPAN::Meta\->load_file(\*(AqMETA.yml\*(Aq); +.Ve +.PP +This method will read the named file and deserialize it to a data structure, +determining whether it should be \s-1JSON\s0 or \s-1YAML\s0 based on the filename. +The file will be read using the \*(L":utf8\*(R" \s-1IO\s0 layer. +.SS "load_yaml_string" +.IX Subsection "load_yaml_string" +.Vb 1 +\& my $metadata_structure = Parse::CPAN::Meta\->load_yaml_string($yaml_string); +.Ve +.PP +This method deserializes the given string of \s-1YAML\s0 and returns the first +document in it. (\s-1CPAN\s0 metadata files should always have only one document.) +If the source was \s-1UTF\-8\s0 encoded, the string must be decoded before calling +\&\f(CW\*(C`load_yaml_string\*(C'\fR. +.SS "load_json_string" +.IX Subsection "load_json_string" +.Vb 1 +\& my $metadata_structure = Parse::CPAN::Meta\->load_json_string($json_string); +.Ve +.PP +This method deserializes the given string of \s-1JSON\s0 and the result. +If the source was \s-1UTF\-8\s0 encoded, the string must be decoded before calling +\&\f(CW\*(C`load_json_string\*(C'\fR. +.SS "load_string" +.IX Subsection "load_string" +.Vb 1 +\& my $metadata_structure = Parse::CPAN::Meta\->load_string($some_string); +.Ve +.PP +If you don't know whether a string contains \s-1YAML\s0 or \s-1JSON\s0 data, this method +will use some heuristics and guess. If it can't tell, it assumes \s-1YAML.\s0 +.SS "yaml_backend" +.IX Subsection "yaml_backend" +.Vb 1 +\& my $backend = Parse::CPAN::Meta\->yaml_backend; +.Ve +.PP +Returns the module name of the \s-1YAML\s0 serializer. See \*(L"\s-1ENVIRONMENT\*(R"\s0 +for details. +.SS "json_backend" +.IX Subsection "json_backend" +.Vb 1 +\& my $backend = Parse::CPAN::Meta\->json_backend; +.Ve +.PP +Returns the module name of the \s-1JSON\s0 serializer. If \f(CW\*(C`CPAN_META_JSON_BACKEND\*(C'\fR +is set, this will be whatever that's set to. If not, this will either +be \s-1JSON::PP\s0 or \s-1JSON\s0. If \f(CW\*(C`PERL_JSON_BACKEND\*(C'\fR is set, +this will return \s-1JSON\s0 as further delegation is handled by +the \s-1JSON\s0 module. See \*(L"\s-1ENVIRONMENT\*(R"\s0 for details. +.SS "json_decoder" +.IX Subsection "json_decoder" +.Vb 1 +\& my $decoder = Parse::CPAN::Meta\->json_decoder; +.Ve +.PP +Returns the module name of the \s-1JSON\s0 decoder. Unlike \*(L"json_backend\*(R", this +is not necessarily a full \s-1JSON\s0\-style module, but only something that will +provide a \f(CW\*(C`decode_json\*(C'\fR subroutine. If \f(CW\*(C`CPAN_META_JSON_DECODER\*(C'\fR is set, +this will be whatever that's set to. If not, this will be whatever has +been selected as \*(L"json_backend\*(R". See \*(L"\s-1ENVIRONMENT\*(R"\s0 for more notes. +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +For maintenance clarity, no functions are exported by default. These functions +are available for backwards compatibility only and are best avoided in favor of +\&\f(CW\*(C`load_file\*(C'\fR. +.SS "Load" +.IX Subsection "Load" +.Vb 1 +\& my @yaml = Parse::CPAN::Meta::Load( $string ); +.Ve +.PP +Parses a string containing a valid \s-1YAML\s0 stream into a list of Perl data +structures. +.SS "LoadFile" +.IX Subsection "LoadFile" +.Vb 1 +\& my @yaml = Parse::CPAN::Meta::LoadFile( \*(AqMETA.yml\*(Aq ); +.Ve +.PP +Reads the \s-1YAML\s0 stream from a file instead of a string. +.SH "ENVIRONMENT" +.IX Header "ENVIRONMENT" +.SS "\s-1CPAN_META_JSON_DECODER\s0" +.IX Subsection "CPAN_META_JSON_DECODER" +By default, \s-1JSON::PP\s0 will be used for deserializing \s-1JSON\s0 data. If the +\&\f(CW\*(C`CPAN_META_JSON_DECODER\*(C'\fR environment variable exists, this is expected to +be the name of a loadable module that provides a \f(CW\*(C`decode_json\*(C'\fR subroutine, +which will then be used for deserialization. Relying only on the existence +of said subroutine allows for maximum compatibility, since this \s-1API\s0 is +provided by all of \s-1JSON::PP\s0, \s-1JSON::XS\s0, Cpanel::JSON::XS, +JSON::MaybeXS, JSON::Tiny, and Mojo::JSON. +.SS "\s-1CPAN_META_JSON_BACKEND\s0" +.IX Subsection "CPAN_META_JSON_BACKEND" +By default, \s-1JSON::PP\s0 will be used for deserializing \s-1JSON\s0 data. If the +\&\f(CW\*(C`CPAN_META_JSON_BACKEND\*(C'\fR environment variable exists, this is expected to +be the name of a loadable module that provides the \s-1JSON\s0 \s-1API,\s0 since +downstream code expects to be able to call \f(CW\*(C`new\*(C'\fR on this class. As such, +while \s-1JSON::PP\s0, \s-1JSON::XS\s0, Cpanel::JSON::XS and JSON::MaybeXS will +work for this, to use Mojo::JSON or JSON::Tiny for decoding requires +setting \*(L"\s-1CPAN_META_JSON_DECODER\*(R"\s0. +.SS "\s-1PERL_JSON_BACKEND\s0" +.IX Subsection "PERL_JSON_BACKEND" +If the \f(CW\*(C`CPAN_META_JSON_BACKEND\*(C'\fR environment variable does not exist, and if +\&\f(CW\*(C`PERL_JSON_BACKEND\*(C'\fR environment variable exists, is true and is not +\&\*(L"\s-1JSON::PP\*(R",\s0 then the \s-1JSON\s0 module (version 2.5 or greater) will be loaded and +used to interpret \f(CW\*(C`PERL_JSON_BACKEND\*(C'\fR. If \s-1JSON\s0 is not installed or is too +old, an exception will be thrown. Note that at the time of writing, the only +useful values are 1, which will tell \s-1JSON\s0 to guess, or \s-1JSON::XS\s0 \- if +you want to use a newer \s-1JSON\s0 module, see \*(L"\s-1CPAN_META_JSON_BACKEND\*(R"\s0. +.SS "\s-1PERL_YAML_BACKEND\s0" +.IX Subsection "PERL_YAML_BACKEND" +By default, CPAN::Meta::YAML will be used for deserializing \s-1YAML\s0 data. If +the \f(CW\*(C`PERL_YAML_BACKEND\*(C'\fR environment variable is defined, then it is interpreted +as a module to use for deserialization. The given module must be installed, +must load correctly and must implement the \f(CW\*(C`Load()\*(C'\fR function or an exception +will be thrown. +.SH "AUTHORS" +.IX Header "AUTHORS" +.IP "\(bu" 4 +David Golden +.IP "\(bu" 4 +Ricardo Signes +.IP "\(bu" 4 +Adam Kennedy +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors. +.PP +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. diff --git a/data/miniconda3/man/man3/PerlIO%3A%3Ascalar.3 b/data/miniconda3/man/man3/PerlIO%3A%3Ascalar.3 new file mode 100644 index 0000000000000000000000000000000000000000..db48244c1be05d77d2b448def85b6bbd9379ae57 --- /dev/null +++ b/data/miniconda3/man/man3/PerlIO%3A%3Ascalar.3 @@ -0,0 +1,172 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "PerlIO::scalar 3" +.TH PerlIO::scalar 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +PerlIO::scalar \- in\-memory IO, scalar IO +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& my $scalar = \*(Aq\*(Aq; +\& ... +\& open my $fh, "<", \e$scalar or die; +\& open my $fh, ">", \e$scalar or die; +\& open my $fh, ">>", \e$scalar or die; +.Ve +.PP +or +.PP +.Vb 5 +\& my $scalar = \*(Aq\*(Aq; +\& ... +\& open my $fh, "<:scalar", \e$scalar or die; +\& open my $fh, ">:scalar", \e$scalar or die; +\& open my $fh, ">>:scalar", \e$scalar or die; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +A filehandle is opened but the file operations are performed \*(L"in-memory\*(R" +on a scalar variable. All the normal file operations can be performed +on the handle. The scalar is considered a stream of bytes. Currently +fileno($fh) returns \-1. +.SH "IMPLEMENTATION NOTE" +.IX Header "IMPLEMENTATION NOTE" +\&\f(CW\*(C`PerlIO::scalar\*(C'\fR only exists to use XSLoader to load C code that +provides support for treating a scalar as an \*(L"in memory\*(R" file. +One does not need to explicitly \f(CW\*(C`use PerlIO::scalar\*(C'\fR. diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToANSI.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToANSI.3 new file mode 100644 index 0000000000000000000000000000000000000000..e3fe2946728f372de35e15d1cd696b04ca7e74bf --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToANSI.3 @@ -0,0 +1,185 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Pod::Perldoc::ToANSI 3" +.TH Pod::Perldoc::ToANSI 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Pod::Perldoc::ToANSI \- render Pod with ANSI color escapes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-o ansi Some::Modulename +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Pod::Text as a formatter class. +.PP +It supports the following options, which are explained in +Pod::Text: alt, indent, loose, quotes, sentence, width +.PP +For example: +.PP +.Vb 1 +\& perldoc \-o term \-w indent:5 Some::Modulename +.Ve +.SH "CAVEAT" +.IX Header "CAVEAT" +This module may change to use a different text formatter class in the +future, and this may change what options are supported. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Text, Pod::Text::Color, Pod::Perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2011 Mark Allen. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToMan.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToMan.3 new file mode 100644 index 0000000000000000000000000000000000000000..f23e204aa75efeb6a605f058dd01d7c3388751aa --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToMan.3 @@ -0,0 +1,189 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Pod::Perldoc::ToMan 3" +.TH Pod::Perldoc::ToMan 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Pod::Perldoc::ToMan \- let Perldoc render Pod as man pages +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-o man Some::Modulename +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Pod::Man and \f(CW\*(C`groff\*(C'\fR for reading Pod pages. +.PP +The following options are supported: center, date, fixed, fixedbold, +fixeditalic, fixedbolditalic, quotes, release, section +.PP +(Those options are explained in Pod::Man.) +.PP +For example: +.PP +.Vb 1 +\& perldoc \-o man \-w center:Pod Some::Modulename +.Ve +.SH "CAVEAT" +.IX Header "CAVEAT" +This module may change to use a different pod-to-nroff formatter class +in the future, and this may change what options are supported. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Man, Pod::Perldoc, Pod::Perldoc::ToNroff +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2011 brian d foy. All rights reserved. +.PP +Copyright (c) 2002,3,4 Sean M. Burke. All rights reserved. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Current maintainer: Mark Allen \f(CW\*(C`\*(C'\fR +.PP +Past contributions from: +brian d foy \f(CW\*(C`\*(C'\fR +Adriano R. Ferreira \f(CW\*(C`\*(C'\fR, +Sean M. Burke \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToTerm.3 b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToTerm.3 new file mode 100644 index 0000000000000000000000000000000000000000..580f467c455537b096b4e47ce4b8552bc2915566 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToTerm.3 @@ -0,0 +1,186 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Pod::Perldoc::ToTerm 3" +.TH Pod::Perldoc::ToTerm 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Pod::Perldoc::ToTerm \- render Pod with terminal escapes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& perldoc \-o term Some::Modulename +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a \*(L"plug-in\*(R" class that allows Perldoc to use +Pod::Text as a formatter class. +.PP +It supports the following options, which are explained in +Pod::Text: alt, indent, loose, quotes, sentence, width +.PP +For example: +.PP +.Vb 1 +\& perldoc \-o term \-w indent:5 Some::Modulename +.Ve +.SH "PAGER FORMATTING" +.IX Header "PAGER FORMATTING" +Depending on the platform, and because this class emits terminal escapes it +will attempt to set the \f(CW\*(C`\-R\*(C'\fR flag on your pager by injecting the flag into +your environment variable for \f(CW\*(C`less\*(C'\fR or \f(CW\*(C`more\*(C'\fR. +.PP +On Windows and \s-1DOS,\s0 this class will not modify any environment variables. +.SH "CAVEAT" +.IX Header "CAVEAT" +This module may change to use a different text formatter class in the +future, and this may change what options are supported. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Text, Pod::Text::Termcap, Pod::Perldoc +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2017 Mark Allen. +.PP +This program is free software; you can redistribute it and/or modify it +under the terms of either: the \s-1GNU\s0 General Public License as published +by the Free Software Foundation; or the Artistic License. +.PP +See http://dev.perl.org/licenses/ for more information. +.SH "AUTHOR" +.IX Header "AUTHOR" +Mark Allen \f(CW\*(C`\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ARTF.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ARTF.3 new file mode 100644 index 0000000000000000000000000000000000000000..b3c7d52e0d7b401d70802e439f381f87aa670f39 --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ARTF.3 @@ -0,0 +1,266 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Pod::Simple::RTF 3" +.TH Pod::Simple::RTF 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Pod::Simple::RTF \-\- format Pod as RTF +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& perl \-MPod::Simple::RTF \-e \e +\& "exit Pod::Simple::RTF\->filter(shift)\->any_errata_seen" \e +\& thingy.pod > thingy.rtf +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This class is a formatter that takes Pod and renders it as \s-1RTF,\s0 good for +viewing/printing in MSWord, WordPad/write.exe, TextEdit, etc. +.PP +This is a subclass of Pod::Simple and inherits all its methods. +.SH "FORMAT CONTROL ATTRIBUTES" +.IX Header "FORMAT CONTROL ATTRIBUTES" +You can set these attributes on the parser object before you +call \f(CW\*(C`parse_file\*(C'\fR (or a similar method) on it: +.ie n .IP "$parser\->head1_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.el .IP "\f(CW$parser\fR\->head1_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.IX Item "$parser->head1_halfpoint_size( halfpoint_integer );" +.PD 0 +.ie n .IP "$parser\->head2_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.el .IP "\f(CW$parser\fR\->head2_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.IX Item "$parser->head2_halfpoint_size( halfpoint_integer );" +.ie n .IP "$parser\->head3_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.el .IP "\f(CW$parser\fR\->head3_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.IX Item "$parser->head3_halfpoint_size( halfpoint_integer );" +.ie n .IP "$parser\->head4_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.el .IP "\f(CW$parser\fR\->head4_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.IX Item "$parser->head4_halfpoint_size( halfpoint_integer );" +.PD +These methods set the size (in half-points, like 52 for 26\-point) +that these heading levels will appear as. +.ie n .IP "$parser\->codeblock_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.el .IP "\f(CW$parser\fR\->codeblock_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.IX Item "$parser->codeblock_halfpoint_size( halfpoint_integer );" +This method sets the size (in half-points, like 21 for 10.5\-point) +that codeblocks (\*(L"verbatim sections\*(R") will appear as. +.ie n .IP "$parser\->header_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.el .IP "\f(CW$parser\fR\->header_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.IX Item "$parser->header_halfpoint_size( halfpoint_integer );" +This method sets the size (in half-points, like 15 for 7.5\-point) +that the header on each page will appear in. The header +is usually just "\fImodulename\fR p. \fIpagenumber\fR". +.ie n .IP "$parser\->normal_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.el .IP "\f(CW$parser\fR\->normal_halfpoint_size( \fIhalfpoint_integer\fR );" 4 +.IX Item "$parser->normal_halfpoint_size( halfpoint_integer );" +This method sets the size (in half-points, like 26 for 13\-point) +that normal paragraphic text will appear in. +.ie n .IP "$parser\->no_proofing_exemptions( \fItrue_or_false\fR );" 4 +.el .IP "\f(CW$parser\fR\->no_proofing_exemptions( \fItrue_or_false\fR );" 4 +.IX Item "$parser->no_proofing_exemptions( true_or_false );" +Set this value to true if you don't want the formatter to try +putting a hidden code on all Perl symbols (as best as it can +notice them) that labels them as being not in English, and +so not worth spellchecking. +.ie n .IP "$parser\->doc_lang( \fImicrosoft_decimal_language_code\fR )" 4 +.el .IP "\f(CW$parser\fR\->doc_lang( \fImicrosoft_decimal_language_code\fR )" 4 +.IX Item "$parser->doc_lang( microsoft_decimal_language_code )" +This sets the language code to tag this document as being in. By +default, it is currently the value of the environment variable +\&\f(CW\*(C`RTFDEFLANG\*(C'\fR, or if that's not set, then the value +1033 (for \s-1US\s0 English). +.Sp +Setting this appropriately is useful if you want to use the \s-1RTF\s0 +to spellcheck, and/or if you want it to hyphenate right. +.Sp +Here are some notable values: +.Sp +.Vb 12 +\& 1033 US English +\& 2057 UK English +\& 3081 Australia English +\& 4105 Canada English +\& 1034 Spain Spanish +\& 2058 Mexico Spanish +\& 1031 Germany German +\& 1036 France French +\& 3084 Canada French +\& 1035 Finnish +\& 1044 Norwegian (Bokmal) +\& 2068 Norwegian (Nynorsk) +.Ve +.PP +If you are particularly interested in customizing this module's output +even more, see the source and/or write to me. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple, RTF::Writer, RTF::Cookbook, RTF::Document, +RTF::Generator +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASubclassing.3 b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASubclassing.3 new file mode 100644 index 0000000000000000000000000000000000000000..220b2fc9fae8691e12ce4046d4accc945f4693ef --- /dev/null +++ b/data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASubclassing.3 @@ -0,0 +1,1290 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Pod::Simple::Subclassing 3" +.TH Pod::Simple::Subclassing 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Pod::Simple::Subclassing \-\- write a formatter as a Pod::Simple subclass +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 5 +\& package Pod::SomeFormatter; +\& use Pod::Simple; +\& @ISA = qw(Pod::Simple); +\& $VERSION = \*(Aq1.01\*(Aq; +\& use strict; +\& +\& sub _handle_element_start { +\& my($parser, $element_name, $attr_hash_r) = @_; +\& ... +\& } +\& +\& sub _handle_element_end { +\& my($parser, $element_name, $attr_hash_r) = @_; +\& # NOTE: $attr_hash_r is only present when $element_name is "over" or "begin" +\& # The remaining code excerpts will mostly ignore this $attr_hash_r, as it is +\& # mostly useless. It is documented where "over\-*" and "begin" events are +\& # documented. +\& ... +\& } +\& +\& sub _handle_text { +\& my($parser, $text) = @_; +\& ... +\& } +\& 1; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This document is about using Pod::Simple to write a Pod processor, +generally a Pod formatter. If you just want to know about using an +existing Pod formatter, instead see its documentation and see also the +docs in Pod::Simple. +.PP +\&\fBThe zeroeth step\fR in writing a Pod formatter is to make sure that there +isn't already a decent one in \s-1CPAN.\s0 See , and +run a search on the name of the format you want to render to. Also +consider joining the Pod People list + and asking whether +anyone has a formatter for that format \*(-- maybe someone cobbled one +together but just hasn't released it. +.PP +\&\fBThe first step\fR in writing a Pod processor is to read perlpodspec, +which contains information on writing a Pod parser (which has been +largely taken care of by Pod::Simple), but also a lot of requirements +and recommendations for writing a formatter. +.PP +\&\fBThe second step\fR is to actually learn the format you're planning to +format to \*(-- or at least as much as you need to know to represent Pod, +which probably isn't much. +.PP +\&\fBThe third step\fR is to pick which of Pod::Simple's interfaces you want to +use: +.IP "Pod::Simple" 4 +.IX Item "Pod::Simple" +The basic Pod::Simple interface that uses \f(CW\*(C`_handle_element_start()\*(C'\fR, +\&\f(CW\*(C`_handle_element_end()\*(C'\fR and \f(CW\*(C`_handle_text()\*(C'\fR. +.IP "Pod::Simple::Methody" 4 +.IX Item "Pod::Simple::Methody" +The Pod::Simple::Methody interface is event-based, similar to that of +HTML::Parser or XML::Parser's \*(L"Handlers\*(R". +.IP "Pod::Simple::PullParser" 4 +.IX Item "Pod::Simple::PullParser" +Pod::Simple::PullParser provides a token-stream interface, sort of +like HTML::TokeParser's interface. +.IP "Pod::Simple::SimpleTree" 4 +.IX Item "Pod::Simple::SimpleTree" +Pod::Simple::SimpleTree provides a simple tree interface, rather like +XML::Parser's \*(L"Tree\*(R" interface. Users familiar with \s-1XML\s0 handling will +be comfortable with this interface. Users interested in outputting \s-1XML,\s0 +should look into the modules that produce an \s-1XML\s0 representation of the +Pod stream, notably Pod::Simple::XMLOutStream; you can feed the output +of such a class to whatever \s-1XML\s0 parsing system you are most at home with. +.PP +\&\fBThe last step\fR is to write your code based on how the events (or tokens, +or tree-nodes, or the \s-1XML,\s0 or however you're parsing) will map to +constructs in the output format. Also be sure to consider how to escape +text nodes containing arbitrary text, and what to do with text +nodes that represent preformatted text (from verbatim sections). +.SH "Events" +.IX Header "Events" +\&\s-1TODO\s0 intro... mention that events are supplied for implicits, like for +missing >'s +.PP +In the following section, we use \s-1XML\s0 to represent the event structure +associated with a particular construct. That is, an opening tag +represents the element start, the attributes of that opening tag are +the attributes given to the callback, and the closing tag represents +the end element. +.PP +Three callback methods must be supplied by a class extending +Pod::Simple to receive the corresponding event: +.ie n .IP """$parser\->_handle_element_start( \fIelement_name\fP, \fIattr_hashref\fP )""" 4 +.el .IP "\f(CW$parser\->_handle_element_start( \f(CIelement_name\f(CW, \f(CIattr_hashref\f(CW )\fR" 4 +.IX Item "$parser->_handle_element_start( element_name, attr_hashref )" +.PD 0 +.ie n .IP """$parser\->_handle_element_end( \fIelement_name\fP )""" 4 +.el .IP "\f(CW$parser\->_handle_element_end( \f(CIelement_name\f(CW )\fR" 4 +.IX Item "$parser->_handle_element_end( element_name )" +.ie n .IP """$parser\->_handle_text( \fItext_string\fP )""" 4 +.el .IP "\f(CW$parser\->_handle_text( \f(CItext_string\f(CW )\fR" 4 +.IX Item "$parser->_handle_text( text_string )" +.PD +.PP +Here's the comprehensive list of values you can expect as +\&\fIelement_name\fR in your implementation of \f(CW\*(C`_handle_element_start\*(C'\fR +and \f(CW\*(C`_handle_element_end\*(C'\fR:: +.IP "events with an element_name of Document" 4 +.IX Item "events with an element_name of Document" +Parsing a document produces this event structure: +.Sp +.Vb 3 +\& +\& ...all events... +\& +.Ve +.Sp +The value of the \fIstart_line\fR attribute will be the line number of the first +Pod directive in the document. +.Sp +If there is no Pod in the given document, then the +event structure will be this: +.Sp +.Vb 2 +\& +\& +.Ve +.Sp +In that case, the value of the \fIstart_line\fR attribute will not be meaningful; +under current implementations, it will probably be the line number of the +last line in the file. +.IP "events with an element_name of Para" 4 +.IX Item "events with an element_name of Para" +Parsing a plain (non-verbatim, non-directive, non-data) paragraph in +a Pod document produces this event structure: +.Sp +.Vb 3 +\& +\& ...all events in this paragraph... +\& +.Ve +.Sp +The value of the \fIstart_line\fR attribute will be the line number of the start +of the paragraph. +.Sp +For example, parsing this paragraph of Pod: +.Sp +.Vb 2 +\& The value of the I attribute will be the +\& line number of the start of the paragraph. +.Ve +.Sp +produces this event structure: +.Sp +.Vb 8 +\& +\& The value of the +\& +\& start_line +\& +\& attribute will be the line number of the first Pod directive +\& in the document. +\& +.Ve +.IP "events with an element_name of B, C, F, or I." 4 +.IX Item "events with an element_name of B, C, F, or I." +Parsing a B<...> formatting code (or of course any of its +semantically identical syntactic variants +B<<\ ...\ >>, +or B<<<<\ ...\ >>>>, etc.) +produces this event structure: +.Sp +.Vb 3 +\& +\& ...stuff... +\& +.Ve +.Sp +Currently, there are no attributes conveyed. +.Sp +Parsing C, F, or I codes produce the same structure, with only a +different element name. +.Sp +If your parser object has been set to accept other formatting codes, +then they will be presented like these B/C/F/I codes \*(-- i.e., without +any attributes. +.IP "events with an element_name of S" 4 +.IX Item "events with an element_name of S" +Normally, parsing an S<...> sequence produces this event +structure, just as if it were a B/C/F/I code: +.Sp +.Vb 3 +\& +\& ...stuff... +\& +.Ve +.Sp +However, Pod::Simple (and presumably all derived parsers) offers the +\&\f(CW\*(C`nbsp_for_S\*(C'\fR option which, if enabled, will suppress all S events, and +instead change all spaces in the content to non-breaking spaces. This is +intended for formatters that output to a format that has no code that +means the same as S<...>, but which has a code/character that +means non-breaking space. +.IP "events with an element_name of X" 4 +.IX Item "events with an element_name of X" +Normally, parsing an X<...> sequence produces this event +structure, just as if it were a B/C/F/I code: +.Sp +.Vb 3 +\& +\& ...stuff... +\& +.Ve +.Sp +However, Pod::Simple (and presumably all derived parsers) offers the +\&\f(CW\*(C`nix_X_codes\*(C'\fR option which, if enabled, will suppress all X events +and ignore their content. For formatters/processors that don't use +X events, this is presumably quite useful. +.IP "events with an element_name of L" 4 +.IX Item "events with an element_name of L" +Because the L<...> is the most complex construct in the +language, it should not surprise you that the events it generates are +the most complex in the language. Most of complexity is hidden away in +the attribute values, so for those of you writing a Pod formatter that +produces a non-hypertextual format, you can just ignore the attributes +and treat an L event structure like a formatting element that +(presumably) doesn't actually produce a change in formatting. That is, +the content of the L event structure (as opposed to its +attributes) is always what text should be displayed. +.Sp +There are, at first glance, three kinds of L links: \s-1URL,\s0 man, and pod. +.Sp +When a L<\fIsome_url\fR> code is parsed, it produces this event +structure: +.Sp +.Vb 3 +\& +\& that_url +\& +.Ve +.Sp +The \f(CW\*(C`type="url"\*(C'\fR attribute is always specified for this type of +L code. +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +produces this event structure: +.Sp +.Vb 3 +\& +\& http://www.perl.com/CPAN/authors/ +\& +.Ve +.Sp +When a L<\fImanpage(section)\fR> code is parsed (and these are +fairly rare and not terribly useful), it produces this event structure: +.Sp +.Vb 3 +\& +\& manpage(section) +\& +.Ve +.Sp +The \f(CW\*(C`type="man"\*(C'\fR attribute is always specified for this type of +L code. +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +produces this event structure: +.Sp +.Vb 3 +\& +\& crontab(5) +\& +.Ve +.Sp +In the rare cases where a man page link has a section specified, that text appears +in a \fIsection\fR attribute. For example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +will produce this event structure: +.Sp +.Vb 3 +\& +\& "ENVIRONMENT" in crontab(5) +\& +.Ve +.Sp +In the rare case where the Pod document has code like +L<\fIsometext\fR|\fImanpage(section)\fR>, then the \fIsometext\fR will appear +as the content of the element, the \fImanpage(section)\fR text will appear +only as the value of the \fIto\fR attribute, and there will be no +\&\f(CW\*(C`content\-implicit="yes"\*(C'\fR attribute (whose presence means that the Pod parser +had to infer what text should appear as the link text \*(-- as opposed to +cases where that attribute is absent, which means that the Pod parser did +\&\fInot\fR have to infer the link text, because that L code explicitly specified +some link text.) +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +will produce this event structure: +.Sp +.Vb 3 +\& +\& hell itself! +\& +.Ve +.Sp +The last type of L structure is for links to/within Pod documents. It is +the most complex because it can have a \fIto\fR attribute, \fIor\fR a +\&\fIsection\fR attribute, or both. The \f(CW\*(C`type="pod"\*(C'\fR attribute is always +specified for this type of L code. +.Sp +In the most common case, the simple case of a L code +produces this event structure: +.Sp +.Vb 3 +\& +\& podpage +\& +.Ve +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +produces this event structure: +.Sp +.Vb 3 +\& +\& Net::Ping +\& +.Ve +.Sp +In cases where there is link-text explicitly specified, it +is to be found in the content of the element (and not the +attributes), just as with the L<\fIsometext\fR|\fImanpage(section)\fR> +case discussed above. For example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +produces this event structure: +.Sp +.Vb 3 +\& +\& Perl Error Messages +\& +.Ve +.Sp +In cases of links to a section in the current Pod document, +there is a \fIsection\fR attribute instead of a \fIto\fR attribute. +For example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +produces this event structure: +.Sp +.Vb 3 +\& +\& "Member Data" +\& +.Ve +.Sp +As another example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +produces this event structure: +.Sp +.Vb 3 +\& +\& the various attributes +\& +.Ve +.Sp +In cases of links to a section in a different Pod document, +there are both a \fIsection\fR attribute and a to attribute. +For example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +produces this event structure: +.Sp +.Vb 3 +\& +\& "Basic BLOCKs and Switch Statements" in perlsyn +\& +.Ve +.Sp +As another example, this Pod source: +.Sp +.Vb 1 +\& L +.Ve +.Sp +produces this event structure: +.Sp +.Vb 3 +\& +\& SWITCH statements +\& +.Ve +.Sp +Incidentally, note that we do not distinguish between these syntaxes: +.Sp +.Vb 4 +\& L +\& L<"Member Data"> +\& L +\& L [deprecated syntax] +.Ve +.Sp +That is, they all produce the same event structure (for the most part), namely: +.Sp +.Vb 3 +\& +\& "Member Data" +\& +.Ve +.Sp +The \fIraw\fR attribute depends on what the raw content of the \f(CW\*(C`L<>\*(C'\fR is, +so that is why the event structure is the same \*(L"for the most part\*(R". +.Sp +If you have not guessed it yet, the \fIraw\fR attribute contains the raw, +original, unescaped content of the \f(CW\*(C`L<>\*(C'\fR formatting code. In addition +to the examples above, take notice of the following event structure produced +by the following \f(CW\*(C`L<>\*(C'\fR formatting code. +.Sp +.Vb 1 +\& L|page/About the C<\-M> switch> +\& +\& +\& click B +\& +.Ve +.Sp +Specifically, notice that the formatting codes are present and unescaped +in \fIraw\fR. +.Sp +There is a known bug in the \fIraw\fR attribute where any surrounding whitespace +is condensed into a single ' '. For example, given L< link>, \fIraw\fR +will be \*(L" link\*(R". +.IP "events with an element_name of E or Z" 4 +.IX Item "events with an element_name of E or Z" +While there are Pod codes E<...> and Z<>, these +\&\fIdo not\fR produce any E or Z events \*(-- that is, there are no such +events as E or Z. +.IP "events with an element_name of Verbatim" 4 +.IX Item "events with an element_name of Verbatim" +When a Pod verbatim paragraph (\s-1AKA\s0 \*(L"codeblock\*(R") is parsed, it +produces this event structure: +.Sp +.Vb 3 +\& +\& ...text... +\& +.Ve +.Sp +The value of the \fIstart_line\fR attribute will be the line number of the +first line of this verbatim block. The \fIxml:space\fR attribute is always +present, and always has the value \*(L"preserve\*(R". +.Sp +The text content will have tabs already expanded. +.IP "events with an element_name of head1 .. head4" 4 +.IX Item "events with an element_name of head1 .. head4" +When a \*(L"=head1 ...\*(R" directive is parsed, it produces this event +structure: +.Sp +.Vb 3 +\& +\& ...stuff... +\& +.Ve +.Sp +For example, a directive consisting of this: +.Sp +.Vb 1 +\& =head1 Options to C et al. +.Ve +.Sp +will produce this event structure: +.Sp +.Vb 7 +\& +\& Options to +\& +\& new +\& +\& et al. +\& +.Ve +.Sp +\&\*(L"=head2\*(R" through \*(L"=head4\*(R" directives are the same, except for the element +names in the event structure. +.IP "events with an element_name of encoding" 4 +.IX Item "events with an element_name of encoding" +In the default case, the events corresponding to \f(CW\*(C`=encoding\*(C'\fR directives +are not emitted. They are emitted if \f(CW\*(C`keep_encoding_directive\*(C'\fR is true. +In that case they produce event structures like +\&\*(L"events with an element_name of head1 .. head4\*(R" above. +.IP "events with an element_name of over-bullet" 4 +.IX Item "events with an element_name of over-bullet" +When an \*(L"=over ... =back\*(R" block is parsed where the items are +a bulleted list, it will produce this event structure: +.Sp +.Vb 6 +\& +\& +\& ...Stuff... +\& +\& ...more item\-bullets... +\& +.Ve +.Sp +The attribute \fIfake-closer\fR is only present if it is a true value; it is not +present if it is a false value. It is shown in the above example to illustrate +where the attribute is (in the \fBclosing\fR tag). It signifies that the \f(CW\*(C`=over\*(C'\fR +did not have a matching \f(CW\*(C`=back\*(C'\fR, and thus Pod::Simple had to create a fake +closer. +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& =over +\& +\& =item * +\& +\& Something +\& +\& =back +.Ve +.Sp +Would produce an event structure that does \fBnot\fR have the \fIfake-closer\fR +attribute, whereas this Pod source: +.Sp +.Vb 1 +\& =over +\& +\& =item * +\& +\& Gasp! An unclosed =over block! +.Ve +.Sp +would. The rest of the over\-* examples will not demonstrate this attribute, +but they all can have it. See Pod::Checker's source for an example of this +attribute being used. +.Sp +The value of the \fIindent\fR attribute is whatever value is after the +\&\*(L"=over\*(R" directive, as in \*(L"=over 8\*(R". If no such value is specified +in the directive, then the \fIindent\fR attribute has the value \*(L"4\*(R". +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& =over +\& +\& =item * +\& +\& Stuff +\& +\& =item * +\& +\& Bar I! +\& +\& =back +.Ve +.Sp +produces this event structure: +.Sp +.Vb 8 +\& +\& +\& Stuff +\& +\& +\& Bar baz! +\& +\& +.Ve +.IP "events with an element_name of over-number" 4 +.IX Item "events with an element_name of over-number" +When an \*(L"=over ... =back\*(R" block is parsed where the items are +a numbered list, it will produce this event structure: +.Sp +.Vb 6 +\& +\& +\& ...Stuff... +\& +\& ...more item\-number... +\& +.Ve +.Sp +This is like the \*(L"over-bullet\*(R" event structure; but note that the contents +are \*(L"item-number\*(R" instead of \*(L"item-bullet\*(R", and note that they will have +a \*(L"number\*(R" attribute, which some formatters/processors may ignore +(since, for example, there's no need for it in \s-1HTML\s0 when producing +an \*(L"<\s-1UL\s0><\s-1LI\s0>......\*(R" structure), but which any processor may use. +.Sp +Note that the values for the \fInumber\fR attributes of \*(L"item-number\*(R" +elements in a given \*(L"over-number\*(R" area \fIwill\fR start at 1 and go up by +one each time. If the Pod source doesn't follow that order (even though +it really should!), whatever numbers it has will be ignored (with +the correct values being put in the \fInumber\fR attributes), and an error +message might be issued to the user. +.IP "events with an element_name of over-text" 4 +.IX Item "events with an element_name of over-text" +These events are somewhat unlike the other over\-* +structures, as far as what their contents are. When +an \*(L"=over ... =back\*(R" block is parsed where the items are +a list of text \*(L"subheadings\*(R", it will produce this event structure: +.Sp +.Vb 8 +\& +\& +\& ...stuff... +\& +\& ...stuff (generally Para or Verbatim elements)... +\& +\& ...more item\-text and/or stuff... +\& +.Ve +.Sp +The \fIindent\fR and \fIfake-closer\fR attributes are as with the other over\-* events. +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& =over +\& +\& =item Foo +\& +\& Stuff +\& +\& =item Bar I! +\& +\& Quux +\& +\& =back +.Ve +.Sp +produces this event structure: +.Sp +.Vb 10 +\& +\& +\& Foo +\& +\& +\& Stuff +\& +\& +\& Bar +\& +\& baz +\& +\& ! +\& +\& +\& Quux +\& +\& +.Ve +.IP "events with an element_name of over-block" 4 +.IX Item "events with an element_name of over-block" +These events are somewhat unlike the other over\-* +structures, as far as what their contents are. When +an \*(L"=over ... =back\*(R" block is parsed where there are no items, +it will produce this event structure: +.Sp +.Vb 3 +\& +\& ...stuff (generally Para or Verbatim elements)... +\& +.Ve +.Sp +The \fIindent\fR and \fIfake-closer\fR attributes are as with the other over\-* events. +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& =over +\& +\& For cutting off our trade with all parts of the world +\& +\& For transporting us beyond seas to be tried for pretended offenses +\& +\& He is at this time transporting large armies of foreign mercenaries to +\& complete the works of death, desolation and tyranny, already begun with +\& circumstances of cruelty and perfidy scarcely paralleled in the most +\& barbarous ages, and totally unworthy the head of a civilized nation. +\& +\& =back +.Ve +.Sp +will produce this event structure: +.Sp +.Vb 11 +\& +\& +\& For cutting off our trade with all parts of the world +\& +\& +\& For transporting us beyond seas to be tried for pretended offenses +\& +\& +\& He is at this time transporting large armies of [...more text...] +\& +\& +.Ve +.IP "events with an element_name of over-empty" 4 +.IX Item "events with an element_name of over-empty" +\&\fBNote: These events are only triggered if \f(CB\*(C`parse_empty_lists()\*(C'\fB is set to a +true value.\fR +.Sp +These events are somewhat unlike the other over\-* structures, as far as what +their contents are. When an \*(L"=over ... =back\*(R" block is parsed where there +is no content, it will produce this event structure: +.Sp +.Vb 2 +\& +\& +.Ve +.Sp +The \fIindent\fR and \fIfake-closer\fR attributes are as with the other over\-* events. +.Sp +For example, this Pod source: +.Sp +.Vb 1 +\& =over +\& +\& =over +\& +\& =back +\& +\& =back +.Ve +.Sp +will produce this event structure: +.Sp +.Vb 4 +\& +\& +\& +\& +.Ve +.Sp +Note that the outer \f(CW\*(C`=over\*(C'\fR is a block because it has no \f(CW\*(C`=item\*(C'\fRs but still +has content: the inner \f(CW\*(C`=over\*(C'\fR. The inner \f(CW\*(C`=over\*(C'\fR, in turn, is completely +empty, and is treated as such. +.IP "events with an element_name of item-bullet" 4 +.IX Item "events with an element_name of item-bullet" +See \*(L"events with an element_name of over-bullet\*(R", above. +.IP "events with an element_name of item-number" 4 +.IX Item "events with an element_name of item-number" +See \*(L"events with an element_name of over-number\*(R", above. +.IP "events with an element_name of item-text" 4 +.IX Item "events with an element_name of item-text" +See \*(L"events with an element_name of over-text\*(R", above. +.IP "events with an element_name of for" 4 +.IX Item "events with an element_name of for" +\&\s-1TODO...\s0 +.IP "events with an element_name of Data" 4 +.IX Item "events with an element_name of Data" +\&\s-1TODO...\s0 +.SH "More Pod::Simple Methods" +.IX Header "More Pod::Simple Methods" +Pod::Simple provides a lot of methods that aren't generally interesting +to the end user of an existing Pod formatter, but some of which you +might find useful in writing a Pod formatter. They are listed below. The +first several methods (the accept_* methods) are for declaring the +capabilities of your parser, notably what \f(CW\*(C`=for \f(CItargetname\f(CW\*(C'\fR sections +it's interested in, what extra N<...> codes it accepts beyond +the ones described in the \fIperlpod\fR. +.ie n .IP """$parser\->accept_targets( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->accept_targets( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->accept_targets( SOMEVALUE )" +As the parser sees sections like: +.Sp +.Vb 1 +\& =for html +.Ve +.Sp +or +.Sp +.Vb 1 +\& =begin html +\& +\& +\& +\& =end html +.Ve +.Sp +\&...the parser will ignore these sections unless your subclass has +specified that it wants to see sections targeted to \*(L"html\*(R" (or whatever +the formatter name is). +.Sp +If you want to process all sections, even if they're not targeted for you, +call this before you start parsing: +.Sp +.Vb 1 +\& $parser\->accept_targets(\*(Aq*\*(Aq); +.Ve +.ie n .IP """$parser\->accept_targets_as_text( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->accept_targets_as_text( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->accept_targets_as_text( SOMEVALUE )" +This is like accept_targets, except that it specifies also that the +content of sections for this target should be treated as Pod text even +if the target name in "=for \fItargetname\fR\*(L" doesn't start with a \*(R":". +.Sp +At time of writing, I don't think you'll need to use this. +.ie n .IP """$parser\->accept_codes( \fICodename\fP, \fICodename\fP... )""" 4 +.el .IP "\f(CW$parser\->accept_codes( \f(CICodename\f(CW, \f(CICodename\f(CW... )\fR" 4 +.IX Item "$parser->accept_codes( Codename, Codename... )" +This tells the parser that you accept additional formatting codes, +beyond just the standard ones (I B C L F S X, plus the two weird ones +you don't actually see in the parse tree, Z and E). For example, to also +accept codes \*(L"N\*(R", \*(L"R\*(R", and \*(L"W\*(R": +.Sp +.Vb 1 +\& $parser\->accept_codes( qw( N R W ) ); +.Ve +.Sp +\&\fB\s-1TODO:\s0 document how this interacts with =extend, and long element names\fR +.ie n .IP """$parser\->accept_directive_as_data( \fIdirective_name\fP )""" 4 +.el .IP "\f(CW$parser\->accept_directive_as_data( \f(CIdirective_name\f(CW )\fR" 4 +.IX Item "$parser->accept_directive_as_data( directive_name )" +.PD 0 +.ie n .IP """$parser\->accept_directive_as_verbatim( \fIdirective_name\fP )""" 4 +.el .IP "\f(CW$parser\->accept_directive_as_verbatim( \f(CIdirective_name\f(CW )\fR" 4 +.IX Item "$parser->accept_directive_as_verbatim( directive_name )" +.ie n .IP """$parser\->accept_directive_as_processed( \fIdirective_name\fP )""" 4 +.el .IP "\f(CW$parser\->accept_directive_as_processed( \f(CIdirective_name\f(CW )\fR" 4 +.IX Item "$parser->accept_directive_as_processed( directive_name )" +.PD +In the unlikely situation that you need to tell the parser that you will +accept additional directives (\*(L"=foo\*(R" things), you need to first set the +parser to treat its content as data (i.e., not really processed at +all), or as verbatim (mostly just expanding tabs), or as processed text +(parsing formatting codes like B<...>). +.Sp +For example, to accept a new directive \*(L"=method\*(R", you'd presumably +use: +.Sp +.Vb 1 +\& $parser\->accept_directive_as_processed("method"); +.Ve +.Sp +so that you could have Pod lines like: +.Sp +.Vb 1 +\& =method I<$whatever> thing B +.Ve +.Sp +Making up your own directives breaks compatibility with other Pod +formatters, in a way that using "=for \fItarget\fR ..." lines doesn't; +however, you may find this useful if you're making a Pod superset +format where you don't need to worry about compatibility. +.ie n .IP """$parser\->nbsp_for_S( \fIBOOLEAN\fP );""" 4 +.el .IP "\f(CW$parser\->nbsp_for_S( \f(CIBOOLEAN\f(CW );\fR" 4 +.IX Item "$parser->nbsp_for_S( BOOLEAN );" +Setting this attribute to a true value (and by default it is false) will +turn \*(L"S<...>\*(R" sequences into sequences of words separated by +\&\f(CW\*(C`\exA0\*(C'\fR (non-breaking space) characters. For example, it will take this: +.Sp +.Vb 1 +\& I like S, don\*(Aqt you? +.Ve +.Sp +and treat it as if it were: +.Sp +.Vb 1 +\& I like DutchEappleEpie, don\*(Aqt you? +.Ve +.Sp +This is handy for output formats that don't have anything quite like an +\&\*(L"S<...>\*(R" code, but which do have a code for non-breaking space. +.Sp +There is currently no method for going the other way; but I can +probably provide one upon request. +.ie n .IP """$parser\->version_report()""" 4 +.el .IP "\f(CW$parser\->version_report()\fR" 4 +.IX Item "$parser->version_report()" +This returns a string reporting the \f(CW$VERSION\fR value from your module (and +its classname) as well as the \f(CW$VERSION\fR value of Pod::Simple. Note that +perlpodspec requires output formats (wherever possible) to note +this detail in a comment in the output format. For example, for +some kind of \s-1SGML\s0 output format: +.Sp +.Vb 1 +\& print OUT "version_report, "\en \-\->"; +.Ve +.ie n .IP """$parser\->pod_para_count()""" 4 +.el .IP "\f(CW$parser\->pod_para_count()\fR" 4 +.IX Item "$parser->pod_para_count()" +This returns the count of Pod paragraphs seen so far. +.ie n .IP """$parser\->line_count()""" 4 +.el .IP "\f(CW$parser\->line_count()\fR" 4 +.IX Item "$parser->line_count()" +This is the current line number being parsed. But you might find the +\&\*(L"line_number\*(R" event attribute more accurate, when it is present. +.ie n .IP """$parser\->nix_X_codes( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->nix_X_codes( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->nix_X_codes( SOMEVALUE )" +This attribute, when set to a true value (and it is false by default) +ignores any \*(L"X<...>\*(R" sequences in the document being parsed. +Many formats don't actually use the content of these codes, so have +no reason to process them. +.ie n .IP """$parser\->keep_encoding_directive( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->keep_encoding_directive( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->keep_encoding_directive( SOMEVALUE )" +This attribute, when set to a true value (it is false by default) +will keep \f(CW\*(C`=encoding\*(C'\fR and its content in the event structure. Most +formats don't actually need to process the content of an \f(CW\*(C`=encoding\*(C'\fR +directive, even when this directive sets the encoding and the +processor makes use of the encoding information. Indeed, it is +possible to know the encoding without processing the directive +content. +.ie n .IP """$parser\->merge_text( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->merge_text( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->merge_text( SOMEVALUE )" +This attribute, when set to a true value (and it is false by default) +makes sure that only one event (or token, or node) will be created +for any single contiguous sequence of text. For example, consider +this somewhat contrived example: +.Sp +.Vb 1 +\& I just LOVE Z<>hotE<32>apple pie! +.Ve +.Sp +When that is parsed and events are about to be called on it, it may +actually seem to be four different text events, one right after another: +one event for \*(L"I just \s-1LOVE \*(R",\s0 one for \*(L"hot\*(R", one for \*(L" \*(R", and one for +\&\*(L"apple pie!\*(R". But if you have merge_text on, then you're guaranteed +that it will be fired as one text event: \*(L"I just \s-1LOVE\s0 hot apple pie!\*(R". +.ie n .IP """$parser\->code_handler( \fICODE_REF\fP )""" 4 +.el .IP "\f(CW$parser\->code_handler( \f(CICODE_REF\f(CW )\fR" 4 +.IX Item "$parser->code_handler( CODE_REF )" +This specifies code that should be called when a code line is seen +(i.e., a line outside of the Pod). Normally this is undef, meaning +that no code should be called. If you provide a routine, it should +start out like this: +.Sp +.Vb 4 +\& sub get_code_line { # or whatever you\*(Aqll call it +\& my($line, $line_number, $parser) = @_; +\& ... +\& } +.Ve +.Sp +Note, however, that sometimes the Pod events aren't processed in exactly +the same order as the code lines are \*(-- i.e., if you have a file with +Pod, then code, then more Pod, sometimes the code will be processed (via +whatever you have code_handler call) before the all of the preceding Pod +has been processed. +.ie n .IP """$parser\->cut_handler( \fICODE_REF\fP )""" 4 +.el .IP "\f(CW$parser\->cut_handler( \f(CICODE_REF\f(CW )\fR" 4 +.IX Item "$parser->cut_handler( CODE_REF )" +This is just like the code_handler attribute, except that it's for +\&\*(L"=cut\*(R" lines, not code lines. The same caveats apply. \*(L"=cut\*(R" lines are +unlikely to be interesting, but this is included for completeness. +.ie n .IP """$parser\->pod_handler( \fICODE_REF\fP )""" 4 +.el .IP "\f(CW$parser\->pod_handler( \f(CICODE_REF\f(CW )\fR" 4 +.IX Item "$parser->pod_handler( CODE_REF )" +This is just like the code_handler attribute, except that it's for +\&\*(L"=pod\*(R" lines, not code lines. The same caveats apply. \*(L"=pod\*(R" lines are +unlikely to be interesting, but this is included for completeness. +.ie n .IP """$parser\->whiteline_handler( \fICODE_REF\fP )""" 4 +.el .IP "\f(CW$parser\->whiteline_handler( \f(CICODE_REF\f(CW )\fR" 4 +.IX Item "$parser->whiteline_handler( CODE_REF )" +This is just like the code_handler attribute, except that it's for +lines that are seemingly blank but have whitespace (\*(L" \*(R" and/or \*(L"\et\*(R") on them, +not code lines. The same caveats apply. These lines are unlikely to be +interesting, but this is included for completeness. +.ie n .IP """$parser\->whine( \fIlinenumber\fP, \fIcomplaint string\fP )""" 4 +.el .IP "\f(CW$parser\->whine( \f(CIlinenumber\f(CW, \f(CIcomplaint string\f(CW )\fR" 4 +.IX Item "$parser->whine( linenumber, complaint string )" +This notes a problem in the Pod, which will be reported in the \*(L"Pod +Errors\*(R" section of the document and/or sent to \s-1STDERR,\s0 depending on the +values of the attributes \f(CW\*(C`no_whining\*(C'\fR, \f(CW\*(C`no_errata_section\*(C'\fR, and +\&\f(CW\*(C`complain_stderr\*(C'\fR. +.ie n .IP """$parser\->scream( \fIlinenumber\fP, \fIcomplaint string\fP )""" 4 +.el .IP "\f(CW$parser\->scream( \f(CIlinenumber\f(CW, \f(CIcomplaint string\f(CW )\fR" 4 +.IX Item "$parser->scream( linenumber, complaint string )" +This notes an error like \f(CW\*(C`whine\*(C'\fR does, except that it is not +suppressible with \f(CW\*(C`no_whining\*(C'\fR. This should be used only for very +serious errors. +.ie n .IP """$parser\->source_dead(1)""" 4 +.el .IP "\f(CW$parser\->source_dead(1)\fR" 4 +.IX Item "$parser->source_dead(1)" +This aborts parsing of the current document, by switching on the flag +that indicates that \s-1EOF\s0 has been seen. In particularly drastic cases, +you might want to do this. It's rather nicer than just calling +\&\f(CW\*(C`die\*(C'\fR! +.ie n .IP """$parser\->hide_line_numbers( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->hide_line_numbers( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->hide_line_numbers( SOMEVALUE )" +Some subclasses that indiscriminately dump event attributes (well, +except for ones beginning with \*(L"~\*(R") can use this object attribute for +refraining to dump the \*(L"start_line\*(R" attribute. +.ie n .IP """$parser\->no_whining( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->no_whining( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->no_whining( SOMEVALUE )" +This attribute, if set to true, will suppress reports of non-fatal +error messages. The default value is false, meaning that complaints +\&\fIare\fR reported. How they get reported depends on the values of +the attributes \f(CW\*(C`no_errata_section\*(C'\fR and \f(CW\*(C`complain_stderr\*(C'\fR. +.ie n .IP """$parser\->no_errata_section( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->no_errata_section( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->no_errata_section( SOMEVALUE )" +This attribute, if set to true, will suppress generation of an errata +section. The default value is false \*(-- i.e., an errata section will be +generated. +.ie n .IP """$parser\->complain_stderr( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->complain_stderr( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->complain_stderr( SOMEVALUE )" +This attribute, if set to true will send complaints to \s-1STDERR.\s0 The +default value is false \*(-- i.e., complaints do not go to \s-1STDERR.\s0 +.ie n .IP """$parser\->bare_output( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->bare_output( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->bare_output( SOMEVALUE )" +Some formatter subclasses use this as a flag for whether output should +have prologue and epilogue code omitted. For example, setting this to +true for an \s-1HTML\s0 formatter class should omit the +\&\*(L"......\*(R" prologue and the +\&\*(L"\*(R" epilogue. +.Sp +If you want to set this to true, you should probably also set +\&\f(CW\*(C`no_whining\*(C'\fR or at least \f(CW\*(C`no_errata_section\*(C'\fR to true. +.ie n .IP """$parser\->preserve_whitespace( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->preserve_whitespace( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->preserve_whitespace( SOMEVALUE )" +If you set this attribute to a true value, the parser will try to +preserve whitespace in the output. This means that such formatting +conventions as two spaces after periods will be preserved by the parser. +This is primarily useful for output formats that treat whitespace as +significant (such as text or *roff, but not \s-1HTML\s0). +.ie n .IP """$parser\->parse_empty_lists( \fISOMEVALUE\fP )""" 4 +.el .IP "\f(CW$parser\->parse_empty_lists( \f(CISOMEVALUE\f(CW )\fR" 4 +.IX Item "$parser->parse_empty_lists( SOMEVALUE )" +If this attribute is set to true, the parser will not ignore empty +\&\f(CW\*(C`=over\*(C'\fR/\f(CW\*(C`=back\*(C'\fR blocks. The type of \f(CW\*(C`=over\*(C'\fR will be \fIempty\fR, documented +above, \*(L"events with an element_name of over-empty\*(R". +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Pod::Simple \*(-- event-based Pod-parsing framework +.PP +Pod::Simple::Methody \*(-- like Pod::Simple, but each sort of event +calls its own method (like \f(CW\*(C`start_head3\*(C'\fR) +.PP +Pod::Simple::PullParser \*(-- a Pod-parsing framework like Pod::Simple, +but with a token-stream interface +.PP +Pod::Simple::SimpleTree \*(-- a Pod-parsing framework like Pod::Simple, +but with a tree interface +.PP +Pod::Simple::Checker \*(-- a simple Pod::Simple subclass that reads +documents, and then makes a plaintext report of any errors found in the +document +.PP +Pod::Simple::DumpAsXML \*(-- for dumping Pod documents as tidily +indented \s-1XML,\s0 showing each event on its own line +.PP +Pod::Simple::XMLOutStream \*(-- dumps a Pod document as \s-1XML\s0 (without +introducing extra whitespace as Pod::Simple::DumpAsXML does). +.PP +Pod::Simple::DumpAsText \*(-- for dumping Pod documents as tidily +indented text, showing each event on its own line +.PP +Pod::Simple::LinkSection \*(-- class for objects representing the values +of the \s-1TODO\s0 and \s-1TODO\s0 attributes of L<...> elements +.PP +Pod::Escapes \*(-- the module that Pod::Simple uses for evaluating +E<...> content +.PP +Pod::Simple::Text \*(-- a simple plaintext formatter for Pod +.PP +Pod::Simple::TextContent \*(-- like Pod::Simple::Text, but +makes no effort for indent or wrap the text being formatted +.PP +Pod::Simple::HTML \*(-- a simple \s-1HTML\s0 formatter for Pod +.PP +perlpod +.PP +perlpodspec +.PP +perldoc +.SH "SUPPORT" +.IX Header "SUPPORT" +Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the +pod\-people@perl.org mail list. Send an empty email to +pod\-people\-subscribe@perl.org to subscribe. +.PP +This module is managed in an open GitHub repository, +. Feel free to fork and contribute, or +to clone and send patches! +.PP +Patches against Pod::Simple are welcome. Please send bug reports to +. +.SH "COPYRIGHT AND DISCLAIMERS" +.IX Header "COPYRIGHT AND DISCLAIMERS" +Copyright (c) 2002 Sean M. Burke. +.PP +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +This program is distributed in the hope that it will be useful, but +without any warranty; without even the implied warranty of +merchantability or fitness for a particular purpose. +.SH "AUTHOR" +.IX Header "AUTHOR" +Pod::Simple was created by Sean M. Burke . +But don't bother him, he's retired. +.PP +Pod::Simple is maintained by: +.IP "\(bu" 4 +Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR +.IP "\(bu" 4 +Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR +.IP "\(bu" 4 +David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR diff --git a/data/miniconda3/man/man3/Safe.3 b/data/miniconda3/man/man3/Safe.3 new file mode 100644 index 0000000000000000000000000000000000000000..4cd40fc5c7072c791e1d92b4d9565ec65bc4d490 --- /dev/null +++ b/data/miniconda3/man/man3/Safe.3 @@ -0,0 +1,465 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Safe 3" +.TH Safe 3 "2021-01-09" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Safe \- Compile and execute code in restricted compartments +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Safe; +\& +\& $compartment = new Safe; +\& +\& $compartment\->permit(qw(time sort :browse)); +\& +\& $result = $compartment\->reval($unsafe_code); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Safe extension module allows the creation of compartments +in which perl code can be evaluated. Each compartment has +.IP "a new namespace" 8 +.IX Item "a new namespace" +The \*(L"root\*(R" of the namespace (i.e. \*(L"main::\*(R") is changed to a +different package and code evaluated in the compartment cannot +refer to variables outside this namespace, even with run-time +glob lookups and other tricks. +.Sp +Code which is compiled outside the compartment can choose to place +variables into (or \fIshare\fR variables with) the compartment's namespace +and only that data will be visible to code evaluated in the +compartment. +.Sp +By default, the only variables shared with compartments are the +\&\*(L"underscore\*(R" variables \f(CW$_\fR and \f(CW@_\fR (and, technically, the less frequently +used \f(CW%_\fR, the _ filehandle and so on). This is because otherwise perl +operators which default to \f(CW$_\fR will not work and neither will the +assignment of arguments to \f(CW@_\fR on subroutine entry. +.IP "an operator mask" 8 +.IX Item "an operator mask" +Each compartment has an associated \*(L"operator mask\*(R". Recall that +perl code is compiled into an internal format before execution. +Evaluating perl code (e.g. via \*(L"eval\*(R" or \*(L"do 'file'\*(R") causes +the code to be compiled into an internal format and then, +provided there was no error in the compilation, executed. +Code evaluated in a compartment compiles subject to the +compartment's operator mask. Attempting to evaluate code in a +compartment which contains a masked operator will cause the +compilation to fail with an error. The code will not be executed. +.Sp +The default operator mask for a newly created compartment is +the ':default' optag. +.Sp +It is important that you read the Opcode module documentation +for more information, especially for detailed definitions of opnames, +optags and opsets. +.Sp +Since it is only at the compilation stage that the operator mask +applies, controlled access to potentially unsafe operations can +be achieved by having a handle to a wrapper subroutine (written +outside the compartment) placed into the compartment. For example, +.Sp +.Vb 5 +\& $cpt = new Safe; +\& sub wrapper { +\& # vet arguments and perform potentially unsafe operations +\& } +\& $cpt\->share(\*(Aq&wrapper\*(Aq); +.Ve +.SH "WARNING" +.IX Header "WARNING" +The Safe module does not implement an effective sandbox for +evaluating untrusted code with the perl interpreter. +.PP +Bugs in the perl interpreter that could be abused to bypass +Safe restrictions are not treated as vulnerabilities. See +perlsecpolicy for additional information. +.PP +The authors make \fBno warranty\fR, implied or otherwise, about the +suitability of this software for safety or security purposes. +.PP +The authors shall not in any case be liable for special, incidental, +consequential, indirect or other similar damages arising from the use +of this software. +.PP +Your mileage will vary. If in any doubt \fBdo not use it\fR. +.SH "METHODS" +.IX Header "METHODS" +To create a new compartment, use +.PP +.Vb 1 +\& $cpt = new Safe; +.Ve +.PP +Optional argument is (\s-1NAMESPACE\s0), where \s-1NAMESPACE\s0 is the root namespace +to use for the compartment (defaults to \*(L"Safe::Root0\*(R", incremented for +each new compartment). +.PP +Note that version 1.00 of the Safe module supported a second optional +parameter, \s-1MASK.\s0 That functionality has been withdrawn pending deeper +consideration. Use the permit and deny methods described below. +.PP +The following methods can then be used on the compartment +object returned by the above constructor. The object argument +is implicit in each case. +.SS "permit (\s-1OP, ...\s0)" +.IX Subsection "permit (OP, ...)" +Permit the listed operators to be used when compiling code in the +compartment (in \fIaddition\fR to any operators already permitted). +.PP +You can list opcodes by names, or use a tag name; see +\&\*(L"Predefined Opcode Tags\*(R" in Opcode. +.SS "permit_only (\s-1OP, ...\s0)" +.IX Subsection "permit_only (OP, ...)" +Permit \fIonly\fR the listed operators to be used when compiling code in +the compartment (\fIno\fR other operators are permitted). +.SS "deny (\s-1OP, ...\s0)" +.IX Subsection "deny (OP, ...)" +Deny the listed operators from being used when compiling code in the +compartment (other operators may still be permitted). +.SS "deny_only (\s-1OP, ...\s0)" +.IX Subsection "deny_only (OP, ...)" +Deny \fIonly\fR the listed operators from being used when compiling code +in the compartment (\fIall\fR other operators will be permitted, so you probably +don't want to use this method). +.SS "trap (\s-1OP, ...\s0), untrap (\s-1OP, ...\s0)" +.IX Subsection "trap (OP, ...), untrap (OP, ...)" +The trap and untrap methods are synonyms for deny and permit +respectfully. +.SS "share (\s-1NAME, ...\s0)" +.IX Subsection "share (NAME, ...)" +This shares the variable(s) in the argument list with the compartment. +This is almost identical to exporting variables using the Exporter +module. +.PP +Each \s-1NAME\s0 must be the \fBname\fR of a non-lexical variable, typically +with the leading type identifier included. A bareword is treated as a +function name. +.PP +Examples of legal names are '$foo' for a scalar, '@foo' for an +array, '%foo' for a hash, '&foo' or 'foo' for a subroutine and '*foo' +for a glob (i.e. all symbol table entries associated with \*(L"foo\*(R", +including scalar, array, hash, sub and filehandle). +.PP +Each \s-1NAME\s0 is assumed to be in the calling package. See share_from +for an alternative method (which \f(CW\*(C`share\*(C'\fR uses). +.SS "share_from (\s-1PACKAGE, ARRAYREF\s0)" +.IX Subsection "share_from (PACKAGE, ARRAYREF)" +This method is similar to \fBshare()\fR but allows you to explicitly name the +package that symbols should be shared from. The symbol names (including +type characters) are supplied as an array reference. +.PP +.Vb 1 +\& $safe\->share_from(\*(Aqmain\*(Aq, [ \*(Aq$foo\*(Aq, \*(Aq%bar\*(Aq, \*(Aqfunc\*(Aq ]); +.Ve +.PP +Names can include package names, which are relative to the specified \s-1PACKAGE.\s0 +So these two calls have the same effect: +.PP +.Vb 2 +\& $safe\->share_from(\*(AqScalar::Util\*(Aq, [ \*(Aqreftype\*(Aq ]); +\& $safe\->share_from(\*(Aqmain\*(Aq, [ \*(AqScalar::Util::reftype\*(Aq ]); +.Ve +.SS "varglob (\s-1VARNAME\s0)" +.IX Subsection "varglob (VARNAME)" +This returns a glob reference for the symbol table entry of \s-1VARNAME\s0 in +the package of the compartment. \s-1VARNAME\s0 must be the \fBname\fR of a +variable without any leading type marker. For example: +.PP +.Vb 1 +\& ${$cpt\->varglob(\*(Aqfoo\*(Aq)} = "Hello world"; +.Ve +.PP +has the same effect as: +.PP +.Vb 2 +\& $cpt = new Safe \*(AqRoot\*(Aq; +\& $Root::foo = "Hello world"; +.Ve +.PP +but avoids the need to know \f(CW$cpt\fR's package name. +.SS "reval (\s-1STRING, STRICT\s0)" +.IX Subsection "reval (STRING, STRICT)" +This evaluates \s-1STRING\s0 as perl code inside the compartment. +.PP +The code can only see the compartment's namespace (as returned by the +\&\fBroot\fR method). The compartment's root package appears to be the +\&\f(CW\*(C`main::\*(C'\fR package to the code inside the compartment. +.PP +Any attempt by the code in \s-1STRING\s0 to use an operator which is not permitted +by the compartment will cause an error (at run-time of the main program +but at compile-time for the code in \s-1STRING\s0). The error is of the form +\&\*(L"'%s' trapped by operation mask...\*(R". +.PP +If an operation is trapped in this way, then the code in \s-1STRING\s0 will +not be executed. If such a trapped operation occurs or any other +compile-time or return error, then $@ is set to the error message, just +as with an \fBeval()\fR. +.PP +If there is no error, then the method returns the value of the last +expression evaluated, or a return statement may be used, just as with +subroutines and \fB\fBeval()\fB\fR. The context (list or scalar) is determined +by the caller as usual. +.PP +If the return value of \fBreval()\fR is (or contains) any code reference, +those code references are wrapped to be themselves executed always +in the compartment. See \*(L"wrap_code_refs_within\*(R". +.PP +The formerly undocumented \s-1STRICT\s0 argument sets strictness: if true +\&'use strict;' is used, otherwise it uses 'no strict;'. \fBNote\fR: if +\&\s-1STRICT\s0 is omitted 'no strict;' is the default. +.PP +Some points to note: +.PP +If the entereval op is permitted then the code can use eval \*(L"...\*(R" to +\&'hide' code which might use denied ops. This is not a major problem +since when the code tries to execute the eval it will fail because the +opmask is still in effect. However this technique would allow clever, +and possibly harmful, code to 'probe' the boundaries of what is +possible. +.PP +Any string eval which is executed by code executing in a compartment, +or by code called from code executing in a compartment, will be eval'd +in the namespace of the compartment. This is potentially a serious +problem. +.PP +Consider a function \fBfoo()\fR in package pkg compiled outside a compartment +but shared with it. Assume the compartment has a root package called +\&'Root'. If \fBfoo()\fR contains an eval statement like eval '$foo = 1' then, +normally, \f(CW$pkg::foo\fR will be set to 1. If \fBfoo()\fR is called from the +compartment (by whatever means) then instead of setting \f(CW$pkg::foo\fR, the +eval will actually set \f(CW$Root::pkg::foo\fR. +.PP +This can easily be demonstrated by using a module, such as the Socket +module, which uses eval \*(L"...\*(R" as part of an \s-1AUTOLOAD\s0 function. You can +\&'use' the module outside the compartment and share an (autoloaded) +function with the compartment. If an autoload is triggered by code in +the compartment, or by any code anywhere that is called by any means +from the compartment, then the eval in the Socket module's \s-1AUTOLOAD\s0 +function happens in the namespace of the compartment. Any variables +created or used by the eval'd code are now under the control of +the code in the compartment. +.PP +A similar effect applies to \fIall\fR runtime symbol lookups in code +called from a compartment but not compiled within it. +.SS "rdo (\s-1FILENAME\s0)" +.IX Subsection "rdo (FILENAME)" +This evaluates the contents of file \s-1FILENAME\s0 inside the compartment. +It uses the same rules as perl's built-in \f(CW\*(C`do\*(C'\fR to locate the file, +poossibly using \f(CW@INC\fR. +.PP +See above documentation on the \fBreval\fR method for further details. +.SS "root (\s-1NAMESPACE\s0)" +.IX Subsection "root (NAMESPACE)" +This method returns the name of the package that is the root of the +compartment's namespace. +.PP +Note that this behaviour differs from version 1.00 of the Safe module +where the root module could be used to change the namespace. That +functionality has been withdrawn pending deeper consideration. +.SS "mask (\s-1MASK\s0)" +.IX Subsection "mask (MASK)" +This is a get-or-set method for the compartment's operator mask. +.PP +With no \s-1MASK\s0 argument present, it returns the current operator mask of +the compartment. +.PP +With the \s-1MASK\s0 argument present, it sets the operator mask for the +compartment (equivalent to calling the deny_only method). +.SS "wrap_code_ref (\s-1CODEREF\s0)" +.IX Subsection "wrap_code_ref (CODEREF)" +Returns a reference to an anonymous subroutine that, when executed, will call +\&\s-1CODEREF\s0 with the Safe compartment 'in effect'. In other words, with the +package namespace adjusted and the opmask enabled. +.PP +Note that the opmask doesn't affect the already compiled code, it only affects +any \fIfurther\fR compilation that the already compiled code may try to perform. +.PP +This is particularly useful when applied to code references returned from \fBreval()\fR. +.PP +(It also provides a kind of workaround for RT#60374: \*(L"Safe.pm sort {} bug with +\&\-Dusethreads\*(R". See +for \fImuch\fR more detail.) +.SS "wrap_code_refs_within (...)" +.IX Subsection "wrap_code_refs_within (...)" +Wraps any \s-1CODE\s0 references found within the arguments by replacing each with the +result of calling \*(L"wrap_code_ref\*(R" on the \s-1CODE\s0 reference. Any \s-1ARRAY\s0 or \s-1HASH\s0 +references in the arguments are inspected recursively. +.PP +Returns nothing. +.SH "RISKS" +.IX Header "RISKS" +This section is just an outline of some of the things code in a compartment +might do (intentionally or unintentionally) which can have an effect outside +the compartment. +.IP "Memory" 8 +.IX Item "Memory" +Consuming all (or nearly all) available memory. +.IP "\s-1CPU\s0" 8 +.IX Item "CPU" +Causing infinite loops etc. +.IP "Snooping" 8 +.IX Item "Snooping" +Copying private information out of your system. Even something as +simple as your user name is of value to others. Much useful information +could be gleaned from your environment variables for example. +.IP "Signals" 8 +.IX Item "Signals" +Causing signals (especially \s-1SIGFPE\s0 and \s-1SIGALARM\s0) to affect your process. +.Sp +Setting up a signal handler will need to be carefully considered +and controlled. What mask is in effect when a signal handler +gets called? If a user can get an imported function to get an +exception and call the user's signal handler, does that user's +restricted mask get re-instated before the handler is called? +Does an imported handler get called with its original mask or +the user's one? +.IP "State Changes" 8 +.IX Item "State Changes" +Ops such as chdir obviously effect the process as a whole and not just +the code in the compartment. Ops such as rand and srand have a similar +but more subtle effect. +.SH "AUTHOR" +.IX Header "AUTHOR" +Originally designed and implemented by Malcolm Beattie. +.PP +Reworked to use the Opcode module and other changes added by Tim Bunce. +.PP +Currently maintained by the Perl 5 Porters, . diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AGrammar.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AGrammar.3 new file mode 100644 index 0000000000000000000000000000000000000000..92918b09687def9d6ad3a9f6144e185a668f4f27 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AGrammar.3 @@ -0,0 +1,339 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "TAP::Parser::Grammar 3" +.TH TAP::Parser::Grammar 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +TAP::Parser::Grammar \- A grammar for the Test Anything Protocol. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 6 +\& use TAP::Parser::Grammar; +\& my $grammar = $self\->make_grammar({ +\& iterator => $tap_parser_iterator, +\& parser => $tap_parser, +\& version => 12, +\& }); +\& +\& my $result = $grammar\->tokenize; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\f(CW\*(C`TAP::Parser::Grammar\*(C'\fR tokenizes lines from a TAP::Parser::Iterator and +constructs TAP::Parser::Result subclasses to represent the tokens. +.PP +Do not attempt to use this class directly. It won't make sense. It's mainly +here to ensure that we will be able to have pluggable grammars when \s-1TAP\s0 is +expanded at some future date (plus, this stuff was really cluttering the +parser). +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 5 +\& my $grammar = TAP::Parser::Grammar\->new({ +\& iterator => $iterator, +\& parser => $parser, +\& version => $version, +\& }); +.Ve +.PP +Returns TAP::Parser grammar object that will parse the \s-1TAP\s0 stream from the +specified iterator. Both \f(CW\*(C`iterator\*(C'\fR and \f(CW\*(C`parser\*(C'\fR are required arguments. +If \f(CW\*(C`version\*(C'\fR is not set it defaults to \f(CW12\fR (see \*(L"set_version\*(R" for more +details). +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`set_version\*(C'\fI\fR +.IX Subsection "set_version" +.PP +.Vb 1 +\& $grammar\->set_version(13); +.Ve +.PP +Tell the grammar which \s-1TAP\s0 syntax version to support. The lowest +supported version is 12. Although '\s-1TAP\s0 version' isn't valid version 12 +syntax it is accepted so that higher version numbers may be parsed. +.PP +\fI\f(CI\*(C`tokenize\*(C'\fI\fR +.IX Subsection "tokenize" +.PP +.Vb 1 +\& my $token = $grammar\->tokenize; +.Ve +.PP +This method will return a TAP::Parser::Result object representing the +current line of \s-1TAP.\s0 +.PP +\fI\f(CI\*(C`token_types\*(C'\fI\fR +.IX Subsection "token_types" +.PP +.Vb 1 +\& my @types = $grammar\->token_types; +.Ve +.PP +Returns the different types of tokens which this grammar can parse. +.PP +\fI\f(CI\*(C`syntax_for\*(C'\fI\fR +.IX Subsection "syntax_for" +.PP +.Vb 1 +\& my $syntax = $grammar\->syntax_for($token_type); +.Ve +.PP +Returns a pre-compiled regular expression which will match a chunk of \s-1TAP\s0 +corresponding to the token type. For example (not that you should really pay +attention to this, \f(CW\*(C`$grammar\->syntax_for(\*(Aqcomment\*(Aq)\*(C'\fR will return +\&\f(CW\*(C`qr/^#(.*)/\*(C'\fR. +.PP +\fI\f(CI\*(C`handler_for\*(C'\fI\fR +.IX Subsection "handler_for" +.PP +.Vb 1 +\& my $handler = $grammar\->handler_for($token_type); +.Ve +.PP +Returns a code reference which, when passed an appropriate line of \s-1TAP,\s0 +returns the lexed token corresponding to that line. As a result, the basic +\&\s-1TAP\s0 parsing loop looks similar to the following: +.PP +.Vb 10 +\& my @tokens; +\& my $grammar = TAP::Grammar\->new; +\& LINE: while ( defined( my $line = $parser\->_next_chunk_of_tap ) ) { +\& for my $type ( $grammar\->token_types ) { +\& my $syntax = $grammar\->syntax_for($type); +\& if ( $line =~ $syntax ) { +\& my $handler = $grammar\->handler_for($type); +\& push @tokens => $grammar\->$handler($line); +\& next LINE; +\& } +\& } +\& push @tokens => $grammar\->_make_unknown_token($line); +\& } +.Ve +.SH "TAP GRAMMAR" +.IX Header "TAP GRAMMAR" +\&\fB\s-1NOTE:\s0\fR This grammar is slightly out of date. There's still some discussion +about it and a new one will be provided when we have things better defined. +.PP +The TAP::Parser does not use a formal grammar because \s-1TAP\s0 is essentially a +stream-based protocol. In fact, it's quite legal to have an infinite stream. +For the same reason that we don't apply regexes to streams, we're not using a +formal grammar here. Instead, we parse the \s-1TAP\s0 in lines. +.PP +For purposes for forward compatibility, any result which does not match the +following grammar is currently referred to as +TAP::Parser::Result::Unknown. It is \fInot\fR a parse error. +.PP +A formal grammar would look similar to the following: +.PP +.Vb 4 +\& (* +\& For the time being, I\*(Aqm cheating on the EBNF by allowing +\& certain terms to be defined by POSIX character classes by +\& using the following syntax: +\& +\& digit ::= [:digit:] +\& +\& As far as I am aware, that\*(Aqs not valid EBNF. Sue me. I +\& didn\*(Aqt know how to write "char" otherwise (Unicode issues). +\& Suggestions welcome. +\& *) +\& +\& tap ::= version? { comment | unknown } leading_plan lines +\& | +\& lines trailing_plan {comment} +\& +\& version ::= \*(AqTAP version \*(Aq positiveInteger {positiveInteger} "\en" +\& +\& leading_plan ::= plan skip_directive? "\en" +\& +\& trailing_plan ::= plan "\en" +\& +\& plan ::= \*(Aq1..\*(Aq nonNegativeInteger +\& +\& lines ::= line {line} +\& +\& line ::= (comment | test | unknown | bailout ) "\en" +\& +\& test ::= status positiveInteger? description? directive? +\& +\& status ::= \*(Aqnot \*(Aq? \*(Aqok \*(Aq +\& +\& description ::= (character \- (digit | \*(Aq#\*(Aq)) {character \- \*(Aq#\*(Aq} +\& +\& directive ::= todo_directive | skip_directive +\& +\& todo_directive ::= hash_mark \*(AqTODO\*(Aq \*(Aq \*(Aq {character} +\& +\& skip_directive ::= hash_mark \*(AqSKIP\*(Aq \*(Aq \*(Aq {character} +\& +\& comment ::= hash_mark {character} +\& +\& hash_mark ::= \*(Aq#\*(Aq {\*(Aq \*(Aq} +\& +\& bailout ::= \*(AqBail out!\*(Aq {character} +\& +\& unknown ::= { (character \- "\en") } +\& +\& (* POSIX character classes and other terminals *) +\& +\& digit ::= [:digit:] +\& character ::= ([:print:] \- "\en") +\& positiveInteger ::= ( digit \- \*(Aq0\*(Aq ) {digit} +\& nonNegativeInteger ::= digit {digit} +.Ve +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.PP +If you \fIreally\fR want to subclass TAP::Parser's grammar the best thing to +do is read through the code. There's no easy way of summarizing it here. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::Iterator, +TAP::Parser::Result, diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3ABailout.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3ABailout.3 new file mode 100644 index 0000000000000000000000000000000000000000..a45a1a60addc5e7ac6f9fdd463e937fb21866169 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3ABailout.3 @@ -0,0 +1,176 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "TAP::Parser::Result::Bailout 3" +.TH TAP::Parser::Result::Bailout 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +TAP::Parser::Result::Bailout \- Bailout result token. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of TAP::Parser::Result. A token of this class will be +returned if a bail out line is encountered. +.PP +.Vb 3 +\& 1..5 +\& ok 1 \- woo hooo! +\& Bail out! Well, so much for "woo hooo!" +.Ve +.SH "OVERRIDDEN METHODS" +.IX Header "OVERRIDDEN METHODS" +Mainly listed here to shut up the pitiful screams of the pod coverage tests. +They keep me awake at night. +.IP "\(bu" 4 +\&\f(CW\*(C`as_string\*(C'\fR +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`explanation\*(C'\fI\fR +.IX Subsection "explanation" +.PP +.Vb 4 +\& if ( $result\->is_bailout ) { +\& my $explanation = $result\->explanation; +\& print "We bailed out because ($explanation)"; +\& } +.Ve +.PP +If, and only if, a token is a bailout token, you can get an \*(L"explanation\*(R" via +this method. The explanation is the text after the mystical \*(L"Bail out!\*(R" words +which appear in the tap output. diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AComment.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AComment.3 new file mode 100644 index 0000000000000000000000000000000000000000..f324fc5b224af9df00d7167585877345acab37ae --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AComment.3 @@ -0,0 +1,174 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "TAP::Parser::Result::Comment 3" +.TH TAP::Parser::Result::Comment 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +TAP::Parser::Result::Comment \- Comment result token. +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a subclass of TAP::Parser::Result. A token of this class will be +returned if a comment line is encountered. +.PP +.Vb 3 +\& 1..1 +\& ok 1 \- woo hooo! +\& # this is a comment +.Ve +.SH "OVERRIDDEN METHODS" +.IX Header "OVERRIDDEN METHODS" +Mainly listed here to shut up the pitiful screams of the pod coverage tests. +They keep me awake at night. +.IP "\(bu" 4 +\&\f(CW\*(C`as_string\*(C'\fR +.Sp +Note that this method merely returns the comment preceded by a '# '. +.SS "Instance Methods" +.IX Subsection "Instance Methods" +\fI\f(CI\*(C`comment\*(C'\fI\fR +.IX Subsection "comment" +.PP +.Vb 4 +\& if ( $result\->is_comment ) { +\& my $comment = $result\->comment; +\& print "I have something to say: $comment"; +\& } +.Ve diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult.3 new file mode 100644 index 0000000000000000000000000000000000000000..f26c248d3b68fee1ce2f6a162a31de0f5cb2f4fc --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult.3 @@ -0,0 +1,359 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "TAP::Parser::Result 3" +.TH TAP::Parser::Result 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +TAP::Parser::Result \- Base class for TAP::Parser output objects +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # abstract class \- not meant to be used directly +\& # see TAP::Parser::ResultFactory for preferred usage +\& +\& # directly: +\& use TAP::Parser::Result; +\& my $token = {...}; +\& my $result = TAP::Parser::Result\->new( $token ); +.Ve +.SS "\s-1DESCRIPTION\s0" +.IX Subsection "DESCRIPTION" +This is a simple base class used by TAP::Parser to store objects that +represent the current bit of test output data from \s-1TAP\s0 (usually a single +line). Unless you're subclassing, you probably won't need to use this module +directly. +.SS "\s-1METHODS\s0" +.IX Subsection "METHODS" +\fI\f(CI\*(C`new\*(C'\fI\fR +.IX Subsection "new" +.PP +.Vb 1 +\& # see TAP::Parser::ResultFactory for preferred usage +\& +\& # to use directly: +\& my $result = TAP::Parser::Result\->new($token); +.Ve +.PP +Returns an instance the appropriate class for the test token passed in. +.SS "Boolean methods" +.IX Subsection "Boolean methods" +The following methods all return a boolean value and are to be overridden in +the appropriate subclass. +.IP "\(bu" 4 +\&\f(CW\*(C`is_plan\*(C'\fR +.Sp +Indicates whether or not this is the test plan line. +.Sp +.Vb 1 +\& 1..3 +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`is_pragma\*(C'\fR +.Sp +Indicates whether or not this is a pragma line. +.Sp +.Vb 1 +\& pragma +strict +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`is_test\*(C'\fR +.Sp +Indicates whether or not this is a test line. +.Sp +.Vb 1 +\& ok 1 Is OK! +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`is_comment\*(C'\fR +.Sp +Indicates whether or not this is a comment. +.Sp +.Vb 1 +\& # this is a comment +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`is_bailout\*(C'\fR +.Sp +Indicates whether or not this is bailout line. +.Sp +.Vb 1 +\& Bail out! We\*(Aqre out of dilithium crystals. +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`is_version\*(C'\fR +.Sp +Indicates whether or not this is a \s-1TAP\s0 version line. +.Sp +.Vb 1 +\& TAP version 4 +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`is_unknown\*(C'\fR +.Sp +Indicates whether or not the current line could be parsed. +.Sp +.Vb 1 +\& ... this line is junk ... +.Ve +.IP "\(bu" 4 +\&\f(CW\*(C`is_yaml\*(C'\fR +.Sp +Indicates whether or not this is a \s-1YAML\s0 chunk. +.PP +\fI\f(CI\*(C`raw\*(C'\fI\fR +.IX Subsection "raw" +.PP +.Vb 1 +\& print $result\->raw; +.Ve +.PP +Returns the original line of text which was parsed. +.PP +\fI\f(CI\*(C`type\*(C'\fI\fR +.IX Subsection "type" +.PP +.Vb 1 +\& my $type = $result\->type; +.Ve +.PP +Returns the \*(L"type\*(R" of a token, such as \f(CW\*(C`comment\*(C'\fR or \f(CW\*(C`test\*(C'\fR. +.PP +\fI\f(CI\*(C`as_string\*(C'\fI\fR +.IX Subsection "as_string" +.PP +.Vb 1 +\& print $result\->as_string; +.Ve +.PP +Prints a string representation of the token. This might not be the exact +output, however. Tests will have test numbers added if not present, \s-1TODO\s0 and +\&\s-1SKIP\s0 directives will be capitalized and, in general, things will be cleaned +up. If you need the original text for the token, see the \f(CW\*(C`raw\*(C'\fR method. +.PP +\fI\f(CI\*(C`is_ok\*(C'\fI\fR +.IX Subsection "is_ok" +.PP +.Vb 1 +\& if ( $result\->is_ok ) { ... } +.Ve +.PP +Reports whether or not a given result has passed. Anything which is \fBnot\fR a +test result returns true. This is merely provided as a convenient shortcut. +.PP +\fI\f(CI\*(C`passed\*(C'\fI\fR +.IX Subsection "passed" +.PP +Deprecated. Please use \f(CW\*(C`is_ok\*(C'\fR instead. +.PP +\fI\f(CI\*(C`has_directive\*(C'\fI\fR +.IX Subsection "has_directive" +.PP +.Vb 3 +\& if ( $result\->has_directive ) { +\& ... +\& } +.Ve +.PP +Indicates whether or not the given result has a \s-1TODO\s0 or \s-1SKIP\s0 directive. +.PP +\fI\f(CI\*(C`has_todo\*(C'\fI\fR +.IX Subsection "has_todo" +.PP +.Vb 3 +\& if ( $result\->has_todo ) { +\& ... +\& } +.Ve +.PP +Indicates whether or not the given result has a \s-1TODO\s0 directive. +.PP +\fI\f(CI\*(C`has_skip\*(C'\fI\fR +.IX Subsection "has_skip" +.PP +.Vb 3 +\& if ( $result\->has_skip ) { +\& ... +\& } +.Ve +.PP +Indicates whether or not the given result has a \s-1SKIP\s0 directive. +.PP +\fI\f(CI\*(C`set_directive\*(C'\fI\fR +.IX Subsection "set_directive" +.PP +Set the directive associated with this token. Used internally to fake +\&\s-1TODO\s0 tests. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview. +.PP +Remember: if you want your subclass to be automatically used by the parser, +you'll have to register it with \*(L"register_type\*(R" in TAP::Parser::ResultFactory. +.PP +If you're creating a completely new result \fItype\fR, you'll probably need to +subclass TAP::Parser::Grammar too, or else it'll never get used. +.SS "Example" +.IX Subsection "Example" +.Vb 1 +\& package MyResult; +\& +\& use strict; +\& +\& use base \*(AqTAP::Parser::Result\*(Aq; +\& +\& # register with the factory: +\& TAP::Parser::ResultFactory\->register_type( \*(Aqmy_type\*(Aq => _\|_PACKAGE_\|_ ); +\& +\& sub as_string { \*(AqMy results all look the same\*(Aq } +.Ve +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::ResultFactory, +TAP::Parser::Result::Bailout, +TAP::Parser::Result::Comment, +TAP::Parser::Result::Plan, +TAP::Parser::Result::Pragma, +TAP::Parser::Result::Test, +TAP::Parser::Result::Unknown, +TAP::Parser::Result::Version, +TAP::Parser::Result::YAML, diff --git a/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler.3 b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler.3 new file mode 100644 index 0000000000000000000000000000000000000000..fe674435f9e522a03aedb783028c9ada257200d3 --- /dev/null +++ b/data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler.3 @@ -0,0 +1,296 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "TAP::Parser::SourceHandler 3" +.TH TAP::Parser::SourceHandler 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +TAP::Parser::SourceHandler \- Base class for different TAP source handlers +.SH "VERSION" +.IX Header "VERSION" +Version 3.42 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& # abstract class \- don\*(Aqt use directly! +\& # see TAP::Parser::IteratorFactory for general usage +\& +\& # must be sub\-classed for use +\& package MySourceHandler; +\& use base \*(AqTAP::Parser::SourceHandler\*(Aq; +\& sub can_handle { return $confidence_level } +\& sub make_iterator { return $iterator } +\& +\& # see example below for more details +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is an abstract base class for TAP::Parser::Source handlers / handlers. +.PP +A \f(CW\*(C`TAP::Parser::SourceHandler\*(C'\fR does whatever is necessary to produce & capture +a stream of \s-1TAP\s0 from the \fIraw\fR source, and package it up in a +TAP::Parser::Iterator for the parser to consume. +.PP +\&\f(CW\*(C`SourceHandlers\*(C'\fR must implement the \fIsource detection & handling\fR interface +used by TAP::Parser::IteratorFactory. At 2 methods, the interface is pretty +simple: \*(L"can_handle\*(R" and \*(L"make_source\*(R". +.PP +Unless you're writing a new TAP::Parser::SourceHandler, a plugin, or +subclassing TAP::Parser, you probably won't need to use this module directly. +.SH "METHODS" +.IX Header "METHODS" +.SS "Class Methods" +.IX Subsection "Class Methods" +\fI\f(CI\*(C`can_handle\*(C'\fI\fR +.IX Subsection "can_handle" +.PP +\&\fIAbstract method\fR. +.PP +.Vb 1 +\& my $vote = $class\->can_handle( $source ); +.Ve +.PP +\&\f(CW$source\fR is a TAP::Parser::Source. +.PP +Returns a number between \f(CW0\fR & \f(CW1\fR reflecting how confidently the raw source +can be handled. For example, \f(CW0\fR means the source cannot handle it, \f(CW0.5\fR +means it may be able to, and \f(CW1\fR means it definitely can. See +\&\*(L"detect_source\*(R" in TAP::Parser::IteratorFactory for details on how this is used. +.PP +\fI\f(CI\*(C`make_iterator\*(C'\fI\fR +.IX Subsection "make_iterator" +.PP +\&\fIAbstract method\fR. +.PP +.Vb 1 +\& my $iterator = $class\->make_iterator( $source ); +.Ve +.PP +\&\f(CW$source\fR is a TAP::Parser::Source. +.PP +Returns a new TAP::Parser::Iterator object for use by the TAP::Parser. +\&\f(CW\*(C`croak\*(C'\fRs on error. +.SH "SUBCLASSING" +.IX Header "SUBCLASSING" +Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview, and any +of the subclasses that ship with this module as an example. What follows is +a quick overview. +.PP +Start by familiarizing yourself with TAP::Parser::Source and +TAP::Parser::IteratorFactory. TAP::Parser::SourceHandler::RawTAP is +the easiest sub-class to use as an example. +.PP +It's important to point out that if you want your subclass to be automatically +used by TAP::Parser you'll have to and make sure it gets loaded somehow. +If you're using prove you can write an App::Prove plugin. If you're +using TAP::Parser or TAP::Harness directly (e.g. through a custom script, +ExtUtils::MakeMaker, or Module::Build) you can use the \f(CW\*(C`config\*(C'\fR option +which will cause \*(L"load_sources\*(R" in TAP::Parser::IteratorFactory to load your +subclass). +.PP +Don't forget to register your class with +\&\*(L"register_handler\*(R" in TAP::Parser::IteratorFactory. +.SS "Example" +.IX Subsection "Example" +.Vb 1 +\& package MySourceHandler; +\& +\& use strict; +\& +\& use MySourceHandler; # see TAP::Parser::SourceHandler +\& use TAP::Parser::IteratorFactory; +\& +\& use base \*(AqTAP::Parser::SourceHandler\*(Aq; +\& +\& TAP::Parser::IteratorFactory\->register_handler( _\|_PACKAGE_\|_ ); +\& +\& sub can_handle { +\& my ( $class, $src ) = @_; +\& my $meta = $src\->meta; +\& my $config = $src\->config_for( $class ); +\& +\& if ($config\->{accept_all}) { +\& return 1.0; +\& } elsif (my $file = $meta\->{file}) { +\& return 0.0 unless $file\->{exists}; +\& return 1.0 if $file\->{lc_ext} eq \*(Aq.tap\*(Aq; +\& return 0.9 if $file\->{shebang} && $file\->{shebang} =~ /^#!.+tap/; +\& return 0.5 if $file\->{text}; +\& return 0.1 if $file\->{binary}; +\& } elsif ($meta\->{scalar}) { +\& return 0.8 if $$raw_source_ref =~ /\ed\e.\e.\ed/; +\& return 0.6 if $meta\->{has_newlines}; +\& } elsif ($meta\->{array}) { +\& return 0.8 if $meta\->{size} < 5; +\& return 0.6 if $raw_source_ref\->[0] =~ /foo/; +\& return 0.5; +\& } elsif ($meta\->{hash}) { +\& return 0.6 if $raw_source_ref\->{foo}; +\& return 0.2; +\& } +\& +\& return 0; +\& } +\& +\& sub make_iterator { +\& my ($class, $source) = @_; +\& # this is where you manipulate the source and +\& # capture the stream of TAP in an iterator +\& # either pick a TAP::Parser::Iterator::* or write your own... +\& my $iterator = TAP::Parser::Iterator::Array\->new([ \*(Aqfoo\*(Aq, \*(Aqbar\*(Aq ]); +\& return $iterator; +\& } +\& +\& 1; +.Ve +.SH "AUTHORS" +.IX Header "AUTHORS" +TAPx Developers. +.PP +Source detection stuff added by Steve Purkis +.SH "SEE ALSO" +.IX Header "SEE ALSO" +TAP::Object, +TAP::Parser, +TAP::Parser::Source, +TAP::Parser::Iterator, +TAP::Parser::IteratorFactory, +TAP::Parser::SourceHandler::Executable, +TAP::Parser::SourceHandler::Perl, +TAP::Parser::SourceHandler::File, +TAP::Parser::SourceHandler::Handle, +TAP::Parser::SourceHandler::RawTAP diff --git a/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATodoDiag.3 b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATodoDiag.3 new file mode 100644 index 0000000000000000000000000000000000000000..809b794e1f9438d174a616fa1c9d4e80fcc6b34b --- /dev/null +++ b/data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATodoDiag.3 @@ -0,0 +1,170 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test::Builder::TodoDiag 3" +.TH Test::Builder::TodoDiag 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test::Builder::TodoDiag \- Test::Builder subclass of Test2::Event::Diag +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is used to encapsulate diag messages created inside \s-1TODO.\s0 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +You do not need to use this directly. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AInstance.3 b/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AInstance.3 new file mode 100644 index 0000000000000000000000000000000000000000..a00a3fc01390e032b95d9238c1b523506ba54146 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AInstance.3 @@ -0,0 +1,389 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::API::Instance 3" +.TH Test2::API::Instance 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::API::Instance \- Object used by Test2::API under the hood +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This object encapsulates the global shared state tracked by +Test2. A single global instance of this package is stored (and +obscured) by the Test2::API package. +.PP +There is no reason to directly use this package. This package is documented for +completeness. This package can change, or go away completely at any time. +Directly using, or monkeypatching this package is not supported in any way +shape or form. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test2::API::Instance; +\& +\& my $obj = Test2::API::Instance\->new; +.Ve +.ie n .IP "$pid = $obj\->pid" 4 +.el .IP "\f(CW$pid\fR = \f(CW$obj\fR\->pid" 4 +.IX Item "$pid = $obj->pid" +\&\s-1PID\s0 of this instance. +.ie n .IP "$obj\->tid" 4 +.el .IP "\f(CW$obj\fR\->tid" 4 +.IX Item "$obj->tid" +Thread \s-1ID\s0 of this instance. +.ie n .IP "$obj\->\fBreset()\fR" 4 +.el .IP "\f(CW$obj\fR\->\fBreset()\fR" 4 +.IX Item "$obj->reset()" +Reset the object to defaults. +.ie n .IP "$obj\->\fBload()\fR" 4 +.el .IP "\f(CW$obj\fR\->\fBload()\fR" 4 +.IX Item "$obj->load()" +Set the internal state to loaded, and run and stored post-load callbacks. +.ie n .IP "$bool = $obj\->loaded" 4 +.el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->loaded" 4 +.IX Item "$bool = $obj->loaded" +Check if the state is set to loaded. +.ie n .IP "$arrayref = $obj\->post_load_callbacks" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->post_load_callbacks" 4 +.IX Item "$arrayref = $obj->post_load_callbacks" +Get the post-load callbacks. +.ie n .IP "$obj\->add_post_load_callback(sub { ... })" 4 +.el .IP "\f(CW$obj\fR\->add_post_load_callback(sub { ... })" 4 +.IX Item "$obj->add_post_load_callback(sub { ... })" +Add a post-load callback. If \f(CW\*(C`load()\*(C'\fR has already been called then the callback will +be immediately executed. If \f(CW\*(C`load()\*(C'\fR has not been called then the callback will be +stored and executed later when \f(CW\*(C`load()\*(C'\fR is called. +.ie n .IP "$hashref = $obj\->\fBcontexts()\fR" 4 +.el .IP "\f(CW$hashref\fR = \f(CW$obj\fR\->\fBcontexts()\fR" 4 +.IX Item "$hashref = $obj->contexts()" +Get a hashref of all active contexts keyed by hub id. +.ie n .IP "$arrayref = $obj\->context_acquire_callbacks" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->context_acquire_callbacks" 4 +.IX Item "$arrayref = $obj->context_acquire_callbacks" +Get all context acquire callbacks. +.ie n .IP "$arrayref = $obj\->context_init_callbacks" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->context_init_callbacks" 4 +.IX Item "$arrayref = $obj->context_init_callbacks" +Get all context init callbacks. +.ie n .IP "$arrayref = $obj\->context_release_callbacks" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->context_release_callbacks" 4 +.IX Item "$arrayref = $obj->context_release_callbacks" +Get all context release callbacks. +.ie n .IP "$arrayref = $obj\->pre_subtest_callbacks" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->pre_subtest_callbacks" 4 +.IX Item "$arrayref = $obj->pre_subtest_callbacks" +Get all pre-subtest callbacks. +.ie n .IP "$obj\->add_context_init_callback(sub { ... })" 4 +.el .IP "\f(CW$obj\fR\->add_context_init_callback(sub { ... })" 4 +.IX Item "$obj->add_context_init_callback(sub { ... })" +Add a context init callback. Subs are called every time a context is created. Subs +get the newly created context as their only argument. +.ie n .IP "$obj\->add_context_release_callback(sub { ... })" 4 +.el .IP "\f(CW$obj\fR\->add_context_release_callback(sub { ... })" 4 +.IX Item "$obj->add_context_release_callback(sub { ... })" +Add a context release callback. Subs are called every time a context is released. Subs +get the released context as their only argument. These callbacks should not +call release on the context. +.ie n .IP "$obj\->add_pre_subtest_callback(sub { ... })" 4 +.el .IP "\f(CW$obj\fR\->add_pre_subtest_callback(sub { ... })" 4 +.IX Item "$obj->add_pre_subtest_callback(sub { ... })" +Add a pre-subtest callback. Subs are called every time a subtest is +going to be run. Subs get the subtest name, coderef, and any +arguments. +.ie n .IP "$obj\->\fBset_exit()\fR" 4 +.el .IP "\f(CW$obj\fR\->\fBset_exit()\fR" 4 +.IX Item "$obj->set_exit()" +This is intended to be called in an \f(CW\*(C`END { ... }\*(C'\fR block. This will look at +test state and set $?. This will also call any end callbacks, and wait on child +processes/threads. +.ie n .IP "$obj\->set_ipc_pending($val)" 4 +.el .IP "\f(CW$obj\fR\->set_ipc_pending($val)" 4 +.IX Item "$obj->set_ipc_pending($val)" +Tell other processes and threads there is a pending event. \f(CW$val\fR should be a +unique value no other thread/process will generate. +.Sp +\&\fBNote:\fR This will also make the current process see a pending event. +.ie n .IP "$pending = $obj\->\fBget_ipc_pending()\fR" 4 +.el .IP "\f(CW$pending\fR = \f(CW$obj\fR\->\fBget_ipc_pending()\fR" 4 +.IX Item "$pending = $obj->get_ipc_pending()" +This returns \-1 if it is not possible to know. +.Sp +This returns 0 if there are no pending events. +.Sp +This returns 1 if there are pending events. +.ie n .IP "$timeout = $obj\->ipc_timeout;" 4 +.el .IP "\f(CW$timeout\fR = \f(CW$obj\fR\->ipc_timeout;" 4 +.IX Item "$timeout = $obj->ipc_timeout;" +.PD 0 +.ie n .IP "$obj\->set_ipc_timeout($timeout);" 4 +.el .IP "\f(CW$obj\fR\->set_ipc_timeout($timeout);" 4 +.IX Item "$obj->set_ipc_timeout($timeout);" +.PD +How long to wait for child processes and threads before aborting. +.ie n .IP "$drivers = $obj\->ipc_drivers" 4 +.el .IP "\f(CW$drivers\fR = \f(CW$obj\fR\->ipc_drivers" 4 +.IX Item "$drivers = $obj->ipc_drivers" +Get the list of \s-1IPC\s0 drivers. +.ie n .IP "$obj\->add_ipc_driver($DRIVER_CLASS)" 4 +.el .IP "\f(CW$obj\fR\->add_ipc_driver($DRIVER_CLASS)" 4 +.IX Item "$obj->add_ipc_driver($DRIVER_CLASS)" +Add an \s-1IPC\s0 driver to the list. The most recently added \s-1IPC\s0 driver will become +the global one during initialization. If a driver is added after initialization +has occurred a warning will be generated: +.Sp +.Vb 1 +\& "IPC driver $driver loaded too late to be used as the global ipc driver" +.Ve +.ie n .IP "$bool = $obj\->ipc_polling" 4 +.el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->ipc_polling" 4 +.IX Item "$bool = $obj->ipc_polling" +Check if polling is enabled. +.ie n .IP "$obj\->enable_ipc_polling" 4 +.el .IP "\f(CW$obj\fR\->enable_ipc_polling" 4 +.IX Item "$obj->enable_ipc_polling" +Turn on polling. This will cull events from other processes and threads every +time a context is created. +.ie n .IP "$obj\->disable_ipc_polling" 4 +.el .IP "\f(CW$obj\fR\->disable_ipc_polling" 4 +.IX Item "$obj->disable_ipc_polling" +Turn off \s-1IPC\s0 polling. +.ie n .IP "$bool = $obj\->no_wait" 4 +.el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->no_wait" 4 +.IX Item "$bool = $obj->no_wait" +.PD 0 +.ie n .IP "$bool = $obj\->set_no_wait($bool)" 4 +.el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->set_no_wait($bool)" 4 +.IX Item "$bool = $obj->set_no_wait($bool)" +.PD +Get/Set no_wait. This option is used to turn off process/thread waiting at exit. +.ie n .IP "$arrayref = $obj\->exit_callbacks" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->exit_callbacks" 4 +.IX Item "$arrayref = $obj->exit_callbacks" +Get the exit callbacks. +.ie n .IP "$obj\->add_exit_callback(sub { ... })" 4 +.el .IP "\f(CW$obj\fR\->add_exit_callback(sub { ... })" 4 +.IX Item "$obj->add_exit_callback(sub { ... })" +Add an exit callback. This callback will be called by \f(CW\*(C`set_exit()\*(C'\fR. +.ie n .IP "$bool = $obj\->finalized" 4 +.el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->finalized" 4 +.IX Item "$bool = $obj->finalized" +Check if the object is finalized. Finalization happens when either \f(CW\*(C`ipc()\*(C'\fR, +\&\f(CW\*(C`stack()\*(C'\fR, or \f(CW\*(C`format()\*(C'\fR are called on the object. Once finalization happens +these fields are considered unchangeable (not enforced here, enforced by +Test2). +.ie n .IP "$ipc = $obj\->ipc" 4 +.el .IP "\f(CW$ipc\fR = \f(CW$obj\fR\->ipc" 4 +.IX Item "$ipc = $obj->ipc" +Get the one true \s-1IPC\s0 instance. +.ie n .IP "$obj\->ipc_disable" 4 +.el .IP "\f(CW$obj\fR\->ipc_disable" 4 +.IX Item "$obj->ipc_disable" +Turn \s-1IPC\s0 off +.ie n .IP "$bool = $obj\->ipc_disabled" 4 +.el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->ipc_disabled" 4 +.IX Item "$bool = $obj->ipc_disabled" +Check if \s-1IPC\s0 is disabled +.ie n .IP "$stack = $obj\->stack" 4 +.el .IP "\f(CW$stack\fR = \f(CW$obj\fR\->stack" 4 +.IX Item "$stack = $obj->stack" +Get the one true hub stack. +.ie n .IP "$formatter = $obj\->formatter" 4 +.el .IP "\f(CW$formatter\fR = \f(CW$obj\fR\->formatter" 4 +.IX Item "$formatter = $obj->formatter" +Get the global formatter. By default this is the \f(CW\*(AqTest2::Formatter::TAP\*(Aq\fR +package. This could be any package that implements the \f(CW\*(C`write()\*(C'\fR method. This +can also be an instantiated object. +.ie n .IP "$bool = $obj\->\fBformatter_set()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->\fBformatter_set()\fR" 4 +.IX Item "$bool = $obj->formatter_set()" +Check if a formatter has been set. +.ie n .IP "$obj\->add_formatter($class)" 4 +.el .IP "\f(CW$obj\fR\->add_formatter($class)" 4 +.IX Item "$obj->add_formatter($class)" +.PD 0 +.ie n .IP "$obj\->add_formatter($obj)" 4 +.el .IP "\f(CW$obj\fR\->add_formatter($obj)" 4 +.IX Item "$obj->add_formatter($obj)" +.PD +Add a formatter. The most recently added formatter will become the global one +during initialization. If a formatter is added after initialization has occurred +a warning will be generated: +.Sp +.Vb 1 +\& "Formatter $formatter loaded too late to be used as the global formatter" +.Ve +.ie n .IP "$obj\->set_add_uuid_via(sub { ... })" 4 +.el .IP "\f(CW$obj\fR\->set_add_uuid_via(sub { ... })" 4 +.IX Item "$obj->set_add_uuid_via(sub { ... })" +.PD 0 +.ie n .IP "$sub = $obj\->\fBadd_uuid_via()\fR" 4 +.el .IP "\f(CW$sub\fR = \f(CW$obj\fR\->\fBadd_uuid_via()\fR" 4 +.IX Item "$sub = $obj->add_uuid_via()" +.PD +This allows you to provide a \s-1UUID\s0 generator. If provided UUIDs will be attached +to all events, hubs, and contexts. This is useful for storing, tracking, and +linking these objects. +.Sp +The sub you provide should always return a unique identifier. Most things will +expect a proper \s-1UUID\s0 string, however nothing in Test2::API enforces this. +.Sp +The sub will receive exactly 1 argument, the type of thing being tagged +\&'context', 'hub', or 'event'. In the future additional things may be tagged, in +which case new strings will be passed in. These are purely informative, you can +(and usually should) ignore them. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AStack.3 b/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AStack.3 new file mode 100644 index 0000000000000000000000000000000000000000..fcb607d117a1ad4fcce8acd54494f420d5a3abe7 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AStack.3 @@ -0,0 +1,244 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::API::Stack 3" +.TH Test2::API::Stack 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::API::Stack \- Object to manage a stack of Test2::Hub +instances. +.SH "***INTERNALS NOTE***" +.IX Header "***INTERNALS NOTE***" +\&\fBThe internals of this package are subject to change at any time!\fR The public +methods provided will not change in backwards incompatible ways, but the +underlying implementation details might. \fBDo not break encapsulation here!\fR +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module is used to represent and manage a stack of Test2::Hub +objects. Hubs are usually in a stack so that you can push a new hub into place +that can intercept and handle events differently than the primary hub. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& my $stack = Test2::API::Stack\->new; +\& my $hub = $stack\->top; +.Ve +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "$stack = Test2::API::Stack\->\fBnew()\fR" 4 +.el .IP "\f(CW$stack\fR = Test2::API::Stack\->\fBnew()\fR" 4 +.IX Item "$stack = Test2::API::Stack->new()" +This will create a new empty stack instance. All arguments are ignored. +.ie n .IP "$hub = $stack\->\fBnew_hub()\fR" 4 +.el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->\fBnew_hub()\fR" 4 +.IX Item "$hub = $stack->new_hub()" +.PD 0 +.ie n .IP "$hub = $stack\->new_hub(%params)" 4 +.el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->new_hub(%params)" 4 +.IX Item "$hub = $stack->new_hub(%params)" +.ie n .IP "$hub = $stack\->new_hub(%params, class => $class)" 4 +.el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->new_hub(%params, class => \f(CW$class\fR)" 4 +.IX Item "$hub = $stack->new_hub(%params, class => $class)" +.PD +This will generate a new hub and push it to the top of the stack. Optionally +you can provide arguments that will be passed into the constructor for the +Test2::Hub object. +.Sp +If you specify the \f(CW\*(C`\*(Aqclass\*(Aq => $class\*(C'\fR argument, the new hub will be an +instance of the specified class. +.Sp +Unless your parameters specify \f(CW\*(Aqformatter\*(Aq\fR or \f(CW\*(Aqipc\*(Aq\fR arguments, the +formatter and \s-1IPC\s0 instance will be inherited from the current top hub. You can +set the parameters to \f(CW\*(C`undef\*(C'\fR to avoid having a formatter or \s-1IPC\s0 instance. +.Sp +If there is no top hub, and you do not ask to leave \s-1IPC\s0 and formatter undef, +then a new formatter will be created, and the \s-1IPC\s0 instance from +Test2::API will be used. +.ie n .IP "$hub = $stack\->\fBtop()\fR" 4 +.el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->\fBtop()\fR" 4 +.IX Item "$hub = $stack->top()" +This will return the top hub from the stack. If there is no top hub yet this +will create it. +.ie n .IP "$hub = $stack\->\fBpeek()\fR" 4 +.el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->\fBpeek()\fR" 4 +.IX Item "$hub = $stack->peek()" +This will return the top hub from the stack. If there is no top hub yet this +will return undef. +.ie n .IP "$stack\->cull" 4 +.el .IP "\f(CW$stack\fR\->cull" 4 +.IX Item "$stack->cull" +This will call \f(CW\*(C`$hub\->cull\*(C'\fR on all hubs in the stack. +.ie n .IP "@hubs = $stack\->all" 4 +.el .IP "\f(CW@hubs\fR = \f(CW$stack\fR\->all" 4 +.IX Item "@hubs = $stack->all" +This will return all the hubs in the stack as a list. +.ie n .IP "$stack\->clear" 4 +.el .IP "\f(CW$stack\fR\->clear" 4 +.IX Item "$stack->clear" +This will completely remove all hubs from the stack. Normally you do not want +to do this, but there are a few valid reasons for it. +.ie n .IP "$stack\->push($hub)" 4 +.el .IP "\f(CW$stack\fR\->push($hub)" 4 +.IX Item "$stack->push($hub)" +This will push the new hub onto the stack. +.ie n .IP "$stack\->pop($hub)" 4 +.el .IP "\f(CW$stack\fR\->pop($hub)" 4 +.IX Item "$stack->pop($hub)" +This will pop a hub from the stack, if the hub at the top of the stack does not +match the hub you expect (passed in as an argument) it will throw an exception. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AFail.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AFail.3 new file mode 100644 index 0000000000000000000000000000000000000000..867e53c9fc3e4e3dfbdb28342f58d0397e7be8ef --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AFail.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::Event::Fail 3" +.TH Test2::Event::Fail 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::Event::Fail \- Event for a simple failed assertion +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is an optimal representation of a failed assertion. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test2::API qw/context/; +\& +\& sub fail { +\& my ($name) = @_; +\& my $ctx = context(); +\& $ctx\->fail($name); +\& $ctx\->release; +\& } +.Ve +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AGeneric.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AGeneric.3 new file mode 100644 index 0000000000000000000000000000000000000000..42503b46d8cdbab90e8a4ba4dc4e089e38c3782e --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AGeneric.3 @@ -0,0 +1,291 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::Event::Generic 3" +.TH Test2::Event::Generic 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::Event::Generic \- Generic event type. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is a generic event that lets you customize all fields in the event \s-1API.\s0 +This is useful if you have need for a custom event that does not make sense as +a published reusable event subclass. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test2::API qw/context/; +\& +\& sub send_custom_fail { +\& my $ctx = shift; +\& +\& $ctx\->send_event(\*(AqGeneric\*(Aq, causes_fail => 1, summary => \*(AqThe sky is falling\*(Aq); +\& +\& $ctx\->release; +\& } +\& +\& send_custom_fail(); +.Ve +.SH "METHODS" +.IX Header "METHODS" +.ie n .IP "$e\->facet_data($data)" 4 +.el .IP "\f(CW$e\fR\->facet_data($data)" 4 +.IX Item "$e->facet_data($data)" +.PD 0 +.ie n .IP "$data = $e\->facet_data" 4 +.el .IP "\f(CW$data\fR = \f(CW$e\fR\->facet_data" 4 +.IX Item "$data = $e->facet_data" +.PD +Get or set the facet data (see Test2::Event). If no facet_data is set then +\&\f(CW\*(C`Test2::Event\->facet_data\*(C'\fR will be called to produce facets from the other +data. +.ie n .IP "$e\->callback($hub)" 4 +.el .IP "\f(CW$e\fR\->callback($hub)" 4 +.IX Item "$e->callback($hub)" +Call the custom callback if one is set, otherwise this does nothing. +.ie n .IP "$e\->set_callback(sub { ... })" 4 +.el .IP "\f(CW$e\fR\->set_callback(sub { ... })" 4 +.IX Item "$e->set_callback(sub { ... })" +Set the custom callback. The custom callback must be a coderef. The first +argument to your callback will be the event itself, the second will be the +Test2::Event::Hub that is using the callback. +.ie n .IP "$bool = $e\->causes_fail" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->causes_fail" 4 +.IX Item "$bool = $e->causes_fail" +.PD 0 +.ie n .IP "$e\->set_causes_fail($bool)" 4 +.el .IP "\f(CW$e\fR\->set_causes_fail($bool)" 4 +.IX Item "$e->set_causes_fail($bool)" +.PD +Get/Set the \f(CW\*(C`causes_fail\*(C'\fR attribute. This defaults to \f(CW0\fR. +.ie n .IP "$bool = $e\->diagnostics" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->diagnostics" 4 +.IX Item "$bool = $e->diagnostics" +.PD 0 +.ie n .IP "$e\->set_diagnostics($bool)" 4 +.el .IP "\f(CW$e\fR\->set_diagnostics($bool)" 4 +.IX Item "$e->set_diagnostics($bool)" +.PD +Get/Set the \f(CW\*(C`diagnostics\*(C'\fR attribute. This defaults to \f(CW0\fR. +.ie n .IP "$bool_or_undef = $e\->global" 4 +.el .IP "\f(CW$bool_or_undef\fR = \f(CW$e\fR\->global" 4 +.IX Item "$bool_or_undef = $e->global" +.PD 0 +.ie n .IP "@bool_or_empty = $e\->global" 4 +.el .IP "\f(CW@bool_or_empty\fR = \f(CW$e\fR\->global" 4 +.IX Item "@bool_or_empty = $e->global" +.ie n .IP "$e\->set_global($bool_or_undef)" 4 +.el .IP "\f(CW$e\fR\->set_global($bool_or_undef)" 4 +.IX Item "$e->set_global($bool_or_undef)" +.PD +Get/Set the \f(CW\*(C`diagnostics\*(C'\fR attribute. This defaults to an empty list which is +undef in scalar context. +.ie n .IP "$bool = $e\->increments_count" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->increments_count" 4 +.IX Item "$bool = $e->increments_count" +.PD 0 +.ie n .IP "$e\->set_increments_count($bool)" 4 +.el .IP "\f(CW$e\fR\->set_increments_count($bool)" 4 +.IX Item "$e->set_increments_count($bool)" +.PD +Get/Set the \f(CW\*(C`increments_count\*(C'\fR attribute. This defaults to \f(CW0\fR. +.ie n .IP "$bool = $e\->no_display" 4 +.el .IP "\f(CW$bool\fR = \f(CW$e\fR\->no_display" 4 +.IX Item "$bool = $e->no_display" +.PD 0 +.ie n .IP "$e\->set_no_display($bool)" 4 +.el .IP "\f(CW$e\fR\->set_no_display($bool)" 4 +.IX Item "$e->set_no_display($bool)" +.PD +Get/Set the \f(CW\*(C`no_display\*(C'\fR attribute. This defaults to \f(CW0\fR. +.ie n .IP "@plan = $e\->sets_plan" 4 +.el .IP "\f(CW@plan\fR = \f(CW$e\fR\->sets_plan" 4 +.IX Item "@plan = $e->sets_plan" +Get the plan if this event sets one. The plan is a list of up to 3 items: +\&\f(CW\*(C`($count, $directive, $reason)\*(C'\fR. \f(CW$count\fR must be defined, the others may be +undef, or may not exist at all. +.ie n .IP "$e\->set_sets_plan(\e@plan)" 4 +.el .IP "\f(CW$e\fR\->set_sets_plan(\e@plan)" 4 +.IX Item "$e->set_sets_plan(@plan)" +Set the plan. You must pass in an arrayref with up to 3 elements. +.ie n .IP "$summary = $e\->summary" 4 +.el .IP "\f(CW$summary\fR = \f(CW$e\fR\->summary" 4 +.IX Item "$summary = $e->summary" +.PD 0 +.ie n .IP "$e\->set_summary($summary_or_undef)" 4 +.el .IP "\f(CW$e\fR\->set_summary($summary_or_undef)" 4 +.IX Item "$e->set_summary($summary_or_undef)" +.PD +Get/Set the summary. This will default to the event package +\&\f(CW\*(AqTest2::Event::Generic\*(Aq\fR. You can set it to any value. Setting this to +\&\f(CW\*(C`undef\*(C'\fR will reset it to the default. +.ie n .IP "$int_or_undef = $e\->terminate" 4 +.el .IP "\f(CW$int_or_undef\fR = \f(CW$e\fR\->terminate" 4 +.IX Item "$int_or_undef = $e->terminate" +.PD 0 +.ie n .IP "@int_or_empty = $e\->terminate" 4 +.el .IP "\f(CW@int_or_empty\fR = \f(CW$e\fR\->terminate" 4 +.IX Item "@int_or_empty = $e->terminate" +.ie n .IP "$e\->set_terminate($int_or_undef)" 4 +.el .IP "\f(CW$e\fR\->set_terminate($int_or_undef)" 4 +.IX Item "$e->set_terminate($int_or_undef)" +.PD +This will get/set the \f(CW\*(C`terminate\*(C'\fR attribute. This defaults to undef in scalar +context, or an empty list in list context. Setting this to undef will clear it +completely. This must be set to a positive integer (0 or larger). +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3APass.3 b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3APass.3 new file mode 100644 index 0000000000000000000000000000000000000000..29e230819d59383b704c307cfbd8153716fbd07d --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3APass.3 @@ -0,0 +1,179 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::Event::Pass 3" +.TH Test2::Event::Pass 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::Event::Pass \- Event for a simple passing assertion +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This is an optimal representation of a passing assertion. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test2::API qw/context/; +\& +\& sub pass { +\& my ($name) = @_; +\& my $ctx = context(); +\& $ctx\->pass($name); +\& $ctx\->release; +\& } +.Ve +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAssert.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAssert.3 new file mode 100644 index 0000000000000000000000000000000000000000..bba95604feca7bfb8740fe8fcedf495f4a447ef9 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAssert.3 @@ -0,0 +1,212 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::EventFacet::Assert 3" +.TH Test2::EventFacet::Assert 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::EventFacet::Assert \- Facet representing an assertion. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The assertion facet is provided by any event representing an assertion that was +made. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string = $assert\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$assert\fR\->{details}" 4 +.IX Item "$string = $assert->{details}" +.PD 0 +.ie n .IP "$string = $assert\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$assert\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $assert->details()" +.PD +Human readable description of the assertion. +.ie n .IP "$bool = $assert\->{pass}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$assert\fR\->{pass}" 4 +.IX Item "$bool = $assert->{pass}" +.PD 0 +.ie n .IP "$bool = $assert\->\fBpass()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$assert\fR\->\fBpass()\fR" 4 +.IX Item "$bool = $assert->pass()" +.PD +True if the assertion passed. +.ie n .IP "$bool = $assert\->{no_debug}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$assert\fR\->{no_debug}" 4 +.IX Item "$bool = $assert->{no_debug}" +.PD 0 +.ie n .IP "$bool = $assert\->\fBno_debug()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$assert\fR\->\fBno_debug()\fR" 4 +.IX Item "$bool = $assert->no_debug()" +.PD +Set this to true if you have provided custom diagnostics and do not want the +defaults to be displayed. +.ie n .IP "$int = $assert\->{number}" 4 +.el .IP "\f(CW$int\fR = \f(CW$assert\fR\->{number}" 4 +.IX Item "$int = $assert->{number}" +.PD 0 +.ie n .IP "$int = $assert\->\fBnumber()\fR" 4 +.el .IP "\f(CW$int\fR = \f(CW$assert\fR\->\fBnumber()\fR" 4 +.IX Item "$int = $assert->number()" +.PD +(Optional) assertion number. This may be omitted or ignored. This is usually +only useful when parsing/processing \s-1TAP.\s0 +.Sp +\&\fBNote\fR: This is not set by the Test2 system, assertion number is not known +until \s-1AFTER\s0 the assertion has been processed. This attribute is part of the +spec only for harnesses. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AError.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AError.3 new file mode 100644 index 0000000000000000000000000000000000000000..55ab2672ce9a9d94fca7591947f3e72235fdab97 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AError.3 @@ -0,0 +1,205 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::EventFacet::Error 3" +.TH Test2::EventFacet::Error 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::EventFacet::Error \- Facet for errors that need to be shown. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This facet is used when an event needs to convey errors. +.SH "NOTES" +.IX Header "NOTES" +This facet has the hash key \f(CW\*(Aqerrors\*(Aq\fR, and is a list of facets instead of a +single item. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string = $error\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$error\fR\->{details}" 4 +.IX Item "$string = $error->{details}" +.PD 0 +.ie n .IP "$string = $error\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$error\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $error->details()" +.PD +Explanation of the error, or the error itself (such as an exception). In perl +exceptions may be blessed objects, so this field may contain a blessed object. +.ie n .IP "$short_string = $error\->{tag}" 4 +.el .IP "\f(CW$short_string\fR = \f(CW$error\fR\->{tag}" 4 +.IX Item "$short_string = $error->{tag}" +.PD 0 +.ie n .IP "$short_string = $error\->\fBtag()\fR" 4 +.el .IP "\f(CW$short_string\fR = \f(CW$error\fR\->\fBtag()\fR" 4 +.IX Item "$short_string = $error->tag()" +.PD +Short tag to categorize the error. This is usually 10 characters or less, +formatters may truncate longer tags. +.ie n .IP "$bool = $error\->{fail}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$error\fR\->{fail}" 4 +.IX Item "$bool = $error->{fail}" +.PD 0 +.ie n .IP "$bool = $error\->\fBfail()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$error\fR\->\fBfail()\fR" 4 +.IX Item "$bool = $error->fail()" +.PD +Not all errors are fatal, some are displayed having already been handled. Set +this to true if you want the error to cause the test to fail. Without this the +error is simply a diagnostics message that has no effect on the overall +pass/fail result. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AParent.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AParent.3 new file mode 100644 index 0000000000000000000000000000000000000000..47433aad26f0d4c6f13082cc7559308629e3b28d --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AParent.3 @@ -0,0 +1,208 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::EventFacet::Parent 3" +.TH Test2::EventFacet::Parent 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::EventFacet::Parent \- Facet for events contains other events +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This facet is used when an event contains other events, such as a subtest. +.SH "FIELDS" +.IX Header "FIELDS" +.ie n .IP "$string = $parent\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$parent\fR\->{details}" 4 +.IX Item "$string = $parent->{details}" +.PD 0 +.ie n .IP "$string = $parent\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$parent\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $parent->details()" +.PD +Human readable description of the event. +.ie n .IP "$hid = $parent\->{hid}" 4 +.el .IP "\f(CW$hid\fR = \f(CW$parent\fR\->{hid}" 4 +.IX Item "$hid = $parent->{hid}" +.PD 0 +.ie n .IP "$hid = $parent\->\fBhid()\fR" 4 +.el .IP "\f(CW$hid\fR = \f(CW$parent\fR\->\fBhid()\fR" 4 +.IX Item "$hid = $parent->hid()" +.PD +Hub \s-1ID\s0 of the hub that is represented in the parent-child relationship. +.ie n .IP "$arrayref = $parent\->{children}" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$parent\fR\->{children}" 4 +.IX Item "$arrayref = $parent->{children}" +.PD 0 +.ie n .IP "$arrayref = $parent\->\fBchildren()\fR" 4 +.el .IP "\f(CW$arrayref\fR = \f(CW$parent\fR\->\fBchildren()\fR" 4 +.IX Item "$arrayref = $parent->children()" +.PD +Arrayref containing the facet-data hashes of events nested under this one. +.Sp +\&\fITo get the actual events you need to get them from the parent event directly\fR +.ie n .IP "$bool = $parent\->{buffered}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$parent\fR\->{buffered}" 4 +.IX Item "$bool = $parent->{buffered}" +.PD 0 +.ie n .IP "$bool = $parent\->\fBbuffered()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$parent\fR\->\fBbuffered()\fR" 4 +.IX Item "$bool = $parent->buffered()" +.PD +True if the subtest is buffered (meaning the formatter has probably not seen +them yet). +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3ATrace.3 b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3ATrace.3 new file mode 100644 index 0000000000000000000000000000000000000000..a0fd4031473d933d4eca2265fc6072524ccd447f --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3ATrace.3 @@ -0,0 +1,342 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::EventFacet::Trace 3" +.TH Test2::EventFacet::Trace 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::EventFacet::Trace \- Debug information for events +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The Test2::API::Context object, as well as all Test2::Event types need to +have access to information about where they were created. This object +represents that information. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use Test2::EventFacet::Trace; +\& +\& my $trace = Test2::EventFacet::Trace\->new( +\& frame => [$package, $file, $line, $subname], +\& ); +.Ve +.SH "FACET FIELDS" +.IX Header "FACET FIELDS" +.ie n .IP "$string = $trace\->{details}" 4 +.el .IP "\f(CW$string\fR = \f(CW$trace\fR\->{details}" 4 +.IX Item "$string = $trace->{details}" +.PD 0 +.ie n .IP "$string = $trace\->\fBdetails()\fR" 4 +.el .IP "\f(CW$string\fR = \f(CW$trace\fR\->\fBdetails()\fR" 4 +.IX Item "$string = $trace->details()" +.PD +Used as a custom trace message that will be used \s-1INSTEAD\s0 of +\&\f(CW\*(C`at line \*(C'\fR when calling \f(CW\*(C`$trace\->debug\*(C'\fR. +.ie n .IP "$frame = $trace\->{frame}" 4 +.el .IP "\f(CW$frame\fR = \f(CW$trace\fR\->{frame}" 4 +.IX Item "$frame = $trace->{frame}" +.PD 0 +.ie n .IP "$frame = $trace\->\fBframe()\fR" 4 +.el .IP "\f(CW$frame\fR = \f(CW$trace\fR\->\fBframe()\fR" 4 +.IX Item "$frame = $trace->frame()" +.PD +Get the call frame arrayref. +.ie n .IP "$int = $trace\->{pid}" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->{pid}" 4 +.IX Item "$int = $trace->{pid}" +.PD 0 +.ie n .IP "$int = $trace\->\fBpid()\fR" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->\fBpid()\fR" 4 +.IX Item "$int = $trace->pid()" +.PD +The process \s-1ID\s0 in which the event was generated. +.ie n .IP "$int = $trace\->{tid}" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->{tid}" 4 +.IX Item "$int = $trace->{tid}" +.PD 0 +.ie n .IP "$int = $trace\->\fBtid()\fR" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->\fBtid()\fR" 4 +.IX Item "$int = $trace->tid()" +.PD +The thread \s-1ID\s0 in which the event was generated. +.ie n .IP "$id = $trace\->{cid}" 4 +.el .IP "\f(CW$id\fR = \f(CW$trace\fR\->{cid}" 4 +.IX Item "$id = $trace->{cid}" +.PD 0 +.ie n .IP "$id = $trace\->\fBcid()\fR" 4 +.el .IP "\f(CW$id\fR = \f(CW$trace\fR\->\fBcid()\fR" 4 +.IX Item "$id = $trace->cid()" +.PD +The \s-1ID\s0 of the context that was used to create the event. +.ie n .IP "$uuid = $trace\->{uuid}" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$trace\fR\->{uuid}" 4 +.IX Item "$uuid = $trace->{uuid}" +.PD 0 +.ie n .IP "$uuid = $trace\->\fBuuid()\fR" 4 +.el .IP "\f(CW$uuid\fR = \f(CW$trace\fR\->\fBuuid()\fR" 4 +.IX Item "$uuid = $trace->uuid()" +.PD +The \s-1UUID\s0 of the context that was used to create the event. (If uuid tagging was +enabled) +.SS "\s-1DISCOURAGED HUB RELATED FIELDS\s0" +.IX Subsection "DISCOURAGED HUB RELATED FIELDS" +These fields were not always set properly by tools. These are \fB\s-1MOSTLY\s0\fR +deprecated by the Test2::EventFacet::Hub facets. These fields are not +required, and may only reflect the hub that was current when the event was +created, which is not necessarily the same as the hub the event was sent +through. +.PP +Some tools did do a good job setting these to the correct hub, but you cannot +always rely on that. Use the 'hubs' facet list instead. +.ie n .IP "$hid = $trace\->{hid}" 4 +.el .IP "\f(CW$hid\fR = \f(CW$trace\fR\->{hid}" 4 +.IX Item "$hid = $trace->{hid}" +.PD 0 +.ie n .IP "$hid = $trace\->\fBhid()\fR" 4 +.el .IP "\f(CW$hid\fR = \f(CW$trace\fR\->\fBhid()\fR" 4 +.IX Item "$hid = $trace->hid()" +.PD +The \s-1ID\s0 of the hub that was current when the event was created. +.ie n .IP "$huuid = $trace\->{huuid}" 4 +.el .IP "\f(CW$huuid\fR = \f(CW$trace\fR\->{huuid}" 4 +.IX Item "$huuid = $trace->{huuid}" +.PD 0 +.ie n .IP "$huuid = $trace\->\fBhuuid()\fR" 4 +.el .IP "\f(CW$huuid\fR = \f(CW$trace\fR\->\fBhuuid()\fR" 4 +.IX Item "$huuid = $trace->huuid()" +.PD +The \s-1UUID\s0 of the hub that was current when the event was created. (If uuid +tagging was enabled). +.ie n .IP "$int = $trace\->{nested}" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->{nested}" 4 +.IX Item "$int = $trace->{nested}" +.PD 0 +.ie n .IP "$int = $trace\->\fBnested()\fR" 4 +.el .IP "\f(CW$int\fR = \f(CW$trace\fR\->\fBnested()\fR" 4 +.IX Item "$int = $trace->nested()" +.PD +How deeply nested the event is. +.ie n .IP "$bool = $trace\->{buffered}" 4 +.el .IP "\f(CW$bool\fR = \f(CW$trace\fR\->{buffered}" 4 +.IX Item "$bool = $trace->{buffered}" +.PD 0 +.ie n .IP "$bool = $trace\->\fBbuffered()\fR" 4 +.el .IP "\f(CW$bool\fR = \f(CW$trace\fR\->\fBbuffered()\fR" 4 +.IX Item "$bool = $trace->buffered()" +.PD +True if the event was buffered and not sent to the formatter independent of a +parent (This should never be set when nested is \f(CW0\fR or \f(CW\*(C`undef\*(C'\fR). +.SH "METHODS" +.IX Header "METHODS" +\&\fBNote:\fR All facet frames are also methods. +.ie n .IP "$trace\->set_detail($msg)" 4 +.el .IP "\f(CW$trace\fR\->set_detail($msg)" 4 +.IX Item "$trace->set_detail($msg)" +.PD 0 +.ie n .IP "$msg = $trace\->detail" 4 +.el .IP "\f(CW$msg\fR = \f(CW$trace\fR\->detail" 4 +.IX Item "$msg = $trace->detail" +.PD +Used to get/set a custom trace message that will be used \s-1INSTEAD\s0 of +\&\f(CW\*(C`at line \*(C'\fR when calling \f(CW\*(C`$trace\->debug\*(C'\fR. +.Sp +\&\f(CW\*(C`detail()\*(C'\fR is an alias to the \f(CW\*(C`details\*(C'\fR facet field for backwards +compatibility. +.ie n .IP "$str = $trace\->debug" 4 +.el .IP "\f(CW$str\fR = \f(CW$trace\fR\->debug" 4 +.IX Item "$str = $trace->debug" +Typically returns the string \f(CW\*(C`at line \*(C'\fR. If \f(CW\*(C`detail\*(C'\fR is set +then its value will be returned instead. +.ie n .IP "$trace\->alert($MESSAGE)" 4 +.el .IP "\f(CW$trace\fR\->alert($MESSAGE)" 4 +.IX Item "$trace->alert($MESSAGE)" +This issues a warning at the frame (filename and line number where +errors should be reported). +.ie n .IP "$trace\->throw($MESSAGE)" 4 +.el .IP "\f(CW$trace\fR\->throw($MESSAGE)" 4 +.IX Item "$trace->throw($MESSAGE)" +This throws an exception at the frame (filename and line number where +errors should be reported). +.ie n .IP "($package, $file, $line, $subname) = $trace\->\fBcall()\fR" 4 +.el .IP "($package, \f(CW$file\fR, \f(CW$line\fR, \f(CW$subname\fR) = \f(CW$trace\fR\->\fBcall()\fR" 4 +.IX Item "($package, $file, $line, $subname) = $trace->call()" +Get the caller details for the debug-info. This is where errors should be +reported. +.ie n .IP "$pkg = $trace\->package" 4 +.el .IP "\f(CW$pkg\fR = \f(CW$trace\fR\->package" 4 +.IX Item "$pkg = $trace->package" +Get the debug-info package. +.ie n .IP "$file = $trace\->file" 4 +.el .IP "\f(CW$file\fR = \f(CW$trace\fR\->file" 4 +.IX Item "$file = $trace->file" +Get the debug-info filename. +.ie n .IP "$line = $trace\->line" 4 +.el .IP "\f(CW$line\fR = \f(CW$trace\fR\->line" 4 +.IX Item "$line = $trace->line" +Get the debug-info line number. +.ie n .IP "$subname = $trace\->subname" 4 +.el .IP "\f(CW$subname\fR = \f(CW$trace\fR\->subname" 4 +.IX Item "$subname = $trace->subname" +Get the debug-info subroutine name. +.ie n .IP "$sig = trace\->signature" 4 +.el .IP "\f(CW$sig\fR = trace\->signature" 4 +.IX Item "$sig = trace->signature" +Get a signature string that identifies this trace. This is used to check if +multiple events are related. The signature includes pid, tid, file, line +number, and the cid. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AExternalMeta.3 b/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AExternalMeta.3 new file mode 100644 index 0000000000000000000000000000000000000000..f5fb8ae695f49a581e35cd06387f0fcebedbe8c2 --- /dev/null +++ b/data/miniconda3/man/man3/Test2%3A%3AUtil%3A%3AExternalMeta.3 @@ -0,0 +1,229 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2::Util::ExternalMeta 3" +.TH Test2::Util::ExternalMeta 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2::Util::ExternalMeta \- Allow third party tools to safely attach meta\-data +to your instances. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This package lets you define a clear, and consistent way to allow third party +tools to attach meta-data to your instances. If your object consumes this +package, and imports its methods, then third party meta-data has a safe place +to live. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& package My::Object; +\& use strict; +\& use warnings; +\& +\& use Test2::Util::ExternalMeta qw/meta get_meta set_meta delete_meta/; +\& +\& ... +.Ve +.PP +Now to use it: +.PP +.Vb 1 +\& my $inst = My::Object\->new; +\& +\& $inst\->set_meta(foo => \*(Aqbar\*(Aq); +\& my $val = $inst\->get_meta(\*(Aqfoo\*(Aq); +.Ve +.SH "WHERE IS THE DATA STORED?" +.IX Header "WHERE IS THE DATA STORED?" +This package assumes your instances are blessed hashrefs, it will not work if +that is not true. It will store all meta-data in the \f(CW\*(C`_meta\*(C'\fR key on your +objects hash. If your object makes use of the \f(CW\*(C`_meta\*(C'\fR key in its underlying +hash, then there is a conflict and you cannot use this package. +.SH "EXPORTS" +.IX Header "EXPORTS" +.ie n .IP "$val = $obj\->meta($key)" 4 +.el .IP "\f(CW$val\fR = \f(CW$obj\fR\->meta($key)" 4 +.IX Item "$val = $obj->meta($key)" +.PD 0 +.ie n .IP "$val = $obj\->meta($key, $default)" 4 +.el .IP "\f(CW$val\fR = \f(CW$obj\fR\->meta($key, \f(CW$default\fR)" 4 +.IX Item "$val = $obj->meta($key, $default)" +.PD +This will get the value for a specified meta \f(CW$key\fR. Normally this will return +\&\f(CW\*(C`undef\*(C'\fR when there is no value for the \f(CW$key\fR, however you can specify a +\&\f(CW$default\fR value to set when no value is already set. +.ie n .IP "$val = $obj\->get_meta($key)" 4 +.el .IP "\f(CW$val\fR = \f(CW$obj\fR\->get_meta($key)" 4 +.IX Item "$val = $obj->get_meta($key)" +This will get the value for a specified meta \f(CW$key\fR. This does not have the +\&\f(CW$default\fR overhead that \f(CW\*(C`meta()\*(C'\fR does. +.ie n .IP "$val = $obj\->delete_meta($key)" 4 +.el .IP "\f(CW$val\fR = \f(CW$obj\fR\->delete_meta($key)" 4 +.IX Item "$val = $obj->delete_meta($key)" +This will remove the value of a specified meta \f(CW$key\fR. The old \f(CW$val\fR will be +returned. +.ie n .IP "$obj\->set_meta($key, $val)" 4 +.el .IP "\f(CW$obj\fR\->set_meta($key, \f(CW$val\fR)" 4 +.IX Item "$obj->set_meta($key, $val)" +Set the value of a specified meta \f(CW$key\fR. +.SH "META-KEY RESTRICTIONS" +.IX Header "META-KEY RESTRICTIONS" +Meta keys must be defined, and must be true when used as a boolean. Keys may +not be references. You are free to stringify a reference \f(CW"$ref"\fR for use as a +key, but this package will not stringify it for you. +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/Test2.3 b/data/miniconda3/man/man3/Test2.3 new file mode 100644 index 0000000000000000000000000000000000000000..69fea932787b361a76fd015976cf1f973dbdb71a --- /dev/null +++ b/data/miniconda3/man/man3/Test2.3 @@ -0,0 +1,301 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "Test2 3" +.TH Test2 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +Test2 \- Framework for writing test tools that all work together. +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Test2 is a new testing framework produced by forking Test::Builder, +completely refactoring it, adding many new features and capabilities. +.SS "\s-1WHAT IS NEW\s0?" +.IX Subsection "WHAT IS NEW?" +.IP "Easier to test new testing tools." 4 +.IX Item "Easier to test new testing tools." +From the beginning Test2 was built with introspection capabilities. With +Test::Builder it was difficult at best to capture test tool output for +verification. Test2 Makes it easy with \f(CW\*(C`Test2::API::intercept()\*(C'\fR. +.IP "Better diagnostics capabilities." 4 +.IX Item "Better diagnostics capabilities." +Test2 uses an Test2::API::Context object to track filename, line number, and +tool details. This object greatly simplifies tracking for where errors should +be reported. +.IP "Event driven." 4 +.IX Item "Event driven." +Test2 based tools produce events which get passed through a processing system +before being output by a formatter. This event system allows for rich plugin +and extension support. +.IP "More complete \s-1API.\s0" 4 +.IX Item "More complete API." +Test::Builder only provided a handful of methods for generating lines of \s-1TAP.\s0 +Test2 took inventory of everything people were doing with Test::Builder that +required hacking it up. Test2 made public \s-1API\s0 functions for nearly all the +desired functionality people didn't previously have. +.IP "Support for output other than \s-1TAP.\s0" 4 +.IX Item "Support for output other than TAP." +Test::Builder assumed everything would end up as \s-1TAP.\s0 Test2 makes no such +assumption. Test2 provides ways for you to specify alternative and custom +formatters. +.IP "Subtest implementation is more sane." 4 +.IX Item "Subtest implementation is more sane." +The Test::Builder implementation of subtests was certifiably insane. Test2 uses +a stacked event hub system that greatly improves how subtests are implemented. +.IP "Support for threading/forking." 4 +.IX Item "Support for threading/forking." +Test2 support for forking and threading can be turned on using Test2::IPC. +Once turned on threading and forking operate sanely and work as one would +expect. +.SH "GETTING STARTED" +.IX Header "GETTING STARTED" +If you are interested in writing tests using new tools then you should look at +Test2::Suite. Test2::Suite is a separate cpan distribution that contains +many tools implemented on Test2. +.PP +If you are interested in writing new tools you should take a look at +Test2::API first. +.SH "NAMESPACE LAYOUT" +.IX Header "NAMESPACE LAYOUT" +This describes the namespace layout for the Test2 ecosystem. Not all the +namespaces listed here are part of the Test2 distribution, some are implemented +in Test2::Suite. +.SS "Test2::Tools::" +.IX Subsection "Test2::Tools::" +This namespace is for sets of tools. Modules in this namespace should export +tools like \f(CW\*(C`ok()\*(C'\fR and \f(CW\*(C`is()\*(C'\fR. Most things written for Test2 should go here. +Modules in this namespace \fB\s-1MUST NOT\s0\fR export subs from other tools. See the +\&\*(L"Test2::Bundle::\*(R" namespace if you want to do that. +.SS "Test2::Plugin::" +.IX Subsection "Test2::Plugin::" +This namespace is for plugins. Plugins are modules that change or enhance the +behavior of Test2. An example of a plugin is a module that sets the encoding to +utf8 globally. Another example is a module that causes a bail-out event after +the first test failure. +.SS "Test2::Bundle::" +.IX Subsection "Test2::Bundle::" +This namespace is for bundles of tools and plugins. Loading one of these may +load multiple tools and plugins. Modules in this namespace should not implement +tools directly. In general modules in this namespace should load tools and +plugins, then re-export things into the consumers namespace. +.SS "Test2::Require::" +.IX Subsection "Test2::Require::" +This namespace is for modules that cause a test to be skipped when conditions +do not allow it to run. Examples would be modules that skip the test on older +perls, or when non-essential modules have not been installed. +.SS "Test2::Formatter::" +.IX Subsection "Test2::Formatter::" +Formatters live under this namespace. Test2::Formatter::TAP is the only +formatter currently. It is acceptable for third party distributions to create +new formatters under this namespace. +.SS "Test2::Event::" +.IX Subsection "Test2::Event::" +Events live under this namespace. It is considered acceptable for third party +distributions to add new event types in this namespace. +.SS "Test2::Hub::" +.IX Subsection "Test2::Hub::" +Hub subclasses (and some hub utility objects) live under this namespace. It is +perfectly reasonable for third party distributions to add new hub subclasses in +this namespace. +.SS "Test2::IPC::" +.IX Subsection "Test2::IPC::" +The \s-1IPC\s0 subsystem lives in this namespace. There are not many good reasons to +add anything to this namespace, with exception of \s-1IPC\s0 drivers. +.PP +\fITest2::IPC::Driver::\fR +.IX Subsection "Test2::IPC::Driver::" +.PP +\&\s-1IPC\s0 drivers live in this namespace. It is fine to create new \s-1IPC\s0 drivers and to +put them in this namespace. +.SS "Test2::Util::" +.IX Subsection "Test2::Util::" +This namespace is for general utilities used by testing tools. Please be +considerate when adding new modules to this namespace. +.SS "Test2::API::" +.IX Subsection "Test2::API::" +This is for Test2 \s-1API\s0 and related packages. +.SS "Test2::" +.IX Subsection "Test2::" +The Test2:: namespace is intended for extensions and frameworks. Tools, +Plugins, etc should not go directly into this namespace. However extensions +that are used to build tools and plugins may go here. +.PP +In short: If the module exports anything that should be run directly by a test +script it should probably \s-1NOT\s0 go directly into \f(CW\*(C`Test2::XXX\*(C'\fR. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Test2::API \- Primary \s-1API\s0 functions. +.PP +Test2::API::Context \- Detailed documentation of the context object. +.PP +Test2::IPC \- The \s-1IPC\s0 system used for threading/fork support. +.PP +Test2::Formatter \- Formatters such as \s-1TAP\s0 live here. +.PP +Test2::Event \- Events live in this namespace. +.PP +Test2::Hub \- All events eventually funnel through a hub. Custom hubs are how +\&\f(CW\*(C`intercept()\*(C'\fR and \f(CW\*(C`run_subtest()\*(C'\fR are implemented. +.SH "CONTACTING US" +.IX Header "CONTACTING US" +Many Test2 developers and users lurk on and +. We also have a slack team that can be joined +by anyone with an \f(CW\*(C`@cpan.org\*(C'\fR email address +If you do not have an \f(CW\*(C`@cpan.org\*(C'\fR email you can ask for a slack invite by +emailing Chad Granum . +.SH "SOURCE" +.IX Header "SOURCE" +The source code repository for Test2 can be found at +\&\fIhttp://github.com/Test\-More/test\-more/\fR. +.SH "MAINTAINERS" +.IX Header "MAINTAINERS" +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.SH "AUTHORS" +.IX Header "AUTHORS" +.PD 0 +.IP "Chad Granum " 4 +.IX Item "Chad Granum " +.PD +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2019 Chad Granum . +.PP +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. +.PP +See \fIhttp://dev.perl.org/licenses/\fR diff --git a/data/miniconda3/man/man3/XSLoader.3 b/data/miniconda3/man/man3/XSLoader.3 new file mode 100644 index 0000000000000000000000000000000000000000..868ca368022872c30762eec1d439e49c51671c16 --- /dev/null +++ b/data/miniconda3/man/man3/XSLoader.3 @@ -0,0 +1,372 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "XSLoader 3" +.TH XSLoader 3 "2023-12-23" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +XSLoader \- Dynamically load C libraries into Perl code +.SH "VERSION" +.IX Header "VERSION" +Version 0.30 +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& package YourPackage; +\& require XSLoader; +\& +\& XSLoader::load(_\|_PACKAGE_\|_, $VERSION); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +This module defines a standard \fIsimplified\fR interface to the dynamic +linking mechanisms available on many platforms. Its primary purpose is +to implement cheap automatic dynamic loading of Perl modules. +.PP +For a more complicated interface, see DynaLoader. Many (most) +features of \f(CW\*(C`DynaLoader\*(C'\fR are not implemented in \f(CW\*(C`XSLoader\*(C'\fR, like for +example the \f(CW\*(C`dl_load_flags\*(C'\fR, not honored by \f(CW\*(C`XSLoader\*(C'\fR. +.ie n .SS "Migration from ""DynaLoader""" +.el .SS "Migration from \f(CWDynaLoader\fP" +.IX Subsection "Migration from DynaLoader" +A typical module using DynaLoader starts like this: +.PP +.Vb 2 +\& package YourPackage; +\& require DynaLoader; +\& +\& our @ISA = qw( OnePackage OtherPackage DynaLoader ); +\& our $VERSION = \*(Aq0.01\*(Aq; +\& _\|_PACKAGE_\|_\->bootstrap($VERSION); +.Ve +.PP +Change this to +.PP +.Vb 2 +\& package YourPackage; +\& use XSLoader; +\& +\& our @ISA = qw( OnePackage OtherPackage ); +\& our $VERSION = \*(Aq0.01\*(Aq; +\& XSLoader::load(_\|_PACKAGE_\|_, $VERSION); +.Ve +.PP +In other words: replace \f(CW\*(C`require DynaLoader\*(C'\fR by \f(CW\*(C`use XSLoader\*(C'\fR, remove +\&\f(CW\*(C`DynaLoader\*(C'\fR from \f(CW@ISA\fR, change \f(CW\*(C`bootstrap\*(C'\fR by \f(CW\*(C`XSLoader::load\*(C'\fR. Do not +forget to quote the name of your package on the \f(CW\*(C`XSLoader::load\*(C'\fR line, +and add comma (\f(CW\*(C`,\*(C'\fR) before the arguments (\f(CW$VERSION\fR above). +.PP +Of course, if \f(CW@ISA\fR contained only \f(CW\*(C`DynaLoader\*(C'\fR, there is no need to have +the \f(CW@ISA\fR assignment at all; moreover, if instead of \f(CW\*(C`our\*(C'\fR one uses the +more backward-compatible +.PP +.Vb 1 +\& use vars qw($VERSION @ISA); +.Ve +.PP +one can remove this reference to \f(CW@ISA\fR together with the \f(CW@ISA\fR assignment. +.PP +If no \f(CW$VERSION\fR was specified on the \f(CW\*(C`bootstrap\*(C'\fR line, the last line becomes +.PP +.Vb 1 +\& XSLoader::load(_\|_PACKAGE_\|_); +.Ve +.PP +in which case it can be further simplified to +.PP +.Vb 1 +\& XSLoader::load(); +.Ve +.PP +as \f(CW\*(C`load\*(C'\fR will use \f(CW\*(C`caller\*(C'\fR to determine the package. +.SS "Backward compatible boilerplate" +.IX Subsection "Backward compatible boilerplate" +If you want to have your cake and eat it too, you need a more complicated +boilerplate. +.PP +.Vb 1 +\& package YourPackage; +\& +\& our @ISA = qw( OnePackage OtherPackage ); +\& our $VERSION = \*(Aq0.01\*(Aq; +\& eval { +\& require XSLoader; +\& XSLoader::load(_\|_PACKAGE_\|_, $VERSION); +\& 1; +\& } or do { +\& require DynaLoader; +\& push @ISA, \*(AqDynaLoader\*(Aq; +\& _\|_PACKAGE_\|_\->bootstrap($VERSION); +\& }; +.Ve +.PP +The parentheses about \f(CW\*(C`XSLoader::load()\*(C'\fR arguments are needed since we replaced +\&\f(CW\*(C`use XSLoader\*(C'\fR by \f(CW\*(C`require\*(C'\fR, so the compiler does not know that a function +\&\f(CW\*(C`XSLoader::load()\*(C'\fR is present. +.PP +This boilerplate uses the low-overhead \f(CW\*(C`XSLoader\*(C'\fR if present; if used with +an antique Perl which has no \f(CW\*(C`XSLoader\*(C'\fR, it falls back to using \f(CW\*(C`DynaLoader\*(C'\fR. +.SH "Order of initialization: early \fBload()\fP" +.IX Header "Order of initialization: early load()" +\&\fISkip this section if the \s-1XSUB\s0 functions are supposed to be called from other +modules only; read it only if you call your XSUBs from the code in your module, +or have a \f(CI\*(C`BOOT:\*(C'\fI section in your \s-1XS\s0 file (see \*(L"The \s-1BOOT:\s0 Keyword\*(R" in perlxs). +What is described here is equally applicable to the DynaLoader +interface.\fR +.PP +A sufficiently complicated module using \s-1XS\s0 would have both Perl code (defined +in \fIYourPackage.pm\fR) and \s-1XS\s0 code (defined in \fIYourPackage.xs\fR). If this +Perl code makes calls into this \s-1XS\s0 code, and/or this \s-1XS\s0 code makes calls to +the Perl code, one should be careful with the order of initialization. +.PP +The call to \f(CW\*(C`XSLoader::load()\*(C'\fR (or \f(CW\*(C`bootstrap()\*(C'\fR) calls the module's +bootstrap code. For modules build by \fIxsubpp\fR (nearly all modules) this +has three side effects: +.IP "\(bu" 4 +A sanity check is done to ensure that the versions of the \fI.pm\fR and the +(compiled) \fI.xs\fR parts are compatible. If \f(CW$VERSION\fR was specified, this +is used for the check. If not specified, it defaults to +\&\f(CW\*(C`$XS_VERSION // $VERSION\*(C'\fR (in the module's namespace) +.IP "\(bu" 4 +the XSUBs are made accessible from Perl +.IP "\(bu" 4 +if a \f(CW\*(C`BOOT:\*(C'\fR section was present in the \fI.xs\fR file, the code there is called. +.PP +Consequently, if the code in the \fI.pm\fR file makes calls to these XSUBs, it is +convenient to have XSUBs installed before the Perl code is defined; for +example, this makes prototypes for XSUBs visible to this Perl code. +Alternatively, if the \f(CW\*(C`BOOT:\*(C'\fR section makes calls to Perl functions (or +uses Perl variables) defined in the \fI.pm\fR file, they must be defined prior to +the call to \f(CW\*(C`XSLoader::load()\*(C'\fR (or \f(CW\*(C`bootstrap()\*(C'\fR). +.PP +The first situation being much more frequent, it makes sense to rewrite the +boilerplate as +.PP +.Vb 3 +\& package YourPackage; +\& use XSLoader; +\& our ($VERSION, @ISA); +\& +\& BEGIN { +\& @ISA = qw( OnePackage OtherPackage ); +\& $VERSION = \*(Aq0.01\*(Aq; +\& +\& # Put Perl code used in the BOOT: section here +\& +\& XSLoader::load(_\|_PACKAGE_\|_, $VERSION); +\& } +\& +\& # Put Perl code making calls into XSUBs here +.Ve +.SS "The most hairy case" +.IX Subsection "The most hairy case" +If the interdependence of your \f(CW\*(C`BOOT:\*(C'\fR section and Perl code is +more complicated than this (e.g., the \f(CW\*(C`BOOT:\*(C'\fR section makes calls to Perl +functions which make calls to XSUBs with prototypes), get rid of the \f(CW\*(C`BOOT:\*(C'\fR +section altogether. Replace it with a function \f(CW\*(C`onBOOT()\*(C'\fR, and call it like +this: +.PP +.Vb 3 +\& package YourPackage; +\& use XSLoader; +\& our ($VERSION, @ISA); +\& +\& BEGIN { +\& @ISA = qw( OnePackage OtherPackage ); +\& $VERSION = \*(Aq0.01\*(Aq; +\& XSLoader::load(_\|_PACKAGE_\|_, $VERSION); +\& } +\& +\& # Put Perl code used in onBOOT() function here; calls to XSUBs are +\& # prototype\-checked. +\& +\& onBOOT; +\& +\& # Put Perl initialization code assuming that XS is initialized here +.Ve +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.ie n .IP """Can\*(Aqt find \*(Aq%s\*(Aq symbol in %s""" 4 +.el .IP "\f(CWCan\*(Aqt find \*(Aq%s\*(Aq symbol in %s\fR" 4 +.IX Item "Cant find %s symbol in %s" +\&\fB(F)\fR The bootstrap symbol could not be found in the extension module. +.ie n .IP """Can\*(Aqt load \*(Aq%s\*(Aq for module %s: %s""" 4 +.el .IP "\f(CWCan\*(Aqt load \*(Aq%s\*(Aq for module %s: %s\fR" 4 +.IX Item "Cant load %s for module %s: %s" +\&\fB(F)\fR The loading or initialisation of the extension module failed. +The detailed error follows. +.ie n .IP """Undefined symbols present after loading %s: %s""" 4 +.el .IP "\f(CWUndefined symbols present after loading %s: %s\fR" 4 +.IX Item "Undefined symbols present after loading %s: %s" +\&\fB(W)\fR As the message says, some symbols stay undefined although the +extension module was correctly loaded and initialised. The list of undefined +symbols follows. +.SH "LIMITATIONS" +.IX Header "LIMITATIONS" +To reduce the overhead as much as possible, only one possible location +is checked to find the extension \s-1DLL\s0 (this location is where \f(CW\*(C`make install\*(C'\fR +would put the \s-1DLL\s0). If not found, the search for the \s-1DLL\s0 is transparently +delegated to \f(CW\*(C`DynaLoader\*(C'\fR, which looks for the \s-1DLL\s0 along the \f(CW@INC\fR list. +.PP +In particular, this is applicable to the structure of \f(CW@INC\fR used for testing +not-yet-installed extensions. This means that running uninstalled extensions +may have much more overhead than running the same extensions after +\&\f(CW\*(C`make install\*(C'\fR. +.SH "KNOWN BUGS" +.IX Header "KNOWN BUGS" +The new simpler way to call \f(CW\*(C`XSLoader::load()\*(C'\fR with no arguments at all +does not work on Perl 5.8.4 and 5.8.5. +.SH "BUGS" +.IX Header "BUGS" +Please report any bugs or feature requests via the \fBperlbug\fR\|(1) utility. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +DynaLoader +.SH "AUTHORS" +.IX Header "AUTHORS" +Ilya Zakharevich originally extracted \f(CW\*(C`XSLoader\*(C'\fR from \f(CW\*(C`DynaLoader\*(C'\fR. +.PP +\&\s-1CPAN\s0 version is currently maintained by Se\*'bastien Aperghis-Tramoni +. +.PP +Previous maintainer was Michael G Schwern . +.SH "COPYRIGHT & LICENSE" +.IX Header "COPYRIGHT & LICENSE" +Copyright (C) 1990\-2011 by Larry Wall and others. +.PP +This program is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. diff --git a/data/miniconda3/man/man3/attributes.3 b/data/miniconda3/man/man3/attributes.3 new file mode 100644 index 0000000000000000000000000000000000000000..1f6aa69ff4a65347705842ea0d4a2d65b34fb55d --- /dev/null +++ b/data/miniconda3/man/man3/attributes.3 @@ -0,0 +1,546 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "attributes 3" +.TH attributes 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +attributes \- get/set subroutine or variable attributes +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 3 +\& sub foo : method ; +\& my ($x,@y,%z) : Bent = 1; +\& my $s = sub : method { ... }; +\& +\& use attributes (); # optional, to get subroutine declarations +\& my @attrlist = attributes::get(\e&foo); +\& +\& use attributes \*(Aqget\*(Aq; # import the attributes::get subroutine +\& my @attrlist = get \e&foo; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Subroutine declarations and definitions may optionally have attribute lists +associated with them. (Variable \f(CW\*(C`my\*(C'\fR declarations also may, but see the +warning below.) Perl handles these declarations by passing some information +about the call site and the thing being declared along with the attribute +list to this module. In particular, the first example above is equivalent to +the following: +.PP +.Vb 1 +\& use attributes _\|_PACKAGE_\|_, \e&foo, \*(Aqmethod\*(Aq; +.Ve +.PP +The second example in the synopsis does something equivalent to this: +.PP +.Vb 6 +\& use attributes (); +\& my ($x,@y,%z); +\& attributes::\->import(_\|_PACKAGE_\|_, \e$x, \*(AqBent\*(Aq); +\& attributes::\->import(_\|_PACKAGE_\|_, \e@y, \*(AqBent\*(Aq); +\& attributes::\->import(_\|_PACKAGE_\|_, \e%z, \*(AqBent\*(Aq); +\& ($x,@y,%z) = 1; +.Ve +.PP +Yes, that's a lot of expansion. +.PP +\&\fB\s-1WARNING\s0\fR: attribute declarations for variables are still evolving. +The semantics and interfaces of such declarations could change in +future versions. They are present for purposes of experimentation +with what the semantics ought to be. Do not rely on the current +implementation of this feature. +.PP +There are only a few attributes currently handled by Perl itself (or +directly by this module, depending on how you look at it.) However, +package-specific attributes are allowed by an extension mechanism. +(See \*(L"Package-specific Attribute Handling\*(R" below.) +.PP +The setting of subroutine attributes happens at compile time. +Variable attributes in \f(CW\*(C`our\*(C'\fR declarations are also applied at compile time. +However, \f(CW\*(C`my\*(C'\fR variables get their attributes applied at run-time. +This means that you have to \fIreach\fR the run-time component of the \f(CW\*(C`my\*(C'\fR +before those attributes will get applied. For example: +.PP +.Vb 1 +\& my $x : Bent = 42 if 0; +.Ve +.PP +will neither assign 42 to \f(CW$x\fR \fInor\fR will it apply the \f(CW\*(C`Bent\*(C'\fR attribute +to the variable. +.PP +An attempt to set an unrecognized attribute is a fatal error. (The +error is trappable, but it still stops the compilation within that +\&\f(CW\*(C`eval\*(C'\fR.) Setting an attribute with a name that's all lowercase +letters that's not a built-in attribute (such as \*(L"foo\*(R") will result in +a warning with \fB\-w\fR or \f(CW\*(C`use warnings \*(Aqreserved\*(Aq\*(C'\fR. +.ie n .SS "What ""import"" does" +.el .SS "What \f(CWimport\fP does" +.IX Subsection "What import does" +In the description it is mentioned that +.PP +.Vb 1 +\& sub foo : method; +.Ve +.PP +is equivalent to +.PP +.Vb 1 +\& use attributes _\|_PACKAGE_\|_, \e&foo, \*(Aqmethod\*(Aq; +.Ve +.PP +As you might know this calls the \f(CW\*(C`import\*(C'\fR function of \f(CW\*(C`attributes\*(C'\fR at compile +time with these parameters: 'attributes', the caller's package name, the reference +to the code and 'method'. +.PP +.Vb 1 +\& attributes\->import( _\|_PACKAGE_\|_, \e&foo, \*(Aqmethod\*(Aq ); +.Ve +.PP +So you want to know what \f(CW\*(C`import\*(C'\fR actually does? +.PP +First of all \f(CW\*(C`import\*(C'\fR gets the type of the third parameter ('\s-1CODE\s0' in this case). +\&\f(CW\*(C`attributes.pm\*(C'\fR checks if there is a subroutine called \f(CW\*(C`MODIFY__ATTRIBUTES\*(C'\fR +in the caller's namespace (here: 'main'). In this case a +subroutine \f(CW\*(C`MODIFY_CODE_ATTRIBUTES\*(C'\fR is required. Then this +method is called to check if you have used a \*(L"bad attribute\*(R". +The subroutine call in this example would look like +.PP +.Vb 1 +\& MODIFY_CODE_ATTRIBUTES( \*(Aqmain\*(Aq, \e&foo, \*(Aqmethod\*(Aq ); +.Ve +.PP +\&\f(CW\*(C`MODIFY__ATTRIBUTES\*(C'\fR has to return a list of all \*(L"bad attributes\*(R". +If there are any bad attributes \f(CW\*(C`import\*(C'\fR croaks. +.PP +(See \*(L"Package-specific Attribute Handling\*(R" below.) +.SS "Built-in Attributes" +.IX Subsection "Built-in Attributes" +The following are the built-in attributes for subroutines: +.IP "lvalue" 4 +.IX Item "lvalue" +Indicates that the referenced subroutine is a valid lvalue and can +be assigned to. The subroutine must return a modifiable value such +as a scalar variable, as described in perlsub. +.Sp +This module allows one to set this attribute on a subroutine that is +already defined. For Perl subroutines (XSUBs are fine), it may or may not +do what you want, depending on the code inside the subroutine, with details +subject to change in future Perl versions. You may run into problems with +lvalue context not being propagated properly into the subroutine, or maybe +even assertion failures. For this reason, a warning is emitted if warnings +are enabled. In other words, you should only do this if you really know +what you are doing. You have been warned. +.IP "method" 4 +.IX Item "method" +Indicates that the referenced subroutine +is a method. A subroutine so marked +will not trigger the \*(L"Ambiguous call resolved as CORE::%s\*(R" warning. +.IP "prototype(..)" 4 +.IX Item "prototype(..)" +The \*(L"prototype\*(R" attribute is an alternate means of specifying a prototype +on a sub. The desired prototype is within the parens. +.Sp +The prototype from the attribute is assigned to the sub immediately after +the prototype from the sub, which means that if both are declared at the +same time, the traditionally defined prototype is ignored. In other words, +\&\f(CW\*(C`sub foo($$) : prototype(@) {}\*(C'\fR is indistinguishable from \f(CW\*(C`sub foo(@){}\*(C'\fR. +.Sp +If illegalproto warnings are enabled, the prototype declared inside this +attribute will be sanity checked at compile time. +.IP "const" 4 +.IX Item "const" +This experimental attribute, introduced in Perl 5.22, only applies to +anonymous subroutines. It causes the subroutine to be called as soon as +the \f(CW\*(C`sub\*(C'\fR expression is evaluated. The return value is captured and +turned into a constant subroutine. +.PP +The following are the built-in attributes for variables: +.IP "shared" 4 +.IX Item "shared" +Indicates that the referenced variable can be shared across different threads +when used in conjunction with the threads and threads::shared modules. +.SS "Available Subroutines" +.IX Subsection "Available Subroutines" +The following subroutines are available for general use once this module +has been loaded: +.IP "get" 4 +.IX Item "get" +This routine expects a single parameter\*(--a reference to a +subroutine or variable. It returns a list of attributes, which may be +empty. If passed invalid arguments, it uses \fBdie()\fR (via Carp::croak) +to raise a fatal exception. If it can find an appropriate package name +for a class method lookup, it will include the results from a +\&\f(CW\*(C`FETCH_\f(CItype\f(CW_ATTRIBUTES\*(C'\fR call in its return list, as described in +\&\*(L"Package-specific Attribute Handling\*(R" below. +Otherwise, only built-in attributes will be returned. +.IP "reftype" 4 +.IX Item "reftype" +This routine expects a single parameter\*(--a reference to a subroutine or +variable. It returns the built-in type of the referenced variable, +ignoring any package into which it might have been blessed. +This can be useful for determining the \fItype\fR value which forms part of +the method names described in \*(L"Package-specific Attribute Handling\*(R" below. +.PP +Note that these routines are \fInot\fR exported by default. +.SS "Package-specific Attribute Handling" +.IX Subsection "Package-specific Attribute Handling" +\&\fB\s-1WARNING\s0\fR: the mechanisms described here are still experimental. Do not +rely on the current implementation. In particular, there is no provision +for applying package attributes to 'cloned' copies of subroutines used as +closures. (See \*(L"Making References\*(R" in perlref for information on closures.) +Package-specific attribute handling may change incompatibly in a future +release. +.PP +When an attribute list is present in a declaration, a check is made to see +whether an attribute 'modify' handler is present in the appropriate package +(or its \f(CW@ISA\fR inheritance tree). Similarly, when \f(CW\*(C`attributes::get\*(C'\fR is +called on a valid reference, a check is made for an appropriate attribute +\&'fetch' handler. See \*(L"\s-1EXAMPLES\*(R"\s0 to see how the \*(L"appropriate package\*(R" +determination works. +.PP +The handler names are based on the underlying type of the variable being +declared or of the reference passed. Because these attributes are +associated with subroutine or variable declarations, this deliberately +ignores any possibility of being blessed into some package. Thus, a +subroutine declaration uses \*(L"\s-1CODE\*(R"\s0 as its \fItype\fR, and even a blessed +hash reference uses \*(L"\s-1HASH\*(R"\s0 as its \fItype\fR. +.PP +The class methods invoked for modifying and fetching are these: +.IP "\s-1FETCH_\s0\fItype\fR_ATTRIBUTES" 4 +.IX Item "FETCH_type_ATTRIBUTES" +This method is called with two arguments: the relevant package name, +and a reference to a variable or subroutine for which package-defined +attributes are desired. The expected return value is a list of +associated attributes. This list may be empty. +.IP "\s-1MODIFY_\s0\fItype\fR_ATTRIBUTES" 4 +.IX Item "MODIFY_type_ATTRIBUTES" +This method is called with two fixed arguments, followed by the list of +attributes from the relevant declaration. The two fixed arguments are +the relevant package name and a reference to the declared subroutine or +variable. The expected return value is a list of attributes which were +not recognized by this handler. Note that this allows for a derived class +to delegate a call to its base class, and then only examine the attributes +which the base class didn't already handle for it. +.Sp +The call to this method is currently made \fIduring\fR the processing of the +declaration. In particular, this means that a subroutine reference will +probably be for an undefined subroutine, even if this declaration is +actually part of the definition. +.PP +Calling \f(CW\*(C`attributes::get()\*(C'\fR from within the scope of a null package +declaration \f(CW\*(C`package ;\*(C'\fR for an unblessed variable reference will +not provide any starting package name for the 'fetch' method lookup. +Thus, this circumstance will not result in a method call for package-defined +attributes. A named subroutine knows to which symbol table entry it belongs +(or originally belonged), and it will use the corresponding package. +An anonymous subroutine knows the package name into which it was compiled +(unless it was also compiled with a null package declaration), and so it +will use that package name. +.SS "Syntax of Attribute Lists" +.IX Subsection "Syntax of Attribute Lists" +An attribute list is a sequence of attribute specifications, separated by +whitespace or a colon (with optional whitespace). +Each attribute specification is a simple +name, optionally followed by a parenthesised parameter list. +If such a parameter list is present, it is scanned past as for the rules +for the \f(CW\*(C`q()\*(C'\fR operator. (See \*(L"Quote and Quote-like Operators\*(R" in perlop.) +The parameter list is passed as it was found, however, and not as per \f(CW\*(C`q()\*(C'\fR. +.PP +Some examples of syntactically valid attribute lists: +.PP +.Vb 4 +\& switch(10,foo(7,3)) : expensive +\& Ugly(\*(Aq\e(") :Bad +\& _5x5 +\& lvalue method +.Ve +.PP +Some examples of syntactically invalid attribute lists (with annotation): +.PP +.Vb 5 +\& switch(10,foo() # ()\-string not balanced +\& Ugly(\*(Aq(\*(Aq) # ()\-string not balanced +\& 5x5 # "5x5" not a valid identifier +\& Y2::north # "Y2::north" not a simple identifier +\& foo + bar # "+" neither a colon nor whitespace +.Ve +.SH "EXPORTS" +.IX Header "EXPORTS" +.SS "Default exports" +.IX Subsection "Default exports" +None. +.SS "Available exports" +.IX Subsection "Available exports" +The routines \f(CW\*(C`get\*(C'\fR and \f(CW\*(C`reftype\*(C'\fR are exportable. +.SS "Export tags defined" +.IX Subsection "Export tags defined" +The \f(CW\*(C`:ALL\*(C'\fR tag will get all of the above exports. +.SH "EXAMPLES" +.IX Header "EXAMPLES" +Here are some samples of syntactically valid declarations, with annotation +as to how they resolve internally into \f(CW\*(C`use attributes\*(C'\fR invocations by +perl. These examples are primarily useful to see how the \*(L"appropriate +package\*(R" is found for the possible method lookups for package-defined +attributes. +.IP "1." 4 +Code: +.Sp +.Vb 3 +\& package Canine; +\& package Dog; +\& my Canine $spot : Watchful ; +.Ve +.Sp +Effect: +.Sp +.Vb 2 +\& use attributes (); +\& attributes::\->import(Canine => \e$spot, "Watchful"); +.Ve +.IP "2." 4 +Code: +.Sp +.Vb 2 +\& package Felis; +\& my $cat : Nervous; +.Ve +.Sp +Effect: +.Sp +.Vb 2 +\& use attributes (); +\& attributes::\->import(Felis => \e$cat, "Nervous"); +.Ve +.IP "3." 4 +Code: +.Sp +.Vb 2 +\& package X; +\& sub foo : lvalue ; +.Ve +.Sp +Effect: +.Sp +.Vb 1 +\& use attributes X => \e&foo, "lvalue"; +.Ve +.IP "4." 4 +Code: +.Sp +.Vb 2 +\& package X; +\& sub Y::x : lvalue { 1 } +.Ve +.Sp +Effect: +.Sp +.Vb 1 +\& use attributes Y => \e&Y::x, "lvalue"; +.Ve +.IP "5." 4 +Code: +.Sp +.Vb 2 +\& package X; +\& sub foo { 1 } +\& +\& package Y; +\& BEGIN { *bar = \e&X::foo; } +\& +\& package Z; +\& sub Y::bar : lvalue ; +.Ve +.Sp +Effect: +.Sp +.Vb 1 +\& use attributes X => \e&X::foo, "lvalue"; +.Ve +.PP +This last example is purely for purposes of completeness. You should not +be trying to mess with the attributes of something in a package that's +not your own. +.SH "MORE EXAMPLES" +.IX Header "MORE EXAMPLES" +.IP "1." 4 +.Vb 2 +\& sub MODIFY_CODE_ATTRIBUTES { +\& my ($class,$code,@attrs) = @_; +\& +\& my $allowed = \*(AqMyAttribute\*(Aq; +\& my @bad = grep { $_ ne $allowed } @attrs; +\& +\& return @bad; +\& } +\& +\& sub foo : MyAttribute { +\& print "foo\en"; +\& } +.Ve +.Sp +This example runs. At compile time +\&\f(CW\*(C`MODIFY_CODE_ATTRIBUTES\*(C'\fR is called. In that +subroutine, we check if any attribute is disallowed and we return a list of +these \*(L"bad attributes\*(R". +.Sp +As we return an empty list, everything is fine. +.IP "2." 4 +.Vb 2 +\& sub MODIFY_CODE_ATTRIBUTES { +\& my ($class,$code,@attrs) = @_; +\& +\& my $allowed = \*(AqMyAttribute\*(Aq; +\& my @bad = grep{ $_ ne $allowed }@attrs; +\& +\& return @bad; +\& } +\& +\& sub foo : MyAttribute Test { +\& print "foo\en"; +\& } +.Ve +.Sp +This example is aborted at compile time as we use the attribute \*(L"Test\*(R" which +isn't allowed. \f(CW\*(C`MODIFY_CODE_ATTRIBUTES\*(C'\fR +returns a list that contains a single +element ('Test'). +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\*(L"Private Variables via \fBmy()\fR\*(R" in perlsub and +\&\*(L"Subroutine Attributes\*(R" in perlsub for details on the basic declarations; +\&\*(L"use\*(R" in perlfunc for details on the normal invocation mechanism. diff --git a/data/miniconda3/man/man3/autodie%3A%3Ahints.3 b/data/miniconda3/man/man3/autodie%3A%3Ahints.3 new file mode 100644 index 0000000000000000000000000000000000000000..f389c49fbc69c508544fbc1eb99101b4dbf9d5c6 --- /dev/null +++ b/data/miniconda3/man/man3/autodie%3A%3Ahints.3 @@ -0,0 +1,491 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "autodie::hints 3" +.TH autodie::hints 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +autodie::hints \- Provide hints about user subroutines to autodie +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& package Your::Module; +\& +\& our %DOES = ( \*(Aqautodie::hints::provider\*(Aq => 1 ); +\& +\& sub AUTODIE_HINTS { +\& return { +\& foo => { scalar => HINTS, list => SOME_HINTS }, +\& bar => { scalar => HINTS, list => MORE_HINTS }, +\& } +\& } +\& +\& # Later, in your main program... +\& +\& use Your::Module qw(foo bar); +\& use autodie qw(:default foo bar); +\& +\& foo(); # succeeds or dies based on scalar hints +\& +\& # Alternatively, hints can be set on subroutines we\*(Aqve +\& # imported. +\& +\& use autodie::hints; +\& use Some::Module qw(think_positive); +\& +\& BEGIN { +\& autodie::hints\->set_hints_for( +\& \e&think_positive, +\& { +\& fail => sub { $_[0] <= 0 } +\& } +\& ) +\& } +\& use autodie qw(think_positive); +\& +\& think_positive(...); # Returns positive or dies. +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SS "Introduction" +.IX Subsection "Introduction" +The autodie pragma is very smart when it comes to working with +Perl's built-in functions. The behaviour for these functions are +fixed, and \f(CW\*(C`autodie\*(C'\fR knows exactly how they try to signal failure. +.PP +But what about user-defined subroutines from modules? If you use +\&\f(CW\*(C`autodie\*(C'\fR on a user-defined subroutine then it assumes the following +behaviour to demonstrate failure: +.IP "\(bu" 4 +A false value, in scalar context +.IP "\(bu" 4 +An empty list, in list context +.IP "\(bu" 4 +A list containing a single undef, in list context +.PP +All other return values (including the list of the single zero, and the +list containing a single empty string) are considered successful. However, +real-world code isn't always that easy. Perhaps the code you're working +with returns a string containing the word \*(L"\s-1FAIL\*(R"\s0 upon failure, or a +two element list containing \f(CW\*(C`(undef, "human error message")\*(C'\fR. To make +autodie work with these sorts of subroutines, we have +the \fIhinting interface\fR. +.PP +The hinting interface allows \fIhints\fR to be provided to \f(CW\*(C`autodie\*(C'\fR +on how it should detect failure from user-defined subroutines. While +these \fIcan\fR be provided by the end-user of \f(CW\*(C`autodie\*(C'\fR, they are ideally +written into the module itself, or into a helper module or sub-class +of \f(CW\*(C`autodie\*(C'\fR itself. +.SS "What are hints?" +.IX Subsection "What are hints?" +A \fIhint\fR is a subroutine or value that is checked against the +return value of an autodying subroutine. If the match returns true, +\&\f(CW\*(C`autodie\*(C'\fR considers the subroutine to have failed. +.PP +If the hint provided is a subroutine, then \f(CW\*(C`autodie\*(C'\fR will pass +the complete return value to that subroutine. If the hint is +any other value, then \f(CW\*(C`autodie\*(C'\fR will smart-match against the +value provided. In Perl 5.8.x there is no smart-match operator, and as such +only subroutine hints are supported in these versions. +.PP +Hints can be provided for both scalar and list contexts. Note +that an autodying subroutine will never see a void context, as +\&\f(CW\*(C`autodie\*(C'\fR always needs to capture the return value for examination. +Autodying subroutines called in void context act as if they're called +in a scalar context, but their return value is discarded after it +has been checked. +.SS "Example hints" +.IX Subsection "Example hints" +Hints may consist of subroutine references, objects overloading +smart-match, regular expressions, and depending on Perl version possibly +other things. You can specify different hints for how +failure should be identified in scalar and list contexts. +.PP +These examples apply for use in the \f(CW\*(C`AUTODIE_HINTS\*(C'\fR subroutine and when +calling \f(CW\*(C`autodie::hints\->set_hints_for()\*(C'\fR. +.PP +The most common context-specific hints are: +.PP +.Vb 2 +\& # Scalar failures always return undef: +\& { scalar => sub { !defined($_[0]) } } +\& +\& # Scalar failures return any false value [default expectation]: +\& { scalar => sub { ! $_[0] } } +\& +\& # Scalar failures always return zero explicitly: +\& { scalar => sub { defined($_[0]) && $_[0] eq \*(Aq0\*(Aq } } +\& +\& # List failures always return an empty list: +\& { list => sub { !@_ } } +\& +\& # List failures return () or (undef) [default expectation]: +\& { list => sub { ! @_ || @_ == 1 && !defined $_[0] } } +\& +\& # List failures return () or a single false value: +\& { list => sub { ! @_ || @_ == 1 && !$_[0] } } +\& +\& # List failures return (undef, "some string") +\& { list => sub { @_ == 2 && !defined $_[0] } } +\& +\& # Unsuccessful foo() returns \*(AqFAIL\*(Aq or \*(Aq_FAIL\*(Aq in scalar context, +\& # returns (\-1) in list context... +\& autodie::hints\->set_hints_for( +\& \e&foo, +\& { +\& scalar => qr/^ _? FAIL $/xms, +\& list => sub { @_ == 1 && $_[0] eq \-1 }, +\& } +\& ); +\& +\& # Unsuccessful foo() returns 0 in all contexts... +\& autodie::hints\->set_hints_for( +\& \e&foo, +\& { +\& scalar => sub { defined($_[0]) && $_[0] == 0 }, +\& list => sub { @_ == 1 && defined($_[0]) && $_[0] == 0 }, +\& } +\& ); +.Ve +.PP +This \*(L"in all contexts\*(R" construction is very common, and can be +abbreviated, using the 'fail' key. This sets both the \f(CW\*(C`scalar\*(C'\fR +and \f(CW\*(C`list\*(C'\fR hints to the same value: +.PP +.Vb 7 +\& # Unsuccessful foo() returns 0 in all contexts... +\& autodie::hints\->set_hints_for( +\& \e&foo, +\& { +\& fail => sub { @_ == 1 and defined $_[0] and $_[0] == 0 } +\& } +\& ); +\& +\& # Unsuccessful think_positive() returns negative number on failure... +\& autodie::hints\->set_hints_for( +\& \e&think_positive, +\& { +\& fail => sub { $_[0] < 0 } +\& } +\& ); +\& +\& # Unsuccessful my_system() returns non\-zero on failure... +\& autodie::hints\->set_hints_for( +\& \e&my_system, +\& { +\& fail => sub { $_[0] != 0 } +\& } +\& ); +.Ve +.SH "Manually setting hints from within your program" +.IX Header "Manually setting hints from within your program" +If you are using a module which returns something special on failure, then +you can manually create hints for each of the desired subroutines. Once +the hints are specified, they are available for all files and modules loaded +thereafter, thus you can move this work into a module and it will still +work. +.PP +.Vb 2 +\& use Some::Module qw(foo bar); +\& use autodie::hints; +\& +\& autodie::hints\->set_hints_for( +\& \e&foo, +\& { +\& scalar => SCALAR_HINT, +\& list => LIST_HINT, +\& } +\& ); +\& autodie::hints\->set_hints_for( +\& \e&bar, +\& { fail => SOME_HINT, } +\& ); +.Ve +.PP +It is possible to pass either a subroutine reference (recommended) or a fully +qualified subroutine name as the first argument. This means you can set hints +on modules that \fImight\fR get loaded: +.PP +.Vb 4 +\& use autodie::hints; +\& autodie::hints\->set_hints_for( +\& \*(AqSome::Module:bar\*(Aq, { fail => SCALAR_HINT, } +\& ); +.Ve +.PP +This technique is most useful when you have a project that uses a +lot of third-party modules. You can define all your possible hints +in one-place. This can even be in a sub-class of autodie. For +example: +.PP +.Vb 1 +\& package my::autodie; +\& +\& use parent qw(autodie); +\& use autodie::hints; +\& +\& autodie::hints\->set_hints_for(...); +\& +\& 1; +.Ve +.PP +You can now \f(CW\*(C`use my::autodie\*(C'\fR, which will work just like the standard +\&\f(CW\*(C`autodie\*(C'\fR, but is now aware of any hints that you've set. +.SH "Adding hints to your module" +.IX Header "Adding hints to your module" +\&\f(CW\*(C`autodie\*(C'\fR provides a passive interface to allow you to declare hints for +your module. These hints will be found and used by \f(CW\*(C`autodie\*(C'\fR if it +is loaded, but otherwise have no effect (or dependencies) without autodie. +To set these, your module needs to declare that it \fIdoes\fR the +\&\f(CW\*(C`autodie::hints::provider\*(C'\fR role. This can be done by writing your +own \f(CW\*(C`DOES\*(C'\fR method, using a system such as \f(CW\*(C`Class::DOES\*(C'\fR to handle +the heavy-lifting for you, or declaring a \f(CW%DOES\fR package variable +with a \f(CW\*(C`autodie::hints::provider\*(C'\fR key and a corresponding true value. +.PP +Note that checking for a \f(CW%DOES\fR hash is an \f(CW\*(C`autodie\*(C'\fR\-only +short-cut. Other modules do not use this mechanism for checking +roles, although you can use the \f(CW\*(C`Class::DOES\*(C'\fR module from the +\&\s-1CPAN\s0 to allow it. +.PP +In addition, you must define a \f(CW\*(C`AUTODIE_HINTS\*(C'\fR subroutine that returns +a hash-reference containing the hints for your subroutines: +.PP +.Vb 1 +\& package Your::Module; +\& +\& # We can use the Class::DOES from the CPAN to declare adherence +\& # to a role. +\& +\& use Class::DOES \*(Aqautodie::hints::provider\*(Aq => 1; +\& +\& # Alternatively, we can declare the role in %DOES. Note that +\& # this is an autodie specific optimisation, although Class::DOES +\& # can be used to promote this to a true role declaration. +\& +\& our %DOES = ( \*(Aqautodie::hints::provider\*(Aq => 1 ); +\& +\& # Finally, we must define the hints themselves. +\& +\& sub AUTODIE_HINTS { +\& return { +\& foo => { scalar => HINTS, list => SOME_HINTS }, +\& bar => { scalar => HINTS, list => MORE_HINTS }, +\& baz => { fail => HINTS }, +\& } +\& } +.Ve +.PP +This allows your code to set hints without relying on \f(CW\*(C`autodie\*(C'\fR and +\&\f(CW\*(C`autodie::hints\*(C'\fR being loaded, or even installed. In this way your +code can do the right thing when \f(CW\*(C`autodie\*(C'\fR is installed, but does not +need to depend upon it to function. +.SH "Insisting on hints" +.IX Header "Insisting on hints" +When a user-defined subroutine is wrapped by \f(CW\*(C`autodie\*(C'\fR, it will +use hints if they are available, and otherwise reverts to the +\&\fIdefault behaviour\fR described in the introduction of this document. +This can be problematic if we expect a hint to exist, but (for +whatever reason) it has not been loaded. +.PP +We can ask autodie to \fIinsist\fR that a hint be used by prefixing +an exclamation mark to the start of the subroutine name. A lone +exclamation mark indicates that \fIall\fR subroutines after it must +have hints declared. +.PP +.Vb 2 +\& # foo() and bar() must have their hints defined +\& use autodie qw( !foo !bar baz ); +\& +\& # Everything must have hints (recommended). +\& use autodie qw( ! foo bar baz ); +\& +\& # bar() and baz() must have their hints defined +\& use autodie qw( foo ! bar baz ); +\& +\& # Enable autodie for all of Perl\*(Aqs supported built\-ins, +\& # as well as for foo(), bar() and baz(). Everything must +\& # have hints. +\& use autodie qw( ! :all foo bar baz ); +.Ve +.PP +If hints are not available for the specified subroutines, this will cause a +compile-time error. Insisting on hints for Perl's built-in functions +(eg, \f(CW\*(C`open\*(C'\fR and \f(CW\*(C`close\*(C'\fR) is always successful. +.PP +Insisting on hints is \fIstrongly\fR recommended. +.SH "Diagnostics" +.IX Header "Diagnostics" +.IP "Attempts to set_hints_for unidentifiable subroutine" 4 +.IX Item "Attempts to set_hints_for unidentifiable subroutine" +You've called \f(CW\*(C`autodie::hints\->set_hints_for()\*(C'\fR using a subroutine +reference, but that reference could not be resolved back to a +subroutine name. It may be an anonymous subroutine (which can't +be made autodying), or may lack a name for other reasons. +.Sp +If you receive this error with a subroutine that has a real name, +then you may have found a bug in autodie. See \*(L"\s-1BUGS\*(R"\s0 in autodie +for how to report this. +.ie n .IP "fail hints cannot be provided with either scalar or list hints for %s" 4 +.el .IP "fail hints cannot be provided with either scalar or list hints for \f(CW%s\fR" 4 +.IX Item "fail hints cannot be provided with either scalar or list hints for %s" +When defining hints, you can either supply both \f(CW\*(C`list\*(C'\fR and +\&\f(CW\*(C`scalar\*(C'\fR keywords, \fIor\fR you can provide a single \f(CW\*(C`fail\*(C'\fR keyword. +You can't mix and match them. +.ie n .IP "%s hint missing for %s" 4 +.el .IP "\f(CW%s\fR hint missing for \f(CW%s\fR" 4 +.IX Item "%s hint missing for %s" +You've provided either a \f(CW\*(C`scalar\*(C'\fR hint without supplying +a \f(CW\*(C`list\*(C'\fR hint, or vice-versa. You \fImust\fR supply both \f(CW\*(C`scalar\*(C'\fR +and \f(CW\*(C`list\*(C'\fR hints, \fIor\fR a single \f(CW\*(C`fail\*(C'\fR hint. +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +.IP "\(bu" 4 +Dr Damian Conway for suggesting the hinting interface and providing the +example usage. +.IP "\(bu" 4 +Jacinta Richardson for translating much of my ideas into this +documentation. +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright 2009, Paul Fenwick +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software. You may distribute it under the +same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +autodie, Class::DOES diff --git a/data/miniconda3/man/man3/autodie.3 b/data/miniconda3/man/man3/autodie.3 new file mode 100644 index 0000000000000000000000000000000000000000..a5e41960c978eebcc27ba216348bbf3df84f7cdd --- /dev/null +++ b/data/miniconda3/man/man3/autodie.3 @@ -0,0 +1,485 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "autodie 3" +.TH autodie 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +autodie \- Replace functions with ones that succeed or die with lexical scope +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use autodie; # Recommended: implies \*(Aquse autodie qw(:default)\*(Aq +\& +\& use autodie qw(:all); # Recommended more: defaults and system/exec. +\& +\& use autodie qw(open close); # open/close succeed or die +\& +\& open(my $fh, "<", $filename); # No need to check! +\& +\& { +\& no autodie qw(open); # open failures won\*(Aqt die +\& open(my $fh, "<", $filename); # Could fail silently! +\& no autodie; # disable all autodies +\& } +\& +\& print "Hello World" or die $!; # autodie DOESN\*(AqT check print! +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.Vb 1 +\& bIlujDI\*(Aq yIchegh()Qo\*(Aq; yIHegh()! +\& +\& It is better to die() than to return() in failure. +\& +\& \-\- Klingon programming proverb. +.Ve +.PP +The \f(CW\*(C`autodie\*(C'\fR pragma provides a convenient way to replace functions +that normally return false on failure with equivalents that throw +an exception on failure. +.PP +The \f(CW\*(C`autodie\*(C'\fR pragma has \fIlexical scope\fR, meaning that functions +and subroutines altered with \f(CW\*(C`autodie\*(C'\fR will only change their behaviour +until the end of the enclosing block, file, or \f(CW\*(C`eval\*(C'\fR. +.PP +If \f(CW\*(C`system\*(C'\fR is specified as an argument to \f(CW\*(C`autodie\*(C'\fR, then it +uses IPC::System::Simple to do the heavy lifting. See the +description of that module for more information. +.SH "EXCEPTIONS" +.IX Header "EXCEPTIONS" +Exceptions produced by the \f(CW\*(C`autodie\*(C'\fR pragma are members of the +autodie::exception class. The preferred way to work with +these exceptions under Perl 5.10 is as follows: +.PP +.Vb 2 +\& eval { +\& use autodie; +\& +\& open(my $fh, \*(Aq<\*(Aq, $some_file); +\& +\& my @records = <$fh>; +\& +\& # Do things with @records... +\& +\& close($fh); +\& }; +\& +\& if ($@ and $@\->isa(\*(Aqautodie::exception\*(Aq)) { +\& if ($@\->matches(\*(Aqopen\*(Aq)) { print "Error from open\en"; } +\& if ($@\->matches(\*(Aq:io\*(Aq )) { print "Non\-open, IO error."; } +\& } elsif ($@) { +\& # A non\-autodie exception. +\& } +.Ve +.PP +See autodie::exception for further information on interrogating +exceptions. +.SH "CATEGORIES" +.IX Header "CATEGORIES" +Autodie uses a simple set of categories to group together similar +built-ins. Requesting a category type (starting with a colon) will +enable autodie for all built-ins beneath that category. For example, +requesting \f(CW\*(C`:file\*(C'\fR will enable autodie for \f(CW\*(C`close\*(C'\fR, \f(CW\*(C`fcntl\*(C'\fR, +\&\f(CW\*(C`open\*(C'\fR and \f(CW\*(C`sysopen\*(C'\fR. +.PP +The categories are currently: +.PP +.Vb 10 +\& :all +\& :default +\& :io +\& read +\& seek +\& sysread +\& sysseek +\& syswrite +\& :dbm +\& dbmclose +\& dbmopen +\& :file +\& binmode +\& close +\& chmod +\& chown +\& fcntl +\& flock +\& ioctl +\& open +\& sysopen +\& truncate +\& :filesys +\& chdir +\& closedir +\& opendir +\& link +\& mkdir +\& readlink +\& rename +\& rmdir +\& symlink +\& unlink +\& :ipc +\& kill +\& pipe +\& :msg +\& msgctl +\& msgget +\& msgrcv +\& msgsnd +\& :semaphore +\& semctl +\& semget +\& semop +\& :shm +\& shmctl +\& shmget +\& shmread +\& :socket +\& accept +\& bind +\& connect +\& getsockopt +\& listen +\& recv +\& send +\& setsockopt +\& shutdown +\& socketpair +\& :threads +\& fork +\& :system +\& system +\& exec +.Ve +.PP +Note that while the above category system is presently a strict +hierarchy, this should not be assumed. +.PP +A plain \f(CW\*(C`use autodie\*(C'\fR implies \f(CW\*(C`use autodie qw(:default)\*(C'\fR. Note that +\&\f(CW\*(C`system\*(C'\fR and \f(CW\*(C`exec\*(C'\fR are not enabled by default. \f(CW\*(C`system\*(C'\fR requires +the optional IPC::System::Simple module to be installed, and enabling +\&\f(CW\*(C`system\*(C'\fR or \f(CW\*(C`exec\*(C'\fR will invalidate their exotic forms. See \*(L"\s-1BUGS\*(R"\s0 +below for more details. +.PP +The syntax: +.PP +.Vb 1 +\& use autodie qw(:1.994); +.Ve +.PP +allows the \f(CW\*(C`:default\*(C'\fR list from a particular version to be used. This +provides the convenience of using the default methods, but the surety +that no behavioral changes will occur if the \f(CW\*(C`autodie\*(C'\fR module is +upgraded. +.PP +\&\f(CW\*(C`autodie\*(C'\fR can be enabled for all of Perl's built-ins, including +\&\f(CW\*(C`system\*(C'\fR and \f(CW\*(C`exec\*(C'\fR with: +.PP +.Vb 1 +\& use autodie qw(:all); +.Ve +.SH "FUNCTION SPECIFIC NOTES" +.IX Header "FUNCTION SPECIFIC NOTES" +.SS "print" +.IX Subsection "print" +The autodie pragma \fBdoes not check calls to \f(CB\*(C`print\*(C'\fB\fR. +.SS "flock" +.IX Subsection "flock" +It is not considered an error for \f(CW\*(C`flock\*(C'\fR to return false if it fails +due to an \f(CW\*(C`EWOULDBLOCK\*(C'\fR (or equivalent) condition. This means one can +still use the common convention of testing the return value of +\&\f(CW\*(C`flock\*(C'\fR when called with the \f(CW\*(C`LOCK_NB\*(C'\fR option: +.PP +.Vb 1 +\& use autodie; +\& +\& if ( flock($fh, LOCK_EX | LOCK_NB) ) { +\& # We have a lock +\& } +.Ve +.PP +Autodying \f(CW\*(C`flock\*(C'\fR will generate an exception if \f(CW\*(C`flock\*(C'\fR returns +false with any other error. +.SS "system/exec" +.IX Subsection "system/exec" +The \f(CW\*(C`system\*(C'\fR built-in is considered to have failed in the following +circumstances: +.IP "\(bu" 4 +The command does not start. +.IP "\(bu" 4 +The command is killed by a signal. +.IP "\(bu" 4 +The command returns a non-zero exit value (but see below). +.PP +On success, the autodying form of \f(CW\*(C`system\*(C'\fR returns the \fIexit value\fR +rather than the contents of \f(CW$?\fR. +.PP +Additional allowable exit values can be supplied as an optional first +argument to autodying \f(CW\*(C`system\*(C'\fR: +.PP +.Vb 1 +\& system( [ 0, 1, 2 ], $cmd, @args); # 0,1,2 are good exit values +.Ve +.PP +\&\f(CW\*(C`autodie\*(C'\fR uses the IPC::System::Simple module to change \f(CW\*(C`system\*(C'\fR. +See its documentation for further information. +.PP +Applying \f(CW\*(C`autodie\*(C'\fR to \f(CW\*(C`system\*(C'\fR or \f(CW\*(C`exec\*(C'\fR causes the exotic +forms \f(CW\*(C`system { $cmd } @args \*(C'\fR or \f(CW\*(C`exec { $cmd } @args\*(C'\fR +to be considered a syntax error until the end of the lexical scope. +If you really need to use the exotic form, you can call \f(CW\*(C`CORE::system\*(C'\fR +or \f(CW\*(C`CORE::exec\*(C'\fR instead, or use \f(CW\*(C`no autodie qw(system exec)\*(C'\fR before +calling the exotic form. +.SH "GOTCHAS" +.IX Header "GOTCHAS" +Functions called in list context are assumed to have failed if they +return an empty list, or a list consisting only of a single undef +element. +.PP +Some builtins (e.g. \f(CW\*(C`chdir\*(C'\fR or \f(CW\*(C`truncate\*(C'\fR) has a call signature that +cannot completely be representated with a Perl prototype. This means +that some valid Perl code will be invalid under autodie. As an example: +.PP +.Vb 1 +\& chdir(BAREWORD); +.Ve +.PP +Without autodie (and assuming \s-1BAREWORD\s0 is an open +filehandle/dirhandle) this is a valid call to chdir. But under +autodie, \f(CW\*(C`chdir\*(C'\fR will behave like it had the prototype \*(L";$\*(R" and thus +\&\s-1BAREWORD\s0 will be a syntax error (under \*(L"use strict\*(R". Without strict, it +will interpreted as a filename). +.SH "DIAGNOSTICS" +.IX Header "DIAGNOSTICS" +.IP ":void cannot be used with lexical scope" 4 +.IX Item ":void cannot be used with lexical scope" +The \f(CW\*(C`:void\*(C'\fR option is supported in Fatal, but not +\&\f(CW\*(C`autodie\*(C'\fR. To workaround this, \f(CW\*(C`autodie\*(C'\fR may be explicitly disabled until +the end of the current block with \f(CW\*(C`no autodie\*(C'\fR. +To disable autodie for only a single function (eg, open) +use \f(CW\*(C`no autodie qw(open)\*(C'\fR. +.Sp +\&\f(CW\*(C`autodie\*(C'\fR performs no checking of called context to determine whether to throw +an exception; the explicitness of error handling with \f(CW\*(C`autodie\*(C'\fR is a deliberate +feature. +.ie n .IP "No user hints defined for %s" 4 +.el .IP "No user hints defined for \f(CW%s\fR" 4 +.IX Item "No user hints defined for %s" +You've insisted on hints for user-subroutines, either by pre-pending +a \f(CW\*(C`!\*(C'\fR to the subroutine name itself, or earlier in the list of arguments +to \f(CW\*(C`autodie\*(C'\fR. However the subroutine in question does not have +any hints available. +.PP +See also \*(L"\s-1DIAGNOSTICS\*(R"\s0 in Fatal. +.SH "Tips and Tricks" +.IX Header "Tips and Tricks" +.ie n .SS "Importing autodie into another namespace than ""caller""" +.el .SS "Importing autodie into another namespace than ``caller''" +.IX Subsection "Importing autodie into another namespace than caller" +It is possible to import autodie into a different namespace by using +Import::Into. However, you have to pass a \*(L"caller depth\*(R" (rather +than a package name) for this to work correctly. +.SH "BUGS" +.IX Header "BUGS" +\&\*(L"Used only once\*(R" warnings can be generated when \f(CW\*(C`autodie\*(C'\fR or \f(CW\*(C`Fatal\*(C'\fR +is used with package filehandles (eg, \f(CW\*(C`FILE\*(C'\fR). Scalar filehandles are +strongly recommended instead. +.PP +When using \f(CW\*(C`autodie\*(C'\fR or \f(CW\*(C`Fatal\*(C'\fR with user subroutines, the +declaration of those subroutines must appear before the first use of +\&\f(CW\*(C`Fatal\*(C'\fR or \f(CW\*(C`autodie\*(C'\fR, or have been exported from a module. +Attempting to use \f(CW\*(C`Fatal\*(C'\fR or \f(CW\*(C`autodie\*(C'\fR on other user subroutines will +result in a compile-time error. +.PP +Due to a bug in Perl, \f(CW\*(C`autodie\*(C'\fR may \*(L"lose\*(R" any format which has the +same name as an autodying built-in or function. +.PP +\&\f(CW\*(C`autodie\*(C'\fR may not work correctly if used inside a file with a +name that looks like a string eval, such as \fIeval (3)\fR. +.SS "autodie and string eval" +.IX Subsection "autodie and string eval" +Due to the current implementation of \f(CW\*(C`autodie\*(C'\fR, unexpected results +may be seen when used near or with the string version of eval. +\&\fINone of these bugs exist when using block eval\fR. +.PP +Under Perl 5.8 only, \f(CW\*(C`autodie\*(C'\fR \fIdoes not\fR propagate into string \f(CW\*(C`eval\*(C'\fR +statements, although it can be explicitly enabled inside a string +\&\f(CW\*(C`eval\*(C'\fR. +.PP +Under Perl 5.10 only, using a string eval when \f(CW\*(C`autodie\*(C'\fR is in +effect can cause the autodie behaviour to leak into the surrounding +scope. This can be worked around by using a \f(CW\*(C`no autodie\*(C'\fR at the +end of the scope to explicitly remove autodie's effects, or by +avoiding the use of string eval. +.PP +\&\fINone of these bugs exist when using block eval\fR. The use of +\&\f(CW\*(C`autodie\*(C'\fR with block eval is considered good practice. +.SS "\s-1REPORTING BUGS\s0" +.IX Subsection "REPORTING BUGS" +Please report bugs via the GitHub Issue Tracker at + or via the \s-1CPAN\s0 Request +Tracker at . +.SH "FEEDBACK" +.IX Header "FEEDBACK" +If you find this module useful, please consider rating it on the +\&\s-1CPAN\s0 Ratings service at + . +.PP +The module author loves to hear how \f(CW\*(C`autodie\*(C'\fR has made your life +better (or worse). Feedback can be sent to +. +.SH "AUTHOR" +.IX Header "AUTHOR" +Copyright 2008\-2009, Paul Fenwick +.SH "LICENSE" +.IX Header "LICENSE" +This module is free software. You may distribute it under the +same terms as Perl itself. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +Fatal, autodie::exception, autodie::hints, IPC::System::Simple +.PP +\&\fIPerl tips, autodie\fR at + +.SH "ACKNOWLEDGEMENTS" +.IX Header "ACKNOWLEDGEMENTS" +Mark Reed and Roland Giersig \*(-- Klingon translators. +.PP +See the \fI\s-1AUTHORS\s0\fR file for full credits. The latest version of this +file can be found at + . diff --git a/data/miniconda3/man/man3/encoding%3A%3Awarnings.3 b/data/miniconda3/man/man3/encoding%3A%3Awarnings.3 new file mode 100644 index 0000000000000000000000000000000000000000..7f6636e2e28d2783f411fb1a54ee2e4d253d3033 --- /dev/null +++ b/data/miniconda3/man/man3/encoding%3A%3Awarnings.3 @@ -0,0 +1,304 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "encoding::warnings 3" +.TH encoding::warnings 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +encoding::warnings \- Warn on implicit encoding conversions +.SH "VERSION" +.IX Header "VERSION" +This document describes version 0.13 of encoding::warnings, released +June 20, 2016. +.SH "NOTICE" +.IX Header "NOTICE" +As of Perl 5.26.0, this module has no effect. The internal Perl feature +that was used to implement this module has been removed. In recent years, +much work has been done on the Perl core to eliminate discrepancies in the +treatment of upgraded versus downgraded strings. In addition, the +encoding pragma, which caused many of the problems, is no longer +supported. Thus, the warnings this module produced are no longer +necessary. +.PP +Hence, if you load this module on Perl 5.26.0, you will get one warning +that the module is no longer supported; and the module will do nothing +thereafter. +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use encoding::warnings; # or \*(AqFATAL\*(Aq to raise fatal exceptions +\& +\& utf8::encode($a = chr(20000)); # a byte\-string (raw bytes) +\& $b = chr(20000); # a unicode\-string (wide characters) +\& +\& # "Bytes implicitly upgraded into wide characters as iso\-8859\-1" +\& $c = $a . $b; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +.SS "Overview of the problem" +.IX Subsection "Overview of the problem" +By default, there is a fundamental asymmetry in Perl's unicode model: +implicit upgrading from byte-strings to unicode-strings assumes that +they were encoded in \fI\s-1ISO 8859\-1\s0 (Latin\-1)\fR, but unicode-strings are +downgraded with \s-1UTF\-8\s0 encoding. This happens because the first 256 +codepoints in Unicode happens to agree with Latin\-1. +.PP +However, this silent upgrading can easily cause problems, if you happen +to mix unicode strings with non\-Latin1 data \*(-- i.e. byte-strings encoded +in \s-1UTF\-8\s0 or other encodings. The error will not manifest until the +combined string is written to output, at which time it would be impossible +to see where did the silent upgrading occur. +.SS "Detecting the problem" +.IX Subsection "Detecting the problem" +This module simplifies the process of diagnosing such problems. Just put +this line on top of your main program: +.PP +.Vb 1 +\& use encoding::warnings; +.Ve +.PP +Afterwards, implicit upgrading of high-bit bytes will raise a warning. +Ex.: \f(CW\*(C`Bytes implicitly upgraded into wide characters as iso\-8859\-1 at +\&\- line 7\*(C'\fR. +.PP +However, strings composed purely of \s-1ASCII\s0 code points (\f(CW0x00\fR..\f(CW0x7F\fR) +will \fInot\fR trigger this warning. +.PP +You can also make the warnings fatal by importing this module as: +.PP +.Vb 1 +\& use encoding::warnings \*(AqFATAL\*(Aq; +.Ve +.SS "Solving the problem" +.IX Subsection "Solving the problem" +Most of the time, this warning occurs when a byte-string is concatenated +with a unicode-string. There are a number of ways to solve it: +.IP "\(bu" 4 +Upgrade both sides to unicode-strings +.Sp +If your program does not need compatibility for Perl 5.6 and earlier, +the recommended approach is to apply appropriate \s-1IO\s0 disciplines, so all +data in your program become unicode-strings. See encoding, open and +\&\*(L"binmode\*(R" in perlfunc for how. +.IP "\(bu" 4 +Downgrade both sides to byte-strings +.Sp +The other way works too, especially if you are sure that all your data +are under the same encoding, or if compatibility with older versions +of Perl is desired. +.Sp +You may downgrade strings with \f(CW\*(C`Encode::encode\*(C'\fR and \f(CW\*(C`utf8::encode\*(C'\fR. +See Encode and utf8 for details. +.IP "\(bu" 4 +Specify the encoding for implicit byte-string upgrading +.Sp +If you are confident that all byte-strings will be in a specific +encoding like \s-1UTF\-8,\s0 \fIand\fR need not support older versions of Perl, +use the \f(CW\*(C`encoding\*(C'\fR pragma: +.Sp +.Vb 1 +\& use encoding \*(Aqutf8\*(Aq; +.Ve +.Sp +Similarly, this will silence warnings from this module, and preserve the +default behaviour: +.Sp +.Vb 1 +\& use encoding \*(Aqiso\-8859\-1\*(Aq; +.Ve +.Sp +However, note that \f(CW\*(C`use encoding\*(C'\fR actually had three distinct effects: +.RS 4 +.IP "\(bu" 4 +PerlIO layers for \fB\s-1STDIN\s0\fR and \fB\s-1STDOUT\s0\fR +.Sp +This is similar to what open pragma does. +.IP "\(bu" 4 +Literal conversions +.Sp +This turns \fIall\fR literal string in your program into unicode-strings +(equivalent to a \f(CW\*(C`use utf8\*(C'\fR), by decoding them using the specified +encoding. +.IP "\(bu" 4 +Implicit upgrading for byte-strings +.Sp +This will silence warnings from this module, as shown above. +.RE +.RS 4 +.Sp +Because literal conversions also work on empty strings, it may surprise +some people: +.Sp +.Vb 1 +\& use encoding \*(Aqbig5\*(Aq; +\& +\& my $byte_string = pack("C*", 0xA4, 0x40); +\& print length $a; # 2 here. +\& $a .= ""; # concatenating with a unicode string... +\& print length $a; # 1 here! +.Ve +.Sp +In other words, do not \f(CW\*(C`use encoding\*(C'\fR unless you are certain that the +program will not deal with any raw, 8\-bit binary data at all. +.Sp +However, the \f(CW\*(C`Filter => 1\*(C'\fR flavor of \f(CW\*(C`use encoding\*(C'\fR will \fInot\fR +affect implicit upgrading for byte-strings, and is thus incapable of +silencing warnings from this module. See encoding for more details. +.RE +.SH "CAVEATS" +.IX Header "CAVEATS" +For Perl 5.9.4 or later, this module's effect is lexical. +.PP +For Perl versions prior to 5.9.4, this module affects the whole script, +instead of inside its lexical block. +.SH "SEE ALSO" +.IX Header "SEE ALSO" +perlunicode, perluniintro +.PP +open, utf8, encoding, Encode +.SH "AUTHORS" +.IX Header "AUTHORS" +Audrey Tang +.SH "COPYRIGHT" +.IX Header "COPYRIGHT" +Copyright 2004, 2005, 2006, 2007 by Audrey Tang . +.PP +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. +.PP +See diff --git a/data/miniconda3/man/man3/ok.3 b/data/miniconda3/man/man3/ok.3 new file mode 100644 index 0000000000000000000000000000000000000000..b55853d5afcba5c1c75e012bed5c8a459bbb348c --- /dev/null +++ b/data/miniconda3/man/man3/ok.3 @@ -0,0 +1,161 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "ok 3" +.TH ok 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +ok \- Alternative to Test::More::use_ok +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 1 +\& use ok \*(AqSome::Module\*(Aq; +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +With this module, simply change all \f(CW\*(C`use_ok\*(C'\fR in test scripts to \f(CW\*(C`use ok\*(C'\fR, +and they will be executed at \f(CW\*(C`BEGIN\*(C'\fR time. +.PP +Please see Test::use::ok for the full description. +.SH "CC0 1.0 Universal" +.IX Header "CC0 1.0 Universal" +To the extent possible under law, \s-1XX\s0 has waived all copyright and related +or neighboring rights to Test-use-ok. +.PP +This work is published from Taiwan. +.PP + diff --git a/data/miniconda3/man/man3/warnings.3 b/data/miniconda3/man/man3/warnings.3 new file mode 100644 index 0000000000000000000000000000000000000000..5ea2c51f247052c687fda35059904246f9a05e06 --- /dev/null +++ b/data/miniconda3/man/man3/warnings.3 @@ -0,0 +1,960 @@ +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +. ds C` +. ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} +. \} +.\} +.rr rF +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "warnings 3" +.TH warnings 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +warnings \- Perl pragma to control optional warnings +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +.Vb 2 +\& use warnings; +\& no warnings; +\& +\& use warnings "all"; +\& no warnings "all"; +\& +\& use warnings::register; +\& if (warnings::enabled()) { +\& warnings::warn("some warning"); +\& } +\& +\& if (warnings::enabled("void")) { +\& warnings::warn("void", "some warning"); +\& } +\& +\& if (warnings::enabled($object)) { +\& warnings::warn($object, "some warning"); +\& } +\& +\& warnings::warnif("some warning"); +\& warnings::warnif("void", "some warning"); +\& warnings::warnif($object, "some warning"); +.Ve +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +The \f(CW\*(C`warnings\*(C'\fR pragma gives control over which warnings are enabled in +which parts of a Perl program. It's a more flexible alternative for +both the command line flag \fB\-w\fR and the equivalent Perl variable, +\&\f(CW$^W\fR. +.PP +This pragma works just like the \f(CW\*(C`strict\*(C'\fR pragma. +This means that the scope of the warning pragma is limited to the +enclosing block. It also means that the pragma setting will not +leak across files (via \f(CW\*(C`use\*(C'\fR, \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`do\*(C'\fR). This allows +authors to independently define the degree of warning checks that will +be applied to their module. +.PP +By default, optional warnings are disabled, so any legacy code that +doesn't attempt to control the warnings will work unchanged. +.PP +All warnings are enabled in a block by either of these: +.PP +.Vb 2 +\& use warnings; +\& use warnings \*(Aqall\*(Aq; +.Ve +.PP +Similarly all warnings are disabled in a block by either of these: +.PP +.Vb 2 +\& no warnings; +\& no warnings \*(Aqall\*(Aq; +.Ve +.PP +For example, consider the code below: +.PP +.Vb 7 +\& use warnings; +\& my @a; +\& { +\& no warnings; +\& my $b = @a[0]; +\& } +\& my $c = @a[0]; +.Ve +.PP +The code in the enclosing block has warnings enabled, but the inner +block has them disabled. In this case that means the assignment to the +scalar \f(CW$c\fR will trip the \f(CW"Scalar value @a[0] better written as $a[0]"\fR +warning, but the assignment to the scalar \f(CW$b\fR will not. +.SS "Default Warnings and Optional Warnings" +.IX Subsection "Default Warnings and Optional Warnings" +Before the introduction of lexical warnings, Perl had two classes of +warnings: mandatory and optional. +.PP +As its name suggests, if your code tripped a mandatory warning, you +would get a warning whether you wanted it or not. +For example, the code below would always produce an \f(CW"isn\*(Aqt numeric"\fR +warning about the \*(L"2:\*(R". +.PP +.Vb 1 +\& my $a = "2:" + 3; +.Ve +.PP +With the introduction of lexical warnings, mandatory warnings now become +\&\fIdefault\fR warnings. The difference is that although the previously +mandatory warnings are still enabled by default, they can then be +subsequently enabled or disabled with the lexical warning pragma. For +example, in the code below, an \f(CW"isn\*(Aqt numeric"\fR warning will only +be reported for the \f(CW$a\fR variable. +.PP +.Vb 3 +\& my $a = "2:" + 3; +\& no warnings; +\& my $b = "2:" + 3; +.Ve +.PP +Note that neither the \fB\-w\fR flag or the \f(CW$^W\fR can be used to +disable/enable default warnings. They are still mandatory in this case. +.ie n .SS "What's wrong with \fB\-w\fP and $^W" +.el .SS "What's wrong with \fB\-w\fP and \f(CW$^W\fP" +.IX Subsection "What's wrong with -w and $^W" +Although very useful, the big problem with using \fB\-w\fR on the command +line to enable warnings is that it is all or nothing. Take the typical +scenario when you are writing a Perl program. Parts of the code you +will write yourself, but it's very likely that you will make use of +pre-written Perl modules. If you use the \fB\-w\fR flag in this case, you +end up enabling warnings in pieces of code that you haven't written. +.PP +Similarly, using \f(CW$^W\fR to either disable or enable blocks of code is +fundamentally flawed. For a start, say you want to disable warnings in +a block of code. You might expect this to be enough to do the trick: +.PP +.Vb 5 +\& { +\& local ($^W) = 0; +\& my $a =+ 2; +\& my $b; chop $b; +\& } +.Ve +.PP +When this code is run with the \fB\-w\fR flag, a warning will be produced +for the \f(CW$a\fR line: \f(CW"Reversed += operator"\fR. +.PP +The problem is that Perl has both compile-time and run-time warnings. To +disable compile-time warnings you need to rewrite the code like this: +.PP +.Vb 5 +\& { +\& BEGIN { $^W = 0 } +\& my $a =+ 2; +\& my $b; chop $b; +\& } +.Ve +.PP +And note that unlike the first example, this will permanently set \f(CW$^W\fR +since it cannot both run during compile-time and be localized to a +run-time block. +.PP +The other big problem with \f(CW$^W\fR is the way you can inadvertently +change the warning setting in unexpected places in your code. For example, +when the code below is run (without the \fB\-w\fR flag), the second call +to \f(CW\*(C`doit\*(C'\fR will trip a \f(CW"Use of uninitialized value"\fR warning, whereas +the first will not. +.PP +.Vb 4 +\& sub doit +\& { +\& my $b; chop $b; +\& } +\& +\& doit(); +\& +\& { +\& local ($^W) = 1; +\& doit() +\& } +.Ve +.PP +This is a side-effect of \f(CW$^W\fR being dynamically scoped. +.PP +Lexical warnings get around these limitations by allowing finer control +over where warnings can or can't be tripped. +.SS "Controlling Warnings from the Command Line" +.IX Subsection "Controlling Warnings from the Command Line" +There are three Command Line flags that can be used to control when +warnings are (or aren't) produced: +.IP "\fB\-w\fR" 5 +.IX Xref "-w" +.IX Item "-w" +This is the existing flag. If the lexical warnings pragma is \fBnot\fR +used in any of you code, or any of the modules that you use, this flag +will enable warnings everywhere. See \*(L"Backward Compatibility\*(R" for +details of how this flag interacts with lexical warnings. +.IP "\fB\-W\fR" 5 +.IX Xref "-W" +.IX Item "-W" +If the \fB\-W\fR flag is used on the command line, it will enable all warnings +throughout the program regardless of whether warnings were disabled +locally using \f(CW\*(C`no warnings\*(C'\fR or \f(CW\*(C`$^W =0\*(C'\fR. +This includes all files that get +included via \f(CW\*(C`use\*(C'\fR, \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`do\*(C'\fR. +Think of it as the Perl equivalent of the \*(L"lint\*(R" command. +.IP "\fB\-X\fR" 5 +.IX Xref "-X" +.IX Item "-X" +Does the exact opposite to the \fB\-W\fR flag, i.e. it disables all warnings. +.SS "Backward Compatibility" +.IX Subsection "Backward Compatibility" +If you are used to working with a version of Perl prior to the +introduction of lexically scoped warnings, or have code that uses both +lexical warnings and \f(CW$^W\fR, this section will describe how they interact. +.PP +How Lexical Warnings interact with \fB\-w\fR/\f(CW$^W\fR: +.IP "1." 5 +If none of the three command line flags (\fB\-w\fR, \fB\-W\fR or \fB\-X\fR) that +control warnings is used and neither \f(CW$^W\fR nor the \f(CW\*(C`warnings\*(C'\fR pragma +are used, then default warnings will be enabled and optional warnings +disabled. +This means that legacy code that doesn't attempt to control the warnings +will work unchanged. +.IP "2." 5 +The \fB\-w\fR flag just sets the global \f(CW$^W\fR variable as in 5.005. This +means that any legacy code that currently relies on manipulating \f(CW$^W\fR +to control warning behavior will still work as is. +.IP "3." 5 +Apart from now being a boolean, the \f(CW$^W\fR variable operates in exactly +the same horrible uncontrolled global way, except that it cannot +disable/enable default warnings. +.IP "4." 5 +If a piece of code is under the control of the \f(CW\*(C`warnings\*(C'\fR pragma, +both the \f(CW$^W\fR variable and the \fB\-w\fR flag will be ignored for the +scope of the lexical warning. +.IP "5." 5 +The only way to override a lexical warnings setting is with the \fB\-W\fR +or \fB\-X\fR command line flags. +.PP +The combined effect of 3 & 4 is that it will allow code which uses +the \f(CW\*(C`warnings\*(C'\fR pragma to control the warning behavior of $^W\-type +code (using a \f(CW\*(C`local $^W=0\*(C'\fR) if it really wants to, but not vice-versa. +.SS "Category Hierarchy" +.IX Xref "warning, categories" +.IX Subsection "Category Hierarchy" +A hierarchy of \*(L"categories\*(R" have been defined to allow groups of warnings +to be enabled/disabled in isolation. +.PP +The current hierarchy is: +.PP +.Vb 10 +\& all \-+ +\& | +\& +\- closure +\& | +\& +\- deprecated +\& | +\& +\- exiting +\& | +\& +\- experimental \-\-+ +\& | | +\& | +\- experimental::alpha_assertions +\& | | +\& | +\- experimental::bitwise +\& | | +\& | +\- experimental::const_attr +\& | | +\& | +\- experimental::declared_refs +\& | | +\& | +\- experimental::isa +\& | | +\& | +\- experimental::lexical_subs +\& | | +\& | +\- experimental::postderef +\& | | +\& | +\- experimental::private_use +\& | | +\& | +\- experimental::re_strict +\& | | +\& | +\- experimental::refaliasing +\& | | +\& | +\- experimental::regex_sets +\& | | +\& | +\- experimental::script_run +\& | | +\& | +\- experimental::signatures +\& | | +\& | +\- experimental::smartmatch +\& | | +\& | +\- experimental::uniprop_wildcards +\& | | +\& | +\- experimental::vlb +\& | | +\& | +\- experimental::win32_perlio +\& | +\& +\- glob +\& | +\& +\- imprecision +\& | +\& +\- io \-\-\-\-\-\-\-\-\-\-\-\-+ +\& | | +\& | +\- closed +\& | | +\& | +\- exec +\& | | +\& | +\- layer +\& | | +\& | +\- newline +\& | | +\& | +\- pipe +\& | | +\& | +\- syscalls +\& | | +\& | +\- unopened +\& | +\& +\- locale +\& | +\& +\- misc +\& | +\& +\- missing +\& | +\& +\- numeric +\& | +\& +\- once +\& | +\& +\- overflow +\& | +\& +\- pack +\& | +\& +\- portable +\& | +\& +\- recursion +\& | +\& +\- redefine +\& | +\& +\- redundant +\& | +\& +\- regexp +\& | +\& +\- severe \-\-\-\-\-\-\-\-+ +\& | | +\& | +\- debugging +\& | | +\& | +\- inplace +\& | | +\& | +\- internal +\& | | +\& | +\- malloc +\& | +\& +\- shadow +\& | +\& +\- signal +\& | +\& +\- substr +\& | +\& +\- syntax \-\-\-\-\-\-\-\-+ +\& | | +\& | +\- ambiguous +\& | | +\& | +\- bareword +\& | | +\& | +\- digit +\& | | +\& | +\- illegalproto +\& | | +\& | +\- parenthesis +\& | | +\& | +\- precedence +\& | | +\& | +\- printf +\& | | +\& | +\- prototype +\& | | +\& | +\- qw +\& | | +\& | +\- reserved +\& | | +\& | +\- semicolon +\& | +\& +\- taint +\& | +\& +\- threads +\& | +\& +\- uninitialized +\& | +\& +\- unpack +\& | +\& +\- untie +\& | +\& +\- utf8 \-\-\-\-\-\-\-\-\-\-+ +\& | | +\& | +\- non_unicode +\& | | +\& | +\- nonchar +\& | | +\& | +\- surrogate +\& | +\& +\- void +.Ve +.PP +Just like the \*(L"strict\*(R" pragma any of these categories can be combined +.PP +.Vb 2 +\& use warnings qw(void redefine); +\& no warnings qw(io syntax untie); +.Ve +.PP +Also like the \*(L"strict\*(R" pragma, if there is more than one instance of the +\&\f(CW\*(C`warnings\*(C'\fR pragma in a given scope the cumulative effect is additive. +.PP +.Vb 5 +\& use warnings qw(void); # only "void" warnings enabled +\& ... +\& use warnings qw(io); # only "void" & "io" warnings enabled +\& ... +\& no warnings qw(void); # only "io" warnings enabled +.Ve +.PP +To determine which category a specific warning has been assigned to see +perldiag. +.PP +Note: Before Perl 5.8.0, the lexical warnings category \*(L"deprecated\*(R" was a +sub-category of the \*(L"syntax\*(R" category. It is now a top-level category +in its own right. +.PP +Note: Before 5.21.0, the \*(L"missing\*(R" lexical warnings category was +internally defined to be the same as the \*(L"uninitialized\*(R" category. It +is now a top-level category in its own right. +.SS "Fatal Warnings" +.IX Xref "warning, fatal" +.IX Subsection "Fatal Warnings" +The presence of the word \*(L"\s-1FATAL\*(R"\s0 in the category list will escalate +warnings in those categories into fatal errors in that lexical scope. +.PP +\&\fB\s-1NOTE:\s0\fR \s-1FATAL\s0 warnings should be used with care, particularly +\&\f(CW\*(C`FATAL => \*(Aqall\*(Aq\*(C'\fR. +.PP +Libraries using warnings::warn for custom warning categories +generally don't expect warnings::warn to be fatal and can wind up +in an unexpected state as a result. For \s-1XS\s0 modules issuing categorized +warnings, such unanticipated exceptions could also expose memory leak bugs. +.PP +Moreover, the Perl interpreter itself has had serious bugs involving +fatalized warnings. For a summary of resolved and unresolved problems as +of January 2015, please see +this perl5\-porters post . +.PP +While some developers find fatalizing some warnings to be a useful +defensive programming technique, using \f(CW\*(C`FATAL => \*(Aqall\*(Aq\*(C'\fR to fatalize +all possible warning categories \*(-- including custom ones \*(-- is particularly +risky. Therefore, the use of \f(CW\*(C`FATAL => \*(Aqall\*(Aq\*(C'\fR is +discouraged. +.PP +The strictures module on \s-1CPAN\s0 offers one example of +a warnings subset that the module's authors believe is relatively safe to +fatalize. +.PP +\&\fB\s-1NOTE:\s0\fR users of \s-1FATAL\s0 warnings, especially those using +\&\f(CW\*(C`FATAL => \*(Aqall\*(Aq\*(C'\fR, should be fully aware that they are risking future +portability of their programs by doing so. Perl makes absolutely no +commitments to not introduce new warnings or warnings categories in the +future; indeed, we explicitly reserve the right to do so. Code that may +not warn now may warn in a future release of Perl if the Perl5 development +team deems it in the best interests of the community to do so. Should code +using \s-1FATAL\s0 warnings break due to the introduction of a new warning we will +\&\s-1NOT\s0 consider it an incompatible change. Users of \s-1FATAL\s0 warnings should +take special caution during upgrades to check to see if their code triggers +any new warnings and should pay particular attention to the fine print of +the documentation of the features they use to ensure they do not exploit +features that are documented as risky, deprecated, or unspecified, or where +the documentation says \*(L"so don't do that\*(R", or anything with the same sense +and spirit. Use of such features in combination with \s-1FATAL\s0 warnings is +\&\s-1ENTIRELY AT THE USER\s0'S \s-1RISK.\s0 +.PP +The following documentation describes how to use \s-1FATAL\s0 warnings but the +perl5 porters strongly recommend that you understand the risks before doing +so, especially for library code intended for use by others, as there is no +way for downstream users to change the choice of fatal categories. +.PP +In the code below, the use of \f(CW\*(C`time\*(C'\fR, \f(CW\*(C`length\*(C'\fR +and \f(CW\*(C`join\*(C'\fR can all produce a \f(CW"Useless use of xxx in void context"\fR +warning. +.PP +.Vb 1 +\& use warnings; +\& +\& time; +\& +\& { +\& use warnings FATAL => qw(void); +\& length "abc"; +\& } +\& +\& join "", 1,2,3; +\& +\& print "done\en"; +.Ve +.PP +When run it produces this output +.PP +.Vb 2 +\& Useless use of time in void context at fatal line 3. +\& Useless use of length in void context at fatal line 7. +.Ve +.PP +The scope where \f(CW\*(C`length\*(C'\fR is used has escalated the \f(CW\*(C`void\*(C'\fR warnings +category into a fatal error, so the program terminates immediately when it +encounters the warning. +.PP +To explicitly turn off a \*(L"\s-1FATAL\*(R"\s0 warning you just disable the warning +it is associated with. So, for example, to disable the \*(L"void\*(R" warning +in the example above, either of these will do the trick: +.PP +.Vb 2 +\& no warnings qw(void); +\& no warnings FATAL => qw(void); +.Ve +.PP +If you want to downgrade a warning that has been escalated into a fatal +error back to a normal warning, you can use the \*(L"\s-1NONFATAL\*(R"\s0 keyword. For +example, the code below will promote all warnings into fatal errors, +except for those in the \*(L"syntax\*(R" category. +.PP +.Vb 1 +\& use warnings FATAL => \*(Aqall\*(Aq, NONFATAL => \*(Aqsyntax\*(Aq; +.Ve +.PP +As of Perl 5.20, instead of \f(CW\*(C`use warnings FATAL => \*(Aqall\*(Aq;\*(C'\fR you can +use: +.PP +.Vb 2 +\& use v5.20; # Perl 5.20 or greater is required for the following +\& use warnings \*(AqFATAL\*(Aq; # short form of "use warnings FATAL => \*(Aqall\*(Aq;" +.Ve +.PP +If you want your program to be compatible with versions of Perl before +5.20, you must use \f(CW\*(C`use warnings FATAL => \*(Aqall\*(Aq;\*(C'\fR instead. (In +previous versions of Perl, the behavior of the statements +\&\f(CW\*(C`use warnings \*(AqFATAL\*(Aq;\*(C'\fR, \f(CW\*(C`use warnings \*(AqNONFATAL\*(Aq;\*(C'\fR and +\&\f(CW\*(C`no warnings \*(AqFATAL\*(Aq;\*(C'\fR was unspecified; they did not behave as if +they included the \f(CW\*(C`=> \*(Aqall\*(Aq\*(C'\fR portion. As of 5.20, they do.) +.SS "Reporting Warnings from a Module" +.IX Xref "warning, reporting warning, registering" +.IX Subsection "Reporting Warnings from a Module" +The \f(CW\*(C`warnings\*(C'\fR pragma provides a number of functions that are useful for +module authors. These are used when you want to report a module-specific +warning to a calling module has enabled warnings via the \f(CW\*(C`warnings\*(C'\fR +pragma. +.PP +Consider the module \f(CW\*(C`MyMod::Abc\*(C'\fR below. +.PP +.Vb 1 +\& package MyMod::Abc; +\& +\& use warnings::register; +\& +\& sub open { +\& my $path = shift; +\& if ($path !~ m#^/#) { +\& warnings::warn("changing relative path to /var/abc") +\& if warnings::enabled(); +\& $path = "/var/abc/$path"; +\& } +\& } +\& +\& 1; +.Ve +.PP +The call to \f(CW\*(C`warnings::register\*(C'\fR will create a new warnings category +called \*(L"MyMod::Abc\*(R", i.e. the new category name matches the current +package name. The \f(CW\*(C`open\*(C'\fR function in the module will display a warning +message if it gets given a relative path as a parameter. This warnings +will only be displayed if the code that uses \f(CW\*(C`MyMod::Abc\*(C'\fR has actually +enabled them with the \f(CW\*(C`warnings\*(C'\fR pragma like below. +.PP +.Vb 4 +\& use MyMod::Abc; +\& use warnings \*(AqMyMod::Abc\*(Aq; +\& ... +\& abc::open("../fred.txt"); +.Ve +.PP +It is also possible to test whether the pre-defined warnings categories are +set in the calling module with the \f(CW\*(C`warnings::enabled\*(C'\fR function. Consider +this snippet of code: +.PP +.Vb 1 +\& package MyMod::Abc; +\& +\& sub open { +\& if (warnings::enabled("deprecated")) { +\& warnings::warn("deprecated", +\& "open is deprecated, use new instead"); +\& } +\& new(@_); +\& } +\& +\& sub new +\& ... +\& 1; +.Ve +.PP +The function \f(CW\*(C`open\*(C'\fR has been deprecated, so code has been included to +display a warning message whenever the calling module has (at least) the +\&\*(L"deprecated\*(R" warnings category enabled. Something like this, say. +.PP +.Vb 4 +\& use warnings \*(Aqdeprecated\*(Aq; +\& use MyMod::Abc; +\& ... +\& MyMod::Abc::open($filename); +.Ve +.PP +Either the \f(CW\*(C`warnings::warn\*(C'\fR or \f(CW\*(C`warnings::warnif\*(C'\fR function should be +used to actually display the warnings message. This is because they can +make use of the feature that allows warnings to be escalated into fatal +errors. So in this case +.PP +.Vb 4 +\& use MyMod::Abc; +\& use warnings FATAL => \*(AqMyMod::Abc\*(Aq; +\& ... +\& MyMod::Abc::open(\*(Aq../fred.txt\*(Aq); +.Ve +.PP +the \f(CW\*(C`warnings::warnif\*(C'\fR function will detect this and die after +displaying the warning message. +.PP +The three warnings functions, \f(CW\*(C`warnings::warn\*(C'\fR, \f(CW\*(C`warnings::warnif\*(C'\fR +and \f(CW\*(C`warnings::enabled\*(C'\fR can optionally take an object reference in place +of a category name. In this case the functions will use the class name +of the object as the warnings category. +.PP +Consider this example: +.PP +.Vb 1 +\& package Original; +\& +\& no warnings; +\& use warnings::register; +\& +\& sub new +\& { +\& my $class = shift; +\& bless [], $class; +\& } +\& +\& sub check +\& { +\& my $self = shift; +\& my $value = shift; +\& +\& if ($value % 2 && warnings::enabled($self)) +\& { warnings::warn($self, "Odd numbers are unsafe") } +\& } +\& +\& sub doit +\& { +\& my $self = shift; +\& my $value = shift; +\& $self\->check($value); +\& # ... +\& } +\& +\& 1; +\& +\& package Derived; +\& +\& use warnings::register; +\& use Original; +\& our @ISA = qw( Original ); +\& sub new +\& { +\& my $class = shift; +\& bless [], $class; +\& } +\& +\& +\& 1; +.Ve +.PP +The code below makes use of both modules, but it only enables warnings from +\&\f(CW\*(C`Derived\*(C'\fR. +.PP +.Vb 7 +\& use Original; +\& use Derived; +\& use warnings \*(AqDerived\*(Aq; +\& my $a = Original\->new(); +\& $a\->doit(1); +\& my $b = Derived\->new(); +\& $a\->doit(1); +.Ve +.PP +When this code is run only the \f(CW\*(C`Derived\*(C'\fR object, \f(CW$b\fR, will generate +a warning. +.PP +.Vb 1 +\& Odd numbers are unsafe at main.pl line 7 +.Ve +.PP +Notice also that the warning is reported at the line where the object is first +used. +.PP +When registering new categories of warning, you can supply more names to +warnings::register like this: +.PP +.Vb 2 +\& package MyModule; +\& use warnings::register qw(format precision); +\& +\& ... +\& +\& warnings::warnif(\*(AqMyModule::format\*(Aq, \*(Aq...\*(Aq); +.Ve +.SH "FUNCTIONS" +.IX Header "FUNCTIONS" +Note: The functions with names ending in \f(CW\*(C`_at_level\*(C'\fR were added in Perl +5.28. +.IP "use warnings::register" 4 +.IX Item "use warnings::register" +Creates a new warnings category with the same name as the package where +the call to the pragma is used. +.IP "\fBwarnings::enabled()\fR" 4 +.IX Item "warnings::enabled()" +Use the warnings category with the same name as the current package. +.Sp +Return \s-1TRUE\s0 if that warnings category is enabled in the calling module. +Otherwise returns \s-1FALSE.\s0 +.IP "warnings::enabled($category)" 4 +.IX Item "warnings::enabled($category)" +Return \s-1TRUE\s0 if the warnings category, \f(CW$category\fR, is enabled in the +calling module. +Otherwise returns \s-1FALSE.\s0 +.IP "warnings::enabled($object)" 4 +.IX Item "warnings::enabled($object)" +Use the name of the class for the object reference, \f(CW$object\fR, as the +warnings category. +.Sp +Return \s-1TRUE\s0 if that warnings category is enabled in the first scope +where the object is used. +Otherwise returns \s-1FALSE.\s0 +.ie n .IP "warnings::enabled_at_level($category, $level)" 4 +.el .IP "warnings::enabled_at_level($category, \f(CW$level\fR)" 4 +.IX Item "warnings::enabled_at_level($category, $level)" +Like \f(CW\*(C`warnings::enabled\*(C'\fR, but \f(CW$level\fR specifies the exact call frame, 0 +being the immediate caller. +.IP "\fBwarnings::fatal_enabled()\fR" 4 +.IX Item "warnings::fatal_enabled()" +Return \s-1TRUE\s0 if the warnings category with the same name as the current +package has been set to \s-1FATAL\s0 in the calling module. +Otherwise returns \s-1FALSE.\s0 +.IP "warnings::fatal_enabled($category)" 4 +.IX Item "warnings::fatal_enabled($category)" +Return \s-1TRUE\s0 if the warnings category \f(CW$category\fR has been set to \s-1FATAL\s0 in +the calling module. +Otherwise returns \s-1FALSE.\s0 +.IP "warnings::fatal_enabled($object)" 4 +.IX Item "warnings::fatal_enabled($object)" +Use the name of the class for the object reference, \f(CW$object\fR, as the +warnings category. +.Sp +Return \s-1TRUE\s0 if that warnings category has been set to \s-1FATAL\s0 in the first +scope where the object is used. +Otherwise returns \s-1FALSE.\s0 +.ie n .IP "warnings::fatal_enabled_at_level($category, $level)" 4 +.el .IP "warnings::fatal_enabled_at_level($category, \f(CW$level\fR)" 4 +.IX Item "warnings::fatal_enabled_at_level($category, $level)" +Like \f(CW\*(C`warnings::fatal_enabled\*(C'\fR, but \f(CW$level\fR specifies the exact call frame, +0 being the immediate caller. +.IP "warnings::warn($message)" 4 +.IX Item "warnings::warn($message)" +Print \f(CW$message\fR to \s-1STDERR.\s0 +.Sp +Use the warnings category with the same name as the current package. +.Sp +If that warnings category has been set to \*(L"\s-1FATAL\*(R"\s0 in the calling module +then die. Otherwise return. +.ie n .IP "warnings::warn($category, $message)" 4 +.el .IP "warnings::warn($category, \f(CW$message\fR)" 4 +.IX Item "warnings::warn($category, $message)" +Print \f(CW$message\fR to \s-1STDERR.\s0 +.Sp +If the warnings category, \f(CW$category\fR, has been set to \*(L"\s-1FATAL\*(R"\s0 in the +calling module then die. Otherwise return. +.ie n .IP "warnings::warn($object, $message)" 4 +.el .IP "warnings::warn($object, \f(CW$message\fR)" 4 +.IX Item "warnings::warn($object, $message)" +Print \f(CW$message\fR to \s-1STDERR.\s0 +.Sp +Use the name of the class for the object reference, \f(CW$object\fR, as the +warnings category. +.Sp +If that warnings category has been set to \*(L"\s-1FATAL\*(R"\s0 in the scope where \f(CW$object\fR +is first used then die. Otherwise return. +.ie n .IP "warnings::warn_at_level($category, $level, $message)" 4 +.el .IP "warnings::warn_at_level($category, \f(CW$level\fR, \f(CW$message\fR)" 4 +.IX Item "warnings::warn_at_level($category, $level, $message)" +Like \f(CW\*(C`warnings::warn\*(C'\fR, but \f(CW$level\fR specifies the exact call frame, +0 being the immediate caller. +.IP "warnings::warnif($message)" 4 +.IX Item "warnings::warnif($message)" +Equivalent to: +.Sp +.Vb 2 +\& if (warnings::enabled()) +\& { warnings::warn($message) } +.Ve +.ie n .IP "warnings::warnif($category, $message)" 4 +.el .IP "warnings::warnif($category, \f(CW$message\fR)" 4 +.IX Item "warnings::warnif($category, $message)" +Equivalent to: +.Sp +.Vb 2 +\& if (warnings::enabled($category)) +\& { warnings::warn($category, $message) } +.Ve +.ie n .IP "warnings::warnif($object, $message)" 4 +.el .IP "warnings::warnif($object, \f(CW$message\fR)" 4 +.IX Item "warnings::warnif($object, $message)" +Equivalent to: +.Sp +.Vb 2 +\& if (warnings::enabled($object)) +\& { warnings::warn($object, $message) } +.Ve +.ie n .IP "warnings::warnif_at_level($category, $level, $message)" 4 +.el .IP "warnings::warnif_at_level($category, \f(CW$level\fR, \f(CW$message\fR)" 4 +.IX Item "warnings::warnif_at_level($category, $level, $message)" +Like \f(CW\*(C`warnings::warnif\*(C'\fR, but \f(CW$level\fR specifies the exact call frame, +0 being the immediate caller. +.IP "warnings::register_categories(@names)" 4 +.IX Item "warnings::register_categories(@names)" +This registers warning categories for the given names and is primarily for +use by the warnings::register pragma. +.PP +See also \*(L"Pragmatic Modules\*(R" in perlmodlib and perldiag. diff --git a/data/miniconda3/share/ImageMagick-7/english.xml b/data/miniconda3/share/ImageMagick-7/english.xml new file mode 100644 index 0000000000000000000000000000000000000000..274bf0c6582225091d65a3b3b0b4a8debee2af2c --- /dev/null +++ b/data/miniconda3/share/ImageMagick-7/english.xml @@ -0,0 +1,1720 @@ + + + + + + + + + +]> + + + + + + unable to open image + + + unable to open file + + + unable to read blob + + + unable to write blob + + + unrecognized image format + + + zero-length blob not permitted + + + + + + + cache resources exhausted + + + incompatible API + + + no pixels defined in cache + + + pixel cache is not open + + + pixels are not authentic + + + unable to clone cache + + + unable to extend cache + + + unable to get cache nexus + + + unable to open pixel cache + + + unable to persist pixel cache + + + unable to read pixel cache + + + unable to write pixel cache + + + + + unable to acquire cache view + + + unable to extend pixel cache + + + + + + + colormap type not supported + + + colorspace model is not supported + + + compression not supported + + + data encoding scheme is not supported + + + data storage type is not supported + + + delta-PNG is not supported + + + encrypted WPG image file not supported + + + fractal compression not supported + + + image column or row size is not supported + + + image does not have a clip mask + + + image does not have an alpha channel + + + image does not have an mask channel + + + image does not have a EXIF thumbnail + + + image is not tiled + + + irregular channel geometry not supported + + + JNG compression not supported + + + JPEG compression not supported + + + JPEG embedding failed + + + location type is not supported + + + map storage type is not supported + + + multi-dimensional matrices are not supported + + + multiple record list not supported + + + no bitmap on clipboard + + + no APP1 data is available + + + no 8BIM data is available + + + no color profile is available + + + no data returned + + + no image vector graphics; unable to generate SVG + + + no IPTC profile available + + + number of images is not supported + + + only continuous tone picture supported + + + only level zero files Supported + + + PNG compression not supported + + + RLE compression not supported + + + unable to copy profile + + + unable to create bitmap + + + unable to create a DC + + + unable to decompress image + + + unable to write MPEG parameters + + + unable to zip-compress image + + + ZIP compression not supported + + + + + exif profile size exceeds limit and will be truncated + + + lossless to lossy JPEG conversion + + + + + + + include element nested too deeply + + + + + unable to access configure file + + + unable to open module file + + + + + + + + an error has occurred reading from file + + + an error has occurred writing to file + + + cipher support not enabled + + + colormap exceeded 256 colors + + + corrupt image + + + file format version mismatch + + + image depth not supported + + + image file does not contain any image data + + + image type not supported + + + improper image header + + + insufficient image data in file + + + invalid colormap index + + + invalid pixel + + + length and filesize do not match + + + maximum channels exceeded + + + missing image channel + + + negative or zero image size + + + non OS2 BMP header size less than 40 + + + not enough pixel data + + + not enough tiles found in level + + + too much image data in file + + + static planes value not equal to 1 + + + unable to read extension block + + + unable to read image header + + + unable to read image data + + + unable to runlength decode image + + + unable to uncompress image + + + unexpected end-of-file + + + unexpected sampling factor + + + unknown pattern type + + + unrecognized alpha channel option + + + unrecognized compression + + + unrecognized number of colors + + + unsupported bits per pixel + + + + + unable to persist key + + + + + insufficient image data in file + + + length and filesize do not match + + + corrupt PCD image, skipping to sync byte + + + + + + + + delegate failed + + + failed to compute output size + + + failed to render file + + + failed to scan file + + + no tag found + + + PCL delegate failed + + + Postscript delegate failed + + + unable to create image + + + unable to decode image file + + + unable to encode image file + + + unable to initialize FPX library + + + unable to initialize WMF library + + + unable to manage JP2 stream + + + unable to read aspect ratio + + + unable to read summary info + + + unable to set affine matrix + + + unable to set aspect ratio + + + unable to set color twist + + + unable to set contrast + + + unable to set filtering value + + + unable to set image title + + + unable to set JPEG level + + + unable to set region of interest + + + unable to set summary info + + + unable to write SVG format + + + XPS delegate failed + + + + + + + already pushing pattern definition + + + non-conforming drawing primitive definition + + + not a relative URL + + + not currently pushing pattern definition + + + segment stack overflow + + + too many bezier coordinates + + + unable to print + + + unbalanced graphic context push-pop + + + URL not found + + + vector graphics nested too deeply + + + + + + + + an error has occurred reading from file + + + unable to create temporary file + + + unable to open file + + + unable to write file + + + + + + + + angle is discontinuous + + + colormapped image required + + + color separated image required + + + color profile operates on another colorspace + + + image depth not supported + + + image sequence is required + + + image morphology differs + + + image list is required + + + image size differs + + + images too dissimilar + + + left and right image sizes differ + + + negative or zero image size + + + no images were found + + + no images were loaded + + + too many cluster + + + unable to create color transform + + + width or height exceeds limit + + + + + associate profile with image, a source and destination color profile required for transform + + + unable to transform colorspace + + + + + + + filter failed + + + + + + + + delegate library support not built-in + + + no decode delegate for this image format + + + no encode delegate for this image format + + + + + delegate library support not built-in + + + FreeType library is not available + + + LCMS color profile library is not available + + + no encode delegate for this image format + + + + + + + + image coder signature mismatch + + + image filter signature mismatch + + + unable to load module + + + unable to register image format + + + + + unable to initialize module loader + + + + + unable to close module + + + + + + + + attempt to perform an operation not allowed by the security policy + + + + + + + unable to get registry ID + + + unable to set registry + + + + + + + + list length exceeds limit + + + memory allocation failed + + + pixel cache allocation failed + + + too many exceptions + + + too many objects + + + unable to acquire string + + + unable to allocate colormap + + + unable to convert font + + + unable to create colormap + + + unable to dither image + + + unable to clone package info + + + unable to get package info + + + + + time limit exceeded + + + unable to allocate dash pattern + + + unable to allocate derivates + + + unable to allocate gamma map + + + unable to allocate image + + + unable to allocate image pixels + + + unable to destroy semaphore + + + unable to instantiate semaphore + + + unable to allocate string + + + Memory allocation failed + + + unable to concatenate string + + + unable to convert text + + + unable to create colormap + + + unable to clone image + + + unable to display image + + + unable to escape string + + + unable to interpret MSL image + + + unable to lock semaphore + + + unable to unlock semaphore + + + + + memory allocation failed + + + + + + + + font substitution required + + + unable to get type metrics + + + unable to initialize freetype library + + + unable to read font + + + unrecognized font encoding + + + + + unable to read font + + + + + + + image does not contain the stream geometry + + + no stream handler is defined + + + pixel cache is not open + + + + + + + invalid colormap index + + + zero region size + + + unable to open file + + + wand quantum depth does not match that of the core API + + + wand contains no images + + + wand contains no iterators + + + + + + + color is not known to server + + + no window with specified ID exists + + + standard Colormap is not initialized + + + unable to connect to remote display + + + unable to create bitmap + + + unable to create colormap + + + unable to create pixmap + + + unable to create property + + + unable to create standard colormap + + + unable to display image info + + + unable to get property + + + unable to get Standard Colormap + + + unable to get visual + + + unable to grab mouse + + + unable to load font + + + unable to match visual to Standard Colormap + + + unable to open X server + + + unable to read X window attributes + + + unable to read X window image + + + unrecognized colormap type + + + unrecognized gravity type + + + unrecognized visual specifier + + + + + unable to create X cursor + + + unable to create graphic context + + + unable to create standard colormap + + + unable to create text property + + + unable to create X window + + + unable to create X image + + + unable to create X pixmap + + + unable to display image + + + unable to get visual + + + unable to get pixel info + + + unable to load font + + + unable to make X window + + + unable to open X server + + + unable to view fonts + + + + + using default visual + + + unable to get visual + + + + + + + + add noise to image + + + + + append image sequence + + + + + assign image colors + + + + + average image sequence + + + + + blur image + + + + + chop image + + + + + classify image colors + + + + + replace color in image + + + + + colorize image + + + + + combine image + + + + + contrast-stretch image + + + + + convolve image + + + + + crop image + + + + + decode image + + + + + despeckle image + + + + + distort image + + + + + dither image colors + + + + + dull image contrast + + + + + encode image + + + + + equalize image + + + + + flip image + + + + + flop image + + + + + add frame to image + + + + + fx image + + + + + gamma correct image + + + + + compute image histogram + + + + + implode image + + + + + level image + + + + + load image + + + load images + + + + + magnify image + + + + + filter image with neighborhood ranking + + + + + minify image + + + + + modulate image + + + + + mogrify image + + + + + montage image + + + + + morph image sequence + + + + + mosaic image + + + + + negate image + + + + + oil paint image + + + + + set opaque color in image + + + + + plasma image + + + + + preview image + + + + + raise image + + + + + recolor color image + + + + + reduce image colors + + + + + reduce the image noise + + + + + render image + + + + + resize image + + + + + RGB transform image + + + + + roll image + + + + + rotate image + + + + + sample image + + + + + save image + + + save images + + + + + scale image + + + + + segment image + + + + + extract a channel from image + + + + + sepia-tone image + + + + + shade image + + + + + sharpen image + + + + + sharpen image contrast + + + + + sigmoidal contrast image + + + + + solarize image + + + + + splice image + + + + + spread image + + + + + stegano image + + + + + stereo image + + + + + swirl image + + + + + texture image + + + + + threshold image + + + + + tile image + + + + + tint image + + + + + transform RGB image + + + + + set transparent color in image + + + + + wave image + + + + + write image + + + + + x shear image + + + + + y shear image + + + + diff --git a/data/miniconda3/share/ImageMagick-7/francais.xml b/data/miniconda3/share/ImageMagick-7/francais.xml new file mode 100644 index 0000000000000000000000000000000000000000..cd0fa0ad2145360709e140cca14435b5f6d9911c --- /dev/null +++ b/data/miniconda3/share/ImageMagick-7/francais.xml @@ -0,0 +1,1699 @@ + + + + + + + + + +]> + + + + + + impossible d'ouvrir l'image + + + impossible d'ouvrir le fichier + + + impossible de lire un blob + + + impossible d'écrire un blob + + + format d'image non reconnu + + + blob de taille nulle non autorisé + + + + + + + Ressources du cache épuisées + + + incompatible API + + + pas de pixels définis dans le cache + + + cache pixels non ouvert + + + pixels are not authentic + + + impossible de clôner le cache + + + impossible d'étendre le cache + + + impossible de récupérer le nexus du cache + + + impossible d'ouvrir le cache pixels + + + impossible de rendre persistant le cache pixels + + + impossible de lire le cache pixels + + + impossible d'écrire le cache pixels + + + + + échec allocation cache view + + + impossible extend le cache pixels + + + + + + + table de couleurs non supportée + + + espace colorimétrique non supporté + + + schéma d'encodage de données non supporté + + + type de stockage de données non supporté + + + delta-PNG non supporté + + + image WPG encryptée non supportée + + + compression Fractal non supportée + + + nombre de lignes ou de colonnes dans l'image non supporté + + + image sans masque de coupe + + + image sans vignette EXIF + + + l'image n'a pas de canal de transparence + + + image sans masque de canal + + + l'image n'a pas tiled + + + irregular channel geometry not supported + + + compression JNG non supportée + + + compression JPEG non supportée + + + Échec incorporation JPEG + + + Type d'emplacement non supporté + + + Map storage type is not supported + + + Matrices multi-dimensionnelles non supportées + + + Liste à enregistrements multiples non supportée + + + pas de bitmap dans le presse-papier + + + pas de données APP1 disponibles + + + pas de données 8BIM disponibles + + + pas de profil colorimétrique disponible + + + aucune donnée fournie + + + aucune image définie + + + pas d'image en graphique vectoriel; unable to generate SVG + + + pas de profil IPTC disponible + + + nombre d'images non supporté + + + seules les images à tons continus sont supportées + + + seuls les fichiers de niveau zéro sont supportés + + + compression PNG non supportée + + + compression RLE non supportée + + + impossible de copier le profil + + + impossible de créer la bitmap + + + impossible de créer un DC + + + impossible de décompresser l'image + + + impossible d'écrire les paramètres MPEG + + + impossible de compresser l'image en zip + + + Fichier image RLE non supporté + + + compression ZIP non supportée + + + + + Conversion JPEG sans perte vers JPEG avec perte + + + + + + + trop de niveau d'inclusion d'éléments + + + + + impossible d'accéder au fichier de configuration + + + impossible d'ouvrir le fichier de module + + + + + + + + Une erreur est survenue lors de la lecture du fichier + + + Une erreur est survenue lors de l'écriture dans un fichier + + + cipher support not enabled + + + Table de couleurs a plus que 256 couleurs + + + Image corrompue + + + erreur sur la version du format de fichier + + + profondeur d'image non supportée + + + le fichier image ne contient pas de données d'image + + + type d'image non supporté + + + En-tête d'image incorrect + + + Pas assez de données d'image dans le fichier + + + Index dans la table de couleurs invalide + + + Pixel invalide + + + Longueur et taille du fichier ne correspondent pas + + + maximum de canals dépassent les + + + absence l'image canel + + + Taille d'image négative ou nulle + + + Taille en-tête BMP non-OS2 plus petite que 40 + + + Pas assez de données pixel + + + Pas assez de tuiles trouvées à ce niveau + + + Trop de données d'image dans le fichier + + + Valeur statique des plans différente de 1 + + + impossible de lire le bloc d'extension + + + impossible de lire l'en-tête de l'image + + + impossible de lire les données de l'image + + + impossible de décoder l'image avec « runlength » + + + impossible de décompresser l'image + + + fin de fichier inattendue + + + facteur d'échantillonnage inattendu + + + type de motif inconnu + + + alpha de canal l'option non reconnus + + + compression non reconnue + + + nombre de couleurs non reconnu + + + bits par pixel non supporté + + + + + impossible de rendre la clé persistante + + + + + pas assez de données d'image dans le fichier + + + Longueur et taille du fichier ne correspondent pas + + + Image PCD corrompue, saut à l'octet de synchronisation + + + + + + + + Échec de la délégation + + + Impossible de calculer la taille en sortie + + + Impossible de générer le fichier + + + Impossible de lire le fichier + + + pas de balise trouvée + + + Échec délégation PCL + + + Échec délégation Postscript + + + impossible de créer l'image + + + impossible de décoder le fichier d'image + + + impossible d'encoder le fichier d'image + + + impossible d'initialiser la librairie FPX + + + impossible d'initialiser la librairie WMF + + + impossible de gérer un flux JP2 + + + impossible de lire le ratio d'aspect + + + impossible de lire le résumé des informations + + + impossible de fixer la matrice affine + + + impossible de fixer le ratio d'aspect + + + impossible de fixer la torsion de couleur + + + impossible de fixer le contraste + + + impossible de fixer la valeur du filtre + + + impossible de fixer le titre de l'image + + + impossible de fixer le niveau JPEG + + + impossible de fixer la zone d'intérêt + + + impossible de fixer le résumé des informations + + + impossible d'écrire au format SVG + + + Échec délégation XPS + + + + + + + Définition de motif déjà fixée + + + Définition de primitive de dessin non conforme + + + URL non relative + + + Actuellement pas de définition de motif + + + Débordement pile de segments + + + Trop de coordonnées bézier + + + impossible d'imprimer + + + erreur d'imbrication des contextes graphiques + + + URL inaccessible + + + trop d'imbrication de vector graphiques + + + + + + + + an error has occurred reading from file + + + impossible de créer un fichier temporaire + + + impossible d'ouvrir le fichier + + + impossible d'enregistrer le fichier + + + + + + + + filter failed + + + + + + + angle discontinu + + + Image avec table de couleurs requise + + + Image avec couleurs séparées requise + + + Le profil colorimétrique ne peut fonctionner que dans un autre espace colorimétrique + + + différences dans les espaces colorimétriques de l'image + + + profondeur d'image non supportée + + + différences dans la morphology de l'image + + + une liste d'images est requise + + + une séquence d'images est requise + + + différences dans la taille de l'image + + + images too dissimilar + + + différences dans les tailles des images gauche et droite + + + Taille d'image négative ou nulle + + + aucune image trouvée + + + aucune image chargée + + + trop de grappes + + + impossible de créer la transformation de couleurs + + + Largeur ou hauteur dépassent les limites + + + + + associate profile with image, a source and destination color profile required for transform + + + impossible de colorimétrique la transformation + + + + + + + + delegate library support not built-in + + + pas de délégué pour décoder ce format d'image + + + pas de délégué pour encoder ce format d'image + + + + + delegate library support not built-in + + + pas de délégué pour encoder ce format d'image + + + + + + + + image coder signature mismatch + + + image filter signature mismatch + + + impossible de charger le module + + + impossible d'enregister le format d'image + + + + + impossible d'initialiser le chargeur de module + + + + + impossible de fermer le module + + + + + + + + attempt to perform an operation not allowed by the security policy + + + + + + + impossible de trouver l'identifiant de registre + + + impossible de fixer le registre + + + + + + + + list length exceeds limit + + + Échec allocation mémoire + + + Échec allocation du cache pixel + + + too many exceptions + + + too many objects + + + échec acquisition de la chaine + + + échec allocation table de couleurs + + + échec conversion police de caractères + + + échec création table de couleurs + + + échec tramage de l'image + + + impossible de cloner les informations du paquet + + + impossible de récupérer les informations du paquet + + + + + time limit exceeded + + + impossible d'allouer le motif de traits + + + échec d'allocation des dérivées + + + échec allocation table gamma + + + échec allocation image + + + échec allocation pixels de l'image + + + échec allocation informations sémaphore + + + échec allocation chaine + + + Échec allocation mémoire + + + impossible de concatener la chaine + + + impossible de convertir le texte + + + impossible de créer la table de couleurs + + + impossible de cloner l'image + + + impossible d'afficher l'image + + + impossible de rendre la chaine compatible + + + impossible d'interpréter l'image MSL + + + + + échec allocation mémoire + + + + + + + + substitution de police de caractères nécessaire + + + impossible de déterminer le type de métriques + + + impossible d'initialiser la librairie freetype + + + impossible de lire la police de caractères + + + encodage de la police de caractères non reconnu + + + + + impossible de lire la police de caractères + + + + + + + l'image de contient pas la géométrie du flux + + + pas de gestionnaire de flux défini + + + Cache pixel non ouvert + + + + + + + index invalide dans la table de couleurs + + + région de taille nulle + + + impossible d'ouvrir le fichier + + + la profondeur du quantum pour Wand ne correspond pas à celle de l'API principale + + + Pas d'images pour Wand + + + Pas d'itérateur pour Wand + + + + + + + couleur inconnue du serveur + + + aucune fenêtre avec l'ID spécifié + + + la table de couleurs standard n'est pas initialisée + + + impossible de se connecter au display distant + + + impossible de créer la bitmap + + + impossible de créer la table de couleurs + + + impossible de créer la pixmap + + + impossible de créer la propriété + + + impossible de créer la table de couleurs standard + + + impossible d'afficher les informations de l'image + + + impossible de récupérer la propriété + + + impossible de récupérer la table de couleurs standard + + + impossible de récupérer le visuel + + + unable to grab mouse + + + impossible de charger la police de caractères + + + impossible d'établir la correspondance entre le visuel et la table de couleurs standard + + + impossible de se connecter au serveur X + + + impossible de lire les attributs de la fenêtre X + + + impossible de lire l'image de la fenêtre X + + + type de table de couleurs non reconnnu + + + type de gravité non reconnu + + + spécification de visuel non reconnue + + + + + impossible de créer le curseur X + + + impossible de créer le contexte graphique + + + impossible de créer la table de couleurs standard + + + impossible de créer le propriété texte + + + impossible de créer la fenêtre X + + + impossible de créer l'image X + + + impossible de créer la pixmap X + + + impossible d'afficher l'image + + + impossible de récupérer le visuel + + + impossible de récupérer les informations de pixel + + + impossible de charger la police de caractères + + + impossible de créer la fenêtre X + + + impossible de se connecter au serveur X + + + impossible d'afficher les polices de caractères + + + + + utilisation du visuel par défaut + + + impossible de récupérer le visuel + + + + + + + + Ajouter du bruit à l'image + + + + + Ajouter à la séquence d'images + + + + + Affecter les couleurs de l'image + + + + + Moyenner la séquence d'images + + + + + Blur de l'image + + + + + Cisailler l'image + + + + + Classifier les couleurs de l'image + + + + + Remplacer une couleur dans l'image + + + + + Coloriser l'image + + + + + Combiner l'image + + + + + Contrast-stretch l'image + + + + + Convolution de l'image + + + + + Couper une zone rectangulaire de l'image + + + + + Décoder l'image + + + + + Flou intérieur de l'image + + + + + Distortion de l'image + + + + + Tramer les couleurs de l'image + + + + + Réduire le brillant du contraste de l'image + + + + + encode l'image + + + + + Egaliser l'image + + + + + Réflection verticale de l'image + + + + + Réflection horizontale de l'image + + + + + Ajouter un cadre à l'image + + + + + Appliquer une expression mathématique à l'image + + + + + Correction gamma de l'image + + + + + Calculer l'histogramme de l'image + + + + + Condenser les pixels de l'image autour du centre + + + + + Ajuster le niveau de contraste de l'image + + + + + Charger l'image + + + Charger les images + + + + + Magnfiy image + + + + + Filter image with neighborhood ranking + + + + + Minify image + + + + + Modulate image + + + + + Mogrify image + + + + + Montage image + + + + + Morphing de la séquence d'images + + + + + Mosaic image + + + + + Negate image + + + + + Effet peinture à l'huile pour l'image + + + + + Fixer la couleur opage dans l'image + + + + + Plasma image + + + + + Aperçu de l'image + + + + + Raise image + + + + + Re-coloriser une image couleur + + + + + Réduire le nombre de couleurs de l'image + + + + + Réduire le bruit de l'image + + + + + Render image + + + + + Redimensionner l'image + + + + + Transformation RVB de l'image + + + + + Roll image + + + + + Rotation de l'image + + + + + Sample image + + + + + Enregistrer l'image + + + Enregistrer les images + + + + + Échelle de l'image + + + + + Segmenter l'image + + + + + Extraire un canal de l'image + + + + + Effet ton sépia pour l'image + + + + + Ombrer l'image + + + + + Augmenter la netteté de l'image + + + + + Augmenter la netteté du contraste de l'image + + + + + Sigmoidal contrast image + + + + + Effet solariation pour l'image + + + + + Splice image + + + + + Spread image + + + + + Effet stégano pour l'image + + + + + Effet stéréo pour l'image + + + + + Swirl image + + + + + Texturer l'image + + + + + Appliquer un seuil à l'image + + + + + Effet tuiles pour l'image + + + + + Tint image + + + + + Transformation RVB de l'image + + + + + Choisir la couleur transparente dans l'image + + + + + Effet vagues pour l'image + + + + + write image + + + + + X Shear image + + + + + Y Shear image + + + + diff --git a/data/miniconda3/share/ImageMagick-7/locale.xml b/data/miniconda3/share/ImageMagick-7/locale.xml new file mode 100644 index 0000000000000000000000000000000000000000..d593fba351f86c86be0fe083be10543ab6fd4d27 --- /dev/null +++ b/data/miniconda3/share/ImageMagick-7/locale.xml @@ -0,0 +1,48 @@ + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/miniconda3/share/X11/XErrorDB b/data/miniconda3/share/X11/XErrorDB new file mode 100644 index 0000000000000000000000000000000000000000..7b6d4651382d3aeb45404c8673f7f5e532fc41e3 --- /dev/null +++ b/data/miniconda3/share/X11/XErrorDB @@ -0,0 +1,1022 @@ +! +! Copyright 1993, 1995, 1998 The Open Group + +! Permission to use, copy, modify, distribute, and sell this software and its +! documentation for any purpose is hereby granted without fee, provided that +! the above copyright notice appear in all copies and that both that +! copyright notice and this permission notice appear in supporting +! documentation. +! +! The above copyright notice and this permission notice shall be +! included in all copies or substantial portions of the Software. +! +! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +! EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +! IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR +! OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +! ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +! OTHER DEALINGS IN THE SOFTWARE. +! +! Except as contained in this notice, the name of The Open Group shall +! not be used in advertising or otherwise to promote the sale, use or +! other dealings in this Software without prior written authorization +! from The Open Group. +! +! +! these are used in XGetErrorMessage. +XlibMessage.XError: X Error of failed request +XlibMessage.MajorCode: Major opcode of failed request: %d +XlibMessage.MinorCode: Minor opcode of failed request: %d +XlibMessage.ResourceID: Resource id in failed request: 0x%lx +XlibMessage.Value: Value in failed request: 0x%lx +XlibMessage.AtomID: Atom id in failed request: 0x%lx +XlibMessage.ErrorSerial: Serial number of failed request: %lu +XlibMessage.CurrentSerial: Current serial number in output stream: %lu +! X request codes. +XRequest.1:X_CreateWindow +XRequest.2:X_ChangeWindowAttributes +XRequest.3:X_GetWindowAttributes +XRequest.4:X_DestroyWindow +XRequest.5:X_DestroySubwindows +XRequest.6:X_ChangeSaveSet +XRequest.7:X_ReparentWindow +XRequest.8:X_MapWindow +XRequest.9:X_MapSubwindows +XRequest.10:X_UnmapWindow +XRequest.11:X_UnmapSubwindows +XRequest.12:X_ConfigureWindow +XRequest.13:X_CirculateWindow +XRequest.14:X_GetGeometry +XRequest.15:X_QueryTree +XRequest.16:X_InternAtom +XRequest.17:X_GetAtomName +XRequest.18:X_ChangeProperty +XRequest.19:X_DeleteProperty +XRequest.20:X_GetProperty +XRequest.21:X_ListProperties +XRequest.22:X_SetSelectionOwner +XRequest.23:X_GetSelectionOwner +XRequest.24:X_ConvertSelection +XRequest.25:X_SendEvent +XRequest.26:X_GrabPointer +XRequest.27:X_UngrabPointer +XRequest.28:X_GrabButton +XRequest.29:X_UngrabButton +XRequest.30:X_ChangeActivePointerGrab +XRequest.31:X_GrabKeyboard +XRequest.32:X_UngrabKeyboard +XRequest.33:X_GrabKey +XRequest.34:X_UngrabKey +XRequest.35:X_AllowEvents +XRequest.36:X_GrabServer +XRequest.37:X_UngrabServer +XRequest.38:X_QueryPointer +XRequest.39:X_GetMotionEvents +XRequest.40:X_TranslateCoords +XRequest.41:X_WarpPointer +XRequest.42:X_SetInputFocus +XRequest.43:X_GetInputFocus +XRequest.44:X_QueryKeymap +XRequest.45:X_OpenFont +XRequest.46:X_CloseFont +XRequest.47:X_QueryFont +XRequest.48:X_QueryTextExtents +XRequest.49:X_ListFonts +XRequest.50:X_ListFontsWithInfo +XRequest.51:X_SetFontPath +XRequest.52:X_GetFontPath +XRequest.53:X_CreatePixmap +XRequest.54:X_FreePixmap +XRequest.55:X_CreateGC +XRequest.56:X_ChangeGC +XRequest.57:X_CopyGC +XRequest.58:X_SetDashes +XRequest.59:X_SetClipRectangles +XRequest.60:X_FreeGC +XRequest.61:X_ClearArea +XRequest.62:X_CopyArea +XRequest.63:X_CopyPlane +XRequest.64:X_PolyPoint +XRequest.65:X_PolyLine +XRequest.66:X_PolySegment +XRequest.67:X_PolyRectangle +XRequest.68:X_PolyArc +XRequest.69:X_FillPoly +XRequest.70:X_PolyFillRectangle +XRequest.71:X_PolyFillArc +XRequest.72:X_PutImage +XRequest.73:X_GetImage +XRequest.74:X_PolyText8 +XRequest.75:X_PolyText16 +XRequest.76:X_ImageText8 +XRequest.77:X_ImageText16 +XRequest.78:X_CreateColormap +XRequest.79:X_FreeColormap +XRequest.80:X_CopyColormapAndFree +XRequest.81:X_InstallColormap +XRequest.82:X_UninstallColormap +XRequest.83:X_ListInstalledColormaps +XRequest.84:X_AllocColor +XRequest.85:X_AllocNamedColor +XRequest.86:X_AllocColorCells +XRequest.87:X_AllocColorPlanes +XRequest.88:X_FreeColors +XRequest.89:X_StoreColors +XRequest.90:X_StoreNamedColor +XRequest.91:X_QueryColors +XRequest.92:X_LookupColor +XRequest.93:X_CreateCursor +XRequest.94:X_CreateGlyphCursor +XRequest.95:X_FreeCursor +XRequest.96:X_RecolorCursor +XRequest.97:X_QueryBestSize +XRequest.98:X_QueryExtension +XRequest.99:X_ListExtensions +XRequest.100:X_ChangeKeyboardMapping +XRequest.101:X_GetKeyboardMapping +XRequest.102:X_ChangeKeyboardControl +XRequest.103:X_GetKeyboardControl +XRequest.104:X_Bell +XRequest.105:X_ChangePointerControl +XRequest.106:X_GetPointerControl +XRequest.107:X_SetScreenSaver +XRequest.108:X_GetScreenSaver +XRequest.109:X_ChangeHosts +XRequest.110:X_ListHosts +XRequest.111:X_SetAccessControl +XRequest.112:X_SetCloseDownMode +XRequest.113:X_KillClient +XRequest.114:X_RotateProperties +XRequest.115:X_ForceScreenSaver +XRequest.116:X_SetPointerMapping +XRequest.117:X_GetPointerMapping +XRequest.118:X_SetModifierMapping +XRequest.119:X_GetModifierMapping +XRequest.127:X_NoOperation +! X Error Codes +XProtoError.0: unknown error code 0 +XProtoError.1: BadRequest (invalid request code or no such operation) +XProtoError.2: BadValue (integer parameter out of range for operation) +XProtoError.3: BadWindow (invalid Window parameter) +XProtoError.4: BadPixmap (invalid Pixmap parameter) +XProtoError.5: BadAtom (invalid Atom parameter) +XProtoError.6: BadCursor (invalid Cursor parameter) +XProtoError.7: BadFont (invalid Font parameter) +XProtoError.8: BadMatch (invalid parameter attributes) +XProtoError.9: BadDrawable (invalid Pixmap or Window parameter) +XProtoError.10: BadAccess (attempt to access private resource denied) +XProtoError.11: BadAlloc (insufficient resources for operation) +XProtoError.12: BadColor (invalid Colormap parameter) +XProtoError.13: BadGC (invalid GC parameter) +XProtoError.14: BadIDChoice (invalid resource ID chosen for this connection) +XProtoError.15: BadName (named color or font does not exist) +XProtoError.16: BadLength (poly request too large or internal Xlib length error) +XProtoError.17: BadImplementation (server does not implement operation) +! Multi-Buffering extension, not an X Consortium standard +XRequest.Multi-Buffering.0: X_MbufGetBufferVersion +XRequest.Multi-Buffering.1: X_MbufCreateImageBuffers +XRequest.Multi-Buffering.2: X_MbufDestroyImageBuffers +XRequest.Multi-Buffering.3: X_MbufDisplayImageBuffers +XRequest.Multi-Buffering.4: X_MbufSetMultiBufferAttributes +XRequest.Multi-Buffering.5: X_MbufGetMultiBufferAttributes +XRequest.Multi-Buffering.6: X_MbufSetBufferAttributes +XRequest.Multi-Buffering.7: X_MbufGetBufferAttributes +XRequest.Multi-Buffering.8: X_MbufGetBufferInfo +XRequest.Multi-Buffering.9: X_MbufCreateStereoWindow +XProtoError.Multi-Buffering.0: BadBuffer (invalid Buffer parameter) +XlibMessage.Multi-Buffering.0: Buffer id in failed request: 0x%lx +! SHAPE extension, an X Consortium standard +XRequest.SHAPE.0: X_ShapeQueryVersion +XRequest.SHAPE.1: X_ShapeRectangles +XRequest.SHAPE.2: X_ShapeMask +XRequest.SHAPE.3: X_ShapeCombine +XRequest.SHAPE.4: X_ShapeOffset +XRequest.SHAPE.5: X_ShapeQueryExtents +XRequest.SHAPE.6: X_ShapeSelectInput +XRequest.SHAPE.7: X_ShapeInputSelected +XRequest.SHAPE.8: X_ShapeGetRectangles +! Input extension, an X Consortium standard +XRequest.XInputExtension.1:X_GetExtensionVersion +XRequest.XInputExtension.2:X_ListInputDevices +XRequest.XInputExtension.3:X_OpenDevice +XRequest.XInputExtension.4:X_CloseDevice +XRequest.XInputExtension.5:X_SetDeviceMode +XRequest.XInputExtension.6:X_SelectExtensionEvent +XRequest.XInputExtension.7:X_GetSelectedExtensionEvents +XRequest.XInputExtension.8:X_ChangeDeviceDontPropagateList +XRequest.XInputExtension.9:X_GetDeviceDontPropagateList +XRequest.XInputExtension.10:X_GetDeviceMotionEvents +XRequest.XInputExtension.11:X_ChangeKeyboardDevice +XRequest.XInputExtension.12:X_ChangePointerDevice +XRequest.XInputExtension.13:X_GrabDevice +XRequest.XInputExtension.14:X_UngrabDevice +XRequest.XInputExtension.15:X_GrabDeviceKey +XRequest.XInputExtension.16:X_UngrabDeviceKey +XRequest.XInputExtension.17:X_GrabDeviceButton +XRequest.XInputExtension.18:X_UngrabDeviceButton +XRequest.XInputExtension.19:X_AllowDeviceEvents +XRequest.XInputExtension.20:X_GetDeviceFocus +XRequest.XInputExtension.21:X_SetDeviceFocus +XRequest.XInputExtension.22:X_GetFeedbackControl +XRequest.XInputExtension.23:X_ChangeFeedbackControl +XRequest.XInputExtension.24:X_GetDeviceKeyMapping +XRequest.XInputExtension.25:X_ChangeDeviceKeyMapping +XRequest.XInputExtension.26:X_GetDeviceModifierMapping +XRequest.XInputExtension.27:X_SetDeviceModifierMapping +XRequest.XInputExtension.28:X_GetDeviceButtonMapping +XRequest.XInputExtension.29:X_SetDeviceButtonMapping +XRequest.XInputExtension.30:X_QueryDeviceState +XRequest.XInputExtension.31:X_SendExtensionEvent +XRequest.XInputExtension.32:X_DeviceBell +XRequest.XInputExtension.33:X_SetDeviceValuators +XRequest.XInputExtension.34:X_GetDeviceControl +XRequest.XInputExtension.35:X_ChangeDeviceControl +XRequest.XInputExtension.36: X_ListDeviceProperties +XRequest.XInputExtension.37: X_ChangeDeviceProperty +XRequest.XInputExtension.38: X_DeleteDeviceProperty +XRequest.XInputExtension.39: X_GetDeviceProperty +XProtoError.XInputExtension.0: XI_BadDevice (invalid Device parameter) +XlibMessage.XInputExtension.0: Device id in failed request: 0x%lx +XProtoError.XInputExtension.1: XI_BadEvent (invalid Event parameter) +XlibMessage.XInputExtension.1: Event id in failed request: 0x%lx +XProtoError.XInputExtension.2: XI_BadMode (invalid Mode parameter) +XlibMessage.XInputExtension.2: Mode id in failed request: 0x%lx +XProtoError.XInputExtension.3: XI_DeviceBusy +XlibMessage.XInputExtension.3: Device id in failed request: 0x%lx +XProtoError.XInputExtension.4: XI_BadClass (invalid Class parameter) +XlibMessage.XInputExtension.4: Class id in failed request: 0x%lx +! MIT-SHM extension, experimental, not an X Consortium standard +XRequest.MIT-SHM.0: X_ShmQueryVersion +XRequest.MIT-SHM.1: X_ShmAttach +XRequest.MIT-SHM.2: X_ShmDetach +XRequest.MIT-SHM.3: X_ShmPutImage +XRequest.MIT-SHM.4: X_ShmGetImage +XRequest.MIT-SHM.5: X_ShmCreatePixmap +XProtoError.MIT-SHM.0: BadShmSeg (invalid shared segment parameter) +XlibMessage.MIT-SHM.0: Segment id in failed request: 0x%lx +! MIT-SUNDRY-NONSTANDARD extension, definitely not an X Consortium standard +XRequest.MIT-SUNDRY-NONSTANDARD.0: X_MITSetBugMode +XRequest.MIT-SUNDRY-NONSTANDARD.1: X_MITGetBugMode +! X3D-PEX extension +XRequest.X3D-PEX.1: PEX_GetExtensionInfo +XRequest.X3D-PEX.2: PEX_GetEnumeratedTypeInfo +XRequest.X3D-PEX.3: PEX_GetImpDepConstants +XRequest.X3D-PEX.4: PEX_CreateLookupTable +XRequest.X3D-PEX.5: PEX_CopyLookupTable +XRequest.X3D-PEX.6: PEX_FreeLookupTable +XRequest.X3D-PEX.7: PEX_GetTableInfo +XRequest.X3D-PEX.8: PEX_GetPredefinedEntries +XRequest.X3D-PEX.9: PEX_GetDefinedIndices +XRequest.X3D-PEX.10: PEX_GetTableEntry +XRequest.X3D-PEX.11: PEX_GetTableEntries +XRequest.X3D-PEX.12: PEX_SetTableEntries +XRequest.X3D-PEX.13: PEX_DeleteTableEntries +XRequest.X3D-PEX.14: PEX_CreatePipelineContext +XRequest.X3D-PEX.15: PEX_CopyPipelineContext +XRequest.X3D-PEX.16: PEX_FreePipelineContext +XRequest.X3D-PEX.17: PEX_GetPipelineContext +XRequest.X3D-PEX.18: PEX_ChangePipelineContext +XRequest.X3D-PEX.19: PEX_CreateRenderer +XRequest.X3D-PEX.20: PEX_FreeRenderer +XRequest.X3D-PEX.21: PEX_ChangeRenderer +XRequest.X3D-PEX.22: PEX_GetRendererAttributes +XRequest.X3D-PEX.23: PEX_GetRendererDynamics +XRequest.X3D-PEX.24: PEX_BeginRendering +XRequest.X3D-PEX.25: PEX_EndRendering +XRequest.X3D-PEX.26: PEX_BeginStructure +XRequest.X3D-PEX.27: PEX_EndStructure +XRequest.X3D-PEX.28: PEX_RenderOutputCommands +XRequest.X3D-PEX.29: PEX_RenderNetwork +XRequest.X3D-PEX.30: PEX_CreateStructure +XRequest.X3D-PEX.31: PEX_CopyStructure +XRequest.X3D-PEX.32: PEX_DestroyStructures +XRequest.X3D-PEX.33: PEX_GetStructureInfo +XRequest.X3D-PEX.34: PEX_GetElementInfo +XRequest.X3D-PEX.35: PEX_GetStructuresInNetwork +XRequest.X3D-PEX.36: PEX_GetAncestors +XRequest.X3D-PEX.37: PEX_GetDescendants +XRequest.X3D-PEX.38: PEX_FetchElements +XRequest.X3D-PEX.39: PEX_SetEditingMode +XRequest.X3D-PEX.40: PEX_SetElementPointer +XRequest.X3D-PEX.41: PEX_SetElementPointerAtLabel +XRequest.X3D-PEX.42: PEX_ElementSearch +XRequest.X3D-PEX.43: PEX_StoreElements +XRequest.X3D-PEX.44: PEX_DeleteElements +XRequest.X3D-PEX.45: PEX_DeleteElementsToLabel +XRequest.X3D-PEX.46: PEX_DeleteBetweenLabels +XRequest.X3D-PEX.47: PEX_CopyElements +XRequest.X3D-PEX.48: PEX_ChangeStructureRefs +XRequest.X3D-PEX.49: PEX_CreateNameSet +XRequest.X3D-PEX.50: PEX_CopyNameSet +XRequest.X3D-PEX.51: PEX_FreeNameSet +XRequest.X3D-PEX.52: PEX_GetNameSet +XRequest.X3D-PEX.53: PEX_ChangeNameSet +XRequest.X3D-PEX.54: PEX_CreateSearchContext +XRequest.X3D-PEX.55: PEX_CopySearchContext +XRequest.X3D-PEX.56: PEX_FreeSearchContext +XRequest.X3D-PEX.57: PEX_GetSearchContext +XRequest.X3D-PEX.58: PEX_ChangeSearchContext +XRequest.X3D-PEX.59: PEX_SearchNetwork +XRequest.X3D-PEX.60: PEX_CreatePhigsWks +XRequest.X3D-PEX.61: PEX_FreePhigsWks +XRequest.X3D-PEX.62: PEX_GetWksInfo +XRequest.X3D-PEX.63: PEX_GetDynamics +XRequest.X3D-PEX.64: PEX_GetViewRep +XRequest.X3D-PEX.65: PEX_RedrawAllStructures +XRequest.X3D-PEX.66: PEX_UpdateWorkstation +XRequest.X3D-PEX.67: PEX_RedrawClipRegion +XRequest.X3D-PEX.68: PEX_ExecuteDeferredActions +XRequest.X3D-PEX.69: PEX_SetViewPriority +XRequest.X3D-PEX.70: PEX_SetDisplayUpdateMode +XRequest.X3D-PEX.71: PEX_MapDCtoWC +XRequest.X3D-PEX.72: PEX_MapWCtoDC +XRequest.X3D-PEX.73: PEX_SetViewRep +XRequest.X3D-PEX.74: PEX_SetWksWindow +XRequest.X3D-PEX.75: PEX_SetWksViewport +XRequest.X3D-PEX.76: PEX_SetHlhsrMode +XRequest.X3D-PEX.77: PEX_SetWksBufferMode +XRequest.X3D-PEX.78: PEX_PostStructure +XRequest.X3D-PEX.79: PEX_UnpostStructure +XRequest.X3D-PEX.80: PEX_UnpostAllStructures +XRequest.X3D-PEX.81: PEX_GetWksPostings +XRequest.X3D-PEX.82: PEX_GetPickDevice +XRequest.X3D-PEX.83: PEX_ChangePickDevice +XRequest.X3D-PEX.84: PEX_CreatePickMeasure +XRequest.X3D-PEX.85: PEX_FreePickMeasure +XRequest.X3D-PEX.86: PEX_GetPickMeasure +XRequest.X3D-PEX.87: PEX_UpdatePickMeasure +XRequest.X3D-PEX.88: PEX_OpenFont +XRequest.X3D-PEX.89: PEX_CloseFont +XRequest.X3D-PEX.90: PEX_QueryFont +XRequest.X3D-PEX.91: PEX_ListFonts +XRequest.X3D-PEX.92: PEX_ListFontsWithInfo +XRequest.X3D-PEX.93: PEX_QueryTextExtents +XRequest.X3D-PEX.94: PEX_MatchRenderingTargets +XRequest.X3D-PEX.95: PEX_Escape +XRequest.X3D-PEX.96: PEX_EscapeWithReply +XRequest.X3D-PEX.97: PEX_RenderElements +XRequest.X3D-PEX.98: PEX_AccumulateState +XRequest.X3D-PEX.99: PEX_BeginPickOne +XRequest.X3D-PEX.100: PEX_EndPickOne +XRequest.X3D-PEX.101: PEX_PickOne +XRequest.X3D-PEX.102: PEX_BeginPickAll +XRequest.X3D-PEX.103: PEX_EndPickAll +XRequest.X3D-PEX.104: PEX_PickAll +XProtoError.X3D-PEX.0: PEXColorTypeError +XlibMessage.X3D-PEX.0: Color type in failed request: 0x%lx +XProtoError.X3D-PEX.1: PEXRendererStateError +XlibMessage.X3D-PEX.1: Renderer id in failed request: 0x%lx +XProtoError.X3D-PEX.2: PEXFloatingPointFormatError +XlibMessage.X3D-PEX.2: Format in failed request: 0x%lx +XProtoError.X3D-PEX.3: PEXLabelError +XlibMessage.X3D-PEX.3: Label in failed request: 0x%lx +XProtoError.X3D-PEX.4: PEXLookupTableError +XlibMessage.X3D-PEX.4: Table id in failed request: 0x%lx +XProtoError.X3D-PEX.5: PEXNameSetError +XlibMessage.X3D-PEX.5: Nameset in failed request: 0x%lx +XProtoError.X3D-PEX.6: PEXPathError +XlibMessage.X3D-PEX.6: Path id in failed request: 0x%lx +XProtoError.X3D-PEX.7: PEXFontError +XlibMessage.X3D-PEX.7: Font id in failed request: 0x%lx +XProtoError.X3D-PEX.8: PEXPhigsWksError +XlibMessage.X3D-PEX.8: Workstation id in failed request: 0x%lx +XProtoError.X3D-PEX.9: PEXPickMeasureError +XlibMessage.X3D-PEX.9: Device id in failed request: 0x%lx +XProtoError.X3D-PEX.10: PEXPipelineContextError +XlibMessage.X3D-PEX.10: Context id in failed request: 0x%lx +XProtoError.X3D-PEX.11: PEXRendererError +XlibMessage.X3D-PEX.11: Renderer id in failed request: 0x%lx +XProtoError.X3D-PEX.12: PEXSearchContextError +XlibMessage.X3D-PEX.12: Context id in failed request: 0x%lx +XProtoError.X3D-PEX.13: PEXStructureError +XlibMessage.X3D-PEX.13: Structure id in failed request: 0x%lx +XProtoError.X3D-PEX.14: PEXOutputCommandError +XlibMessage.X3D-PEX.14: Resource id in failed request: 0x%lx +! XTEST extension, an X Consortium standard +XRequest.XTEST.0: X_XTestGetVersion +XRequest.XTEST.1: X_XTestCompareCursor +XRequest.XTEST.2: X_XTestFakeInput +XRequest.XTEST.3: X_XTestGrabControl +! BIG-REQUESTS extension, an X Consortium standard +XRequest.BIG-REQUESTS.0: X_BigReqEnable +! XIE extension, an X Consortium standard +XRequest.XIE.1: XIE_QueryImageExtension +XRequest.XIE.2: XIE_QueryTechniques +XRequest.XIE.3: XIE_CreateColorList +XRequest.XIE.4: XIE_DestroyColorList +XRequest.XIE.5: XIE_PurgeColorList +XRequest.XIE.6: XIE_QueryColorList +XRequest.XIE.7: XIE_CreateLUT +XRequest.XIE.8: XIE_DestroyLUT +XRequest.XIE.9: XIE_CreatePhotomap +XRequest.XIE.10: XIE_DestroyPhotomap +XRequest.XIE.11: XIE_QueryPhotomap +XRequest.XIE.12: XIE_CreateROI +XRequest.XIE.13: XIE_DestroyROI +XRequest.XIE.14: XIE_CreatePhotospace +XRequest.XIE.15: XIE_DestroyPhotospace +XRequest.XIE.16: XIE_ExecuteImmediate +XRequest.XIE.17: XIE_CreatePhotoflo +XRequest.XIE.18: XIE_DestroyPhotoflo +XRequest.XIE.19: XIE_ExecutePhotoflo +XRequest.XIE.20: XIE_ModifyPhotoflo +XRequest.XIE.21: XIE_RedefinePhotoflo +XRequest.XIE.22: XIE_PutClientData +XRequest.XIE.23: XIE_GetClientData +XRequest.XIE.24: XIE_QueryPhotoflo +XRequest.XIE.25: XIE_Await +XRequest.XIE.26: XIE_Abort +XProtoError.XIE.0: XIE_ColorListError +XlibMessage.XIE.0: ColorList in failed request: 0x%lx +XProtoError.XIE.1: XIE_LUTError +XlibMessage.XIE.1: LUT in failed request: 0x%lx +XProtoError.XIE.2: XIE_PhotofloError +XlibMessage.XIE.2: Photoflo in failed request: 0x%lx +XProtoError.XIE.3: XIE_PhotomapError +XlibMessage.XIE.3: Photomap in failed request: 0x%lx +XProtoError.XIE.4: XIE_PhotospaceError +XlibMessage.XIE.4: Photospace in failed request: 0x%lx +XProtoError.XIE.5: XIE_ROIError +XlibMessage.XIE.5: ROI in failed request: 0x%lx +XProtoError.XIE.6: XIE_FloError +XlibMessage.XIE.6: Photoflo in failed request: 0x%lx +! SYNC extension, an X Consortium standard +XRequest.SYNC.0: X_SyncInitialize +XRequest.SYNC.1: X_SyncListSystemCounters +XRequest.SYNC.2: X_SyncCreateCounter +XRequest.SYNC.3: X_SyncSetCounter +XRequest.SYNC.4: X_SyncChangeCounter +XRequest.SYNC.5: X_SyncQueryCounter +XRequest.SYNC.6: X_SyncDestroyCounter +XRequest.SYNC.7: X_SyncAwait +XRequest.SYNC.8: X_SyncCreateAlarm +XRequest.SYNC.9: X_SyncChangeAlarm +XRequest.SYNC.10: X_SyncQueryAlarm +XRequest.SYNC.11: X_SyncDestroyAlarm +XRequest.SYNC.12: X_SyncSetPriority +XRequest.SYNC.13: X_SyncGetPriority +XProtoError.SYNC.0: XSyncBadCounter +XlibMessage.SYNC.0: Counter in failed request: 0x%lx +XProtoError.SYNC.1: XSyncBadAlarm +XlibMessage.SYNC.1: Alarm in failed request: 0x%lx +! XKB extension +XRequest.XKEYBOARD.0: XkbUseExtension +XRequest.XKEYBOARD.1: XkbSelectEvents +XRequest.XKEYBOARD.2: OBSOLETE +XRequest.XKEYBOARD.3: XkbBell +XRequest.XKEYBOARD.4: XkbGetState +XRequest.XKEYBOARD.5: XkbLatchLockState +XRequest.XKEYBOARD.6: XkbGetControls +XRequest.XKEYBOARD.7: XkbSetControls +XRequest.XKEYBOARD.8: XkbGetMap +XRequest.XKEYBOARD.9: XkbSetMap +XRequest.XKEYBOARD.10: XkbGetCompatMap +XRequest.XKEYBOARD.11: XkbSetCompatMap +XRequest.XKEYBOARD.12: XkbGetIndicatorState +XRequest.XKEYBOARD.13: XkbGetIndicatorMap +XRequest.XKEYBOARD.14: XkbSetIndicatorMap +XRequest.XKEYBOARD.15: XkbGetNamedIndicator +XRequest.XKEYBOARD.16: XkbSetNamedIndicator +XRequest.XKEYBOARD.17: XkbGetNames +XRequest.XKEYBOARD.18: XkbSetNames +XRequest.XKEYBOARD.19: XkbGetGeometry +XRequest.XKEYBOARD.20: XkbSetGeometry +XRequest.XKEYBOARD.21: XkbPerClientFlags +XRequest.XKEYBOARD.22: XkbListComponents +XRequest.XKEYBOARD.23: XkbGetKbdByName +XRequest.XKEYBOARD.24: XkbGetDeviceInfo +XRequest.XKEYBOARD.25: XkbSetDeviceInfo +XRequest.XKEYBOARD.101: XkbSetDebuggingFlags +XProtoError.XKEYBOARD.0: XkbBadKeyboard +XlibMessage.XKEYBOARD.0: Device id in failed request: 0x%lx +! GLX extension for OpenGL, an OpenGL Architectural Review Board standard +! GLX Commands +XRequest.GLX.7: X_GLXQueryVersion +XRequest.GLX.3: X_GLXCreateContext +XRequest.GLX.4: X_GLXDestroyContext +XRequest.GLX.5: X_GLXMakeCurrent +XRequest.GLX.6: X_GLXIsDirect +XRequest.GLX.10: X_GLXCopyContext +XRequest.GLX.8: X_GLXWaitGL +XRequest.GLX.9: X_GLXWaitX +XRequest.GLX.11: X_GLXSwapBuffers +XRequest.GLX.12: X_GLXUseXFont +XRequest.GLX.13: X_GLXCreateGLXPixmap +XRequest.GLX.15: X_GLXDestroyGLXPixmap +XRequest.GLX.14: X_GLXGetVisualConfigs +XRequest.GLX.16: X_GLXVendorPrivate +XRequest.GLX.17: X_GLXVendorPrivateWithReply +XRequest.GLX.18: X_GLXQueryExtensionsString +XRequest.GLX.19: X_GLXQueryServerString +XRequest.GLX.20: X_GLXClientInfo +XRequest.GLX.21: X_GLXGetFBConfigs +XRequest.GLX.22: X_GLXCreatePixmap +XRequest.GLX.23: X_GLXDestroyPixmap +XRequest.GLX.24: X_GLXCreateNewContext +XRequest.GLX.25: X_GLXQueryContext +XRequest.GLX.26: X_GLXMakeContextCurrent +XRequest.GLX.27: X_GLXCreatePbuffer +XRequest.GLX.28: X_GLXDestroyPbuffer +XRequest.GLX.29: X_GLXGetDrawableAttributes +XRequest.GLX.30: X_GLXChangeDrawableAttributes +XRequest.GLX.31: X_GLXCreateWindow +XRequest.GLX.32: X_GLXDestroyWindow +! GL Non-rendering Commands +XRequest.GLX.103: X_GLXDeleteLists +XRequest.GLX.102: X_GLXEndList +XRequest.GLX.105: X_GLXFeedbackBuffer +XRequest.GLX.108: X_GLXFinish +XRequest.GLX.142: X_GLXFlush +XRequest.GLX.104: X_GLXGenLists +XRequest.GLX.112: X_GLXGetBooleanv +XRequest.GLX.113: X_GLXGetClipPlane +XRequest.GLX.114: X_GLXGetDoublev +XRequest.GLX.115: X_GLXGetError +XRequest.GLX.116: X_GLXGetFloatv +XRequest.GLX.117: X_GLXGetIntegerv +XRequest.GLX.118: X_GLXGetLightfv +XRequest.GLX.119: X_GLXGetLightiv +XRequest.GLX.120: X_GLXGetMapdv +XRequest.GLX.121: X_GLXGetMapfv +XRequest.GLX.122: X_GLXGetMapiv +XRequest.GLX.123: X_GLXGetMaterialfv +XRequest.GLX.124: X_GLXGetMaterialiv +XRequest.GLX.125: X_GLXGetPixelfv +XRequest.GLX.126: X_GLXGetPixelMapuiv +XRequest.GLX.127: X_GLXGetPixelMapusv +XRequest.GLX.129: X_GLXGetString +XRequest.GLX.130: X_GLXGetTexEnvfv +XRequest.GLX.131: X_GLXGetTexEnviv +XRequest.GLX.132: X_GLXGetTexGendv +XRequest.GLX.133: X_GLXGetTexGenfv +XRequest.GLX.134: X_GLXGetTexGeniv +XRequest.GLX.138: X_GLXGetTexLevelParameterfv +XRequest.GLX.139: X_GLXGetTexLevelParameteriv +XRequest.GLX.136: X_GLXGetTexParameterfv +XRequest.GLX.137: X_GLXGetTexParameteriv +XRequest.GLX.140: X_GLXIsEnabled +XRequest.GLX.141: X_GLXIsList +XRequest.GLX.101: X_GLXNewList +XRequest.GLX.109: X_GLXPixelStoref +XRequest.GLX.110: X_GLXPixelStorei +XRequest.GLX.107: X_GLXRenderMode +XRequest.GLX.106: X_GLXSelectBuffer +! GL Non-rendering Commands That Return Pixel Data +XRequest.GLX.128: X_GLXGetPolygonStipple +XRequest.GLX.135: X_GLXGetTexImage +XRequest.GLX.111: X_GLXReadPixels +! GL Rendering Commands +XRequest.GLX.1: X_GLXRender +XRequest.GLX.2: X_GLXRenderLarge +! GLX Errors +XProtoError.GLX.0: GLXBadContext +XProtoError.GLX.1: GLXBadContextState +XProtoError.GLX.2: GLXBadDrawable +XProtoError.GLX.3: GLXBadPixmap +XProtoError.GLX.4: GLXBadContextTag +XProtoError.GLX.5: GLXBadCurrentWindow +XProtoError.GLX.6: GLXBadRenderRequest +XProtoError.GLX.7: GLXBadLargeRequest +XProtoError.GLX.8: GLXUnsupportedPrivateRequest +XProtoError.GLX.9: GLXBadFBConfig +XProtoError.GLX.10: GLXBadPbuffer +XProtoError.GLX.11: GLXBadCurrentDrawable +XProtoError.GLX.12: GLXBadWindow +XProtoError.GLX.13: GLXBadProfileARB +! XC-MISC extension, an X Consortium standard +XRequest.XC-MISC.0: XCMiscGetVersion +XRequest.XC-MISC.1: XCMiscGetXIDRange +! RECORD extension +XRequest.RECORD.0: XRecordQueryVersion +XRequest.RECORD.1: XRecordCreateContext +XRequest.RECORD.2: XRecordRegisterClients +XRequest.RECORD.3: XRecordUnregisterClients +XRequest.RECORD.4: XRecordGetContext +XRequest.RECORD.5: XRecordEnableContext +XRequest.RECORD.6: XRecordDisableContext +XRequest.RECORD.7: XRecordFreeContext +XProtoError.RECORD.0: XRecordBadContext +XlibMessage.RECORD.0: Context in failed request: 0x%lx +! XFree86-VidModeExtension -- not an X Consortium standard +XRequest.XFree86-VidModeExtension.0: XF86VidModeQueryVersion +XRequest.XFree86-VidModeExtension.1: XF86VidModeGetModeLine +XRequest.XFree86-VidModeExtension.2: XF86VidModeModModeLine +XRequest.XFree86-VidModeExtension.3: XF86VidModeSwitchMode +XRequest.XFree86-VidModeExtension.4: XF86VidModeGetMonitor +XRequest.XFree86-VidModeExtension.5: XF86VidModeLockModeSwitch +XRequest.XFree86-VidModeExtension.6: XF86VidModeGetAllModeLines +XRequest.XFree86-VidModeExtension.7: XF86VidModeAddModeLine +XRequest.XFree86-VidModeExtension.8: XF86VidModeDeleteModeLine +XRequest.XFree86-VidModeExtension.9: XF86VidModeValidateModeLine +XRequest.XFree86-VidModeExtension.10: XF86VidModeSwitchToMode +XRequest.XFree86-VidModeExtension.11: XF86VidModeGetViewPort +XRequest.XFree86-VidModeExtension.12: XF86VidModeSetViewPort +XRequest.XFree86-VidModeExtension.13: XF86VidModeGetDotClocks +XRequest.XFree86-VidModeExtension.14: XF86VidModeSetClientVersion +XRequest.XFree86-VidModeExtension.15: XF86VidModeSetGamma +XRequest.XFree86-VidModeExtension.16: XF86VidModeGetGamma +XRequest.XFree86-VidModeExtension.17: XF86VidModeGetGammaRamp +XRequest.XFree86-VidModeExtension.18: XF86VidModeSetGammaRamp +XRequest.XFree86-VidModeExtension.19: XF86VidModeGetGammaRampSize +XRequest.XFree86-VidModeExtension.20: XF86VidModeGetPermissions +XProtoError.XFree86-VidModeExtension.0: XF86VidModeBadClock +XProtoError.XFree86-VidModeExtension.1: XF86VidModeBadHTimings +XProtoError.XFree86-VidModeExtension.2: XF86VidModeBadVTimings +XProtoError.XFree86-VidModeExtension.3: XF86VidModeModeUnsuitable +XProtoError.XFree86-VidModeExtension.4: XF86VidModeExtensionDisabled +XProtoError.XFree86-VidModeExtension.5: XF86VidModeClientNotLocal +XProtoError.XFree86-VidModeExtension.6: XF86VidModeZoomLocked +! XFree86-Misc -- not an X Consortium standard +XRequest.XFree86-Misc.0: XF86MiscQueryVersion +XRequest.XFree86-Misc.1: XF86MiscGetSaver +XRequest.XFree86-Misc.2: XF86MiscSetSaver +XRequest.XFree86-Misc.3: XF86MiscGetMouseSettings +XRequest.XFree86-Misc.4: XF86MiscGetKbdSettings +XRequest.XFree86-Misc.5: XF86MiscSetMouseSettings +XRequest.XFree86-Misc.6: XF86MiscSetKbdSettings +XRequest.XFree86-Misc.7: XF86MiscSetGrabKeysState +XRequest.XFree86-Misc.8: XF86MiscSetClientVersion +XRequest.XFree86-Misc.9: XF86MiscGetFilePaths +XProtoError.XFree86-Misc.0: XF86MiscBadMouseProtocol +XProtoError.XFree86-Misc.1: XF86MiscBadMouseBaudRate +XProtoError.XFree86-Misc.2: XF86MiscBadMouseFlags +XProtoError.XFree86-Misc.3: XF86MiscBadMouseCombo +XProtoError.XFree86-Misc.4: XF86MiscBadKbdType +XProtoError.XFree86-Misc.5: XF86MiscModInDevDisabled +XProtoError.XFree86-Misc.6: XF86MiscModInDevClientNotLocal +XProtoError.XFree86-Misc.7: XF86MiscNoModule +! XFree86-DGA -- not an X Consortium standard +XRequest.XFree86-DGA.0: XF86DGAQueryVersion +XRequest.XFree86-DGA.1: XF86DGAGetVideoLL +XRequest.XFree86-DGA.2: XF86DGADirectVideo +XRequest.XFree86-DGA.3: XF86DGAGetViewPortSize +XRequest.XFree86-DGA.4: XF86DGASetViewPort +XRequest.XFree86-DGA.5: XF86DGAGetVidPage +XRequest.XFree86-DGA.6: XF86DGASetVidPage +XRequest.XFree86-DGA.7: XF86DGAInstallColormap +XRequest.XFree86-DGA.8: XF86DGAQueryDirectVideo +XRequest.XFree86-DGA.9: XF86DGAViewPortChanged +XRequest.XFree86-DGA.10: XF86DGAObsolete1 +XRequest.XFree86-DGA.11: XF86DGAObsolete2 +XRequest.XFree86-DGA.12: XDGAQueryModes +XRequest.XFree86-DGA.13: XDGASetMode +XRequest.XFree86-DGA.14: XDGASetViewport +XRequest.XFree86-DGA.15: XDGAInstallColormap +XRequest.XFree86-DGA.16: XDGASelectInput +XRequest.XFree86-DGA.17: XDGAFillRectangle +XRequest.XFree86-DGA.18: XDGACopyArea +XRequest.XFree86-DGA.19: XDGACopyTransparentArea +XRequest.XFree86-DGA.20: XDGAGetViewportStatus +XRequest.XFree86-DGA.21: XDGASync +XRequest.XFree86-DGA.22: XDGAOpenFramebuffer +XRequest.XFree86-DGA.23: XDGACloseFramebuffer +XRequest.XFree86-DGA.24: XDGASetClientVersion +XRequest.XFree86-DGA.25: XDGAChangePixmapMode +XRequest.XFree86-DGA.26: XDGACreateColormap +XProtoError.XFree86-DGA.0: XF86DGAClientNotLocal +XProtoError.XFree86-DGA.1: XF86DGANoDirectVideoMode +XProtoError.XFree86-DGA.2: XF86DGAScreenNotActive +XProtoError.XFree86-DGA.3: XF86DGADirectNotActivated +XProtoError.XFree86-DGA.4: XF86DGAOperationNotSupported +! DOUBLE-BUFFER (DBE), an X Consortium standard +XRequest.DOUBLE-BUFFER.0: DBEGetVersion +XRequest.DOUBLE-BUFFER.1: DBEAllocateBackBufferName +XRequest.DOUBLE-BUFFER.2: DBEDeallocateBackBufferName +XRequest.DOUBLE-BUFFER.3: DBESwapBuffers +XRequest.DOUBLE-BUFFER.4: DBEBeginIdiom +XRequest.DOUBLE-BUFFER.5: DBEEndIdiom +XRequest.DOUBLE-BUFFER.6: DBEGetVisualInfo +XRequest.DOUBLE-BUFFER.7: DBEGetBackBufferAttributes +XProtoError.DOUBLE-BUFFER.0: DBEBadBuffer (invalid BackBuffer parameter) +XlibMessage.DOUBLE-BUFFER.0: BackBuffer in failed request: 0x%lx +! SECURITY +XRequest.SECURITY.0: SecurityQueryVersion +XRequest.SECURITY.1: SecurityGenerateAuthorization +XProtoError.SECURITY.0: SecurityBadAuthorization (invalid authorization id) +XProtoError.SECURITY.1: SecurityBadAuthorizationProtocol (invalid authorization name or data) +XlibMessage.SECURITY.1: authorization id in failed request: 0x%lx +! AppGroup +XRequest.APPGROUP.0: XagQueryVersion +XRequest.APPGROUP.1: XagCreate +XRequest.APPGROUP.2: XagDestroy +XRequest.APPGROUP.3: XagGetAttr +XRequest.APPGROUP.4: XagQuery +XRequest.APPGROUP.5: XagCreateAssoc +XRequest.APPGROUP.6: XagDestroyAssoc +XProtoError.APPGROUP.0: XagBadAppGroup (invalid AppGroup parameter) +! LBX +XRequest.LBX.0: LbxQueryVersion +XRequest.LBX.1: LbxStartProxy +XRequest.LBX.2: LbxStopProxy +XRequest.LBX.3: LbxSwitch +XRequest.LBX.4: LbxNewClient +XRequest.LBX.5: LbxCloseClient +XRequest.LBX.6: LbxModifySequence +XRequest.LBX.7: LbxAllowMotion +XRequest.LBX.8: LbxIncrementPixel +XRequest.LBX.9: LbxDelta +XRequest.LBX.10: LbxGetModifierMapping +XRequest.LBX.11: LbxQueryTag +XRequest.LBX.12: LbxInvalidateTag +XRequest.LBX.13: LbxPolyPoint +XRequest.LBX.14: LbxPolyLine +XRequest.LBX.15: LbxPolySegment +XRequest.LBX.16: LbxPolyRectangle +XRequest.LBX.17: LbxPolyArc +XRequest.LBX.18: LbxFillPoly +XRequest.LBX.19: LbxPolyFillRectangle +XRequest.LBX.20: LbxPolyFillArc +XRequest.LBX.21: LbxGetKeyboardMapping +XRequest.LBX.22: LbxQueryFont +XRequest.LBX.23: LbxChangeProperty +XRequest.LBX.24: LbxGetProperty +XRequest.LBX.25: LbxTagData +XRequest.LBX.26: LbxCopyArea +XRequest.LBX.27: LbxCopyPlane +XRequest.LBX.28: LbxPolyText8 +XRequest.LBX.29: LbxPolyText16 +XRequest.LBX.30: LbxImageText8 +XRequest.LBX.31: LbxImageText16 +XRequest.LBX.32: LbxQueryExtension +XRequest.LBX.33: LbxPutImage +XRequest.LBX.34: LbxGetImage +XRequest.LBX.35: LbxBeginLargeRequest +XRequest.LBX.36: LbxLargeRequestData +XRequest.LBX.37: LbxEndLargeRequest +XRequest.LBX.38: LbxInternAtoms +XRequest.LBX.39: LbxGetWinAttrAndGeom +XRequest.LBX.40: LbxGrabCmap +XRequest.LBX.41: LbxReleaseCmap +XRequest.LBX.42: LbxAllocColor +XRequest.LBX.43: LbxSync +XProtoError.LBX.0: BadLbxClient +! XpExtension +XRequest.XpExtension.0: PrintQueryVersion +XRequest.XpExtension.1: PrintGetPrinterList +XRequest.XpExtension.2: PrintCreateContext +XRequest.XpExtension.3: PrintSetContext +XRequest.XpExtension.4: PrintGetContext +XRequest.XpExtension.5: PrintDestroyContext +XRequest.XpExtension.6: PrintGetContextScreen +XRequest.XpExtension.7: PrintStartJob +XRequest.XpExtension.8: PrintEndJob +XRequest.XpExtension.9: PrintStartDoc +XRequest.XpExtension.10: PrintEndDoc +XRequest.XpExtension.11: PrintPutDocumentData +XRequest.XpExtension.12: PrintGetDocumentData +XRequest.XpExtension.13: PrintStartPage +XRequest.XpExtension.14: PrintEndPage +XRequest.XpExtension.15: PrintSelectInput +XRequest.XpExtension.16: PrintInputSelected +XRequest.XpExtension.17: PrintGetAttributes +XRequest.XpExtension.18: PrintSetAttributes +XRequest.XpExtension.19: PrintGetOneAttribute +XRequest.XpExtension.20: PrintRehashPrinterList +XRequest.XpExtension.21: PrintGetPageDimensions +XRequest.XpExtension.22: PrintQueryScreens +XRequest.XpExtension.23: PrintSetImageResolution +XRequest.XpExtension.24: PrintGetImageResolution +XProtoError.XpExtension.0: XPBadContext (Print Context invalid or missing) +XlibMessage.XpExtension.0: Context in failed request: 0x%lx +XProtoError.XpExtension.1: XPBadSequence (Illegal sequence of XP operations) +XProtoError.XpExtension.2: XPBadResourceID (X resource not valid) +! TOG-CUP, an X Project Team specification +XRequest.TOG-CUP.0: CUPQueryVersion +XRequest.TOG-CUP.1: CUPGetReservedColormapEntries +XRequest.TOG-CUP.2: CUPStoreColors +! Extended-Visual-Information, an X Project Team specification +XRequest.Extended-Visual-Information.0: EVIQueryVersion +XRequest.Extended-Visual-Information.1: EVIGetVisualInfo +! DPMS (Display Power Management Signaling), an X Project Team specification +XRequest.DPMS.0: DPMSGetVersion +XRequest.DPMS.1: DPMSCapable +XRequest.DPMS.2: DPMSGetTimeouts +XRequest.DPMS.3: DPMSSetTimeouts +XRequest.DPMS.4: DPMSEnable +XRequest.DPMS.5: DPMSDisable +XRequest.DPMS.6: DPMSForceLevel +XRequest.DPMS.7: DPMSInfo +! XINERAMA, not an X Project Team specification +XRequest.XINERAMA.0: XINERAMAQueryVersion +XRequest.XINERAMA.1: XINERAMAGetState +XRequest.XINERAMA.2: XINERAMAGetScreenCount +XRequest.XINERAMA.3: XINERAMAGetScreenSize +XRequest.XINERAMA.4: XINERAMAIsActive +XRequest.XINERAMA.5: XINERAMAQueryScreens +! XF86Rush extension, not a standard spec +Xrequest.XFree86-Rush.0: XF86RushQueryVersion +Xrequest.XFree86-Rush.1: XF86RushLockPixmap +Xrequest.XFree86-Rush.2: XF86RushUnlockPixmap +Xrequest.XFree86-Rush.3: XF86RushUnlockAllPixmaps +Xrequest.XFree86-Rush.4: XF86RushGetCopyMode +Xrequest.XFree86-Rush.5: XF86RushSetCopyMode +Xrequest.XFree86-Rush.6: XF86RushGetPixelStride +Xrequest.XFree86-Rush.7: XF86RushSetPixelStride +Xrequest.XFree86-Rush.8: XF86RushOverlayPixmap +Xrequest.XFree86-Rush.9: XF86RushStatusRegOffset +Xrequest.XFree86-Rush.10: XF86RushAT3DEnableRegs +Xrequest.XFree86-Rush.11: XF86RushAT3DDisableRegs +! XVideo +Xrequest.XVideo.0: XvQueryExtension +Xrequest.XVideo.1: XvQueryAdaptors +Xrequest.XVideo.2: XvQueryEncodings +Xrequest.XVideo.3: XvGrabPort +Xrequest.XVideo.4: XvUngrabPort +Xrequest.XVideo.5: XvPutVideo +Xrequest.XVideo.6: XvPutStill +Xrequest.XVideo.7: XvGetVideo +Xrequest.XVideo.8: XvGetStill +Xrequest.XVideo.9: XvStopVideo +Xrequest.XVideo.10: XvSelectVideoNotify +Xrequest.XVideo.11: XvSelectPortNotify +Xrequest.XVideo.12: XvQueryBestSize +Xrequest.XVideo.13: XvSetPortAttribute +Xrequest.XVideo.14: XvGetPortAttribute +Xrequest.XVideo.15: XvQueryPortAttributes +Xrequest.XVideo.16: XvListImageFormats +Xrequest.XVideo.17: XvQueryImageAttributes +Xrequest.XVideo.18: XvPutImage +Xrequest.XVideo.19: XvShmPutImage +XProtoError.XVideo.0: XvBadPort +XProtoError.XVideo.1: XvBadEncoding +XProtoError.XVideo.2: XvBadControl +! XFree86-Bigfont +Xrequest.XFree86-Bigfont.0: XF86BigfontQueryVersion +Xrequest.XFree86-Bigfont.1: XF86BigfontQueryFont +! Adobe-DPS-Extension, not a standard +XRequest.Adobe-DPS-Extension.1: PSInit +XRequest.Adobe-DPS-Extension.2: PSCreateContext +XRequest.Adobe-DPS-Extension.3: PSCreateSpace +XRequest.Adobe-DPS-Extension.4: PSGiveInput +XRequest.Adobe-DPS-Extension.5: PSGetStatus +XRequest.Adobe-DPS-Extension.6: PSDestroySpace +XRequest.Adobe-DPS-Extension.7: PSReset +XRequest.Adobe-DPS-Extension.8: PSNotifyContext +XRequest.Adobe-DPS-Extension.9: PSCreateContextFromID +XRequest.Adobe-DPS-Extension.10: PSXIDFromContext +XRequest.Adobe-DPS-Extension.11: PSContextFromXID +XRequest.Adobe-DPS-Extension.12: PSSetStatusMask +XRequest.Adobe-DPS-Extension.13: PSCreateSecureContext +XRequest.Adobe-DPS-Extension.14: PSNotifyWhenReady +XProtoError.Adobe-DPS-Extension.0: PSErrorBadContext (invalid Context parameter) +XlibMessage.Adobe-DPS-Extension.0: Context id in failed request: 0x%lx +XProtoError.Adobe-DPS-Extension.1: PSErrorBadSpace (invalid Space parameter) +XlibMessage.Adobe-DPS-Extension.1: Space id in failed request: 0x%lx +XProtoError.Adobe-DPS-Extension.2: PSErrorAbort (interpreter aborted) +XlibMessage.Adobe-DPS-Extension.2: Value in failed request: 0x%lx +! RANDR +XRequest.RANDR.0: RRQueryVersion +XRequest.RANDR.1: RROldGetScreenInfo +XRequest.RANDR.2: RRSetScreenConfig +XRequest.RANDR.3: RROldScreenChangeSelectInput +XRequest.RANDR.4: RRSelectInput +XRequest.RANDR.5: RRGetScreenInfo +XRequest.RANDR.6: RRGetScreenSizeRange +XRequest.RANDR.7: RRSetScreenSize +XRequest.RANDR.8: RRGetScreenResources +XRequest.RANDR.9: RRGetOutputInfo +XRequest.RANDR.10: RRListOutputProperties +XRequest.RANDR.11: RRQueryOutputProperty +XRequest.RANDR.12: RRConfigureOutputProperty +XRequest.RANDR.13: RRChangeOutputProperty +XRequest.RANDR.14: RRDeleteOutputProperty +XRequest.RANDR.15: RRGetOutputProperty +XRequest.RANDR.16: RRCreateMode +XRequest.RANDR.17: RRDestroyMode +XRequest.RANDR.18: RRAddOutputMode +XRequest.RANDR.19: RRDeleteOutputMode +XRequest.RANDR.20: RRGetCrtcInfo +XRequest.RANDR.21: RRSetCrtcConfig +XRequest.RANDR.22: RRGetCrtcGammaSize +XRequest.RANDR.23: RRGetCrtcGamma +XRequest.RANDR.24: RRSetCrtcGamma +XRequest.RANDR.25: RRGetScreenResourcesCurrent +XRequest.RANDR.26: RRSetCrtcTransform +XRequest.RANDR.27: RRGetCrtcTransform +XRequest.RANDR.28: RRGetPanning +XRequest.RANDR.29: RRSetPanning +XRequest.RANDR.30: RRSetOutputPrimary +XRequest.RANDR.31: RRGetOutputPrimary +XRequest.RANDR.32: RRGetProviders +XRequest.RANDR.33: RRGetProviderInfo +XRequest.RANDR.34: RRSetProviderOffloadSink +XRequest.RANDR.35: RRSetProviderOutputSource +XRequest.RANDR.36: RRListProviderProperties +XRequest.RANDR.37: RRQueryProviderProperty +XRequest.RANDR.38: RRConfigureProviderProperty +XRequest.RANDR.39: RRChangeProviderProperty +XRequest.RANDR.40: RRDeleteProviderProperty +XRequest.RANDR.41: RRGetProviderProperty +XProtoError.RANDR.0: BadRROutput (invalid Output parameter) +XlibMessage.RANDR.0: Output id in failed request: 0x%lx +XProtoError.RANDR.1: BadRRCrtc (invalid Crtc parameter) +XlibMessage.RANDR.1: Crtc id in failed request: 0x%lx +XProtoError.RANDR.2: BadRRMode (invalid Mode parameter) +XlibMessage.RANDR.2: Mode id in failed request: 0x%lx +XProtoError.RANDR.3: BadRRProvider (invalid Provider parameter) +XlibMessage.RANDR.3: Provider id in failed request: 0x%lx +! RENDER +XRequest.RENDER.0: RenderQueryVersion +XRequest.RENDER.1: RenderQueryPictFormats +XRequest.RENDER.2: RenderQueryPictIndexValues +XRequest.RENDER.3: RenderQueryDithers +XRequest.RENDER.4: RenderCreatePicture +XRequest.RENDER.5: RenderChangePicture +XRequest.RENDER.6: RenderSetPictureClipRectangles +XRequest.RENDER.7: RenderFreePicture +XRequest.RENDER.8: RenderComposite +XRequest.RENDER.9: RenderScale +XRequest.RENDER.10: RenderTrapezoids +XRequest.RENDER.11: RenderTriangles +XRequest.RENDER.12: RenderTriStrip +XRequest.RENDER.13: RenderTriFan +XRequest.RENDER.14: RenderColorTrapezoids +XRequest.RENDER.15: RenderColorTriangles +XRequest.RENDER.16: RenderTransform +XRequest.RENDER.17: RenderCreateGlyphSet +XRequest.RENDER.18: RenderReferenceGlyphSet +XRequest.RENDER.19: RenderFreeGlyphSet +XRequest.RENDER.20: RenderAddGlyphs +XRequest.RENDER.21: RenderAddGlyphsFromPicture +XRequest.RENDER.22: RenderFreeGlyphs +XRequest.RENDER.23: RenderCompositeGlyphs8 +XRequest.RENDER.24: RenderCompositeGlyphs16 +XRequest.RENDER.25: RenderCompositeGlyphs32 +XRequest.RENDER.26: RenderFillRectangles +XRequest.RENDER.27: RenderCreateCursor +XRequest.RENDER.28: RenderSetPictureTransform +XRequest.RENDER.29: RenderQueryFilters +XRequest.RENDER.30: RenderSetPictureFilter +XRequest.RENDER.31: RenderCreateAnimCursor +XRequest.RENDER.32: RenderAddTraps +XRequest.RENDER.33: RenderCreateSolidFill +XRequest.RENDER.34: RenderCreateLinearGradient +XRequest.RENDER.35: RenderCreateRadialGradient +XRequest.RENDER.36: RenderCreateConicalGradient +XProtoError.RENDER.0: RenderBadFormat (invalid PictFormat parameter) +XlibMessage.RENDER.0: PictFormat id in failed request: 0x%lx +XProtoError.RENDER.1: RenderBadPicture (invalid Picture parameter) +XlibMessage.RENDER.1: Picture id in failed request: 0x%lx +XProtoError.RENDER.2: RenderBadPictOp (invalid PictOp parameter) +XlibMessage.RENDER.2: PictOp in failed request: 0x%lx +XProtoError.RENDER.3: RenderBadGlyphSet (invalid GlyphSet parameter) +XlibMessage.RENDER.3: GlyphSet id in failed request: 0x%lx +XProtoError.RENDER.4: RenderBadGlyph (invalid Glyph parameter) +XlibMessage.RENDER.4: Glyph in failed request: 0x%lx +! XFixes +XRequest.XFIXES.0: XFixesQueryVersion +XRequest.XFIXES.1: XFixesChangeSaveSet +XRequest.XFIXES.2: XFixesSelectSelectionInput +XRequest.XFIXES.3: XFixesSelectCursorInput +XRequest.XFIXES.4: XFixesGetCursorImage +XRequest.XFIXES.5: XFixesCreateRegion +XRequest.XFIXES.6: XFixesCreateRegionFromBitmap +XRequest.XFIXES.7: XFixesCreateRegionFromWindow +XRequest.XFIXES.8: XFixesCreateRegionFromGC +XRequest.XFIXES.9: XFixesCreateRegionFromPicture +XRequest.XFIXES.10: XFixesDestroyRegion +XRequest.XFIXES.11: XFixesSetRegion +XRequest.XFIXES.12: XFixesCopyRegion +XRequest.XFIXES.13: XFixesUnionRegion +XRequest.XFIXES.14: XFixesIntersectRegion +XRequest.XFIXES.15: XFixesSubtractRegion +XRequest.XFIXES.16: XFixesInvertRegion +XRequest.XFIXES.17: XFixesTranslateRegion +XRequest.XFIXES.18: XFixesRegionExtents +XRequest.XFIXES.19: XFixesFetchRegion +XRequest.XFIXES.20: XFixesSetGCClipRegion +XRequest.XFIXES.21: XFixesSetWindowShapeRegion +XRequest.XFIXES.22: XFixesSetPictureClipRegion +XRequest.XFIXES.23: XFixesSetCursorName +XRequest.XFIXES.24: XFixesGetCursorName +XRequest.XFIXES.25: XFixesGetCursorImageAndName +XRequest.XFIXES.26: XFixesChangeCursor +XRequest.XFIXES.27: XFixesChangeCursorByName +XRequest.XFIXES.28: XFixesExpandRegion +XRequest.XFIXES.29: XFixesHideCursor +XRequest.XFIXES.30: XFixesShowCursor +XProtoError.XFIXES.0: BadRegion (invalid Region parameter) +XlibMessage.XFIXES.0: Region id in failed request: 0x%lx +! DAMAGE extension +XRequest.DAMAGE.0: XDamageQueryVersion +XRequest.DAMAGE.1: XDamageCreate +XRequest.DAMAGE.2: XDamageDestroy +XRequest.DAMAGE.3: XDamageSubtract +XRequest.DAMAGE.4: XDamageAdd +XProtoError.DAMAGE.0: BadDamage (invalid Damage parameter) +XlibMessage.DAMAGE.0: Damage id in failed request: 0x%lx +! DRI2 extension +XRequest.DRI2.0: DRI2QueryVersion +XRequest.DRI2.1: DRI2Connect +XRequest.DRI2.2: DRI2Authenticate +XRequest.DRI2.3: DRI2CreateDrawable +XRequest.DRI2.4: DRI2DestroyDrawable +XRequest.DRI2.5: DRI2GetBuffers +XRequest.DRI2.6: DRI2CopyRegion +XRequest.DRI2.7: DRI2GetBuffersWithFormat +XRequest.DRI2.8: DRI2SwapBuffers +XRequest.DRI2.9: DRI2GetMSC +XRequest.DRI2.10: DRI2WaitMSC +XRequest.DRI2.11: DRI2WaitSBC +XRequest.DRI2.12: DRI2SwapInterval diff --git a/data/miniconda3/share/X11/Xcms.txt b/data/miniconda3/share/X11/Xcms.txt new file mode 100644 index 0000000000000000000000000000000000000000..1c5b1adecfe0643af40b52f6fae8195e21a66bf4 --- /dev/null +++ b/data/miniconda3/share/X11/Xcms.txt @@ -0,0 +1,44 @@ +/* + * (c) Copyright 1990 1991 Tektronix Inc. + * All Rights Reserved + * + * Permission to use, copy, modify, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, + * provided that the above copyright notice appear in all copies and that + * both that copyright notice and this permission notice appear in + * supporting documentation, and that the name of Tektronix not be used + * in advertising or publicity pertaining to distribution of the software + * without specific, written prior permission. + * + * Tektronix disclaims all warranties with regard to this software, including + * all implied warranties of merchantability and fitness, in no event shall + * Tektronix be liable for any special, indirect or consequential damages or + * any damages whatsoever resulting from loss of use, data or profits, + * whether in an action of contract, negligence or other tortious action, + * arising out of or in connection with the use or performance of this + * software. + * + * + * NAME + * Xcms.txt + * + * DESCRIPTION + * Sample Color Name Database + * + */ + + +This device-independent color name database is provided just as an example. +There are no claims that these color specifications are or should be bound +to the corresponding color name. + +As you can see, the start of the database is indicated by "XCMS_COLORDB_START". +Anything before this is assumed to be comments. The "0.1" indicates the +version number of the format/syntax used in this file. The color name is +delimited from the color specification by one or more tabs. + +XCMS_COLORDB_START 0.1 +cms red CIEXYZ:0.3811/0.2073/0.0213 +cms green CIEXYZ:0.3203/0.6805/0.1430 +cms blue CIEXYZ:0.2483/0.1122/1.2417 +XCMS_COLORDB_END diff --git a/data/miniconda3/share/aclocal/freetype2.m4 b/data/miniconda3/share/aclocal/freetype2.m4 new file mode 100644 index 0000000000000000000000000000000000000000..ecada6e332dea22642d13e94d9c1ff630ae7f8b8 --- /dev/null +++ b/data/miniconda3/share/aclocal/freetype2.m4 @@ -0,0 +1,194 @@ +# Configure paths for FreeType2 +# Marcelo Magallon 2001-10-26, based on `gtk.m4` by Owen Taylor +# +# Copyright (C) 2001-2025 by +# David Turner, Robert Wilhelm, and Werner Lemberg. +# +# This file is part of the FreeType project, and may only be used, modified, +# and distributed under the terms of the FreeType project license, +# LICENSE.TXT. By continuing to use, modify, or distribute this file you +# indicate that you have read the license and understand and accept it +# fully. +# +# As a special exception to the FreeType project license, this file may be +# distributed as part of a program that contains a configuration script +# generated by Autoconf, under the same distribution terms as the rest of +# that program. +# +# serial 7 + +# AC_CHECK_FT2([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) +# Test for FreeType 2, and define FT2_CFLAGS and FT2_LIBS. +# MINIMUM-VERSION is what libtool reports; the default is '7.0.1' (this is +# FreeType 2.0.4). +# +# To make this code work with older autoconf versions, `AS_HELP_STRING` is +# not quoted. +# +AC_DEFUN([AC_CHECK_FT2], + [# Get the cflags and libraries from the freetype-config script + # + AC_ARG_WITH([ft-prefix], + AS_HELP_STRING([--with-ft-prefix=PREFIX], + [Prefix where FreeType is installed (optional)]), + [ft_config_prefix="$withval"], + [ft_config_prefix=""]) + + AC_ARG_WITH([ft-exec-prefix], + AS_HELP_STRING([--with-ft-exec-prefix=PREFIX], + [Exec prefix where FreeType is installed (optional)]), + [ft_config_exec_prefix="$withval"], + [ft_config_exec_prefix=""]) + + AC_ARG_ENABLE([freetypetest], + AS_HELP_STRING([--disable-freetypetest], + [Do not try to compile and run a test FreeType program]), + [], + [enable_fttest=yes]) + + if test x$ft_config_exec_prefix != x ; then + ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix" + if test x${FT2_CONFIG+set} != xset ; then + FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config + fi + fi + + if test x$ft_config_prefix != x ; then + ft_config_args="$ft_config_args --prefix=$ft_config_prefix" + if test x${FT2_CONFIG+set} != xset ; then + FT2_CONFIG=$ft_config_prefix/bin/freetype-config + fi + fi + + if test "x$FT2_CONFIG" = x ; then + AC_PATH_TOOL([FT2_CONFIG], [freetype-config], [no]) + fi + + min_ft_version=m4_if([$1], [], [7.0.1], [$1]) + AC_MSG_CHECKING([for FreeType -- version >= $min_ft_version]) + no_ft="" + if test "$FT2_CONFIG" = "no" ; then + no_ft=yes + else + FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags` + FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` + ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + ft_min_major_version=`echo $min_ft_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + ft_min_minor_version=`echo $min_ft_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + ft_min_micro_version=`echo $min_ft_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test x$enable_fttest = xyes ; then + ft_config_is_lt="" + if test $ft_config_major_version -lt $ft_min_major_version ; then + ft_config_is_lt=yes + else + if test $ft_config_major_version -eq $ft_min_major_version ; then + if test $ft_config_minor_version -lt $ft_min_minor_version ; then + ft_config_is_lt=yes + else + if test $ft_config_minor_version -eq $ft_min_minor_version ; then + if test $ft_config_micro_version -lt $ft_min_micro_version ; then + ft_config_is_lt=yes + fi + fi + fi + fi + fi + if test x$ft_config_is_lt = xyes ; then + no_ft=yes + else + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $FT2_CFLAGS" + LIBS="$FT2_LIBS $LIBS" + + # + # Sanity checks for the results of freetype-config to some extent. + # + AC_RUN_IFELSE([ + AC_LANG_SOURCE([[ + +#include +#include +#include +#include + +int +main(void) +{ + FT_Library library; + FT_Error error; + + error = FT_Init_FreeType(&library); + + if (error) + return 1; + else + { + FT_Done_FreeType(library); + return 0; + } +} + + ]]) + ], + [], + [no_ft=yes], + [echo $ECHO_N "cross compiling; assuming OK... $ECHO_C"]) + + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi # test $ft_config_version -lt $ft_min_version + fi # test x$enable_fttest = xyes + fi # test "$FT2_CONFIG" = "no" + + if test x$no_ft = x ; then + AC_MSG_RESULT([yes]) + m4_if([$2], [], [:], [$2]) + else + AC_MSG_RESULT([no]) + if test "$FT2_CONFIG" = "no" ; then + AC_MSG_WARN([ + + The freetype-config script installed by FreeType 2 could not be found. + If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in + your path, or set the FT2_CONFIG environment variable to the + full path to freetype-config. + ]) + else + if test x$ft_config_is_lt = xyes ; then + AC_MSG_WARN([ + + Your installed version of the FreeType 2 library is too old. + If you have different versions of FreeType 2, make sure that + correct values for --with-ft-prefix or --with-ft-exec-prefix + are used, or set the FT2_CONFIG environment variable to the + full path to freetype-config. + ]) + else + AC_MSG_WARN([ + + The FreeType test program failed to run. If your system uses + shared libraries and they are installed outside the normal + system library path, make sure the variable LD_LIBRARY_PATH + (or whatever is appropriate for your system) is correctly set. + ]) + fi + fi + + FT2_CFLAGS="" + FT2_LIBS="" + m4_if([$3], [], [:], [$3]) + fi + + AC_SUBST([FT2_CFLAGS]) + AC_SUBST([FT2_LIBS])]) + +# end of freetype2.m4 diff --git a/data/miniconda3/share/aclocal/gettext.m4 b/data/miniconda3/share/aclocal/gettext.m4 new file mode 100644 index 0000000000000000000000000000000000000000..4f25a27d9358cc9422313c57a5be250bc552d52d --- /dev/null +++ b/data/miniconda3/share/aclocal/gettext.m4 @@ -0,0 +1,386 @@ +# gettext.m4 serial 71 (gettext-0.20.2) +dnl Copyright (C) 1995-2014, 2016, 2018-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Lesser General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Lesser General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2006, 2008-2010. + +dnl Macro to add for using GNU gettext. + +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). +dnl INTLSYMBOL must be one of 'external', 'use-libtool'. +dnl INTLSYMBOL should be 'external' for packages other than GNU gettext, and +dnl 'use-libtool' for the packages 'gettext-runtime' and 'gettext-tools'. +dnl If INTLSYMBOL is 'use-libtool', then a libtool library +dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, +dnl depending on --{enable,disable}-{shared,static} and on the presence of +dnl AM-DISABLE-SHARED). +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext +dnl implementations (in libc or libintl) without the ngettext() function +dnl will be ignored. If NEEDSYMBOL is specified and is +dnl 'need-formatstring-macros', then GNU gettext implementations that don't +dnl support the ISO C 99 formatstring macros will be ignored. +dnl INTLDIR is used to find the intl libraries. If empty, +dnl the value '$(top_builddir)/intl/' is used. +dnl +dnl The result of the configuration is one of three cases: +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled +dnl and used. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 2) GNU gettext has been found in the system's C library. +dnl Catalog format: GNU --> install in $(datadir) +dnl Catalog extension: .mo after installation, .gmo in source tree +dnl 3) No internationalization, always use English msgid. +dnl Catalog format: none +dnl Catalog extension: none +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. +dnl The use of .gmo is historical (it was needed to avoid overwriting the +dnl GNU format catalogs when building on a platform with an X/Open gettext), +dnl but we keep it in order not to force irrelevant filename changes on the +dnl maintainers. +dnl +AC_DEFUN([AM_GNU_GETTEXT], +[ + dnl Argument checking. + ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [use-libtool], , + [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT +])])])]) + ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], + [errprint([ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported. +])]) + ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , + [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT +])])])]) + define([gt_included_intl], + ifelse([$1], [external], [no], [yes])) + gt_NEEDS_INIT + AM_GNU_GETTEXT_NEED([$2]) + + AC_REQUIRE([AM_PO_SUBDIRS])dnl + ifelse(gt_included_intl, yes, [ + AC_REQUIRE([AM_INTL_SUBDIR])dnl + ]) + + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + + dnl Sometimes libintl requires libiconv, so first search for libiconv. + dnl Ideally we would do this search only after the + dnl if test "$USE_NLS" = "yes"; then + dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then + dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT + dnl the configure script would need to contain the same shell code + dnl again, outside any 'if'. There are two solutions: + dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. + dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. + dnl Since AC_PROVIDE_IFELSE is not documented, we avoid it. + ifelse(gt_included_intl, yes, , [ + AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) + ]) + + dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. + gt_INTL_MACOSX + + dnl Set USE_NLS. + AC_REQUIRE([AM_NLS]) + + ifelse(gt_included_intl, yes, [ + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + ]) + LIBINTL= + LTLIBINTL= + POSUB= + + dnl Add a version number to the cache macros. + case " $gt_needs " in + *" need-formatstring-macros "*) gt_api_version=3 ;; + *" need-ngettext "*) gt_api_version=2 ;; + *) gt_api_version=1 ;; + esac + gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" + gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" + + dnl If we use NLS figure out what method + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + ifelse(gt_included_intl, yes, [ + AC_MSG_CHECKING([whether included gettext is requested]) + AC_ARG_WITH([included-gettext], + [ --with-included-gettext use the GNU gettext library included here], + nls_cv_force_use_gnu_gettext=$withval, + nls_cv_force_use_gnu_gettext=no) + AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) + + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + ]) + dnl User does not insist on using GNU NLS library. Figure out what + dnl to use. If GNU gettext is available we use this. Else we have + dnl to fall back to GNU NLS library. + + if test $gt_api_version -ge 3; then + gt_revision_test_code=' +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +changequote(,)dnl +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +changequote([,])dnl +' + else + gt_revision_test_code= + fi + if test $gt_api_version -ge 2; then + gt_expression_test_code=' + * ngettext ("", "", 0)' + else + gt_expression_test_code= + fi + + AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings; +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + ]], + [[ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ]])], + [eval "$gt_func_gnugettext_libc=yes"], + [eval "$gt_func_gnugettext_libc=no"])]) + + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then + dnl Sometimes libintl requires libiconv, so first search for libiconv. + ifelse(gt_included_intl, yes, , [ + AM_ICONV_LINK + ]) + dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL + dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) + dnl because that would add "-liconv" to LIBINTL and LTLIBINTL + dnl even if libiconv doesn't exist. + AC_LIB_LINKFLAGS_BODY([intl]) + AC_CACHE_CHECK([for GNU gettext in libintl], + [$gt_func_gnugettext_libintl], + [gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + dnl Now see whether libintl exists and does not depend on libiconv. + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *); +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + ]], + [[ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ]])], + [eval "$gt_func_gnugettext_libintl=yes"], + [eval "$gt_func_gnugettext_libintl=no"]) + dnl Now see whether libintl exists and depends on libiconv. + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *); +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + ]], + [[ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ]])], + [LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + eval "$gt_func_gnugettext_libintl=yes" + ]) + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS"]) + fi + + dnl If an already present or preinstalled GNU gettext() is found, + dnl use it. But if this macro is used in GNU gettext, and GNU + dnl gettext is already preinstalled in libintl, we update this + dnl libintl. (Cf. the install rule in intl/Makefile.in.) + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ + || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ + && test "$PACKAGE" != gettext-runtime \ + && test "$PACKAGE" != gettext-tools; }; then + gt_use_preinstalled_gnugettext=yes + else + dnl Reset the values set by searching for libintl. + LIBINTL= + LTLIBINTL= + INCINTL= + fi + + ifelse(gt_included_intl, yes, [ + if test "$gt_use_preinstalled_gnugettext" != "yes"; then + dnl GNU gettext is not found in the C library. + dnl Fall back on included GNU gettext library. + nls_cv_use_gnu_gettext=yes + fi + fi + + if test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions used to generate GNU NLS library. + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LIBICONV $LIBTHREAD" + LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LTLIBICONV $LTLIBTHREAD" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi + + CATOBJEXT= + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Mark actions to use GNU gettext tools. + CATOBJEXT=.gmo + fi + ]) + + if test -n "$INTL_MACOSX_LIBS"; then + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + dnl Some extra flags are needed during linking. + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" + fi + fi + + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + AC_DEFINE([ENABLE_NLS], [1], + [Define to 1 if translation of program messages to the user's native language + is requested.]) + else + USE_NLS=no + fi + fi + + AC_MSG_CHECKING([whether to use NLS]) + AC_MSG_RESULT([$USE_NLS]) + if test "$USE_NLS" = "yes"; then + AC_MSG_CHECKING([where the gettext function comes from]) + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + gt_source="external libintl" + else + gt_source="libc" + fi + else + gt_source="included intl directory" + fi + AC_MSG_RESULT([$gt_source]) + fi + + if test "$USE_NLS" = "yes"; then + + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + AC_MSG_CHECKING([how to link with libintl]) + AC_MSG_RESULT([$LIBINTL]) + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) + fi + + dnl For backward compatibility. Some packages may be using this. + AC_DEFINE([HAVE_GETTEXT], [1], + [Define if the GNU gettext() function is already present or preinstalled.]) + AC_DEFINE([HAVE_DCGETTEXT], [1], + [Define if the GNU dcgettext() function is already present or preinstalled.]) + fi + + dnl We need to process the po/ directory. + POSUB=po + fi + + ifelse(gt_included_intl, yes, [ + dnl In GNU gettext we have to set BUILD_INCLUDED_LIBINTL to 'yes' + dnl because some of the testsuite requires it. + BUILD_INCLUDED_LIBINTL=yes + + dnl Make all variables we use known to autoconf. + AC_SUBST([BUILD_INCLUDED_LIBINTL]) + AC_SUBST([USE_INCLUDED_LIBINTL]) + AC_SUBST([CATOBJEXT]) + ]) + + dnl For backward compatibility. Some Makefiles may be using this. + INTLLIBS="$LIBINTL" + AC_SUBST([INTLLIBS]) + + dnl Make all documented variables known to autoconf. + AC_SUBST([LIBINTL]) + AC_SUBST([LTLIBINTL]) + AC_SUBST([POSUB]) +]) + + +dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. +m4_define([gt_NEEDS_INIT], +[ + m4_divert_text([DEFAULTS], [gt_needs=]) + m4_define([gt_NEEDS_INIT], []) +]) + + +dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) +AC_DEFUN([AM_GNU_GETTEXT_NEED], +[ + m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) +]) + + +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) +AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) + + +dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) +AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) diff --git a/data/miniconda3/share/aclocal/gtk-2.0.m4 b/data/miniconda3/share/aclocal/gtk-2.0.m4 new file mode 100644 index 0000000000000000000000000000000000000000..a89477fabbb72a3046e09a0fd81436b7f6389e68 --- /dev/null +++ b/data/miniconda3/share/aclocal/gtk-2.0.m4 @@ -0,0 +1,189 @@ +# Configure paths for GTK+ +# Owen Taylor 1997-2001 + +# Version number used by aclocal, see `info automake Serials`. +# Increment on every change. +#serial 1 + +dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) +dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, +dnl pass to pkg-config +dnl +AC_DEFUN([AM_PATH_GTK_2_0], +[dnl +dnl Get the cflags and libraries from pkg-config +dnl +AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], + , enable_gtktest=yes) + + pkg_config_args=gtk+-2.0 + for module in . $4 + do + case "$module" in + gthread) + pkg_config_args="$pkg_config_args gthread-2.0" + ;; + esac + done + + no_gtk="" + + AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + PKG_PROG_PKG_CONFIG([0.7]) + + min_gtk_version=ifelse([$1], ,2.0.0,$1) + AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) + + if test x$PKG_CONFIG != xno ; then + ## don't try to run the test against uninstalled libtool libs + if $PKG_CONFIG --uninstalled $pkg_config_args; then + echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" + enable_gtktest=no + fi + + if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then + : + else + no_gtk=yes + fi + fi + + if test x"$no_gtk" = x ; then + GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` + GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` + gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test "x$enable_gtktest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$GTK_LIBS $LIBS" +dnl +dnl Now check if the installed GTK+ is sufficiently new. (Also sanity +dnl checks the results of pkg-config to some extent) +dnl + rm -f conf.gtktest + AC_TRY_RUN([ +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + fclose (fopen ("conf.gtktest", "w")); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_gtk_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_gtk_version"); + exit(1); + } + + if ((gtk_major_version != $gtk_config_major_version) || + (gtk_minor_version != $gtk_config_minor_version) || + (gtk_micro_version != $gtk_config_micro_version)) + { + printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf ("*** was found! If pkg-config was correct, then it is best\n"); + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); + printf("*** to point to the correct configuration files\n"); + } + else if ((gtk_major_version != GTK_MAJOR_VERSION) || + (gtk_minor_version != GTK_MINOR_VERSION) || + (gtk_micro_version != GTK_MICRO_VERSION)) + { + printf("*** GTK+ header files (version %d.%d.%d) do not match\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + } + else + { + if ((gtk_major_version > major) || + ((gtk_major_version == major) && (gtk_minor_version > minor)) || + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); + printf("*** correct copy of pkg-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} +],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_gtk" = x ; then + AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + if test "$PKG_CONFIG" = "no" ; then + echo "*** A new enough version of pkg-config was not found." + echo "*** See http://pkgconfig.sourceforge.net" + else + if test -f conf.gtktest ; then + : + else + echo "*** Could not run GTK+ test program, checking why..." + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$LIBS $GTK_LIBS" + AC_TRY_LINK([ +#include +#include +], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GTK+ or finding the wrong" + echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GTK_CFLAGS="" + GTK_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) + rm -f conf.gtktest +]) diff --git a/data/miniconda3/share/aclocal/gts.m4 b/data/miniconda3/share/aclocal/gts.m4 new file mode 100644 index 0000000000000000000000000000000000000000..a04da499dd1afa90f638796906cd8d0562f45ca0 --- /dev/null +++ b/data/miniconda3/share/aclocal/gts.m4 @@ -0,0 +1,194 @@ +# Configure paths for GTS +# Stéphane Popinet 2001-10-4 +# adapted from +# Configure paths for GLIB +# Owen Taylor 97-11-3 + +dnl AM_PATH_GTS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) +dnl Test for GTS, and define GTS_CFLAGS and GTS_LIBS +dnl +AC_DEFUN([AM_PATH_GTS], +[dnl +dnl Get the cflags and libraries from the gts-config script +dnl +AC_ARG_WITH(gts-prefix,[ --with-gts-prefix=PFX Prefix where GTS is installed (optional)], + gts_config_prefix="$withval", gts_config_prefix="") +AC_ARG_WITH(gts-exec-prefix,[ --with-gts-exec-prefix=PFX Exec prefix where GTS is installed (optional)], + gts_config_exec_prefix="$withval", gts_config_exec_prefix="") +AC_ARG_ENABLE(gtstest, [ --disable-gtstest Do not try to compile and run a test GTS program], + , enable_gtstest=yes) + + if test x$gts_config_exec_prefix != x ; then + gts_config_args="$gts_config_args --exec-prefix=$gts_config_exec_prefix" + if test x${GTS_CONFIG+set} != xset ; then + GTS_CONFIG=$gts_config_exec_prefix/bin/gts-config + fi + fi + if test x$gts_config_prefix != x ; then + gts_config_args="$gts_config_args --prefix=$gts_config_prefix" + if test x${GTS_CONFIG+set} != xset ; then + GTS_CONFIG=$gts_config_prefix/bin/gts-config + fi + fi + + for module in . $4 + do + case "$module" in + gmodule) + gts_config_args="$gts_config_args gmodule" + ;; + gthread) + gts_config_args="$gts_config_args gthread" + ;; + esac + done + + AC_PATH_PROG(GTS_CONFIG, gts-config, no) + min_gts_version=ifelse([$1], ,0.99.7,$1) + AC_MSG_CHECKING(for GTS - version >= $min_gts_version) + no_gts="" + if test "$GTS_CONFIG" = "no" ; then + no_gts=yes + else + GTS_CFLAGS=`$GTS_CONFIG $gts_config_args --cflags` + GTS_LIBS=`$GTS_CONFIG $gts_config_args --libs` + gts_config_major_version=`$GTS_CONFIG $gts_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + gts_config_minor_version=`$GTS_CONFIG $gts_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + gts_config_micro_version=`$GTS_CONFIG $gts_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test "x$enable_gtstest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTS_CFLAGS" + LIBS="$GTS_LIBS $LIBS" +dnl +dnl Now check if the installed GTS is sufficiently new. (Also sanity +dnl checks the results of gts-config to some extent +dnl + rm -f conf.gtstest + AC_TRY_RUN([ +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + system ("touch conf.gtstest"); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_gts_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_gts_version"); + exit(1); + } + + if ((gts_major_version != $gts_config_major_version) || + (gts_minor_version != $gts_config_minor_version) || + (gts_micro_version != $gts_config_micro_version)) + { + printf("\n*** 'gts-config --version' returned %d.%d.%d, but GTS (%d.%d.%d)\n", + $gts_config_major_version, $gts_config_minor_version, $gts_config_micro_version, + gts_major_version, gts_minor_version, gts_micro_version); + printf ("*** was found! If gts-config was correct, then it is best\n"); + printf ("*** to remove the old version of GTS. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If gts-config was wrong, set the environment variable GTS_CONFIG\n"); + printf("*** to point to the correct copy of gts-config, and remove the file config.cache\n"); + printf("*** before re-running configure\n"); + } + else if ((gts_major_version != GTS_MAJOR_VERSION) || + (gts_minor_version != GTS_MINOR_VERSION) || + (gts_micro_version != GTS_MICRO_VERSION)) + { + printf("*** GTS header files (version %d.%d.%d) do not match\n", + GTS_MAJOR_VERSION, GTS_MINOR_VERSION, GTS_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + gts_major_version, gts_minor_version, gts_micro_version); + } + else + { + if ((gts_major_version > major) || + ((gts_major_version == major) && (gts_minor_version > minor)) || + ((gts_major_version == major) && (gts_minor_version == minor) && (gts_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GTS (%d.%d.%d) was found.\n", + gts_major_version, gts_minor_version, gts_micro_version); + printf("*** You need a version of GTS newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GTS is always available from http://gts.sourceforge.net.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the gts-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GTS, but you can also set the GTS_CONFIG environment to point to the\n"); + printf("*** correct copy of gts-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} +],, no_gts=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_gts" = x ; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + if test "$GTS_CONFIG" = "no" ; then + echo "*** The gts-config script installed by GTS could not be found" + echo "*** If GTS was installed in PREFIX, make sure PREFIX/bin is in" + echo "*** your path, or set the GTS_CONFIG environment variable to the" + echo "*** full path to gts-config." + else + if test -f conf.gtstest ; then + : + else + echo "*** Could not run GTS test program, checking why..." + CFLAGS="$CFLAGS $GTS_CFLAGS" + LIBS="$LIBS $GTS_LIBS" + AC_TRY_LINK([ +#include +#include +], [ return ((gts_major_version) || (gts_minor_version) || (gts_micro_version)); ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GTS or finding the wrong" + echo "*** version of GTS. If it is not finding GTS, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" + echo "***"], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GTS was incorrectly installed" + echo "*** or that you have moved GTS since it was installed. In the latter case, you" + echo "*** may want to edit the gts-config script: $GTS_CONFIG" ]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GTS_CFLAGS="" + GTS_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(GTS_CFLAGS) + AC_SUBST(GTS_LIBS) + rm -f conf.gtstest +]) diff --git a/data/miniconda3/share/aclocal/host-cpu-c-abi.m4 b/data/miniconda3/share/aclocal/host-cpu-c-abi.m4 new file mode 100644 index 0000000000000000000000000000000000000000..6db2aa25aeaff9ce9bb0722ea747a65df6cbf628 --- /dev/null +++ b/data/miniconda3/share/aclocal/host-cpu-c-abi.m4 @@ -0,0 +1,675 @@ +# host-cpu-c-abi.m4 serial 13 +dnl Copyright (C) 2002-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible and Sam Steingold. + +dnl Sets the HOST_CPU variable to the canonical name of the CPU. +dnl Sets the HOST_CPU_C_ABI variable to the canonical name of the CPU with its +dnl C language ABI (application binary interface). +dnl Also defines __${HOST_CPU}__ and __${HOST_CPU_C_ABI}__ as C macros in +dnl config.h. +dnl +dnl This canonical name can be used to select a particular assembly language +dnl source file that will interoperate with C code on the given host. +dnl +dnl For example: +dnl * 'i386' and 'sparc' are different canonical names, because code for i386 +dnl will not run on SPARC CPUs and vice versa. They have different +dnl instruction sets. +dnl * 'sparc' and 'sparc64' are different canonical names, because code for +dnl 'sparc' and code for 'sparc64' cannot be linked together: 'sparc' code +dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit +dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit +dnl mode, but not both. +dnl * 'mips' and 'mipsn32' are different canonical names, because they use +dnl different argument passing and return conventions for C functions, and +dnl although the instruction set of 'mips' is a large subset of the +dnl instruction set of 'mipsn32'. +dnl * 'mipsn32' and 'mips64' are different canonical names, because they use +dnl different sizes for the C types like 'int' and 'void *', and although +dnl the instruction sets of 'mipsn32' and 'mips64' are the same. +dnl * The same canonical name is used for different endiannesses. You can +dnl determine the endianness through preprocessor symbols: +dnl - 'arm': test __ARMEL__. +dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL. +dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN. +dnl * The same name 'i386' is used for CPUs of type i386, i486, i586 +dnl (Pentium), AMD K7, Pentium II, Pentium IV, etc., because +dnl - Instructions that do not exist on all of these CPUs (cmpxchg, +dnl MMX, SSE, SSE2, 3DNow! etc.) are not frequently used. If your +dnl assembly language source files use such instructions, you will +dnl need to make the distinction. +dnl - Speed of execution of the common instruction set is reasonable across +dnl the entire family of CPUs. If you have assembly language source files +dnl that are optimized for particular CPU types (like GNU gmp has), you +dnl will need to make the distinction. +dnl See . +AC_DEFUN([gl_HOST_CPU_C_ABI], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([gl_C_ASM]) + AC_CACHE_CHECK([host CPU and C ABI], [gl_cv_host_cpu_c_abi], + [case "$host_cpu" in + +changequote(,)dnl + i[34567]86 ) +changequote([,])dnl + gl_cv_host_cpu_c_abi=i386 + ;; + + x86_64 ) + # On x86_64 systems, the C compiler may be generating code in one of + # these ABIs: + # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. + # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 + # with native Windows (mingw, MSVC). + # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. + # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if (defined __x86_64__ || defined __amd64__ \ + || defined _M_X64 || defined _M_AMD64) + int ok; + #else + error fail + #endif + ]])], + [AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __ILP32__ || defined _ILP32 + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=x86_64-x32], + [gl_cv_host_cpu_c_abi=x86_64])], + [gl_cv_host_cpu_c_abi=i386]) + ;; + +changequote(,)dnl + alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) +changequote([,])dnl + gl_cv_host_cpu_c_abi=alpha + ;; + + arm* | aarch64 ) + # Assume arm with EABI. + # On arm64 systems, the C compiler may be generating code in one of + # these ABIs: + # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. + # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. + # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#ifdef __aarch64__ + int ok; + #else + error fail + #endif + ]])], + [AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __ILP32__ || defined _ILP32 + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=arm64-ilp32], + [gl_cv_host_cpu_c_abi=arm64])], + [# Don't distinguish little-endian and big-endian arm, since they + # don't require different machine code for simple operations and + # since the user can distinguish them through the preprocessor + # defines __ARMEL__ vs. __ARMEB__. + # But distinguish arm which passes floating-point arguments and + # return values in integer registers (r0, r1, ...) - this is + # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which + # passes them in float registers (s0, s1, ...) and double registers + # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer + # sets the preprocessor defines __ARM_PCS (for the first case) and + # __ARM_PCS_VFP (for the second case), but older GCC does not. + echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c + # Look for a reference to the register d0 in the .s file. + AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1 + if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then + gl_cv_host_cpu_c_abi=armhf + else + gl_cv_host_cpu_c_abi=arm + fi + rm -f conftest* + ]) + ;; + + hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) + # On hppa, the C compiler may be generating 32-bit code or 64-bit + # code. In the latter case, it defines _LP64 and __LP64__. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#ifdef __LP64__ + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=hppa64], + [gl_cv_host_cpu_c_abi=hppa]) + ;; + + ia64* ) + # On ia64 on HP-UX, the C compiler may be generating 64-bit code or + # 32-bit code. In the latter case, it defines _ILP32. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#ifdef _ILP32 + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=ia64-ilp32], + [gl_cv_host_cpu_c_abi=ia64]) + ;; + + mips* ) + # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this + # at 32. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=mips64], + [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but + # may later get defined by ), and _MIPS_SIM == _ABIN32. + # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but + # may later get defined by ), and _MIPS_SIM == _ABIO32. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if (_MIPS_SIM == _ABIN32) + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=mipsn32], + [gl_cv_host_cpu_c_abi=mips])]) + ;; + + powerpc* ) + # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. + # No need to distinguish them here; the caller may distinguish + # them based on the OS. + # On powerpc64 systems, the C compiler may still be generating + # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may + # be generating 64-bit code. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __powerpc64__ || defined _ARCH_PPC64 + int ok; + #else + error fail + #endif + ]])], + [# On powerpc64, there are two ABIs on Linux: The AIX compatible + # one and the ELFv2 one. The latter defines _CALL_ELF=2. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined _CALL_ELF && _CALL_ELF == 2 + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=powerpc64-elfv2], + [gl_cv_host_cpu_c_abi=powerpc64]) + ], + [gl_cv_host_cpu_c_abi=powerpc]) + ;; + + rs6000 ) + gl_cv_host_cpu_c_abi=powerpc + ;; + + riscv32 | riscv64 ) + # There are 2 architectures (with variants): rv32* and rv64*. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if __riscv_xlen == 64 + int ok; + #else + error fail + #endif + ]])], + [cpu=riscv64], + [cpu=riscv32]) + # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. + # Size of 'long' and 'void *': + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __LP64__ + int ok; + #else + error fail + #endif + ]])], + [main_abi=lp64], + [main_abi=ilp32]) + # Float ABIs: + # __riscv_float_abi_double: + # 'float' and 'double' are passed in floating-point registers. + # __riscv_float_abi_single: + # 'float' are passed in floating-point registers. + # __riscv_float_abi_soft: + # No values are passed in floating-point registers. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __riscv_float_abi_double + int ok; + #else + error fail + #endif + ]])], + [float_abi=d], + [AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __riscv_float_abi_single + int ok; + #else + error fail + #endif + ]])], + [float_abi=f], + [float_abi='']) + ]) + gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}" + ;; + + s390* ) + # On s390x, the C compiler may be generating 64-bit (= s390x) code + # or 31-bit (= s390) code. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __LP64__ || defined __s390x__ + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=s390x], + [gl_cv_host_cpu_c_abi=s390]) + ;; + + sparc | sparc64 ) + # UltraSPARCs running Linux have `uname -m` = "sparc64", but the + # C compiler still generates 32-bit code. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __sparcv9 || defined __arch64__ + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=sparc64], + [gl_cv_host_cpu_c_abi=sparc]) + ;; + + *) + gl_cv_host_cpu_c_abi="$host_cpu" + ;; + esac + ]) + + dnl In most cases, $HOST_CPU and $HOST_CPU_C_ABI are the same. + HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'` + HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi" + AC_SUBST([HOST_CPU]) + AC_SUBST([HOST_CPU_C_ABI]) + + # This was + # AC_DEFINE_UNQUOTED([__${HOST_CPU}__]) + # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__]) + # earlier, but KAI C++ 3.2d doesn't like this. + sed -e 's/-/_/g' >> confdefs.h < +#include + ]], + [[iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);]])], + [am_cv_func_iconv=yes]) + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#include + ]], + [[iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);]])], + [am_cv_lib_iconv=yes] + [am_cv_func_iconv=yes]) + LIBS="$am_save_LIBS" + fi + ]) + if test "$am_cv_func_iconv" = yes; then + AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ + dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, + dnl Solaris 10. + am_save_LIBS="$LIBS" + if test $am_cv_lib_iconv = yes; then + LIBS="$LIBS $LIBICONV" + fi + am_cv_func_iconv_works=no + for ac_iconv_const in '' 'const'; do + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#include + +#ifndef ICONV_CONST +# define ICONV_CONST $ac_iconv_const +#endif + ]], + [[int result = 0; + /* Test against AIX 5.1 bug: Failures are not distinguishable from successful + returns. */ + { + iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); + if (cd_utf8_to_88591 != (iconv_t)(-1)) + { + static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ + char buf[10]; + ICONV_CONST char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_utf8_to_88591, + &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + result |= 1; + iconv_close (cd_utf8_to_88591); + } + } + /* Test against Solaris 10 bug: Failures are not distinguishable from + successful returns. */ + { + iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); + if (cd_ascii_to_88591 != (iconv_t)(-1)) + { + static ICONV_CONST char input[] = "\263"; + char buf[10]; + ICONV_CONST char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_ascii_to_88591, + &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + result |= 2; + iconv_close (cd_ascii_to_88591); + } + } + /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ + { + iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); + if (cd_88591_to_utf8 != (iconv_t)(-1)) + { + static ICONV_CONST char input[] = "\304"; + static char buf[2] = { (char)0xDE, (char)0xAD }; + ICONV_CONST char *inptr = input; + size_t inbytesleft = 1; + char *outptr = buf; + size_t outbytesleft = 1; + size_t res = iconv (cd_88591_to_utf8, + &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) + result |= 4; + iconv_close (cd_88591_to_utf8); + } + } +#if 0 /* This bug could be worked around by the caller. */ + /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ + { + iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); + if (cd_88591_to_utf8 != (iconv_t)(-1)) + { + static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char buf[50]; + ICONV_CONST char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_88591_to_utf8, + &inptr, &inbytesleft, + &outptr, &outbytesleft); + if ((int)res > 0) + result |= 8; + iconv_close (cd_88591_to_utf8); + } + } +#endif + /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is + provided. */ + { + /* Try standardized names. */ + iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); + /* Try IRIX, OSF/1 names. */ + iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); + /* Try AIX names. */ + iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); + /* Try HP-UX names. */ + iconv_t cd4 = iconv_open ("utf8", "eucJP"); + if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) + && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) + result |= 16; + if (cd1 != (iconv_t)(-1)) + iconv_close (cd1); + if (cd2 != (iconv_t)(-1)) + iconv_close (cd2); + if (cd3 != (iconv_t)(-1)) + iconv_close (cd3); + if (cd4 != (iconv_t)(-1)) + iconv_close (cd4); + } + return result; +]])], + [am_cv_func_iconv_works=yes], , + [case "$host_os" in + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; + *) am_cv_func_iconv_works="guessing yes" ;; + esac]) + test "$am_cv_func_iconv_works" = no || break + done + LIBS="$am_save_LIBS" + ]) + case "$am_cv_func_iconv_works" in + *no) am_func_iconv=no am_cv_lib_iconv=no ;; + *) am_func_iconv=yes ;; + esac + else + am_func_iconv=no am_cv_lib_iconv=no + fi + if test "$am_func_iconv" = yes; then + AC_DEFINE([HAVE_ICONV], [1], + [Define if you have the iconv() function and it works.]) + fi + if test "$am_cv_lib_iconv" = yes; then + AC_MSG_CHECKING([how to link with libiconv]) + AC_MSG_RESULT([$LIBICONV]) + else + dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV + dnl either. + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi + AC_SUBST([LIBICONV]) + AC_SUBST([LTLIBICONV]) +]) + +dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to +dnl avoid warnings like +dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". +dnl This is tricky because of the way 'aclocal' is implemented: +dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. +dnl Otherwise aclocal's initial scan pass would miss the macro definition. +dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. +dnl Otherwise aclocal would emit many "Use of uninitialized value $1" +dnl warnings. +m4_define([gl_iconv_AC_DEFUN], + m4_version_prereq([2.64], + [[AC_DEFUN_ONCE( + [$1], [$2])]], + [m4_ifdef([gl_00GNULIB], + [[AC_DEFUN_ONCE( + [$1], [$2])]], + [[AC_DEFUN( + [$1], [$2])]])])) +gl_iconv_AC_DEFUN([AM_ICONV], +[ + AM_ICONV_LINK + if test "$am_cv_func_iconv" = yes; then + AC_MSG_CHECKING([for iconv declaration]) + AC_CACHE_VAL([am_cv_proto_iconv], [ + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif + ]], + [[]])], + [am_cv_proto_iconv_arg1=""], + [am_cv_proto_iconv_arg1="const"]) + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) + am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + AC_MSG_RESULT([ + $am_cv_proto_iconv]) + else + dnl When compiling GNU libiconv on a system that does not have iconv yet, + dnl pick the POSIX compliant declaration without 'const'. + am_cv_proto_iconv_arg1="" + fi + AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], + [Define as const if the declaration of iconv() needs const.]) + dnl Also substitute ICONV_CONST in the gnulib generated . + m4_ifdef([gl_ICONV_H_DEFAULTS], + [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) + if test -n "$am_cv_proto_iconv_arg1"; then + ICONV_CONST="const" + fi + ]) +]) diff --git a/data/miniconda3/share/aclocal/intlmacosx.m4 b/data/miniconda3/share/aclocal/intlmacosx.m4 new file mode 100644 index 0000000000000000000000000000000000000000..ebd9937c1aaabb4756fda8aa5eb80717013e1139 --- /dev/null +++ b/data/miniconda3/share/aclocal/intlmacosx.m4 @@ -0,0 +1,65 @@ +# intlmacosx.m4 serial 8 (gettext-0.20.2) +dnl Copyright (C) 2004-2014, 2016, 2019-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Lesser General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Lesser General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Checks for special options needed on Mac OS X. +dnl Defines INTL_MACOSX_LIBS. +AC_DEFUN([gt_INTL_MACOSX], +[ + dnl Check for API introduced in Mac OS X 10.4. + AC_CACHE_CHECK([for CFPreferencesCopyAppValue], + [gt_cv_func_CFPreferencesCopyAppValue], + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[CFPreferencesCopyAppValue(NULL, NULL)]])], + [gt_cv_func_CFPreferencesCopyAppValue=yes], + [gt_cv_func_CFPreferencesCopyAppValue=no]) + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], + [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) + fi + dnl Don't check for the API introduced in Mac OS X 10.5, CFLocaleCopyCurrent, + dnl because in macOS 10.13.4 it has the following behaviour: + dnl When two or more languages are specified in the + dnl "System Preferences > Language & Region > Preferred Languages" panel, + dnl it returns en_CC where CC is the territory (even when English is not among + dnl the preferred languages!). What we want instead is what + dnl CFLocaleCopyCurrent returned in earlier macOS releases and what + dnl CFPreferencesCopyAppValue still returns, namely ll_CC where ll is the + dnl first among the preferred languages and CC is the territory. + AC_CACHE_CHECK([for CFLocaleCopyPreferredLanguages], [gt_cv_func_CFLocaleCopyPreferredLanguages], + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[CFLocaleCopyPreferredLanguages();]])], + [gt_cv_func_CFLocaleCopyPreferredLanguages=yes], + [gt_cv_func_CFLocaleCopyPreferredLanguages=no]) + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then + AC_DEFINE([HAVE_CFLOCALECOPYPREFERREDLANGUAGES], [1], + [Define to 1 if you have the Mac OS X function CFLocaleCopyPreferredLanguages in the CoreFoundation framework.]) + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ + || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi + AC_SUBST([INTL_MACOSX_LIBS]) +]) diff --git a/data/miniconda3/share/aclocal/lib-ld.m4 b/data/miniconda3/share/aclocal/lib-ld.m4 new file mode 100644 index 0000000000000000000000000000000000000000..98c348fafff8ef6e013951eee04c262390a7e56f --- /dev/null +++ b/data/miniconda3/share/aclocal/lib-ld.m4 @@ -0,0 +1,168 @@ +# lib-ld.m4 serial 9 +dnl Copyright (C) 1996-2003, 2009-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Subroutines of libtool.m4, +dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid +dnl collision with libtool.m4. + +dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. +AC_DEFUN([AC_LIB_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], +[# I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 /dev/null 2>&1 \ + && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + || PATH_SEPARATOR=';' + } +fi + +if test -n "$LD"; then + AC_MSG_CHECKING([for ld]) +elif test "$GCC" = yes; then + AC_MSG_CHECKING([for ld used by $CC]) +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +if test -n "$LD"; then + # Let the user override the test with a path. + : +else + AC_CACHE_VAL([acl_cv_path_LD], + [ + acl_cv_path_LD= # Final result of this test + ac_prog=ld # Program to search in $PATH + if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + acl_output=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $acl_output in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` + while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do + acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` + done + # Got the pathname. No search in PATH is needed. + acl_cv_path_LD="$acl_output" + ac_prog= + ;; + "") + # If it fails, then pretend we aren't using GCC. + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac + fi + if test -n "$ac_prog"; then + # Search for $ac_prog in $PATH. + acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$acl_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + acl_libext="$acl_cv_libext" + acl_shlibext="$acl_cv_shlibext" + acl_libname_spec="$acl_cv_libname_spec" + acl_library_names_spec="$acl_cv_library_names_spec" + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + acl_hardcode_direct="$acl_cv_hardcode_direct" + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE([rpath], + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) + +dnl AC_LIB_FROMPACKAGE(name, package) +dnl declares that libname comes from the given package. The configure file +dnl will then not have a --with-libname-prefix option but a +dnl --with-package-prefix option. Several libraries can come from the same +dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar +dnl macro call that searches for libname. +AC_DEFUN([AC_LIB_FROMPACKAGE], +[ + pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) + define([acl_frompackage_]NAME, [$2]) + popdef([NAME]) + pushdef([PACK],[$2]) + pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) + define([acl_libsinpackage_]PACKUP, + m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) + popdef([PACKUP]) + popdef([PACK]) +]) + +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. +dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found +dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY], +[ + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) + pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) + pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) + pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" + eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" + ]) + AC_ARG_WITH(PACK[-prefix], +[[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib + --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" + eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + additional_libdir2="$withval/$acl_libdirstem2" + additional_libdir3="$withval/$acl_libdirstem3" + fi + fi +]) + if test "X$additional_libdir2" = "X$additional_libdir"; then + additional_libdir2= + fi + if test "X$additional_libdir3" = "X$additional_libdir"; then + additional_libdir3= + fi + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + LIB[]NAME[]_PREFIX= + dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been + dnl computed. So it has to be reset here. + HAVE_LIB[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do + if test "X$found_dir" = "X"; then + eval dir=\$$additional_libdir_variable + if test -n "$dir"; then + dnl The same code as in the loop below: + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + fi + done + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$acl_hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem3 | */$acl_libdirstem3/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $dependency_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ + && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then + haveit= + if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ + || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$dependency_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$dependency_libdir"; then + dnl Really add $dependency_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$dependency_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$dependency_libdir"; then + dnl Really add $dependency_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi + popdef([PACKLIBS]) + popdef([PACKUP]) + popdef([PACK]) + popdef([NAME]) +]) + +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, +dnl unless already present in VAR. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes +dnl contains two or three consecutive elements that belong together. +AC_DEFUN([AC_LIB_APPENDTOVAR], +[ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) + +dnl For those cases where a variable contains several -L and -l options +dnl referring to unknown libraries and directories, this macro determines the +dnl necessary additional linker options for the runtime path. +dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) +dnl sets LDADDVAR to linker options needed together with LIBSVALUE. +dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, +dnl otherwise linking without libtool is assumed. +AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], +[ + AC_REQUIRE([AC_LIB_RPATH]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + $1= + if test "$enable_rpath" != no; then + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode directories into the resulting + dnl binary. + rpathdirs= + next= + for opt in $2; do + if test -n "$next"; then + dir="$next" + dnl No need to hardcode the standard /usr/lib. + if test "X$dir" != "X/usr/$acl_libdirstem" \ + && test "X$dir" != "X/usr/$acl_libdirstem2" \ + && test "X$dir" != "X/usr/$acl_libdirstem3"; then + rpathdirs="$rpathdirs $dir" + fi + next= + else + case $opt in + -L) next=yes ;; + -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` + dnl No need to hardcode the standard /usr/lib. + if test "X$dir" != "X/usr/$acl_libdirstem" \ + && test "X$dir" != "X/usr/$acl_libdirstem2" \ + && test "X$dir" != "X/usr/$acl_libdirstem3"; then + rpathdirs="$rpathdirs $dir" + fi + next= ;; + *) next= ;; + esac + fi + done + if test "X$rpathdirs" != "X"; then + if test -n ""$3""; then + dnl libtool is used for linking. Use -R options. + for dir in $rpathdirs; do + $1="${$1}${$1:+ }-R$dir" + done + else + dnl The linker is used for linking directly. + if test -n "$acl_hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user + dnl must pass all path elements in one option. + alldirs= + for dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + $1="$flag" + else + dnl The -rpath options are cumulative. + for dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + $1="${$1}${$1:+ }$flag" + done + fi + fi + fi + fi + fi + AC_SUBST([$1]) +]) diff --git a/data/miniconda3/share/aclocal/lib-prefix.m4 b/data/miniconda3/share/aclocal/lib-prefix.m4 new file mode 100644 index 0000000000000000000000000000000000000000..c8a0b464c2804e7f10ed9abcaed5bb43f23b0e49 --- /dev/null +++ b/data/miniconda3/share/aclocal/lib-prefix.m4 @@ -0,0 +1,320 @@ +# lib-prefix.m4 serial 17 +dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed +dnl to access previously installed libraries. The basic assumption is that +dnl a user will want packages to use other packages he previously installed +dnl with the same --prefix option. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate +dnl libraries, but is otherwise very convenient. +AC_DEFUN([AC_LIB_PREFIX], +[ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_ARG_WITH([lib-prefix], +[[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir]], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) + +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, +dnl acl_final_exec_prefix, containing the values to which $prefix and +dnl $exec_prefix will expand at the end of the configure script. +AC_DEFUN([AC_LIB_PREPARE_PREFIX], +[ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the +dnl variables prefix and exec_prefix bound to the values they will have +dnl at the end of the configure script. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], +[ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_PREPARE_MULTILIB creates +dnl - a function acl_is_expected_elfclass, that tests whether standard input +dn; has a 32-bit or 64-bit ELF header, depending on the host CPU ABI, +dnl - 3 variables acl_libdirstem, acl_libdirstem2, acl_libdirstem3, containing +dnl the basename of the libdir to try in turn, either "lib" or "lib64" or +dnl "lib/64" or "lib32" or "lib/sparcv9" or "lib/amd64" or similar. +AC_DEFUN([AC_LIB_PREPARE_MULTILIB], +[ + dnl There is no formal standard regarding lib, lib32, and lib64. + dnl On most glibc systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on + dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go + dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib. + dnl We determine the compiler's default mode by looking at the compiler's + dnl library search path. If at least one of its elements ends in /lib64 or + dnl points to a directory whose absolute pathname ends in /lib64, we use that + dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default, + dnl namely "lib". + dnl On Solaris systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or + dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT]) + + AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf], + [AC_EGREP_CPP([Extensible Linking Format], + [#ifdef __ELF__ + Extensible Linking Format + #endif + ], + [gl_cv_elf=yes], + [gl_cv_elf=no]) + ]) + if test $gl_cv_elf; then + # Extract the ELF class of a file (5th byte) in decimal. + # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header + if od -A x < /dev/null >/dev/null 2>/dev/null; then + # Use POSIX od. + func_elfclass () + { + od -A n -t d1 -j 4 -N 1 + } + else + # Use BSD hexdump. + func_elfclass () + { + dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' + echo + } + fi +changequote(,)dnl + case $HOST_CPU_C_ABI_32BIT in + yes) + # 32-bit ABI. + acl_is_expected_elfclass () + { + test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 + } + ;; + no) + # 64-bit ABI. + acl_is_expected_elfclass () + { + test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 + } + ;; + *) + # Unknown. + acl_is_expected_elfclass () + { + : + } + ;; + esac +changequote([,])dnl + else + acl_is_expected_elfclass () + { + : + } + fi + + dnl Allow the user to override the result by setting acl_cv_libdirstems. + AC_CACHE_CHECK([for the common suffixes of directories in the library search path], + [acl_cv_libdirstems], + [dnl Try 'lib' first, because that's the default for libdir in GNU, see + dnl . + acl_libdirstem=lib + acl_libdirstem2= + acl_libdirstem3= + case "$host_os" in + solaris*) + dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment + dnl . + dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." + dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the + dnl symlink is missing, so we set acl_libdirstem2 too. + if test $HOST_CPU_C_ABI_32BIT = no; then + acl_libdirstem2=lib/64 + case "$host_cpu" in + sparc*) acl_libdirstem3=lib/sparcv9 ;; + i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; + esac + fi + ;; + *) + dnl If $CC generates code for a 32-bit ABI, the libraries are + dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64. + dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries + dnl are surely under $prefix/lib or $prefix/lib64, not $prefix/lib32. + dnl Find the compiler's search path. However, non-system compilers + dnl sometimes have odd library search paths. But we can't simply invoke + dnl '/usr/bin/gcc -print-search-dirs' because that would not take into + dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS. + searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ + | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test $HOST_CPU_C_ABI_32BIT != no; then + # 32-bit or unknown ABI. + if test -d /usr/lib32; then + acl_libdirstem2=lib32 + fi + fi + if test $HOST_CPU_C_ABI_32BIT != yes; then + # 64-bit or unknown ABI. + if test -d /usr/lib64; then + acl_libdirstem3=lib64 + fi + fi + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; + */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib32 ) acl_libdirstem2=lib32 ;; + */lib64 ) acl_libdirstem3=lib64 ;; + esac ;; + esac + fi + done + IFS="$acl_save_IFS" + if test $HOST_CPU_C_ABI_32BIT = yes; then + # 32-bit ABI. + acl_libdirstem3= + fi + if test $HOST_CPU_C_ABI_32BIT = no; then + # 64-bit ABI. + acl_libdirstem2= + fi + fi + ;; + esac + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" + test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" + acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" + ]) + dnl Decompose acl_cv_libdirstems into acl_libdirstem, acl_libdirstem2, and + dnl acl_libdirstem3. +changequote(,)dnl + acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` + acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` + acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` +changequote([,])dnl +]) diff --git a/data/miniconda3/share/aclocal/libtool.m4 b/data/miniconda3/share/aclocal/libtool.m4 new file mode 100644 index 0000000000000000000000000000000000000000..8d323b3ee4a638fd9e8682b9c81b31b71e27c55b --- /dev/null +++ b/data/miniconda3/share/aclocal/libtool.m4 @@ -0,0 +1,8488 @@ +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996-2001, 2003-2019, 2021-2024 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 2024 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program or library that is built +# using GNU Libtool, you may include this file under the same +# distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +]) + +# serial 63 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.64])dnl We use AC_PATH_PROGS_FEATURE_CHECK +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_PREPARE_CC_BASENAME +# ----------------------- +m4_defun([_LT_PREPARE_CC_BASENAME], [ +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in @S|@*""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} +])# _LT_PREPARE_CC_BASENAME + + +# _LT_CC_BASENAME(CC) +# ------------------- +# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, +# but that macro is also expanded into generated libtool script, which +# arranges for $SED and $ECHO to be set by different means. +m4_defun([_LT_CC_BASENAME], +[m4_require([_LT_PREPARE_CC_BASENAME])dnl +AC_REQUIRE([_LT_DECL_SED])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl +func_cc_basename $1 +cc_basename=$func_cc_basename_result +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl +dnl +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_DECL_FILECMD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_WITH_SYSROOT])dnl +m4_require([_LT_CMD_TRUNCATE])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options that allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a '.a' archive for static linking (except MSVC and +# ICC, which need '.lib'). +libext=a + +with_gnu_ld=$lt_cv_prog_gnu_ld + +old_CC=$CC +old_CFLAGS=$CFLAGS + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + _LT_PATH_MAGIC + fi + ;; +esac + +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP + + +# _LT_PREPARE_SED_QUOTE_VARS +# -------------------------- +# Define a few sed substitution that help us do robust quoting. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], +[# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([["`\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' +]) + +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from 'configure', and 'config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# 'config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain=$ac_aux_dir/ltmain.sh +])# _LT_PROG_LTMAIN + + +## ------------------------------------- ## +## Accumulate code for creating libtool. ## +## ------------------------------------- ## + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the 'libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) + + +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) + + + +## ------------------------ ## +## FIXME: Eliminate VARNAME ## +## ------------------------ ## + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) +]) + + +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) + + +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) + + +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to 'config.status' so that its +# declaration there will have the same value as in 'configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) + + +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags='_LT_TAGS'dnl +]) + + +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) +# ----------------------------------- +# Extract the dictionary values for VARNAME (optionally with TAG) and +# expand to a commented shell variable setting: +# +# # Some comment about what VAR is for. +# visible_name=$lt_internal_name +m4_define([_LT_LIBTOOL_DECLARE], +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], + [description])))[]dnl +m4_pushdef([_libtool_name], + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), + [0], [_libtool_name=[$]$1], + [1], [_libtool_name=$lt_[]$1], + [2], [_libtool_name=$lt_[]$1], + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl +]) + + +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) + + +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) + + +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into 'config.status', and then the shell code to quote escape them in +# for loops in 'config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS + + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$[]1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +_LT_OUTPUT_LIBTOOL_INIT +]) + +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) +# ------------------------------------ +# Generate a child script FILE with all initialization necessary to +# reuse the environment learned by the parent script, and make the +# file executable. If COMMENT is supplied, it is inserted after the +# '#!' sequence but before initialization text begins. After this +# macro, additional text can be appended to FILE to form the body of +# the child script. The macro ends with non-zero status if the +# file could not be fully written (such as if the disk is full). +m4_ifdef([AS_INIT_GENERATED], +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], +[m4_defun([_LT_GENERATED_FILE_INIT], +[m4_require([AS_PREPARE])]dnl +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl +[lt_write_fail=0 +cat >$1 <<_ASEOF || lt_write_fail=1 +#! $SHELL +# Generated by $as_me. +$2 +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$1 <<\_ASEOF || lt_write_fail=1 +AS_SHELL_SANITIZE +_AS_PREPARE +exec AS_MESSAGE_FD>&1 +_ASEOF +test 0 = "$lt_write_fail" && chmod +x $1[]dnl +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT + +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), in case it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +'$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2024 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +while test 0 != $[#] +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try '$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try '$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test yes = "$silent" && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +])# LT_OUTPUT + + +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, create an initial libtool script with a +# default configuration from the untagged config vars. Otherwise add code +# to config.status for appending the configuration named by TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # See if we are running on zsh, and set the options that allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST + fi + + cfgfile=${ofile}T + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL +# Generated automatically by $as_me ($PACKAGE) $VERSION +# NOTE: Changes made to this file will be lost: look at ltmain.sh. + +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit, 1996 + +_LT_COPYING +_LT_LIBTOOL_TAGS + +# Configured defaults for sys_lib_dlsearch_path munging. +: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} + +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG + +_LT_EOF + + cat <<'_LT_EOF' >> "$cfgfile" + +# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE + +_LT_PREPARE_MUNGE_PATH_LIST +_LT_PREPARE_CC_BASENAME + +# ### END FUNCTIONS SHARED WITH CONFIGURE + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + _LT_PROG_LTMAIN + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + $SED '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" + +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) + + +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Go], [_LT_LANG(GO)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG + + +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG + + +m4_ifndef([AC_PROG_GO], [ +############################################################ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_GO. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +############################################################ +m4_defun([AC_PROG_GO], +[AC_LANG_PUSH(Go)dnl +AC_ARG_VAR([GOC], [Go compiler command])dnl +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl +_AC_ARG_VAR_LDFLAGS()dnl +AC_CHECK_TOOL(GOC, gccgo) +if test -z "$GOC"; then + if test -n "$ac_tool_prefix"; then + AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) + fi +fi +if test -z "$GOC"; then + AC_CHECK_PROG(GOC, gccgo, gccgo, false) +fi +])#m4_defun +])#m4_ifndef + + +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([AC_PROG_GO], + [LT_LANG(GO)], + [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) +dnl AC_DEFUN([AC_LIBTOOL_RC], []) + + +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_TAG_COMPILER + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +])# _LT_LINKER_BOILERPLATE + + +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "$LT_MULTI_MODULE"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test 0 = "$_lt_result"; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + + # Feature test to disable chained fixups since it is not + # compatible with '-undefined dynamic_lookup' + AC_CACHE_CHECK([for -no_fixup_chains linker flag], + [lt_cv_support_no_fixup_chains], + [ save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([],[])], + lt_cv_support_no_fixup_chains=yes, + lt_cv_support_no_fixup_chains=no + ) + LDFLAGS=$save_LDFLAGS + ] + ) + + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS=$save_LDFLAGS + ]) + + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], + [lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD + echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD + cat > conftest.c << _LT_EOF +int main(void) { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + darwin*) + case $MACOSX_DEPLOYMENT_TARGET,$host in + 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + *) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' + if test yes = "$lt_cv_support_no_fixup_chains"; then + AS_VAR_APPEND([_lt_dar_allow_undefined], [' $wl-no_fixup_chains']) + fi + ;; + esac + ;; + esac + if test yes = "$lt_cv_apple_cc_single_mod"; then + _lt_dar_single_mod='$single_module' + fi + _lt_dar_needs_single_mod=no + case $host_os in + rhapsody* | darwin1.*) + _lt_dar_needs_single_mod=yes ;; + darwin*) + # When targeting Mac OS X 10.4 (darwin 8) or later, + # -single_module is the default and -multi_module is unsupported. + # The toolchain on macOS 10.14 (darwin 18) and later cannot + # target any OS version that needs -single_module. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*-darwin[[567]].*|10.[[0-3]],*-darwin[[5-9]].*|10.[[0-3]],*-darwin1[[0-7]].*) + _lt_dar_needs_single_mod=yes ;; + esac + ;; + esac + if test yes = "$lt_cv_ld_exported_symbols_list"; then + _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' + fi + if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac +]) + + +# _LT_DARWIN_LINKER_FEATURES([TAG]) +# --------------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + if test yes = "$lt_cv_ld_force_load"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], + [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined + case $cc_basename in + ifort*|nagfor*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test yes = "$_lt_dar_can_shared"; then + output_verbose_link_cmd=func_echo_all + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" + _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + m4_if([$1], [CXX], +[ if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" + _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) + +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) +# ---------------------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +# Store the results from the different compilers for each TAGNAME. +# Allow to override them for all tags through lt_cv_aix_libpath. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ + lt_aix_libpath_sed='[ + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }]' + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi],[]) + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib + fi + ]) + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) +fi +])# _LT_SYS_MODULE_PATH_AIX + + +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[m4_divert_text([M4SH-INIT], [$1 +])])# _LT_SHELL_INIT + + + +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Find how we can fake an echo command that does not interpret backslash. +# In particular, with Autoconf 2.60 or later we add some code to the start +# of the generated configure script that will find a shell with a builtin +# printf (that we can use as an echo command). +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +AC_MSG_CHECKING([how to print strings]) +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$[]1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +case $ECHO in + printf*) AC_MSG_RESULT([printf]) ;; + print*) AC_MSG_RESULT([print -r]) ;; + *) AC_MSG_RESULT([cat]) ;; +esac + +m4_ifdef([_AS_DETECT_SUGGESTED], +[_AS_DETECT_SUGGESTED([ + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test "X`printf %s $ECHO`" = "X$ECHO" \ + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) + +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) +])# _LT_PROG_ECHO_BACKSLASH + + +# _LT_WITH_SYSROOT +# ---------------- +AC_DEFUN([_LT_WITH_SYSROOT], +[m4_require([_LT_DECL_SED])dnl +AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], + [Search for dependent libraries within DIR (or the compiler's sysroot + if not specified).])], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case $with_sysroot in #( + yes) + if test yes = "$GCC"; then + # Trim trailing / since we'll always append absolute paths and we want + # to avoid //, if only for less confusing output for the user. + lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([$with_sysroot]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and where our libraries should be installed.])]) + +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test no = "$enable_libtool_lock" || enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out what ABI is being produced by ac_compile, and set mode + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `$FILECMD conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE=32 + ;; + *ELF-64*) + HPUX_IA64_MODE=64 + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test yes = "$lt_cv_prog_gnu_ld"; then + case `$FILECMD conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `$FILECMD conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +mips64*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + emul=elf + case `$FILECMD conftest.$ac_objext` in + *32-bit*) + emul="${emul}32" + ;; + *64-bit*) + emul="${emul}64" + ;; + esac + case `$FILECMD conftest.$ac_objext` in + *MSB*) + emul="${emul}btsmip" + ;; + *LSB*) + emul="${emul}ltsmip" + ;; + esac + case `$FILECMD conftest.$ac_objext` in + *N32*) + emul="${emul}n32" + ;; + esac + LD="${LD-ld} -m $emul" + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. Note that the listed cases only cover the + # situations where additional linker options are needed (such as when + # doing 32-bit compilation for a host where ld defaults to 64-bit, or + # vice versa); the common cases where no linker options are needed do + # not appear in the list. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `$FILECMD conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*|x86_64-gnu*) + case `$FILECMD conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*|x86_64-gnu*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test yes != "$lt_cv_cc_needs_belf"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS=$SAVE_CFLAGS + fi + ;; +*-*solaris*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `$FILECMD conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*|x86_64-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD=${LD-ld}_sol2 + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks=$enable_libtool_lock +])# _LT_ENABLE_LOCK + + +# _LT_PROG_AR +# ----------- +m4_defun([_LT_PROG_AR], +[AC_CHECK_TOOLS(AR, [ar], false) +: ${AR=ar} +_LT_DECL([], [AR], [1], [The archiver]) + +# Use ARFLAGS variable as AR's operation code to sync the variable naming with +# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have +# higher priority because that's what people were doing historically (setting +# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS +# variable obsoleted/removed. + +test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} +lt_ar_flags=$AR_FLAGS +_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) + +# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override +# by AR_FLAGS because that was never working and AR_FLAGS is about to die. +_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], + [Flags to create an archive]) + +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], + [lt_cv_ar_at_file=no + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], + [echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' + AC_TRY_EVAL([lt_ar_try]) + if test 0 -eq "$ac_status"; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + AC_TRY_EVAL([lt_ar_try]) + if test 0 -ne "$ac_status"; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + ]) + ]) + +if test no = "$lt_cv_ar_at_file"; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi +_LT_DECL([], [archiver_list_spec], [1], + [How to feed a file listing to the archiver]) +])# _LT_PROG_AR + + +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[_LT_PROG_AR + +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) + +AC_REQUIRE([AC_PROG_RANLIB]) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +_LT_DECL([], [lock_old_archive_extraction], [0], + [Whether to use a lock for old archive extraction]) +])# _LT_CMD_OLD_ARCHIVE + + +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test yes = "[$]$2"; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) + + +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS +]) + +if test yes = "[$]$2"; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) + + +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring=ABCD + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu* | ironclad*) + # Under GNU Hurd and Ironclad, this test is not required because there + # is no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | windows* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test X`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test 17 != "$i" # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n "$lt_cv_sys_max_cmd_len"; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN + +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) + + +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN + + +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test yes = "$cross_compiling"; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord (void) __attribute__((visibility("default"))); +#endif + +int fnord (void) { return 42; } +int main (void) +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_TRY_DLOPEN_SELF + + +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test yes != "$enable_dlopen"; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen=load_add_on + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | windows* | pw32* | cegcc*) + lt_cv_dlopen=LoadLibrary + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ + lt_cv_dlopen=dyld + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + tpf*) + # Don't try to run any link tests for TPF. We know it's impossible + # because TPF is a cross-compiler, and we know how we open DSOs. + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + lt_cv_dlopen_self=no + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen=shl_load], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen=dlopen], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test no = "$lt_cv_dlopen"; then + enable_dlopen=no + else + enable_dlopen=yes + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS=$CPPFLAGS + test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS=$LDFLAGS + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS=$LIBS + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test yes = "$lt_cv_dlopen_self"; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) + + +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O + + +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links=nottested +if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test no = "$hard_links"; then + AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS + + +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", + [Define to the sub-directory where libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then + + # We can hardcode non-existent directories. + if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && + test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) + +if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || + test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then + # Fast installation is not supported + enable_fast_install=no +elif test yes = "$shlibpath_overrides_runpath" || + test no = "$enable_shared"; then + # Fast installation is not necessary + enable_fast_install=needless +fi +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH + + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -z "$STRIP"; then + AC_MSG_RESULT([no]) +else + if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + old_striplib="$STRIP --strip-debug" + striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) + else + case $host_os in + darwin*) + # FIXME - insert some real tests, host_os isn't really good enough + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + ;; + freebsd*) + if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then + old_striplib="$STRIP --strip-debug" + striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac + fi +fi +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) +_LT_DECL([], [striplib], [1]) +])# _LT_CMD_STRIPLIB + + +# _LT_PREPARE_MUNGE_PATH_LIST +# --------------------------- +# Make sure func_munge_path_list() is defined correctly. +m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], +[[# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x@S|@2 in + x) + ;; + *:) + eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" + ;; + x:*) + eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" + ;; + *) + eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" + ;; + esac +} +]])# _LT_PREPARE_PATH_LIST + + +# _LT_SYS_DYNAMIC_LINKER([TAG]) +# ----------------------------- +# PORTME Fill in your ld.so characteristics +m4_defun([_LT_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_OBJDUMP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +m4_if([$1], + [], [ +if test yes = "$GCC"; then + case $host_os in + darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; + *) lt_awk_arg='/^libraries:/' ;; + esac + case $host_os in + mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; + *) lt_sed_strip_eq='s|=/|/|g' ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary... + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + # ...but if some path component already ends with the multilib dir we assume + # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). + case "$lt_multi_os_dir; $lt_search_path_spec " in + "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) + lt_multi_os_dir= + ;; + esac + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" + elif test -n "$lt_multi_os_dir"; then + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS = " "; FS = "/|\n";} { + lt_foo = ""; + lt_count = 0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo = "/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=.so +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +AC_ARG_VAR([LT_SYS_LIBRARY_PATH], +[User-defined run-time library search path.]) + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='$libname$release$shared_ext$major' + ;; + +aix[[4-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test ia64 = "$host_cpu"; then + # AIX 5 supports IA64 + library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line '#! .'. This would cause the generated library to + # depend on '.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # Using Import Files as archive members, it is possible to support + # filename-based versioning of shared library archives on AIX. While + # this would work for both with and without runtime linking, it will + # prevent static linking of such archives. So we do filename-based + # shared library versioning with .so extension only, which is used + # when both runtime linking and shared linking is enabled. + # Unfortunately, runtime linking may impact performance, so we do + # not want this to be the default eventually. Also, we use the + # versioned .so libs for executables only if there is the -brtl + # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. + # To allow for filename-based versioning support, we need to create + # libNAME.so.V as an archive file, containing: + # *) an Import File, referring to the versioned filename of the + # archive as well as the shared archive member, telling the + # bitwidth (32 or 64) of that shared object, and providing the + # list of exported symbols of that shared object, eventually + # decorated with the 'weak' keyword + # *) the shared object with the F_LOADONLY flag set, to really avoid + # it being seen by the linker. + # At run time we better use the real file rather than another symlink, + # but for link time we create the symlink libNAME.so -> libNAME.so.V + + case $with_aix_soname,$aix_use_runtimelinking in + # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + aix,yes) # traditional libtool + dynamic_linker='AIX unversionable lib.so' + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + aix,no) # traditional AIX only + dynamic_linker='AIX lib.a[(]lib.so.V[)]' + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + ;; + svr4,*) # full svr4 only + dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,yes) # both, prefer svr4 + dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # unpreferred sharedlib libNAME.a needs extra handling + postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' + postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,no) # both, prefer aix + dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling + postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' + postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' + ;; + esac + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | windows* | pw32* | cegcc*) + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + # If user builds GCC with multilib enabled, + # it should just install on $(libdir) + # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. + if test xyes = x"$multilib"; then + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + $install_prog $dir/$dlname $destdir/$dlname~ + chmod a+x $destdir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib $destdir/$dlname'\'' || exit \$?; + fi' + else + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + fi + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; + mingw* | windows* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl* | *,icl*) + # Native MSVC or ICC + libname_spec='$name' + soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + library_names_spec='$libname.dll.lib' + + case $build_os in + mingw* | windows*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec=$LIB + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC and ICC wrapper + library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' + soname_spec='$libname$release$major$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly* | midnightbsd*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[23]].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + need_version=yes + ;; + esac + case $host_cpu in + powerpc64) + # On FreeBSD bi-arch platforms, a different variable is used for 32-bit + # binaries. See . + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[int test_pointer_size[sizeof (void *) - 5]; + ]])], + [shlibpath_var=LD_LIBRARY_PATH], + [shlibpath_var=LD_32_LIBRARY_PATH]) + ;; + *) + shlibpath_var=LD_LIBRARY_PATH + ;; + esac + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' + sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' + hardcode_into_libs=no + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + if test 32 = "$HPUX_IA64_MODE"; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + sys_lib_dlsearch_path_spec=/usr/lib/hpux32 + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + sys_lib_dlsearch_path_spec=/usr/lib/hpux64 + fi + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[[3-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test yes = "$lt_cv_prog_gnu_ld"; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" + sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +linux*android*) + version_type=none # Android doesn't support versioned libraries. + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext $libname$shared_ext' + soname_spec='$libname$release$shared_ext' + finish_cmds= + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + dynamic_linker='Android linker' + # -rpath works at least for libraries that are not overridden by + # libraries installed in system locations. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], + [lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [lt_cv_shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + ]) + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Ideally, we could use ldconfig to report *all* directories which are + # searched for libraries, however this is still not possible. Aside from not + # being certain /sbin/ldconfig is available, command + # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, + # even though it is searched at run-time. Try to do the best guess by + # appending ld.so.conf contents (and includes) to the search path. + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +*-mlibc) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='mlibc ld.so' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec=/usr/lib + need_lib_prefix=no + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + need_version=no + else + need_version=yes + fi + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +os2*) + libname_spec='$name' + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + # OS/2 can only load a DLL with a base name of 8 characters or less. + soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; + v=$($ECHO $release$versuffix | tr -d .-); + n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); + $ECHO $n$v`$shared_ext' + library_names_spec='${libname}_dll.$libext' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=BEGINLIBPATH + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + +rdos*) + dynamic_linker=no + ;; + +serenity*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + dynamic_linker='SerenityOS LibELF' + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test yes = "$with_gnu_ld"; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec; then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' + soname_spec='$libname$shared_ext.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=sco + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test yes = "$with_gnu_ld"; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +emscripten*) + version_type=none + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext' + soname_spec='$libname$release$shared_ext' + finish_cmds= + dynamic_linker="Emscripten linker" + _LT_COMPILER_PIC($1)='-fPIC' + _LT_TAGVAR(archive_cmds, $1)='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(no_undefined_flag, $1)= + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test no = "$dynamic_linker" && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test yes = "$GCC"; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then + sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec +fi + +if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then + sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec +fi + +# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... +configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec + +# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code +func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" + +# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool +configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH + +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[List of archive names. First name is the real one, the rest are links. + The last name is the one that the linker finds with -lNAME]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [install_override_mode], [1], + [Permission mode override for installation of shared libraries]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], + [Detected run-time system search path for libraries]) +_LT_DECL([], [configure_time_lt_sys_library_path], [2], + [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) +])# _LT_SYS_DYNAMIC_LINKER + + +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program that can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$1"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac]) +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX + +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) + + +# _LT_PATH_MAGIC +# -------------- +# find a file program that can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# _LT_PATH_MAGIC + + +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test no = "$withval" || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test yes = "$GCC"; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw* | *-*-windows*) + # gcc leaves a trailing carriage return, which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD=$ac_prog + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test yes = "$with_gnu_ld"; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD=$ac_dir/$ac_prog + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i +cat conftest.i conftest.i >conftest2.i +: ${lt_DD:=$DD} +AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], +[if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: +fi]) +rm -f conftest.i conftest2.i conftest.out]) +])# _LT_PATH_DD + + +# _LT_CMD_TRUNCATE +# ---------------- +# find command to truncate a binary pipe +m4_defun([_LT_CMD_TRUNCATE], +[m4_require([_LT_PATH_DD]) +AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], +[printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +lt_cv_truncate_bin= +if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" +fi +rm -f conftest.i conftest2.i conftest.out +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) +_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], + [Command to truncate a binary pipe]) +])# _LT_CMD_TRUNCATE + + +# _LT_CHECK_MAGIC_METHOD +# ---------------------- +# how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_MAGIC_METHOD], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +AC_CACHE_CHECK([how to recognize dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# 'unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'file_magic [[regex]]' -- check by looking for files in library path +# that responds to the $file_magic_cmd with a given extended regex. +# If you have 'file' or equivalent on your system and you're not sure +# whether 'pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[[4-9]]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[[45]]*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='$FILECMD -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | windows* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly* | midnightbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=$FILECMD + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=$FILECMD + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +*-mlibc) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=$FILECMD + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +serenity*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +os2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | windows* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method = "file_magic"]) +_LT_DECL([], [file_magic_glob], [1], + [How to find potential files when deplibs_check_method = "file_magic"]) +_LT_DECL([], [want_nocaseglob], [1], + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD + + +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM=$NM +else + lt_nm_to_check=${ac_tool_prefix}nm + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/$lt_tmp_nm + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the 'sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty + case $build_os in + mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; + *) lt_bad_file=/dev/null ;; + esac + case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in + *$lt_bad_file* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break 2 + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break 2 + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS=$lt_save_ifs + done + : ${lt_cv_path_NM=no} +fi]) +if test no != "$lt_cv_path_NM"; then + NM=$lt_cv_path_NM +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols -headers" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test : != "$DUMPBIN"; then + NM=$DUMPBIN + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) + +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB +# -------------------------------- +# how to determine the name of the shared library +# associated with a specific link library. +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +m4_require([_LT_DECL_DLLTOOL]) +AC_CACHE_CHECK([how to associate runtime and link libraries], +lt_cv_sharedlib_from_linklib_cmd, +[lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | windows* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh; + # decide which one to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd=$ECHO + ;; +esac +]) +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], + [Command to associate shared and link libraries]) +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB + + +# _LT_PATH_MANIFEST_TOOL +# ---------------------- +# locate the manifest tool +m4_defun([_LT_PATH_MANIFEST_TOOL], +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_manifest_tool], + [lt_cv_path_manifest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&AS_MESSAGE_LOG_FD + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_manifest_tool=yes + fi + rm -f conftest*]) +if test yes != "$lt_cv_path_manifest_tool"; then + MANIFEST_TOOL=: +fi +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl +])# _LT_PATH_MANIFEST_TOOL + + +# _LT_DLL_DEF_P([FILE]) +# --------------------- +# True iff FILE is a Windows DLL '.def' file. +# Keep in sync with func_dll_def_p in the libtool script +AC_DEFUN([_LT_DLL_DEF_P], +[dnl + test DEF = "`$SED -n dnl + -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace + -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments + -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl + -e q dnl Only consider the first "real" line + $1`" dnl +])# _LT_DLL_DEF_P + + +# LT_LIB_M +# -------- +# check for math library +AC_DEFUN([LT_LIB_M], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-mingw* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM=-lm) + ;; +esac +AC_SUBST([LIBM]) +])# LT_LIB_M + +# Old name: +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_CHECK_LIBM], []) + + +# _LT_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------- +m4_defun([_LT_COMPILER_NO_RTTI], +[m4_require([_LT_TAG_COMPILER])dnl + +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test yes = "$GCC"; then + case $cc_basename in + nvcc*) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; + *) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; + esac + + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], + [Compiler flag to turn off builtin functions]) +])# _LT_COMPILER_NO_RTTI + + +# _LT_CMD_GLOBAL_SYMBOLS +# ---------------------- +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([LT_PATH_NM])dnl +AC_REQUIRE([LT_PATH_LD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_TAG_COMPILER])dnl + +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | windows* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test ia64 = "$host_cpu"; then + symcode='[[ABCDEGRST]]' + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BCDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Gets list of data symbols to import. + lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" + # Adjust the below global symbol transforms to fixup imported variables. + lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" + lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" + lt_c_name_lib_hook="\ + -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ + -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" +else + # Disable hooks by default. + lt_cv_sys_global_symbol_to_import= + lt_cdecl_hook= + lt_c_name_hook= + lt_c_name_lib_hook= +fi + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +$lt_cdecl_hook\ +" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ +$lt_c_name_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" + +# Transform an extracted symbol line into symbol name with lib prefix and +# symbol address. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ +$lt_c_name_lib_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw* | windows*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function, + # D for any global variable and I for any imported variable. + # Also find C++ and __fastcall symbols from MSVC++ or ICC, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ +" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ +" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ +" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ +" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(void){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + nlist=conftest.nm + $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD + if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS=conftstm.$ac_objext + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test yes = "$pipe_works"; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], + [Transform the output of nm into a list of symbols to manually relocate]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], + [The name lister interface]) +_LT_DECL([], [nm_file_list_spec], [1], + [Specify filename containing input files for $NM]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test yes = "$GXX"; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | windows* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly* | midnightbsd*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + if test ia64 != "$host_cpu"; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64, which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | $SED 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *-mlibc) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + serenity*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test yes = "$GCC"; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' + if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + case $cc_basename in + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + + mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + + hpux9* | hpux10* | hpux11*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64, which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + *flang* | ftn | f18* | f95*) + # Flang compiler. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | $SED 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + *Sun\ F* | *Sun*Fortran*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Intel*\ [[CF]]*Compiler*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + *Portland\ Group*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *-mlibc) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + serenity*) + ;; + + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +case $host_os in + # For platforms that do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +AC_CACHE_CHECK([for $compiler option to produce PIC], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) +# +# Check to make sure the static flag actually works. +# +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC + + +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds + ;; + cygwin* | mingw* | windows* | cegcc*) + case $cc_basename in + cl* | icl*) + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + ;; + esac + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ' (' and ')$', so one must not match beginning or + # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', + # as well as any symbol that contains 'd'. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | windows* | pw32* | cegcc*) + # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++ or Intel C++ Compiler. + if test yes != "$GCC"; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) + with_gnu_ld=yes + ;; + esac + + _LT_TAGVAR(ld_shlibs, $1)=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test yes = "$with_gnu_ld"; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test yes = "$lt_use_gnu_ld_interface"; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='$wl' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test ia64 != "$host_cpu"; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | windows* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + _LT_TAGVAR(file_list_spec, $1)='@' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=no + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test linux-dietlibc = "$host_os"; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test no = "$tmp_diet" + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + nagfor*) # NAGFOR 5.3 + tmp_sharedflag='-Wl,-shared' ;; + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + ;; + esac + case `$CC -V 2>&1 | $SED 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + tcc*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' + ;; + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + *-mlibc) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then + aix_use_runtimelinking=yes + break + fi + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # traditional, no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + ;; + esac + + if test yes = "$GCC"; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag="$shared_flag "'$wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | windows* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++ or Intel C++ Compiler. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl* | icl*) + # Native MSVC or ICC + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC and ICC wrapper + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + esac + ;; + + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly* | midnightbsd*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + ;; + + hpux10*) + if test yes,no = "$GCC,$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test yes,no = "$GCC,$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + m4_if($1, [], [ + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + _LT_LINKER_OPTION([if $CC understands -b], + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) + ;; + esac + fi + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], + [lt_cv_irix_exported_symbol], + [save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" + AC_LINK_IFELSE( + [AC_LANG_SOURCE( + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], + [C++], [[int foo (void) { return 0; }]], + [Fortran 77], [[ + subroutine foo + end]], + [Fortran], [[ + subroutine foo + end]])])], + [lt_cv_irix_exported_symbol=yes], + [lt_cv_irix_exported_symbol=no]) + LDFLAGS=$save_LDFLAGS]) + if test yes = "$lt_cv_irix_exported_symbol"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' + fi + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + linux*) + case $cc_basename in + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + _LT_TAGVAR(ld_shlibs, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + ;; + esac + ;; + + *-mlibc) + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + ;; + + osf3*) + if test yes = "$GCC"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test yes = "$GCC"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + serenity*) + ;; + + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test yes = "$GCC"; then + wlarc='$wl' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='$wl' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. GCC discards it without '$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test yes = "$GCC"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test sequent = "$host_vendor"; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + if test sni = "$host_vendor"; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no + +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld + +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) + +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test yes,yes = "$GCC,$enable_shared"; then + case $_LT_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_CACHE_CHECK([whether -lc should be explicitly linked in], + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), + [$RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + ]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) + ;; + esac + fi + ;; +esac + +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e. impossible to change by setting $shlibpath_var if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [postlink_cmds], [2], + [Commands necessary for finishing linking programs]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS + + +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +lt_save_CC=$CC +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(void){return(0);}' + +_LT_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # Report what library types will actually be built + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_CONFIG($1) +fi +AC_LANG_POP +CC=$lt_save_CC +])# _LT_LANG_C_CONFIG + + +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +if test -n "$CXX" && ( test no != "$CXX" && + ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || + (test g++ != "$CXX"))); then + AC_PROG_CXXCPP +else + _lt_caught_CXX_error=yes +fi + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_caught_CXX_error"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test yes = "$GXX"; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi + + if test yes = "$GXX"; then + # Set up default GNU C++ configuration + + LT_PATH_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test yes = "$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='$wl' + + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [[-]]L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) + _LT_TAGVAR(ld_shlibs, $1)=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + ;; + esac + + if test yes = "$GXX"; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag=$shared_flag' $wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + # The "-G" linker flag allows undefined symbols. + _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared + # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | windows* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl* | ,icl* | no,icl*) + # Native MSVC or ICC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + + freebsd* | dragonfly* | midnightbsd*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=no + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[[-]]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes = "$GXX"; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [[-]]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes = "$GXX"; then + if test no = "$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test yes = "$GXX"; then + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | $SED 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + *-mlibc) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ + $RM $lib.exp' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes,no = "$GXX,$with_gnu_ld"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + case $host in + osf3*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [[-]]L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + serenity*) + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test yes,no = "$GXX,$with_gnu_ld"; then + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [[-]]L"' + else + # g++ 2.7 appears to require '-G' NOT '-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [[-]]L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ + '"$_LT_TAGVAR(old_archive_cmds, $1)" + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ + '"$_LT_TAGVAR(reload_cmds, $1)" + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no + + _LT_TAGVAR(GCC, $1)=$GXX + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test yes != "$_lt_caught_CXX_error" + +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG + + +# _LT_FUNC_STRIPNAME_CNF +# ---------------------- +# func_stripname_cnf prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# +# This function is identical to the (non-XSI) version of func_stripname, +# except this one can be used by m4 code that may be executed by configure, +# rather than the libtool script. +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl +AC_REQUIRE([_LT_DECL_SED]) +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) +func_stripname_cnf () +{ + case @S|@2 in + .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; + *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; + esac +} # func_stripname_cnf +])# _LT_FUNC_STRIPNAME_CNF + + +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) +# --------------------------------- +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= + +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF +package foo +func foo() { +} +_LT_EOF +]) + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +dnl Parse the compiler output and extract the necessary +dnl objects, libraries and library flags. +if AC_TRY_EVAL(ac_compile); then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case $prev$p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R,l}" and the path. + # Remove the space. + if test x-L = x"$p" || + test x-R = x"$p" || + test x-l = x"$p"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test no = "$pre_test_object_deps_done"; then + case $prev in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$_LT_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)=$prev$p + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test no = "$pre_test_object_deps_done"; then + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)=$p + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)=$p + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling $1 test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +m4_if([$1], [CXX], +[case $host_os in +interix[[3-9]]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + _LT_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_TAGVAR(postdeps,$1)= + ;; +esac +]) + +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_LANG_PUSH(Fortran 77) +if test -z "$F77" || test no = "$F77"; then + _lt_disable_F77=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_disable_F77"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${F77-"f77"} + CFLAGS=$FFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)=$G77 + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test yes != "$_lt_disable_F77" + +AC_LANG_POP +])# _LT_LANG_F77_CONFIG + + +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_LANG_PUSH(Fortran) + +if test -z "$FC" || test no = "$FC"; then + _lt_disable_FC=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} + +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_disable_FC"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${FC-"f95"} + CFLAGS=$FCFLAGS + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu + + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test yes != "$_lt_disable_FC" + +AC_LANG_POP +])# _LT_LANG_FC_CONFIG + + +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +CFLAGS=$GCJFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)=$LD +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GCJ_CONFIG + + +# _LT_LANG_GO_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Go compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_GO_CONFIG], +[AC_REQUIRE([LT_PROG_GO])dnl +AC_LANG_SAVE + +# Source file extension for Go test sources. +ac_ext=go + +# Object file extension for compiled Go test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="package main; func main() { }" + +# Code to be used in simple link tests +lt_simple_link_test_code='package main; func main() { }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GOC-"gccgo"} +CFLAGS=$GOFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)=$LD +_LT_CC_BASENAME([$compiler]) + +# Go did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GO_CONFIG + + +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code=$lt_simple_compile_test_code + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +CFLAGS= +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi + +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_RC_CONFIG + + +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) + + +# LT_PROG_GO +# ---------- +AC_DEFUN([LT_PROG_GO], +[AC_CHECK_TOOL(GOC, gccgo,) +]) + + +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) +]) + + +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) + +# _LT_DECL_DLLTOOL +# ---------------- +# Ensure DLLTOOL variable is set. +m4_defun([_LT_DECL_DLLTOOL], +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) +AC_SUBST([DLLTOOL]) +]) + +# _LT_DECL_FILECMD +# ---------------- +# Check for a file(cmd) program that can be used to detect file type and magic +m4_defun([_LT_DECL_FILECMD], +[AC_CHECK_PROG([FILECMD], [file], [file], [:]) +_LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) +])# _LD_DECL_FILECMD + +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PATH_CONVERSION_FUNCTIONS +# ----------------------------- +# Determine what file name conversion functions should be used by +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed +# for certain cross-compile configurations and native mingw. +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_MSG_CHECKING([how to convert $build file names to $host format]) +AC_CACHE_VAL(lt_cv_to_host_file_cmd, +[case $host in + *-*-mingw* ) + case $build in + *-*-mingw* | *-*-windows* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* | *-*-windows* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac +]) +to_host_file_cmd=$lt_cv_to_host_file_cmd +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], + [0], [convert $build file names to $host format])dnl + +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, +[#assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* | *-*-windows* ) + case $build in + *-*-mingw* | *-*-windows* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac +]) +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], + [0], [convert $build files to toolchain format])dnl +])# _LT_PATH_CONVERSION_FUNCTIONS diff --git a/data/miniconda3/share/aclocal/libxml.m4 b/data/miniconda3/share/aclocal/libxml.m4 new file mode 100644 index 0000000000000000000000000000000000000000..27ad84d402179805d0c9c9b101c186064963d5b1 --- /dev/null +++ b/data/miniconda3/share/aclocal/libxml.m4 @@ -0,0 +1,14 @@ +dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) +dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS +dnl +AC_DEFUN([AM_PATH_XML2],[ + m4_warn([obsolete], [AM_PATH_XML2 is deprecated, use PKG_CHECK_MODULES instead]) + AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + + verdep=ifelse([$1], [], [], [">= $1"]) + PKG_CHECK_MODULES(XML, [libxml-2.0 $verdep], [$2], [$3]) + + XML_CPPFLAGS=$XML_CFLAGS + AC_SUBST(XML_CPPFLAGS) + AC_SUBST(XML_LIBS) +]) diff --git a/data/miniconda3/share/aclocal/ltargz.m4 b/data/miniconda3/share/aclocal/ltargz.m4 new file mode 100644 index 0000000000000000000000000000000000000000..b93c28240d178f473bf34f0867437c89dcde0a27 --- /dev/null +++ b/data/miniconda3/share/aclocal/ltargz.m4 @@ -0,0 +1,77 @@ +# Portability macros for glibc argz. -*- Autoconf -*- +# +# Copyright (C) 2004-2007, 2011-2019, 2021-2024 Free Software +# Foundation, Inc. +# Written by Gary V. Vaughan +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 2 ltargz.m4 + +AC_DEFUN([LT_FUNC_ARGZ], [ +dnl Required for use of '$SED' in Cygwin configuration. +AC_REQUIRE([AC_PROG_SED])dnl +AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_TYPES([error_t], + [], + [AC_DEFINE([error_t], [int], + [Define to a type to use for 'error_t' if it is not otherwise available.]) + AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h + does not typedef error_t.])], + [#if defined(HAVE_ARGZ_H) +# include +#endif]) + +LT_ARGZ_H= +AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \ + argz_next argz_stringify], [], [LT_ARGZ_H=lt__argz.h; AC_LIBOBJ([lt__argz])]) + +dnl if have system argz functions, allow forced use of +dnl libltdl-supplied implementation (and default to do so +dnl on "known bad" systems). Could use a runtime check, but +dnl (a) detecting malloc issues is notoriously unreliable +dnl (b) only known system that declares argz functions, +dnl provides them, yet they are broken, is cygwin +dnl releases prior to 16-Mar-2007 (1.5.24 and earlier) +dnl So, it's more straightforward simply to special case +dnl this for known bad systems. +AS_IF([test -z "$LT_ARGZ_H"], + [AC_CACHE_CHECK( + [if argz actually works], + [lt_cv_sys_argz_works], + [[case $host_os in #( + *cygwin*) + lt_cv_sys_argz_works=no + if test no != "$cross_compiling"; then + lt_cv_sys_argz_works="guessing no" + else + lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' + save_IFS=$IFS + IFS=-. + set x `uname -r | $SED -e "$lt_sed_extract_leading_digits"` + IFS=$save_IFS + lt_os_major=${2-0} + lt_os_minor=${3-0} + lt_os_micro=${4-0} + if test 1 -lt "$lt_os_major" \ + || { test 1 -eq "$lt_os_major" \ + && { test 5 -lt "$lt_os_minor" \ + || { test 5 -eq "$lt_os_minor" \ + && test 24 -lt "$lt_os_micro"; }; }; }; then + lt_cv_sys_argz_works=yes + fi + fi + ;; #( + *) lt_cv_sys_argz_works=yes ;; + esac]]) + AS_IF([test yes = "$lt_cv_sys_argz_works"], + [AC_DEFINE([HAVE_WORKING_ARGZ], 1, + [This value is set to 1 to indicate that the system argz facility works])], + [LT_ARGZ_H=lt__argz.h + AC_LIBOBJ([lt__argz])])]) + +AC_SUBST([LT_ARGZ_H]) +]) diff --git a/data/miniconda3/share/aclocal/ltdl.m4 b/data/miniconda3/share/aclocal/ltdl.m4 new file mode 100644 index 0000000000000000000000000000000000000000..c7790ffd63b4d7f19aff9b3b056de5735b1599cc --- /dev/null +++ b/data/miniconda3/share/aclocal/ltdl.m4 @@ -0,0 +1,911 @@ +# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*- +# +# Copyright (C) 1999-2008, 2011-2019, 2021-2024 Free Software +# Foundation, Inc. +# Written by Thomas Tanner, 1999 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 24 LTDL_INIT + +# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE]) +# ------------------------------------------ +# DIRECTORY contains the libltdl sources. It is okay to call this +# function multiple times, as long as the same DIRECTORY is always given. +AC_DEFUN([LT_CONFIG_LTDL_DIR], +[AC_BEFORE([$0], [LTDL_INIT]) +_$0($*) +])# LT_CONFIG_LTDL_DIR + +# We break this out into a separate macro, so that we can call it safely +# internally without being caught accidentally by the sed scan in libtoolize. +m4_defun([_LT_CONFIG_LTDL_DIR], +[dnl remove trailing slashes +m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$])) +m4_case(_LTDL_DIR, + [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply '.' + m4_if(_ARG_DIR, [.], + [], + [m4_define([_LTDL_DIR], _ARG_DIR) + _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])], + [m4_if(_ARG_DIR, _LTDL_DIR, + [], + [m4_fatal([multiple libltdl directories: ']_LTDL_DIR[', ']_ARG_DIR['])])]) +m4_popdef([_ARG_DIR]) +])# _LT_CONFIG_LTDL_DIR + +# Initialise: +m4_define([_LTDL_DIR], []) + + +# _LT_BUILD_PREFIX +# ---------------- +# If Autoconf is new enough, expand to '$(top_build_prefix)', otherwise +# to '$(top_builddir)/'. +m4_define([_LT_BUILD_PREFIX], +[m4_ifdef([AC_AUTOCONF_VERSION], + [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]), + [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX], + [$(top_build_prefix)], + [$(top_builddir)/])], + [$(top_build_prefix)])], + [$(top_builddir)/])[]dnl +]) + + +# LTDL_CONVENIENCE +# ---------------- +# sets LIBLTDL to the link flags for the libltdl convenience library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-convenience to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with +# '$(top_build_prefix)' if available, otherwise with '$(top_builddir)/', +# and LTDLINCL will be prefixed with '$(top_srcdir)/' (note the single +# quotes!). If your package is not flat and you're not using automake, +# define top_build_prefix, top_builddir, and top_srcdir appropriately +# in your Makefiles. +AC_DEFUN([LTDL_CONVENIENCE], +[AC_BEFORE([$0], [LTDL_INIT])dnl +dnl Although the argument is deprecated and no longer documented, +dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one +dnl here make sure it is the same as any other declaration of libltdl's +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is +dnl not yet using an explicit LT_CONFIG_LTDL_DIR. +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl +_$0() +])# LTDL_CONVENIENCE + +# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools, +# now we have LT_CONFIG_LTDL_DIR: +AU_DEFUN([AC_LIBLTDL_CONVENIENCE], +[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_CONVENIENCE]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], []) + + +# _LTDL_CONVENIENCE +# ----------------- +# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]). +m4_defun([_LTDL_CONVENIENCE], +[case $enable_ltdl_convenience in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; +esac +LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" +LTDLDEPS=$LIBLTDL +LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" + +AC_SUBST([LIBLTDL]) +AC_SUBST([LTDLDEPS]) +AC_SUBST([LTDLINCL]) + +# For backwards non-gettext consistent compatibility... +INCLTDL=$LTDLINCL +AC_SUBST([INCLTDL]) +])# _LTDL_CONVENIENCE + + +# LTDL_INSTALLABLE +# ---------------- +# sets LIBLTDL to the link flags for the libltdl installable library +# and LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-install to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl +# is not found, LIBLTDL will be prefixed with '$(top_build_prefix)' if +# available, otherwise with '$(top_builddir)/', and LTDLINCL will be +# prefixed with '$(top_srcdir)/' (note the single quotes!). If your +# package is not flat and you're not using automake, define top_build_prefix, +# top_builddir, and top_srcdir appropriately in your Makefiles. +# In the future, this macro may have to be called after LT_INIT. +AC_DEFUN([LTDL_INSTALLABLE], +[AC_BEFORE([$0], [LTDL_INIT])dnl +dnl Although the argument is deprecated and no longer documented, +dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one +dnl here make sure it is the same as any other declaration of libltdl's +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is +dnl not yet using an explicit LT_CONFIG_LTDL_DIR. +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl +_$0() +])# LTDL_INSTALLABLE + +# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools, +# now we have LT_CONFIG_LTDL_DIR: +AU_DEFUN([AC_LIBLTDL_INSTALLABLE], +[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_INSTALLABLE]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], []) + + +# _LTDL_INSTALLABLE +# ----------------- +# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]). +m4_defun([_LTDL_INSTALLABLE], +[if test -f "$prefix/lib/libltdl.la"; then + lt_save_LDFLAGS=$LDFLAGS + LDFLAGS="-L$prefix/lib $LDFLAGS" + AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes]) + LDFLAGS=$lt_save_LDFLAGS + if test yes = "${lt_lib_ltdl-no}"; then + if test yes != "$enable_ltdl_install"; then + # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install + AC_MSG_WARN([not overwriting libltdl at $prefix, force with '--enable-ltdl-install']) + enable_ltdl_install=no + fi + elif test no = "$enable_ltdl_install"; then + AC_MSG_WARN([libltdl not installed, but installation disabled]) + fi +fi + +# If configure.ac declared an installable ltdl, and the user didn't override +# with --disable-ltdl-install, we will install the shipped libltdl. +case $enable_ltdl_install in + no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" + LIBLTDL=-lltdl + LTDLDEPS= + LTDLINCL= + ;; + *) enable_ltdl_install=yes + ac_configure_args="$ac_configure_args --enable-ltdl-install" + LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" + LTDLDEPS=$LIBLTDL + LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" + ;; +esac + +AC_SUBST([LIBLTDL]) +AC_SUBST([LTDLDEPS]) +AC_SUBST([LTDLINCL]) + +# For backwards non-gettext consistent compatibility... +INCLTDL=$LTDLINCL +AC_SUBST([INCLTDL]) +])# LTDL_INSTALLABLE + + +# _LTDL_MODE_DISPATCH +# ------------------- +m4_define([_LTDL_MODE_DISPATCH], +[dnl If _LTDL_DIR is '.', then we are configuring libltdl itself: +m4_if(_LTDL_DIR, [], + [], + dnl if _LTDL_MODE was not set already, the default value is 'subproject': + [m4_case(m4_default(_LTDL_MODE, [subproject]), + [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR) + _LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])], + [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/])], + [recursive], [], + [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl +dnl Be careful not to expand twice: +m4_define([$0], []) +])# _LTDL_MODE_DISPATCH + + +# _LT_LIBOBJ(MODULE_NAME) +# ----------------------- +# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead +# of into LIBOBJS. +AC_DEFUN([_LT_LIBOBJ], [ + m4_pattern_allow([^_LT_LIBOBJS$]) + _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" +])# _LT_LIBOBJS + + +# LTDL_INIT([OPTIONS]) +# -------------------- +# Clients of libltdl can use this macro to allow the installer to +# choose between a shipped copy of the ltdl sources or a preinstalled +# version of the library. If the shipped ltdl sources are not in a +# subdirectory named libltdl, the directory name must be given by +# LT_CONFIG_LTDL_DIR. +AC_DEFUN([LTDL_INIT], +[dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +dnl We need to keep our own list of libobjs separate from our parent project, +dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while +dnl we look for our own LIBOBJs. +m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) +m4_pushdef([AC_LIBSOURCES]) + +dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: +m4_if(_LTDL_MODE, [], + [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) + m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], + [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) + +AC_ARG_WITH([included_ltdl], + [AS_HELP_STRING([--with-included-ltdl], + [use the GNU ltdl sources included here])]) + +if test yes != "$with_included_ltdl"; then + # We are not being forced to use the included libltdl sources, so + # decide whether there is a useful installed version we can use. + AC_CHECK_HEADER([ltdl.h], + [AC_CHECK_DECL([lt_dlinterface_register], + [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], + [with_included_ltdl=no], + [with_included_ltdl=yes])], + [with_included_ltdl=yes], + [AC_INCLUDES_DEFAULT + #include ])], + [with_included_ltdl=yes], + [AC_INCLUDES_DEFAULT] + ) +fi + +dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE +dnl was called yet, then for old times' sake, we assume libltdl is in an +dnl eponymous directory: +AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) + +AC_ARG_WITH([ltdl_include], + [AS_HELP_STRING([--with-ltdl-include=DIR], + [use the ltdl headers installed in DIR])]) + +if test -n "$with_ltdl_include"; then + if test -f "$with_ltdl_include/ltdl.h"; then : + else + AC_MSG_ERROR([invalid ltdl include directory: '$with_ltdl_include']) + fi +else + with_ltdl_include=no +fi + +AC_ARG_WITH([ltdl_lib], + [AS_HELP_STRING([--with-ltdl-lib=DIR], + [use the libltdl.la installed in DIR])]) + +if test -n "$with_ltdl_lib"; then + if test -f "$with_ltdl_lib/libltdl.la"; then : + else + AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib']) + fi +else + with_ltdl_lib=no +fi + +case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in + ,yes,no,no,) + m4_case(m4_default(_LTDL_TYPE, [convenience]), + [convenience], [_LTDL_CONVENIENCE], + [installable], [_LTDL_INSTALLABLE], + [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) + ;; + ,no,no,no,) + # If the included ltdl is not to be used, then use the + # preinstalled libltdl we found. + AC_DEFINE([HAVE_LTDL], [1], + [Define this if a modern libltdl is already installed]) + LIBLTDL=-lltdl + LTDLDEPS= + LTDLINCL= + ;; + ,no*,no,*) + AC_MSG_ERROR(['--with-ltdl-include' and '--with-ltdl-lib' options must be used together]) + ;; + *) with_included_ltdl=no + LIBLTDL="-L$with_ltdl_lib -lltdl" + LTDLDEPS= + LTDLINCL=-I$with_ltdl_include + ;; +esac +INCLTDL=$LTDLINCL + +# Report our decision... +AC_MSG_CHECKING([where to find libltdl headers]) +AC_MSG_RESULT([$LTDLINCL]) +AC_MSG_CHECKING([where to find libltdl library]) +AC_MSG_RESULT([$LIBLTDL]) + +_LTDL_SETUP + +dnl restore autoconf definition. +m4_popdef([AC_LIBOBJ]) +m4_popdef([AC_LIBSOURCES]) + +AC_CONFIG_COMMANDS_PRE([ + _ltdl_libobjs= + _ltdl_ltlibobjs= + if test -n "$_LT_LIBOBJS"; then + # Remove the extension. + _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | $SED "$_lt_sed_drop_objext" | sort -u`; do + _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" + _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" + done + fi + AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) + AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) +]) + +# Only expand once: +m4_define([LTDL_INIT]) +])# LTDL_INIT + +# Old names: +AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) +AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) +AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIB_LTDL], []) +dnl AC_DEFUN([AC_WITH_LTDL], []) +dnl AC_DEFUN([LT_WITH_LTDL], []) + + +# _LTDL_SETUP +# ----------- +# Perform all the checks necessary for compilation of the ltdl objects +# -- including compiler checks and header checks. This is a public +# interface mainly for the benefit of libltdl's own configure.ac, most +# other users should call LTDL_INIT instead. +AC_DEFUN([_LTDL_SETUP], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_SYS_MODULE_EXT])dnl +AC_REQUIRE([LT_SYS_MODULE_PATH])dnl +AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl +AC_REQUIRE([LT_LIB_DLLOAD])dnl +AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl +AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl +AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl +AC_REQUIRE([LT_FUNC_ARGZ])dnl + +m4_require([_LT_CHECK_OBJDIR])dnl +m4_require([_LT_HEADER_DLFCN])dnl +m4_require([_LT_CHECK_DLPREOPEN])dnl +m4_require([_LT_DECL_SED])dnl + +dnl Don't require this, or it will be expanded earlier than the code +dnl that sets the variables it relies on: +_LT_ENABLE_INSTALL + +dnl _LTDL_MODE specific code must be called at least once: +_LTDL_MODE_DISPATCH + +# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS +# the user used. This is so that ltdl.h can pick up the parent projects +# config.h file, The first file in AC_CONFIG_HEADERS must contain the +# definitions required by ltdl.c. +# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). +AC_CONFIG_COMMANDS_PRE([dnl +m4_pattern_allow([^LT_CONFIG_H$])dnl +m4_ifset([AH_HEADER], + [LT_CONFIG_H=AH_HEADER], + [m4_ifset([AC_LIST_HEADERS], + [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's|^[[ ]]*||;s|[[ :]].*$||'`], + [])])]) +AC_SUBST([LT_CONFIG_H]) + +AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], + [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) +AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) + +m4_pattern_allow([LT_LIBEXT])dnl +AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) + +name= +eval "lt_libprefix=\"$libname_spec\"" +m4_pattern_allow([LT_LIBPREFIX])dnl +AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix]) + +name=ltdl +eval "LTDLOPEN=\"$libname_spec\"" +AC_SUBST([LTDLOPEN]) +])# _LTDL_SETUP + + +# _LT_ENABLE_INSTALL +# ------------------ +m4_define([_LT_ENABLE_INSTALL], +[AC_ARG_ENABLE([ltdl-install], + [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])]) + +case ,$enable_ltdl_install,$enable_ltdl_convenience in + *yes*) ;; + *) enable_ltdl_convenience=yes ;; +esac + +m4_ifdef([AM_CONDITIONAL], +[AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}") + AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}") + AM_CONDITIONAL(LTARGZH_EXISTS, test -n "$LT_ARGZ_H")]) +])# _LT_ENABLE_INSTALL + + +# LT_SYS_DLOPEN_DEPLIBS +# --------------------- +AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_CACHE_CHECK([whether deplibs are loaded by dlopen], + [lt_cv_sys_dlopen_deplibs], + [# PORTME does your system automatically load deplibs for dlopen? + # or its logical equivalent (e.g. shl_load for HP-UX < 11) + # For now, we just catch OSes we know something about -- in the + # future, we'll try test this programmatically. + lt_cv_sys_dlopen_deplibs=unknown + case $host_os in + aix3*|aix4.1.*|aix4.2.*) + # Unknown whether this is true for these versions of AIX, but + # we want this 'case' here to explicitly catch those versions. + lt_cv_sys_dlopen_deplibs=unknown + ;; + aix[[4-9]]*) + lt_cv_sys_dlopen_deplibs=yes + ;; + amigaos*) + case $host_cpu in + powerpc) + lt_cv_sys_dlopen_deplibs=no + ;; + esac + ;; + darwin*) + # Assuming the user has installed a libdl from somewhere, this is true + # If you are looking for one http://www.opendarwin.org/projects/dlcompat + lt_cv_sys_dlopen_deplibs=yes + ;; + freebsd* | dragonfly* | midnightbsd*) + lt_cv_sys_dlopen_deplibs=yes + ;; + gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) + # GNU and its variants, using gnu ld.so (Glibc) + lt_cv_sys_dlopen_deplibs=yes + ;; + hpux10*|hpux11*) + lt_cv_sys_dlopen_deplibs=yes + ;; + interix*) + lt_cv_sys_dlopen_deplibs=yes + ;; + irix[[12345]]*|irix6.[[01]]*) + # Catch all versions of IRIX before 6.2, and indicate that we don't + # know how it worked for any of those versions. + lt_cv_sys_dlopen_deplibs=unknown + ;; + irix*) + # The case above catches anything before 6.2, and it's known that + # at 6.2 and later dlopen does load deplibs. + lt_cv_sys_dlopen_deplibs=yes + ;; + *-mlibc) + lt_cv_sys_dlopen_deplibs=yes + ;; + netbsd* | netbsdelf*-gnu) + lt_cv_sys_dlopen_deplibs=yes + ;; + openbsd*) + lt_cv_sys_dlopen_deplibs=yes + ;; + osf[[1234]]*) + # dlopen did load deplibs (at least at 4.x), but until the 5.x series, + # it did *not* use an RPATH in a shared library to find objects the + # library depends on, so we explicitly say 'no'. + lt_cv_sys_dlopen_deplibs=no + ;; + osf5.0|osf5.0a|osf5.1) + # dlopen *does* load deplibs and with the right loader patch applied + # it even uses RPATH in a shared library to search for shared objects + # that the library depends on, but there's no easy way to know if that + # patch is installed. Since this is the case, all we can really + # say is unknown -- it depends on the patch being installed. If + # it is, this changes to 'yes'. Without it, it would be 'no'. + lt_cv_sys_dlopen_deplibs=unknown + ;; + osf*) + # the two cases above should catch all versions of osf <= 5.1. Read + # the comments above for what we know about them. + # At > 5.1, deplibs are loaded *and* any RPATH in a shared library + # is used to find them so we can finally say 'yes'. + lt_cv_sys_dlopen_deplibs=yes + ;; + qnx*) + lt_cv_sys_dlopen_deplibs=yes + ;; + solaris*) + lt_cv_sys_dlopen_deplibs=yes + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + libltdl_cv_sys_dlopen_deplibs=yes + ;; + esac + ]) +if test yes != "$lt_cv_sys_dlopen_deplibs"; then + AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], + [Define if the OS needs help to load dependent libraries for dlopen().]) +fi +])# LT_SYS_DLOPEN_DEPLIBS + +# Old name: +AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], []) + + +# LT_SYS_MODULE_EXT +# ----------------- +AC_DEFUN([LT_SYS_MODULE_EXT], +[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([what extension is used for runtime loadable modules], + [libltdl_cv_shlibext], +[ +module=yes +eval libltdl_cv_shlibext=$shrext_cmds +module=no +eval libltdl_cv_shrext=$shrext_cmds + ]) +if test -n "$libltdl_cv_shlibext"; then + m4_pattern_allow([LT_MODULE_EXT])dnl + AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], + [Define to the extension used for runtime loadable modules, say, ".so".]) +fi +if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then + m4_pattern_allow([LT_SHARED_EXT])dnl + AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"], + [Define to the shared library suffix, say, ".dylib".]) +fi +if test -n "$shared_archive_member_spec"; then + m4_pattern_allow([LT_SHARED_LIB_MEMBER])dnl + AC_DEFINE_UNQUOTED([LT_SHARED_LIB_MEMBER], ["($shared_archive_member_spec.o)"], + [Define to the shared archive member specification, say "(shr.o)".]) +fi +])# LT_SYS_MODULE_EXT + +# Old name: +AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LTDL_SHLIBEXT], []) + + +# LT_SYS_MODULE_PATH +# ------------------ +AC_DEFUN([LT_SYS_MODULE_PATH], +[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([what variable specifies run-time module search path], + [lt_cv_module_path_var], [lt_cv_module_path_var=$shlibpath_var]) +if test -n "$lt_cv_module_path_var"; then + m4_pattern_allow([LT_MODULE_PATH_VAR])dnl + AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], + [Define to the name of the environment variable that determines the run-time module search path.]) +fi +])# LT_SYS_MODULE_PATH + +# Old name: +AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LTDL_SHLIBPATH], []) + + +# LT_SYS_DLSEARCH_PATH +# -------------------- +AC_DEFUN([LT_SYS_DLSEARCH_PATH], +[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([for the default library search path], + [lt_cv_sys_dlsearch_path], + [lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec]) +if test -n "$lt_cv_sys_dlsearch_path"; then + sys_dlsearch_path= + for dir in $lt_cv_sys_dlsearch_path; do + if test -z "$sys_dlsearch_path"; then + sys_dlsearch_path=$dir + else + sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir + fi + done + m4_pattern_allow([LT_DLSEARCH_PATH])dnl + AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], + [Define to the system default library search path.]) +fi +])# LT_SYS_DLSEARCH_PATH + +# Old name: +AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], []) + + +# _LT_CHECK_DLPREOPEN +# ------------------- +m4_defun([_LT_CHECK_DLPREOPEN], +[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen], + [libltdl_cv_preloaded_symbols], + [if test -n "$lt_cv_sys_global_symbol_pipe"; then + libltdl_cv_preloaded_symbols=yes + else + libltdl_cv_preloaded_symbols=no + fi + ]) +if test yes = "$libltdl_cv_preloaded_symbols"; then + AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1], + [Define if libtool can extract symbol lists from object files.]) +fi +])# _LT_CHECK_DLPREOPEN + + +# LT_LIB_DLLOAD +# ------------- +AC_DEFUN([LT_LIB_DLLOAD], +[m4_pattern_allow([^LT_DLLOADERS$]) +LT_DLLOADERS= +AC_SUBST([LT_DLLOADERS]) + +AC_LANG_PUSH([C]) +lt_dlload_save_LIBS=$LIBS + +LIBADD_DLOPEN= +AC_SEARCH_LIBS([dlopen], [dl], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + if test "$ac_cv_search_dlopen" != "none required"; then + LIBADD_DLOPEN=-ldl + fi + libltdl_cv_lib_dl_dlopen=yes + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H +# include +#endif + ]], [[dlopen(0, 0);]])], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + libltdl_cv_func_dlopen=yes + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], + [AC_CHECK_LIB([svld], [dlopen], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) +if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" +then + lt_save_LIBS=$LIBS + LIBS="$LIBS $LIBADD_DLOPEN" + AC_CHECK_FUNCS([dlerror]) + LIBS=$lt_save_LIBS +fi +AC_SUBST([LIBADD_DLOPEN]) + +LIBADD_SHL_LOAD= +AC_CHECK_FUNC([shl_load], + [AC_DEFINE([HAVE_SHL_LOAD], [1], + [Define if you have the shl_load function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], + [AC_CHECK_LIB([dld], [shl_load], + [AC_DEFINE([HAVE_SHL_LOAD], [1], + [Define if you have the shl_load function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" + LIBADD_SHL_LOAD=-ldld])]) +AC_SUBST([LIBADD_SHL_LOAD]) + +case $host_os in +darwin[[1567]].*) +# We only want this for pre-Mac OS X 10.4. + AC_CHECK_FUNC([_dyld_func_lookup], + [AC_DEFINE([HAVE_DYLD], [1], + [Define if you have the _dyld_func_lookup function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) + ;; +beos*) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" + ;; +cygwin* | mingw* | windows* | pw32*) + AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include ]]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" + ;; +esac + +AC_CHECK_LIB([dld], [dld_link], + [AC_DEFINE([HAVE_DLD], [1], + [Define if you have the GNU dld library.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) +AC_SUBST([LIBADD_DLD_LINK]) + +m4_pattern_allow([^LT_DLPREOPEN$]) +LT_DLPREOPEN= +if test -n "$LT_DLLOADERS" +then + for lt_loader in $LT_DLLOADERS; do + LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " + done + AC_DEFINE([HAVE_LIBDLLOADER], [1], + [Define if libdlloader will be built on this platform]) +fi +AC_SUBST([LT_DLPREOPEN]) + +dnl This isn't used anymore, but set it for backwards compatibility +LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" +AC_SUBST([LIBADD_DL]) + +LIBS=$lt_dlload_save_LIBS +AC_LANG_POP +])# LT_LIB_DLLOAD + +# Old name: +AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LTDL_DLLIB], []) + + +# LT_SYS_SYMBOL_USCORE +# -------------------- +# does the compiler prefix global symbols with an underscore? +AC_DEFUN([LT_SYS_SYMBOL_USCORE], +[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +AC_CACHE_CHECK([for _ prefix in compiled symbols], + [lt_cv_sys_symbol_underscore], + [lt_cv_sys_symbol_underscore=no + cat > conftest.$ac_ext <<_LT_EOF +void nm_test_func(){} +int main(void){nm_test_func;return 0;} +_LT_EOF + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + ac_nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then + # See whether the symbols have a leading underscore. + if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then + lt_cv_sys_symbol_underscore=yes + else + if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then + : + else + echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD + fi + fi + else + echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.c >&AS_MESSAGE_LOG_FD + fi + rm -rf conftest* + ]) + sys_symbol_underscore=$lt_cv_sys_symbol_underscore + AC_SUBST([sys_symbol_underscore]) +])# LT_SYS_SYMBOL_USCORE + +# Old name: +AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], []) + + +# LT_FUNC_DLSYM_USCORE +# -------------------- +AC_DEFUN([LT_FUNC_DLSYM_USCORE], +[AC_REQUIRE([_LT_COMPILER_PIC])dnl for lt_prog_compiler_wl +AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl for lt_cv_sys_symbol_underscore +AC_REQUIRE([LT_SYS_MODULE_EXT])dnl for libltdl_cv_shlibext +if test yes = "$lt_cv_sys_symbol_underscore"; then + if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then + AC_CACHE_CHECK([whether we have to add an underscore for dlsym], + [libltdl_cv_need_uscore], + [libltdl_cv_need_uscore=unknown + dlsym_uscore_save_LIBS=$LIBS + LIBS="$LIBS $LIBADD_DLOPEN" + libname=conftmod # stay within 8.3 filename limits! + cat >$libname.$ac_ext <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif +int fnord () { return 42; }] +_LT_EOF + + # ltfn_module_cmds module_cmds + # Execute tilde-delimited MODULE_CMDS with environment primed for + # $module_cmds or $archive_cmds type content. + ltfn_module_cmds () + {( # subshell avoids polluting parent global environment + module_cmds_save_ifs=$IFS; IFS='~' + for cmd in @S|@1; do + IFS=$module_cmds_save_ifs + libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext + rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=. + major=; versuffix=; verstring=; deplibs= + ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag= + eval $cmd + done + IFS=$module_cmds_save_ifs + )} + + # Compile a loadable module using libtool macro expansion results. + $CC $pic_flag -c $libname.$ac_ext + ltfn_module_cmds "${module_cmds:-$archive_cmds}" + + # Try to fetch fnord with dlsym(). + libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2 + cat >conftest.$ac_ext <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" +#if HAVE_DLFCN_H +#include +#endif +#include +#ifndef RTLD_GLOBAL +# ifdef DL_GLOBAL +# define RTLD_GLOBAL DL_GLOBAL +# else +# define RTLD_GLOBAL 0 +# endif +#endif +#ifndef RTLD_NOW +# ifdef DL_NOW +# define RTLD_NOW DL_NOW +# else +# define RTLD_NOW 0 +# endif +#endif +int main (void) { + void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW); + int status = $libltdl_dlunknown; + if (handle) { + if (dlsym (handle, "fnord")) + status = $libltdl_dlnouscore; + else { + if (dlsym (handle, "_fnord")) + status = $libltdl_dluscore; + else + puts (dlerror ()); + } + dlclose (handle); + } else + puts (dlerror ()); + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + libltdl_status=$? + case x$libltdl_status in + x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;; + x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;; + x*) libltdl_cv_need_uscore=unknown ;; + esac + fi + rm -rf conftest* $libname* + LIBS=$dlsym_uscore_save_LIBS + ]) + fi +fi + +if test yes = "$libltdl_cv_need_uscore"; then + AC_DEFINE([NEED_USCORE], [1], + [Define if dlsym() requires a leading underscore in symbol names.]) +fi +])# LT_FUNC_DLSYM_USCORE + +# Old name: +AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], []) diff --git a/data/miniconda3/share/aclocal/ltoptions.m4 b/data/miniconda3/share/aclocal/ltoptions.m4 new file mode 100644 index 0000000000000000000000000000000000000000..25caa890298a4e53619ff628fd7cd64d772a2afc --- /dev/null +++ b/data/miniconda3/share/aclocal/ltoptions.m4 @@ -0,0 +1,467 @@ +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2024 Free +# Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 10 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option '$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl 'shared' nor 'disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], + [_LT_WITH_AIX_SONAME([aix])]) + ]) +])# _LT_SET_OPTIONS + + +## --------------------------------- ## +## Macros to handle LT_INIT options. ## +## --------------------------------- ## + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [1], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the 'shared' and +# 'disable-shared' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the 'static' and +# 'disable-static' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the 'fast-install' +# and 'disable-fast-install' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the 'fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the 'disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_AIX_SONAME([DEFAULT]) +# ---------------------------------- +# implement the --enable-aix-soname configure option, and support the +# `aix-soname=aix' and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. +# DEFAULT is either `aix', `both', or `svr4'. If omitted, it defaults to `aix'. +m4_define([_LT_WITH_AIX_SONAME], +[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl +shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[[5-9]]*,yes) + AC_MSG_CHECKING([which variant of shared library versioning to provide]) + AC_ARG_ENABLE([aix-soname], + [AS_HELP_STRING([--enable-aix-soname=aix|svr4|both], + [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], + [case $enableval in + aix|svr4|both) + ;; + *) + AC_MSG_ERROR([Unknown argument to --enable-aix-soname]) + ;; + esac + lt_cv_with_aix_soname=$enable_aix_soname], + [_AC_ENABLE_IF([with], [aix-soname], + [case $withval in + aix|svr4|both) + ;; + *) + AC_MSG_ERROR([Unknown argument to --with-aix-soname]) + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname], + [AC_CACHE_VAL([lt_cv_with_aix_soname], + [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)]) + enable_aix_soname=$lt_cv_with_aix_soname]) + with_aix_soname=$enable_aix_soname + AC_MSG_RESULT([$with_aix_soname]) + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + +_LT_DECL([], [shared_archive_member_spec], [0], + [Shared archive member basename, for filename based shared library versioning on AIX])dnl +])# _LT_WITH_AIX_SONAME + +LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) +LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) +LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --enable-pic flag, and support the 'pic-only' and 'no-pic' +# LT_INIT options. +# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_ENABLE([pic], + [AS_HELP_STRING([--enable-pic@<:@=PKGS@:>@], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [lt_p=${PACKAGE-default} + case $enableval in + yes|no) pic_mode=$enableval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [dnl Continue to support --with-pic and --without-pic, for backward + dnl compatibility. + _AC_ENABLE_IF([with], [pic], + [lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [pic_mode=m4_default([$1], [default])])] + ) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + +## ----------------- ## +## LTDL_INIT Options ## +## ----------------- ## + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) diff --git a/data/miniconda3/share/aclocal/ltsugar.m4 b/data/miniconda3/share/aclocal/ltsugar.m4 new file mode 100644 index 0000000000000000000000000000000000000000..5b5c80a3ad78a1c33104908a40e3f3f12e920df2 --- /dev/null +++ b/data/miniconda3/share/aclocal/ltsugar.m4 @@ -0,0 +1,124 @@ +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2024 Free Software +# Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59, which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) diff --git a/data/miniconda3/share/aclocal/ltversion.m4 b/data/miniconda3/share/aclocal/ltversion.m4 new file mode 100644 index 0000000000000000000000000000000000000000..228df3f39bf9c93c809285500486def24c2febac --- /dev/null +++ b/data/miniconda3/share/aclocal/ltversion.m4 @@ -0,0 +1,24 @@ +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004, 2011-2019, 2021-2024 Free Software Foundation, +# Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# @configure_input@ + +# serial 4441 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.5.4]) +m4_define([LT_PACKAGE_REVISION], [2.5.4]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.5.4' +macro_revision='2.5.4' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) diff --git a/data/miniconda3/share/aclocal/lt~obsolete.m4 b/data/miniconda3/share/aclocal/lt~obsolete.m4 new file mode 100644 index 0000000000000000000000000000000000000000..22b5346973571a78d046a0ce77bae488d4e43280 --- /dev/null +++ b/data/miniconda3/share/aclocal/lt~obsolete.m4 @@ -0,0 +1,99 @@ +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2024 Free +# Software Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 5 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) diff --git a/data/miniconda3/share/aclocal/nls.m4 b/data/miniconda3/share/aclocal/nls.m4 new file mode 100644 index 0000000000000000000000000000000000000000..5a506fc4b58c4bb9ee762d31bb5d00611d388069 --- /dev/null +++ b/data/miniconda3/share/aclocal/nls.m4 @@ -0,0 +1,32 @@ +# nls.m4 serial 6 (gettext-0.20.2) +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2020 Free +dnl Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Lesser General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Lesser General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +AC_PREREQ([2.50]) + +AC_DEFUN([AM_NLS], +[ + AC_MSG_CHECKING([whether NLS is requested]) + dnl Default is enabled NLS + AC_ARG_ENABLE([nls], + [ --disable-nls do not use Native Language Support], + USE_NLS=$enableval, USE_NLS=yes) + AC_MSG_RESULT([$USE_NLS]) + AC_SUBST([USE_NLS]) +]) diff --git a/data/miniconda3/share/aclocal/pkg.m4 b/data/miniconda3/share/aclocal/pkg.m4 new file mode 100644 index 0000000000000000000000000000000000000000..13a889017866a112bbf088864210d7ada61b5682 --- /dev/null +++ b/data/miniconda3/share/aclocal/pkg.m4 @@ -0,0 +1,275 @@ +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# serial 12 (pkg-config-0.29.2) + +dnl Copyright © 2004 Scott James Remnant . +dnl Copyright © 2012-2015 Dan Nicholson +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, but +dnl WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +dnl 02111-1307, USA. +dnl +dnl As a special exception to the GNU General Public License, if you +dnl distribute this file as part of a program that contains a +dnl configuration script generated by Autoconf, you may include it under +dnl the same distribution terms that you use for the rest of that +dnl program. + +dnl PKG_PREREQ(MIN-VERSION) +dnl ----------------------- +dnl Since: 0.29 +dnl +dnl Verify that the version of the pkg-config macros are at least +dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's +dnl installed version of pkg-config, this checks the developer's version +dnl of pkg.m4 when generating configure. +dnl +dnl To ensure that this macro is defined, also add: +dnl m4_ifndef([PKG_PREREQ], +dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) +dnl +dnl See the "Since" comment for each macro you use to see what version +dnl of the macros you require. +m4_defun([PKG_PREREQ], +[m4_define([PKG_MACROS_VERSION], [0.29.2]) +m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, + [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) +])dnl PKG_PREREQ + +dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) +dnl ---------------------------------- +dnl Since: 0.16 +dnl +dnl Search for the pkg-config tool and set the PKG_CONFIG variable to +dnl first found in the path. Checks that the version of pkg-config found +dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is +dnl used since that's the first version where most current features of +dnl pkg-config existed. +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi +fi[]dnl +])dnl PKG_PROG_PKG_CONFIG + +dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +dnl ------------------------------------------------------------------- +dnl Since: 0.18 +dnl +dnl Check to see whether a particular set of modules exists. Similar to +dnl PKG_CHECK_MODULES(), but does not set variables or print errors. +dnl +dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +dnl only at the first occurence in configure.ac, so if the first place +dnl it's called might be skipped (such as if it is within an "if", you +dnl have to call PKG_CHECK_EXISTS manually +AC_DEFUN([PKG_CHECK_EXISTS], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_default([$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) + +dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +dnl --------------------------------------------- +dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting +dnl pkg_failed based on the result. +m4_define([_PKG_CONFIG], +[if test -n "$$1"; then + pkg_cv_[]$1="$$1" + elif test -n "$PKG_CONFIG"; then + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], + [pkg_failed=yes]) + else + pkg_failed=untried +fi[]dnl +])dnl _PKG_CONFIG + +dnl _PKG_SHORT_ERRORS_SUPPORTED +dnl --------------------------- +dnl Internal check to see if pkg-config supports short errors. +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +])dnl _PKG_SHORT_ERRORS_SUPPORTED + + +dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +dnl [ACTION-IF-NOT-FOUND]) +dnl -------------------------------------------------------------- +dnl Since: 0.4.0 +dnl +dnl Note that if there is a possibility the first call to +dnl PKG_CHECK_MODULES might not happen, you should be sure to include an +dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac +AC_DEFUN([PKG_CHECK_MODULES], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $2]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + AC_MSG_RESULT([no]) + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + m4_default([$4], [AC_MSG_ERROR( +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT])[]dnl + ]) +elif test $pkg_failed = untried; then + AC_MSG_RESULT([no]) + m4_default([$4], [AC_MSG_FAILURE( +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see .])[]dnl + ]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + $3 +fi[]dnl +])dnl PKG_CHECK_MODULES + + +dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +dnl [ACTION-IF-NOT-FOUND]) +dnl --------------------------------------------------------------------- +dnl Since: 0.29 +dnl +dnl Checks for existence of MODULES and gathers its build flags with +dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags +dnl and VARIABLE-PREFIX_LIBS from --libs. +dnl +dnl Note that if there is a possibility the first call to +dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to +dnl include an explicit call to PKG_PROG_PKG_CONFIG in your +dnl configure.ac. +AC_DEFUN([PKG_CHECK_MODULES_STATIC], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +_save_PKG_CONFIG=$PKG_CONFIG +PKG_CONFIG="$PKG_CONFIG --static" +PKG_CHECK_MODULES($@) +PKG_CONFIG=$_save_PKG_CONFIG[]dnl +])dnl PKG_CHECK_MODULES_STATIC + + +dnl PKG_INSTALLDIR([DIRECTORY]) +dnl ------------------------- +dnl Since: 0.27 +dnl +dnl Substitutes the variable pkgconfigdir as the location where a module +dnl should install pkg-config .pc files. By default the directory is +dnl $libdir/pkgconfig, but the default can be changed by passing +dnl DIRECTORY. The user can override through the --with-pkgconfigdir +dnl parameter. +AC_DEFUN([PKG_INSTALLDIR], +[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) +m4_pushdef([pkg_description], + [pkg-config installation directory @<:@]pkg_default[@:>@]) +AC_ARG_WITH([pkgconfigdir], + [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, + [with_pkgconfigdir=]pkg_default) +AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) +m4_popdef([pkg_default]) +m4_popdef([pkg_description]) +])dnl PKG_INSTALLDIR + + +dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) +dnl -------------------------------- +dnl Since: 0.27 +dnl +dnl Substitutes the variable noarch_pkgconfigdir as the location where a +dnl module should install arch-independent pkg-config .pc files. By +dnl default the directory is $datadir/pkgconfig, but the default can be +dnl changed by passing DIRECTORY. The user can override through the +dnl --with-noarch-pkgconfigdir parameter. +AC_DEFUN([PKG_NOARCH_INSTALLDIR], +[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) +m4_pushdef([pkg_description], + [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) +AC_ARG_WITH([noarch-pkgconfigdir], + [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, + [with_noarch_pkgconfigdir=]pkg_default) +AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) +m4_popdef([pkg_default]) +m4_popdef([pkg_description]) +])dnl PKG_NOARCH_INSTALLDIR + + +dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, +dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +dnl ------------------------------------------- +dnl Since: 0.28 +dnl +dnl Retrieves the value of the pkg-config variable for the given module. +AC_DEFUN([PKG_CHECK_VAR], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl + +_PKG_CONFIG([$1], [variable="][$3]["], [$2]) +AS_VAR_COPY([$1], [pkg_cv_][$1]) + +AS_VAR_IF([$1], [""], [$5], [$4])dnl +])dnl PKG_CHECK_VAR diff --git a/data/miniconda3/share/aclocal/po.m4 b/data/miniconda3/share/aclocal/po.m4 new file mode 100644 index 0000000000000000000000000000000000000000..3778fd7aac78555f24448e867ce2c8516f71e2a4 --- /dev/null +++ b/data/miniconda3/share/aclocal/po.m4 @@ -0,0 +1,450 @@ +# po.m4 serial 31 (gettext-0.20.2) +dnl Copyright (C) 1995-2014, 2016, 2018-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Lesser General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Lesser General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +AC_PREREQ([2.60]) + +dnl Checks for all prerequisites of the po subdirectory. +AC_DEFUN([AM_PO_SUBDIRS], +[ + AC_REQUIRE([AC_PROG_MAKE_SET])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AC_PROG_MKDIR_P])dnl + AC_REQUIRE([AC_PROG_SED])dnl + AC_REQUIRE([AM_NLS])dnl + + dnl Release version of the gettext macros. This is used to ensure that + dnl the gettext macros and po/Makefile.in.in are in sync. + AC_SUBST([GETTEXT_MACRO_VERSION], [0.20]) + + dnl Perform the following tests also if --disable-nls has been given, + dnl because they are needed for "make dist" to work. + + dnl Search for GNU msgfmt in the PATH. + dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. + dnl The second test excludes FreeBSD msgfmt. + AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, + [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) + + dnl Test whether it is GNU msgfmt >= 0.15. +changequote(,)dnl + case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; + *) GMSGFMT_015=$GMSGFMT ;; + esac +changequote([,])dnl + AC_SUBST([GMSGFMT_015]) + + dnl Search for GNU xgettext 0.12 or newer in the PATH. + dnl The first test excludes Solaris xgettext and early GNU xgettext versions. + dnl The second test excludes FreeBSD xgettext. + AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, + [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], + :) + dnl Remove leftover from FreeBSD xgettext call. + rm -f messages.po + + dnl Test whether it is GNU xgettext >= 0.15. +changequote(,)dnl + case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; + *) XGETTEXT_015=$XGETTEXT ;; + esac +changequote([,])dnl + AC_SUBST([XGETTEXT_015]) + + dnl Search for GNU msgmerge 0.11 or newer in the PATH. + AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, + [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) + + dnl Test whether it is GNU msgmerge >= 0.20. + if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then + MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' + else + dnl Test whether it is GNU msgmerge >= 0.12. + if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then + MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' + else + dnl With these old versions, $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) is + dnl slow. But this is not a big problem, as such old gettext versions are + dnl hardly in use any more. + MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' + fi + fi + AC_SUBST([MSGMERGE_FOR_MSGFMT_OPTION]) + + dnl Support for AM_XGETTEXT_OPTION. + test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= + AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) + + AC_CONFIG_COMMANDS([po-directories], [[ + for ac_file in $CONFIG_FILES; do + # Support "outfile[:infile[:infile...]]" + case "$ac_file" in + *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + esac + # PO directories have a Makefile.in generated from Makefile.in.in. + case "$ac_file" in */Makefile.in) + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + # Treat a directory as a PO directory if and only if it has a + # POTFILES.in file. This allows packages to have multiple PO + # directories under different names or in different locations. + if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then + rm -f "$ac_dir/POTFILES" + test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" + gt_tab=`printf '\t'` + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + POMAKEFILEDEPS="POTFILES.in" + # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend + # on $ac_dir but don't depend on user-specified configuration + # parameters. + if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then + # The LINGUAS file contains the set of available languages. + if test -n "$OBSOLETE_ALL_LINGUAS"; then + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" + fi + ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` + POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" + else + # The set of available languages was given in configure.in. + ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS + fi + # Compute POFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) + # Compute UPDATEPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) + # Compute DUMMYPOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) + # Compute GMOFILES + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) + case "$ac_given_srcdir" in + .) srcdirpre= ;; + *) srcdirpre='$(srcdir)/' ;; + esac + POFILES= + UPDATEPOFILES= + DUMMYPOFILES= + GMOFILES= + for lang in $ALL_LINGUAS; do + POFILES="$POFILES $srcdirpre$lang.po" + UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" + DUMMYPOFILES="$DUMMYPOFILES $lang.nop" + GMOFILES="$GMOFILES $srcdirpre$lang.gmo" + done + # CATALOGS depends on both $ac_dir and the user's LINGUAS + # environment variable. + INST_LINGUAS= + if test -n "$ALL_LINGUAS"; then + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "$LINGUAS"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + INST_LINGUAS="$INST_LINGUAS $presentlang" + fi + done + fi + CATALOGS= + if test -n "$INST_LINGUAS"; then + for lang in $INST_LINGUAS; do + CATALOGS="$CATALOGS $lang.gmo" + done + fi + test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" + sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" + for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do + if test -f "$f"; then + case "$f" in + *.orig | *.bak | *~) ;; + *) cat "$f" >> "$ac_dir/Makefile" ;; + esac + fi + done + fi + ;; + esac + done]], + [# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. + OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" + ]) +]) + +dnl Postprocesses a Makefile in a directory containing PO files. +AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], +[ + # When this code is run, in config.status, two variables have already been + # set: + # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, + # - LINGUAS is the value of the environment variable LINGUAS at configure + # time. + +changequote(,)dnl + # Adjust a relative srcdir. + ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` + ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` + ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` + # In autoconf-2.13 it is called $ac_given_srcdir. + # In autoconf-2.50 it is called $srcdir. + test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" + case "$ac_given_srcdir" in + .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; + /*) top_srcdir="$ac_given_srcdir" ;; + *) top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + # Find a way to echo strings without interpreting backslash. + if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='echo' + else + if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then + gt_echo='printf %s\n' + else + echo_func () { + cat < "$ac_file.tmp" + tab=`printf '\t'` + if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then + # Add dependencies that cannot be formulated as a simple suffix rule. + for lang in $ALL_LINGUAS; do + frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` + cat >> "$ac_file.tmp" < /dev/null; then + # Add dependencies that cannot be formulated as a simple suffix rule. + for lang in $ALL_LINGUAS; do + frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` + cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1996. + +AC_PREREQ([2.50]) + +# Search path for a program which passes the given test. + +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) +AC_DEFUN([AM_PATH_PROG_WITH_TEST], +[ +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which + # contains only /bin. Note that ksh looks also at the FPATH variable, + # so we have to set that as well for the test. + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + || PATH_SEPARATOR=';' + } +fi + +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file + +# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL([ac_cv_path_$1], +[case "[$]$1" in + [[\\/]]* | ?:[[\\/]]*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in ifelse([$5], , $PATH, [$5]); do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD + if [$3]; then + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" +dnl If no 4th arg is given, leave the cache variable unset, +dnl so AC_PATH_PROGS will keep looking. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" +])dnl + ;; +esac])dnl +$1="$ac_cv_path_$1" +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then + AC_MSG_RESULT([$][$1]) +else + AC_MSG_RESULT([no]) +fi +AC_SUBST([$1])dnl +]) diff --git a/data/miniconda3/share/dbus-1/session.conf b/data/miniconda3/share/dbus-1/session.conf new file mode 100644 index 0000000000000000000000000000000000000000..890d89abc8bc3cccc72af1c401c19c34502d75dd --- /dev/null +++ b/data/miniconda3/share/dbus-1/session.conf @@ -0,0 +1,80 @@ + + + + + + session + + + + + unix:tmpdir=/tmp + + + EXTERNAL + + + + + + + + + + + + + + /home/zangyihe/miniconda3/etc/dbus-1/session.conf + + + session.d + + /home/zangyihe/miniconda3/etc/dbus-1/session.d + + + /home/zangyihe/miniconda3/etc/dbus-1/session-local.conf + + contexts/dbus_contexts + + + + + 1000000000 + 250000000 + 1000000000 + 250000000 + 1000000000 + + 120000 + 240000 + 150000 + 100000 + 10000 + 100000 + 10000 + 50000 + 50000 + 50000 + + diff --git a/data/miniconda3/share/dbus-1/system.conf b/data/miniconda3/share/dbus-1/system.conf new file mode 100644 index 0000000000000000000000000000000000000000..b9b836096c3d0b5927a49ddc92fd7bb318bd0668 --- /dev/null +++ b/data/miniconda3/share/dbus-1/system.conf @@ -0,0 +1,142 @@ + + + + + + + + + system + + + messagebus + + + + + + + + + /home/zangyihe/miniconda3/libexec/dbus-daemon-launch-helper + + + /home/zangyihe/miniconda3/var/run/dbus/pid + + + + + + EXTERNAL + + + unix:path=/home/zangyihe/miniconda3/var/run/dbus/system_bus_socket + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /home/zangyihe/miniconda3/etc/dbus-1/system.conf + + + + + + + + + + + + + + + + + + + + + system.d + + /home/zangyihe/miniconda3/etc/dbus-1/system.d + + + /home/zangyihe/miniconda3/etc/dbus-1/system-local.conf + + contexts/dbus_contexts + + diff --git a/data/miniconda3/share/doc/iconv.1.html b/data/miniconda3/share/doc/iconv.1.html new file mode 100644 index 0000000000000000000000000000000000000000..04caf986b55041682cc259e8718285ac1f91f25e --- /dev/null +++ b/data/miniconda3/share/doc/iconv.1.html @@ -0,0 +1,205 @@ + + + + + + + + +ICONV + + + + +

ICONV

+ +NAME
+SYNOPSIS
+DESCRIPTION
+EXAMPLES
+CONFORMING TO
+SEE ALSO
+ +
+ + +

NAME + +

+ + +

iconv − +character set conversion

+ +

SYNOPSIS + +

+ + +

iconv +[OPTION...] [−f encoding] +[−t encoding] [inputfile ...] +
+iconv −l

+ +

DESCRIPTION + +

+ + +

The +iconv program converts text from one encoding to +another encoding. More precisely, it converts from +the encoding given for the −f option to +the encoding given for the −t option. Either of +these encodings defaults to the encoding of the current +locale. All the inputfiles are read and converted in +turn; if no inputfile is given, the standard input is +used. The converted text is printed to standard output.

+ +

The encodings +permitted are system dependent. For the libiconv +implementation, they are listed in the iconv_open(3) manual +page.

+ +

Options +controlling the input and output format:
+−f
encoding, +−−from−code=encoding

+ +

Specifies the encoding of the +input.

+ +

−t +encoding, +−−to−code=encoding

+ +

Specifies the encoding of the +output.

+ +

Options +controlling conversion problems:

+ + + + + + + +
+ + +

−c

+ + +

When this option is given, characters that cannot be +converted are silently discarded, instead of leading to a +conversion error.

+ + +

−−unicode−subst=formatstring

+ +

When this option is given, +Unicode characters that cannot be represented in the target +encoding are replaced with a placeholder string that is +constructed from the given formatstring, applied to +the Unicode code point. The formatstring must be a +format string in the same format as for the printf +command or the printf() function, taking either no +argument or exactly one unsigned integer argument.

+ + +

−−byte−subst=formatstring

+ +

When this option is given, +bytes in the input that are not valid in the source encoding +are replaced with a placeholder string that is constructed +from the given formatstring, applied to the +byte’s value. The formatstring must be a format +string in the same format as for the printf command +or the printf() function, taking either no argument +or exactly one unsigned integer argument.

+ + +

−−widechar−subst=formatstring

+ +

When this option is given, wide +characters in the input that are not valid in the source +encoding are replaced with a placeholder string that is +constructed from the given formatstring, applied to +the byte’s value. The formatstring must be a +format string in the same format as for the printf +command or the printf() function, taking either no +argument or exactly one unsigned integer argument.

+ +

Options +controlling error output:
+−s
, −−silent

+ +

When this option is given, +error messages about invalid or unconvertible characters are +omitted, but the actual converted text is unaffected.

+ +

The iconv +−l or iconv −−list command +lists the names of the supported encodings, in a system +dependent format. For the libiconv implementation, the names +are printed in upper case, separated by whitespace, and +alias names of an encoding are listed on the same line as +the encoding itself.

+ +

EXAMPLES + +

+ + +

iconv +−f ISO−8859−1 −t UTF−8

+ +

converts input from the old +West-European encoding ISO−8859−1 to +Unicode.

+ +

iconv +−f KOI8−R +−−byte−subst="<0x%x>"
+ +−−unicode−subst="<U+%04X>"

+ +

converts input from the old +Russian encoding KOI8−R to the locale encoding, +substituting an angle bracket notation with hexadecimal +numbers for invalid bytes and for valid but unconvertible +characters.

+ +

iconv +−−list

+ +

lists the supported +encodings.

+ +

CONFORMING TO + +

+ + +

POSIX:2001

+ +

SEE ALSO + +

+ + + +

iconv_open(3), +locale(7)

+
+ + diff --git a/data/miniconda3/share/doc/iconv.3.html b/data/miniconda3/share/doc/iconv.3.html new file mode 100644 index 0000000000000000000000000000000000000000..8f146dab572c495a15ecce0b0ffd765ea196652a --- /dev/null +++ b/data/miniconda3/share/doc/iconv.3.html @@ -0,0 +1,206 @@ + + + + + + + + +ICONV + + + + +

ICONV

+ +NAME
+SYNOPSIS
+DESCRIPTION
+RETURN VALUE
+ERRORS
+CONFORMING TO
+SEE ALSO
+ +
+ + +

NAME + +

+ + +

iconv − +perform character set conversion

+ +

SYNOPSIS + +

+ + +

#include +<iconv.h>

+ +

size_t iconv +(iconv_t cd,
+const char* *
inbuf, size_t * +inbytesleft,
+char* *
outbuf, size_t * +outbytesleft);

+ +

DESCRIPTION + +

+ + +

The argument +cd must be a conversion descriptor created using the +function iconv_open.

+ +

The main case +is when inbuf is not NULL and *inbuf is not +NULL. In this case, the iconv function converts the +multibyte sequence starting at *inbuf to a multibyte +sequence starting at *outbuf. At most +*inbytesleft bytes, starting at *inbuf, will +be read. At most *outbytesleft bytes, starting at +*outbuf, will be written.

+ +

The +iconv function converts one multibyte character at a +time, and for each character conversion it increments +*inbuf and decrements *inbytesleft by the +number of converted input bytes, it increments +*outbuf and decrements *outbytesleft by the +number of converted output bytes, and it updates the +conversion state contained in cd. If the character +encoding of the input is stateful, the iconv function +can also convert a sequence of input bytes to an update of +the conversion state without producing any output bytes; +such input is called a shift sequence. The conversion +can stop for four reasons:

+ +

1. An invalid +multibyte sequence is encountered in the input. In this case +it sets errno to EILSEQ and returns +(size_t)(−1). *inbuf is left pointing to the +beginning of the invalid multibyte sequence.

+ +

2. The input +byte sequence has been entirely converted, i.e. +*inbytesleft has gone down to 0. In this case +iconv returns the number of non-reversible +conversions performed during this call.

+ +

3. An +incomplete multibyte sequence is encountered in the input, +and the input byte sequence terminates after it. In this +case it sets errno to EINVAL and returns +(size_t)(−1). *inbuf is left pointing to the +beginning of the incomplete multibyte sequence.

+ +

4. The output +buffer has no more room for the next converted character. In +this case it sets errno to E2BIG and returns +(size_t)(−1).

+ +

A different +case is when inbuf is NULL or *inbuf is NULL, +but outbuf is not NULL and *outbuf is not +NULL. In this case, the iconv function attempts to +set cd’s conversion state to the initial state +and store a corresponding shift sequence at *outbuf. +At most *outbytesleft bytes, starting at +*outbuf, will be written. If the output buffer has no +more room for this reset sequence, it sets errno to +E2BIG and returns (size_t)(−1). Otherwise it +increments *outbuf and decrements +*outbytesleft by the number of bytes written.

+ +

A third case is +when inbuf is NULL or *inbuf is NULL, and +outbuf is NULL or *outbuf is NULL. In this +case, the iconv function sets cd’s +conversion state to the initial state.

+ +

RETURN VALUE + +

+ + +

The +iconv function returns the number of characters +converted in a non-reversible way during this call; +reversible conversions are not counted. In case of error, it +sets errno and returns (size_t)(−1).

+ +

ERRORS + +

+ + +

The following +errors can occur, among others:

+ + + + + + + + + + + + + + + + + +
+ + +

E2BIG

+ + +

There is not sufficient room at *outbuf.

+ + +

EILSEQ

+ + +

An invalid multibyte sequence has been encountered in +the input.

+ + +

EINVAL

+ + +

An incomplete multibyte sequence has been encountered in +the input.

+ +

CONFORMING TO + +

+ + +

POSIX:2001

+ +

SEE ALSO + +

+ + + +

iconv_open(3), +iconvctl(3) iconv_close(3)

+
+ + diff --git a/data/miniconda3/share/doc/iconv_close.3.html b/data/miniconda3/share/doc/iconv_close.3.html new file mode 100644 index 0000000000000000000000000000000000000000..b31c8f11c91ad6e481c7a8575d2291ed5ffada92 --- /dev/null +++ b/data/miniconda3/share/doc/iconv_close.3.html @@ -0,0 +1,89 @@ + + + + + + + + +ICONV_CLOSE + + + + +

ICONV_CLOSE

+ +NAME
+SYNOPSIS
+DESCRIPTION
+RETURN VALUE
+CONFORMING TO
+SEE ALSO
+ +
+ + +

NAME + +

+ + +

iconv_close +− deallocate descriptor for character set +conversion

+ +

SYNOPSIS + +

+ + +

#include +<iconv.h>

+ +

int +iconv_close (iconv_t cd);

+ +

DESCRIPTION + +

+ + +

The +iconv_close function deallocates a conversion +descriptor cd previously allocated using +iconv_open.

+ +

RETURN VALUE + +

+ + +

When +successful, the iconv_close function returns 0. In +case of error, it sets errno and returns +−1.

+ +

CONFORMING TO + +

+ + +

POSIX:2001

+ +

SEE ALSO + +

+ + + +

iconv_open(3) +iconv(3)

+
+ + diff --git a/data/miniconda3/share/doc/iconv_open.3.html b/data/miniconda3/share/doc/iconv_open.3.html new file mode 100644 index 0000000000000000000000000000000000000000..af0a25260123a3b18c789af9019a51ad80de2b78 --- /dev/null +++ b/data/miniconda3/share/doc/iconv_open.3.html @@ -0,0 +1,318 @@ + + + + + + + + +ICONV_OPEN + + + + +

ICONV_OPEN

+ +NAME
+SYNOPSIS
+DESCRIPTION
+RETURN VALUE
+ERRORS
+CONFORMING TO
+SEE ALSO
+ +
+ + +

NAME + +

+ + +

iconv_open +− allocate descriptor for character set conversion

+ +

SYNOPSIS + +

+ + +

#include +<iconv.h>

+ +

iconv_t +iconv_open (const char* tocode, const +char* fromcode);

+ +

DESCRIPTION + +

+ + +

The +iconv_open function allocates a conversion descriptor +suitable for converting byte sequences from character +encoding fromcode to character encoding +tocode.

+ +

The values +permitted for fromcode and tocode and the +supported combinations are system dependent. For the +libiconv library, the following encodings are supported, in +all combinations.
+European languages

+ +

ASCII, +ISO−8859−{1,2,3,4,5,7,9,10,13,14,15,16}, +KOI8−R, KOI8−U, KOI8−RU, +CP{1250,1251,1252,1253,1254,1257}, CP{850,866,1131}, +Mac{Roman,CentralEurope,Iceland,Croatian,Romania}, +Mac{Cyrillic,Ukraine,Greek,Turkish}, Macintosh

+ +

Semitic languages

+ +

ISO−8859−{6,8}, +CP{1255,1256}, CP862, Mac{Hebrew,Arabic}

+ +

Japanese

+ +

EUC−JP, SHIFT_JIS, CP932, +ISO−2022−JP, ISO−2022−JP−2, +ISO−2022−JP−1, +ISO-2022−JP−MS

+ +

Chinese

+ +

EUC−CN, HZ, GBK, CP936, +GB18030, EUC−TW, BIG5, CP950, BIG5−HKSCS, +BIG5−HKSCS:2004, BIG5−HKSCS:2001, +BIG5−HKSCS:1999, ISO−2022−CN, +ISO−2022−CN−EXT

+ + + + + + + + +
+ + +

Korean

+ + +

EUC−KR, CP949, ISO−2022−KR, JOHAB

+
+ +

Armenian

+ +

ARMSCII−8

+ +

Georgian

+ +

Georgian−Academy, +Georgian−PS

+ + + + + + + + + + + + + + + + + + + + +
+ + +

Tajik

+ + +

KOI8−T

+
+ + +

Kazakh

+ + +

PT154, RK1048

+
+ + +

Thai

+ + +

TIS−620, CP874, MacThai

+
+ +

Laotian

+ +

MuleLao−1, CP1133

+ +

Vietnamese

+ +

VISCII, TCVN, CP1258

+ +

Platform specifics

+ +

HP−ROMAN8, NEXTSTEP

+ +

Full Unicode

+ +

UTF−8
+UCS−2, UCS−2BE, UCS−2LE
+UCS−4, UCS−4BE, UCS−4LE
+UTF−16, UTF−16BE, UTF−16LE
+UTF−32, UTF−32BE, UTF−32LE
+UTF−7
+C99, JAVA

+ +

Full Unicode, in terms of +uint16_t or uint32_t

+ +

(with machine dependent +endianness and alignment)
+UCS−2−INTERNAL, UCS−4−INTERNAL

+ +

Locale dependent, in terms of +char or wchar_t

+ +

(with machine dependent +endianness and alignment, and with semantics depending on +the OS and the current LC_CTYPE locale facet)
+char, wchar_t

+ +

When configured +with the option +−−enable−extra−encodings, it +also provides support for a few extra encodings:
+European languages

+ + +

CP{437,737,775,852,853,855,857,858,860,861,863,865,869,1125}

+ +

Semitic languages

+ +

CP864

+ +

Japanese

+ +

EUC−JISX0213, +Shift_JISX0213, ISO−2022−JP−3

+ +

Chinese

+ +

BIG5−2003 +(experimental)

+ +

Turkmen

+ +

TDS565

+ +

Platform specifics

+ +

ATARIST, +RISCOS−LATIN1

+ +

The empty +encoding name "" is equivalent to +"char": it denotes the locale dependent character +encoding.

+ +

When the string +"//TRANSLIT" is appended to tocode, +transliteration is activated. This means that when a +character cannot be represented in the target character set, +it can be approximated through one or several characters +that look similar to the original character.

+ +

When the string +"//IGNORE" is appended to tocode, +characters that cannot be represented in the target +character set will be silently discarded.

+ +

The resulting +conversion descriptor can be used with iconv any +number of times. It remains valid until deallocated using +iconv_close.

+ +

A conversion +descriptor contains a conversion state. After creation using +iconv_open, the state is in the initial state. Using +iconv modifies the descriptor’s conversion +state. (This implies that a conversion descriptor can not be +used in multiple threads simultaneously.) To bring the state +back to the initial state, use iconv with NULL as +inbuf argument.

+ +

RETURN VALUE + +

+ + +

The +iconv_open function returns a freshly allocated +conversion descriptor. In case of error, it sets +errno and returns (iconv_t)(−1).

+ +

ERRORS + +

+ + +

The following +error can occur, among others:

+ + + + + + + +
+ + +

EINVAL

+ + +

The conversion from fromcode to tocode is +not supported by the implementation.

+ +

CONFORMING TO + +

+ + +

POSIX:2001

+ +

SEE ALSO + +

+ + + +

iconv(3) +iconvctl(3) iconv_close(3)

+
+ + diff --git a/data/miniconda3/share/doc/iconv_open_into.3.html b/data/miniconda3/share/doc/iconv_open_into.3.html new file mode 100644 index 0000000000000000000000000000000000000000..192f6c3c986c9789529f8e534efe28acb391a2bc --- /dev/null +++ b/data/miniconda3/share/doc/iconv_open_into.3.html @@ -0,0 +1,132 @@ + + + + + + + + +ICONV_OPEN_INTO + + + + +

ICONV_OPEN_INTO

+ +NAME
+SYNOPSIS
+DESCRIPTION
+RETURN VALUE
+ERRORS
+CONFORMING TO
+SEE ALSO
+ +
+ + +

NAME + +

+ + + +

iconv_open_into +− initialize descriptor for character set +conversion

+ +

SYNOPSIS + +

+ + +

#include +<iconv.h>

+ +

int +iconv_open_into (const char* tocode, const +char* fromcode,
+iconv_allocation_t*
resultp);

+ +

DESCRIPTION + +

+ + +

The +iconv_open_into function initializes a conversion +descriptor suitable for converting byte sequences from +character encoding fromcode to character encoding +tocode. The conversion descriptor is stored in the +memory pointed to by resultp.

+ +

The values +permitted for fromcode and tocode are the same +as for the function iconv_open.

+ +

After a +successful return from this function, resultp can be +be used as an iconv_t object with the iconv +function.

+ +

RETURN VALUE + +

+ + +

The +iconv_open_into function fills *resultp +and returns 0 if it succeeds. In case of error, it sets +errno and returns −1.

+ +

ERRORS + +

+ + +

The following +error can occur, among others:

+ + + + + + + +
+ + +

EINVAL

+ + +

The conversion from fromcode to tocode is +not supported by the implementation.

+ +

CONFORMING TO + +

+ + +

This function +is implemented only in GNU libiconv and not in other +iconv implementations. It is not backed by a +standard. You can test for its presence through +(_LIBICONV_VERSION >= 0x010D).

+ +

SEE ALSO + +

+ + + +

iconv_open(3) +iconv(3)

+
+ + diff --git a/data/miniconda3/share/doc/iconvctl.3.html b/data/miniconda3/share/doc/iconvctl.3.html new file mode 100644 index 0000000000000000000000000000000000000000..16d85c1f3cfecdb83edb7ef7a8d66792b88e47e5 --- /dev/null +++ b/data/miniconda3/share/doc/iconvctl.3.html @@ -0,0 +1,170 @@ + + + + + + + + +ICONVCTL + + + + +

ICONVCTL

+ +NAME
+SYNOPSIS
+DESCRIPTION
+REQUEST VALUES
+RETURN VALUE
+ERRORS
+CONFORMING TO
+SEE ALSO
+ +
+ + +

NAME + +

+ + +

iconvctl +− control iconv behavior

+ +

SYNOPSIS + +

+ + +

#include +<iconv.h>

+ +

int iconvctl +(iconv_t cd , int request, void +* argument);

+ +

DESCRIPTION + +

+ + +

The argument +cd must be a conversion descriptor created using the +function iconv_open.

+ + +

iconvctl +queries or adjusts the behavior of the iconv +function, when invoked with the specified conversion +descriptor, depending on the request value.

+ +

REQUEST VALUES + +

+ + +

The following +are permissible values for the request parameter. +
+ICONV_TRIVIALP

+ +

argument should be an +int * which will receive 1 if the conversion is +trivial, or 0 otherwise.

+ + +

ICONV_GET_TRANSLITERATE

+ +

argument should be an +int * which will receive 1 if transliteration is +enabled in the conversion, or 0 otherwise.

+ + +

ICONV_SET_TRANSLITERATE

+ +

argument should be a +const int *, pointing to an int value. A +non-zero value is used to enable transliteration in the +conversion. A zero value disables it.

+ + +

ICONV_GET_DISCARD_ILSEQ

+ +

argument should be an +int * which will receive 1 if "illegal sequence +discard and continue" is enabled in the conversion, or +0 otherwise.

+ + +

ICONV_SET_DISCARD_ILSEQ

+ +

argument should be a +const int *, pointing to an int value. A +non-zero value is used to enable "illegal sequence +discard and continue" in the conversion. A zero value +disables it.

+ +

RETURN VALUE + +

+ + +

The +iconvctl function returns 0 if it succeeds. In case +of error, it sets errno and returns −1.

+ +

ERRORS + +

+ + +

The following +errors can occur, among others:

+ + + + + + + + +
+ + +

EINVAL

+ + +

The request is invalid.

+
+ +

CONFORMING TO + +

+ + +

This function +is implemented only in GNU libiconv and not in other +iconv implementations. It is not backed by a +standard. You can test for its presence through +(_LIBICONV_VERSION >= 0x0108).

+ +

SEE ALSO + +

+ + + +

iconv_open(3) +iconv(3)

+
+ + diff --git a/data/miniconda3/share/gettext/ABOUT-NLS b/data/miniconda3/share/gettext/ABOUT-NLS new file mode 100644 index 0000000000000000000000000000000000000000..0a9d56d9e79bf5cd209a6fc6a7c8cddade70b16d --- /dev/null +++ b/data/miniconda3/share/gettext/ABOUT-NLS @@ -0,0 +1 @@ + diff --git a/data/miniconda3/share/gettext/config.rpath b/data/miniconda3/share/gettext/config.rpath new file mode 100644 index 0000000000000000000000000000000000000000..24be79cfb6c1ea846bf7ec122effade871127dc4 --- /dev/null +++ b/data/miniconda3/share/gettext/config.rpath @@ -0,0 +1,684 @@ +#! /bin/sh +# Output a system dependent set of variables, describing how to set the +# run time search path of shared libraries in an executable. +# +# Copyright 1996-2020 Free Software Foundation, Inc. +# Taken from GNU libtool, 2001 +# Originally by Gordon Matzigkeit , 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# The first argument passed to this file is the canonical host specification, +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld +# should be set by the caller. +# +# The set of defined variables is at the end of this script. + +# Known limitations: +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer +# than 256 bytes, otherwise the compiler driver will dump core. The only +# known workaround is to choose shorter directory names for the build +# directory and/or the installation directory. + +# All known linkers require a '.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +shrext=.so + +host="$1" +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +# Code taken from libtool.m4's _LT_CC_BASENAME. + +for cc_temp in $CC""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` + +# Code taken from libtool.m4's _LT_COMPILER_PIC. + +wl= +if test "$GCC" = yes; then + wl='-Wl,' +else + case "$host_os" in + aix*) + wl='-Wl,' + ;; + mingw* | cygwin* | pw32* | os2* | cegcc*) + ;; + hpux9* | hpux10* | hpux11*) + wl='-Wl,' + ;; + irix5* | irix6* | nonstopux*) + wl='-Wl,' + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + ecc*) + wl='-Wl,' + ;; + icc* | ifort*) + wl='-Wl,' + ;; + lf95*) + wl='-Wl,' + ;; + nagfor*) + wl='-Wl,-Wl,,' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + wl='-Wl,' + ;; + ccc*) + wl='-Wl,' + ;; + xl* | bgxl* | bgf* | mpixl*) + wl='-Wl,' + ;; + como) + wl='-lopt=' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ F* | *Sun*Fortran*) + wl= + ;; + *Sun\ C*) + wl='-Wl,' + ;; + esac + ;; + esac + ;; + newsos6) + ;; + *nto* | *qnx*) + ;; + osf3* | osf4* | osf5*) + wl='-Wl,' + ;; + rdos*) + ;; + solaris*) + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + wl='-Qoption ld ' + ;; + *) + wl='-Wl,' + ;; + esac + ;; + sunos4*) + wl='-Qoption ld ' + ;; + sysv4 | sysv4.2uw2* | sysv4.3*) + wl='-Wl,' + ;; + sysv4*MP*) + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + wl='-Wl,' + ;; + unicos*) + wl='-Wl,' + ;; + uts4*) + ;; + esac +fi + +# Code taken from libtool.m4's _LT_LINKER_SHLIBS. + +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no + +case "$host_os" in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + # Unlike libtool, we use -rpath here, not --rpath, since the documented + # option of GNU ld is called -rpath, not --rpath. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + case "$host_os" in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + fi + ;; + amigaos*) + case "$host_cpu" in + powerpc) + ;; + m68k) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + cygwin* | mingw* | pw32* | cegcc*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + haiku*) + ;; + interix[3-9]*) + hardcode_direct=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + netbsd*) + ;; + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + else + ld_shlibs=no + fi + ;; + esac + ;; + sunos4*) + hardcode_direct=yes + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + esac + if test "$ld_shlibs" = no; then + hardcode_libdir_flag_spec= + fi +else + case "$host_os" in + aix3*) + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + else + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + fi + hardcode_direct=yes + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + fi + # Begin _LT_AC_SYS_LIBPATH_AIX. + echo 'int main () { return 0; }' > conftest.c + ${CC} ${LDFLAGS} conftest.c -o conftest + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + fi + if test -z "$aix_libpath"; then + aix_libpath="/usr/lib:/lib" + fi + rm -f conftest.c conftest + # End _LT_AC_SYS_LIBPATH_AIX. + if test "$aix_use_runtimelinking" = yes; then + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + else + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + fi + fi + ;; + amigaos*) + case "$host_cpu" in + powerpc) + ;; + m68k) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + bsdi[45]*) + ;; + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + libext=lib + ;; + darwin* | rhapsody*) + hardcode_direct=no + if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then + : + else + ld_shlibs=no + fi + ;; + dgux*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + freebsd2.[01]*) + hardcode_direct=yes + hardcode_minus_L=yes + ;; + freebsd* | dragonfly*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + hpux9*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + hpux10*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + hpux11*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + ;; + *) + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + irix5* | irix6* | nonstopux*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + netbsd*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + newsos6) + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + *nto* | *qnx*) + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + else + case "$host_os" in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + osf3*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + osf4* | osf5*) + if test "$GCC" = yes; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + # Both cc and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + solaris*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + sunos4*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + ;; + sysv4) + case $host_vendor in + sni) + hardcode_direct=yes # is this really true??? + ;; + siemens) + hardcode_direct=no + ;; + motorola) + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + ;; + sysv4.3*) + ;; + sysv4*MP*) + if test -d /usr/nec; then + ld_shlibs=yes + fi + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + ;; + sysv5* | sco3.2v5* | sco5v6*) + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + ;; + uts4*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + *) + ld_shlibs=no + ;; + esac +fi + +# Check dynamic linker characteristics +# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. +# Unlike libtool.m4, here we don't care about _all_ names of the library, but +# only about the one the linker finds when passed -lNAME. This is the last +# element of library_names_spec in libtool.m4, or possibly two of them if the +# linker has special search rules. +library_names_spec= # the last element of library_names_spec in libtool.m4 +libname_spec='lib$name' +case "$host_os" in + aix3*) + library_names_spec='$libname.a' + ;; + aix[4-9]*) + library_names_spec='$libname$shrext' + ;; + amigaos*) + case "$host_cpu" in + powerpc*) + library_names_spec='$libname$shrext' ;; + m68k) + library_names_spec='$libname.a' ;; + esac + ;; + beos*) + library_names_spec='$libname$shrext' + ;; + bsdi[45]*) + library_names_spec='$libname$shrext' + ;; + cygwin* | mingw* | pw32* | cegcc*) + shrext=.dll + library_names_spec='$libname.dll.a $libname.lib' + ;; + darwin* | rhapsody*) + shrext=.dylib + library_names_spec='$libname$shrext' + ;; + dgux*) + library_names_spec='$libname$shrext' + ;; + freebsd[23].*) + library_names_spec='$libname$shrext$versuffix' + ;; + freebsd* | dragonfly*) + library_names_spec='$libname$shrext' + ;; + gnu*) + library_names_spec='$libname$shrext' + ;; + haiku*) + library_names_spec='$libname$shrext' + ;; + hpux9* | hpux10* | hpux11*) + case $host_cpu in + ia64*) + shrext=.so + ;; + hppa*64*) + shrext=.sl + ;; + *) + shrext=.sl + ;; + esac + library_names_spec='$libname$shrext' + ;; + interix[3-9]*) + library_names_spec='$libname$shrext' + ;; + irix5* | irix6* | nonstopux*) + library_names_spec='$libname$shrext' + case "$host_os" in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; + *) libsuff= shlibsuff= ;; + esac + ;; + esac + ;; + linux*oldld* | linux*aout* | linux*coff*) + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + library_names_spec='$libname$shrext' + ;; + knetbsd*-gnu) + library_names_spec='$libname$shrext' + ;; + netbsd*) + library_names_spec='$libname$shrext' + ;; + newsos6) + library_names_spec='$libname$shrext' + ;; + *nto* | *qnx*) + library_names_spec='$libname$shrext' + ;; + openbsd*) + library_names_spec='$libname$shrext$versuffix' + ;; + os2*) + libname_spec='$name' + shrext=.dll + library_names_spec='$libname.a' + ;; + osf3* | osf4* | osf5*) + library_names_spec='$libname$shrext' + ;; + rdos*) + ;; + solaris*) + library_names_spec='$libname$shrext' + ;; + sunos4*) + library_names_spec='$libname$shrext$versuffix' + ;; + sysv4 | sysv4.3*) + library_names_spec='$libname$shrext' + ;; + sysv4*MP*) + library_names_spec='$libname$shrext' + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + library_names_spec='$libname$shrext' + ;; + tpf*) + library_names_spec='$libname$shrext' + ;; + uts4*) + library_names_spec='$libname$shrext' + ;; +esac + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` +shlibext=`echo "$shrext" | sed -e 's,^\.,,'` +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` + +LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. + Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2020 Free Software + Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . */ + +#ifndef _LIBGETTEXT_H +#define _LIBGETTEXT_H 1 + +/* NLS can be disabled through the configure --disable-nls option + or through "#define ENABLE NLS 0" before including this file. */ +#if defined ENABLE_NLS && ENABLE_NLS + +/* Get declarations of GNU message catalog functions. */ +# include + +/* You can set the DEFAULT_TEXT_DOMAIN macro to specify the domain used by + the gettext() and ngettext() macros. This is an alternative to calling + textdomain(), and is useful for libraries. */ +# ifdef DEFAULT_TEXT_DOMAIN +# undef gettext +# define gettext(Msgid) \ + dgettext (DEFAULT_TEXT_DOMAIN, Msgid) +# undef ngettext +# define ngettext(Msgid1, Msgid2, N) \ + dngettext (DEFAULT_TEXT_DOMAIN, Msgid1, Msgid2, N) +# endif + +#else + +/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which + chokes if dcgettext is defined as a macro. So include it now, to make + later inclusions of a NOP. We don't include + as well because people using "gettext.h" will not include , + and also including would fail on SunOS 4, whereas + is OK. */ +#if defined(__sun) +# include +#endif + +/* Many header files from the libstdc++ coming with g++ 3.3 or newer include + , which chokes if dcgettext is defined as a macro. So include + it now, to make later inclusions of a NOP. */ +#if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3) +# include +# if (__GLIBC__ >= 2 && !defined __UCLIBC__) || _GLIBCXX_HAVE_LIBINTL_H +# include +# endif +#endif + +/* Disabled NLS. + The casts to 'const char *' serve the purpose of producing warnings + for invalid uses of the value returned from these functions. + On pre-ANSI systems without 'const', the config.h file is supposed to + contain "#define const". */ +# undef gettext +# define gettext(Msgid) ((const char *) (Msgid)) +# undef dgettext +# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) +# undef dcgettext +# define dcgettext(Domainname, Msgid, Category) \ + ((void) (Category), dgettext (Domainname, Msgid)) +# undef ngettext +# define ngettext(Msgid1, Msgid2, N) \ + ((N) == 1 \ + ? ((void) (Msgid2), (const char *) (Msgid1)) \ + : ((void) (Msgid1), (const char *) (Msgid2))) +# undef dngettext +# define dngettext(Domainname, Msgid1, Msgid2, N) \ + ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) +# undef dcngettext +# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ + ((void) (Category), dngettext (Domainname, Msgid1, Msgid2, N)) +# undef textdomain +# define textdomain(Domainname) ((const char *) (Domainname)) +# undef bindtextdomain +# define bindtextdomain(Domainname, Dirname) \ + ((void) (Domainname), (const char *) (Dirname)) +# undef bind_textdomain_codeset +# define bind_textdomain_codeset(Domainname, Codeset) \ + ((void) (Domainname), (const char *) (Codeset)) + +#endif + +/* Prefer gnulib's setlocale override over libintl's setlocale override. */ +#ifdef GNULIB_defined_setlocale +# undef setlocale +# define setlocale rpl_setlocale +#endif + +/* A pseudo function call that serves as a marker for the automated + extraction of messages, but does not call gettext(). The run-time + translation is done at a different place in the code. + The argument, String, should be a literal string. Concatenated strings + and other string expressions won't work. + The macro's expansion is not parenthesized, so that it is suitable as + initializer for static 'char[]' or 'const char[]' variables. */ +#define gettext_noop(String) String + +/* The separator between msgctxt and msgid in a .mo file. */ +#define GETTEXT_CONTEXT_GLUE "\004" + +/* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a + MSGID. MSGCTXT and MSGID must be string literals. MSGCTXT should be + short and rarely need to change. + The letter 'p' stands for 'particular' or 'special'. */ +#ifdef DEFAULT_TEXT_DOMAIN +# define pgettext(Msgctxt, Msgid) \ + pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) +#else +# define pgettext(Msgctxt, Msgid) \ + pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) +#endif +#define dpgettext(Domainname, Msgctxt, Msgid) \ + pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) +#define dcpgettext(Domainname, Msgctxt, Msgid, Category) \ + pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category) +#ifdef DEFAULT_TEXT_DOMAIN +# define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ + npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) +#else +# define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ + npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) +#endif +#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ + npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) +#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \ + npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category) + +#ifdef __GNUC__ +__inline +#else +#ifdef __cplusplus +inline +#endif +#endif +static const char * +pgettext_aux (const char *domain, + const char *msg_ctxt_id, const char *msgid, + int category) +{ + const char *translation = dcgettext (domain, msg_ctxt_id, category); + if (translation == msg_ctxt_id) + return msgid; + else + return translation; +} + +#ifdef __GNUC__ +__inline +#else +#ifdef __cplusplus +inline +#endif +#endif +static const char * +npgettext_aux (const char *domain, + const char *msg_ctxt_id, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) +{ + const char *translation = + dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); + if (translation == msg_ctxt_id || translation == msgid_plural) + return (n == 1 ? msgid : msgid_plural); + else + return translation; +} + +/* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID + can be arbitrary expressions. But for string literals these macros are + less efficient than those above. */ + +#include + +/* GNULIB_NO_VLA can be defined to disable use of VLAs even if supported. + This relates to the -Wvla and -Wvla-larger-than warnings, enabled in + the default GCC many warnings set. This allows programs to disable use + of VLAs, which may be unintended, or may be awkward to support portably, + or may have security implications due to non-deterministic stack usage. */ + +#if (!defined GNULIB_NO_VLA \ + && (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \ + /* || (__STDC_VERSION__ == 199901L && !defined __HP_cc) + || (__STDC_VERSION__ >= 201112L && !defined __STDC_NO_VLA__) */ )) +# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1 +#else +# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0 +#endif + +#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS +#include +#endif + +#define pgettext_expr(Msgctxt, Msgid) \ + dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES) +#define dpgettext_expr(Domainname, Msgctxt, Msgid) \ + dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES) + +#ifdef __GNUC__ +__inline +#else +#ifdef __cplusplus +inline +#endif +#endif +static const char * +dcpgettext_expr (const char *domain, + const char *msgctxt, const char *msgid, + int category) +{ + size_t msgctxt_len = strlen (msgctxt) + 1; + size_t msgid_len = strlen (msgid) + 1; + const char *translation; +#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS + char msg_ctxt_id[msgctxt_len + msgid_len]; +#else + char buf[1024]; + char *msg_ctxt_id = + (msgctxt_len + msgid_len <= sizeof (buf) + ? buf + : (char *) malloc (msgctxt_len + msgid_len)); + if (msg_ctxt_id != NULL) +#endif + { + int found_translation; + memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); + msg_ctxt_id[msgctxt_len - 1] = '\004'; + memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); + translation = dcgettext (domain, msg_ctxt_id, category); + found_translation = (translation != msg_ctxt_id); +#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS + if (msg_ctxt_id != buf) + free (msg_ctxt_id); +#endif + if (found_translation) + return translation; + } + return msgid; +} + +#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \ + dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) +#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ + dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) + +#ifdef __GNUC__ +__inline +#else +#ifdef __cplusplus +inline +#endif +#endif +static const char * +dcnpgettext_expr (const char *domain, + const char *msgctxt, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) +{ + size_t msgctxt_len = strlen (msgctxt) + 1; + size_t msgid_len = strlen (msgid) + 1; + const char *translation; +#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS + char msg_ctxt_id[msgctxt_len + msgid_len]; +#else + char buf[1024]; + char *msg_ctxt_id = + (msgctxt_len + msgid_len <= sizeof (buf) + ? buf + : (char *) malloc (msgctxt_len + msgid_len)); + if (msg_ctxt_id != NULL) +#endif + { + int found_translation; + memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); + msg_ctxt_id[msgctxt_len - 1] = '\004'; + memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); + translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); + found_translation = !(translation == msg_ctxt_id || translation == msgid_plural); +#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS + if (msg_ctxt_id != buf) + free (msg_ctxt_id); +#endif + if (found_translation) + return translation; + } + return (n == 1 ? msgid : msgid_plural); +} + +#endif /* _LIBGETTEXT_H */ diff --git a/data/miniconda3/share/gettext/javaversion.class b/data/miniconda3/share/gettext/javaversion.class new file mode 100644 index 0000000000000000000000000000000000000000..d62585b0ecd259dc3d661247c323788c927ff140 Binary files /dev/null and b/data/miniconda3/share/gettext/javaversion.class differ diff --git a/data/miniconda3/share/gettext/msgunfmt.tcl b/data/miniconda3/share/gettext/msgunfmt.tcl new file mode 100644 index 0000000000000000000000000000000000000000..32e79cd248891de4721927a8c759fac2c79e5b70 --- /dev/null +++ b/data/miniconda3/share/gettext/msgunfmt.tcl @@ -0,0 +1,82 @@ +# Reading tcl/msgcat .msg files. +# Copyright (C) 2002 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +namespace eval msgcat { + namespace export mcset mcdump + variable header "" +} + +proc msgcat::puts_po_string {str} { + # Replace " with \" + regsub -all "\"" $str "\\\"" str + # Replace \ with \\ + regsub -all "\\\\" $str "\\\\\\" str + # Replace newline with \n + regsub -all [subst "\n"] $str "\\n" str + regsub -all [subst "\a"] $str "\\a" str + regsub -all [subst "\b"] $str "\\b" str + regsub -all [subst "\f"] $str "\\f" str + regsub -all [subst "\r"] $str "\\r" str + regsub -all [subst "\t"] $str "\\t" str + regsub -all [subst "\v"] $str "\\v" str + # Output it. + puts -nonewline "\"$str\"" +} + +proc msgcat::write_po_message {msgid msgstr} { + puts -nonewline "msgid " + puts_po_string $msgid + puts "" + puts -nonewline "msgstr " + puts_po_string $msgstr + puts "" + puts "" +} + +# This gets called once for each message in the .msg catalog. +proc msgcat::mcset {locale src {dest ""}} { + msgcat::write_po_message $src $dest +} + +# Main function. +proc msgcat::mcdump {langfile} { + if {[file exists $langfile]} { + # msgunfmt expects the output in UTF-8 encoding. + fconfigure stdout -encoding utf-8 + + set msgcat::header "" + + set fd [open $langfile r] + # In newer tcl versions, the .msg files are in UTF-8 encoding. + fconfigure $fd -encoding utf-8 + eval [read $fd] + close $fd + + if {$msgcat::header == ""} { + # Provide a minimal header. + set msgcat::header [subst "MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\n"] + } + msgcat::write_po_message "" $msgcat::header + } else { + # Tell msgunfmt to emit an internationalized error message. + exit 2 + } +} + +# Main code: call the main function on the first and only argument. +msgcat::mcdump [lindex $argv 0] + +exit 0 diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/PDFA_def.ps b/data/miniconda3/share/ghostscript/10.07.0/lib/PDFA_def.ps new file mode 100644 index 0000000000000000000000000000000000000000..96cb6776175b572b727f7a7c3c2804efbcf47b89 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/PDFA_def.ps @@ -0,0 +1,91 @@ +%! +% This is a sample prefix file for creating a PDF/A document. +% Users should modify entries marked with "Customize". +% This assumes an ICC profile resides in the file (srgb.icc), +% in the current directory unless the user modifies the corresponding line below. + +% Define entries in the document Info dictionary : +[ /Title (Title) % Customise + /DOCINFO pdfmark + +% Define an ICC profile : +/ICCProfile (srgb.icc) % Customise +def + +[/_objdef {icc_PDFA} /type /stream /OBJ pdfmark + +%% This code attempts to set the /N (number of components) key for the ICC colour space. +%% To do this it checks the ColorConversionStrategy or the device ProcessColorModel if +%% ColorConversionStrategy is not set. +%% This is not 100% reliable. A better solution is for the user to edit this and replace +%% the code between the ---8<--- lines with a simple declaration like: +%% /N 3 +%% where the value of N is the number of components from the profile defined in /ICCProfile above. +%% +[{icc_PDFA} +<< +%% ----------8<--------------8<-------------8<--------------8<---------- + systemdict /ColorConversionStrategy known { + systemdict /ColorConversionStrategy get cvn dup /Gray eq { + pop /N 1 false + }{ + dup /RGB eq { + pop /N 3 false + }{ + /CMYK eq { + /N 4 false + }{ + (\tColorConversionStrategy not a device space, falling back to ProcessColorModel, output may not be valid PDF/A.\n)= + true + } ifelse + } ifelse + } ifelse + } { + (\tColorConversionStrategy not set, falling back to ProcessColorModel, output may not be valid PDF/A.\n)= + true + } ifelse + + { + currentpagedevice /ProcessColorModel get + dup /DeviceGray eq { + pop /N 1 + }{ + dup /DeviceRGB eq { + pop /N 3 + }{ + dup /DeviceCMYK eq { + pop /N 4 + } { + (\tProcessColorModel not a device space.)= + /ProcessColorModel cvx /rangecheck signalerror + } ifelse + } ifelse + } ifelse + } if +%% ----------8<--------------8<-------------8<--------------8<---------- + +>> /PUT pdfmark +[ +{icc_PDFA} +{ICCProfile (r) file} stopped +{ + (\n\tFailed to open the supplied ICCProfile for reading. This may be due to\n) print + (\t an incorrect filename or a failure to add --permit-file-read=\n) print + (\t to the command line. This PostScript program needs to open the file\n) print + (\t and you must explicitly grant it permission to do so.\n\n) print + (\tPDF/A processing aborted, output may not be a PDF/A file.\n\n) print + cleartomark +} +{ + /PUT pdfmark + % Define the output intent dictionary : + + [/_objdef {OutputIntent_PDFA} /type /dict /OBJ pdfmark + [{OutputIntent_PDFA} << + /Type /OutputIntent % Must be so (the standard requires). + /S /GTS_PDFA1 % Must be so (the standard requires). + /DestOutputProfile {icc_PDFA} % Must be so (see above). + /OutputConditionIdentifier (sRGB) % Customize + >> /PUT pdfmark + [{Catalog} <> /PUT pdfmark +} ifelse diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/PDFX_def.ps b/data/miniconda3/share/ghostscript/10.07.0/lib/PDFX_def.ps new file mode 100644 index 0000000000000000000000000000000000000000..77010b145c9e609e99a7a47ea179389217ef8802 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/PDFX_def.ps @@ -0,0 +1,126 @@ +%! +% This is a sample prefix file for creating a PDF/X-3 document. +% Users should modify entries marked with "Customize". +% This assumes an ICC profile resides in the file (ISO Coated sb.icc) +% in the current directory unless the user modifies the corresponding line below. + +% First up, attempt to ensure the user has set ColorConversionStrategy correctly. +% PDF/X-3 only permits Gray or CMYK in the output. +% +systemdict /ColorConversionStrategy known { + systemdict /ColorConversionStrategy get cvn dup /Gray ne exch /CMYK ne and +} { + (\nERROR: ColorConversionStrategy not set.)= + true +} ifelse +{ (ERROR: ColorConversionStrategy must be /DeviceGray or /DeviceCMYK.)= + /ColorConversionStrategy cvx /rangecheck signalerror +} if + + +% Define entries in the document Info dictionary : +% +systemdict /PDFX known {systemdict /PDFX get}{3} ifelse + +dup 1 eq { + [ /GTS_PDFXVersion (PDF/X-1a:2001) % Must be so (the standard requires). + /Title (Title) % Customize. + /Trapped /False % Must be so (Ghostscript doesn't provide other). + /DOCINFO pdfmark +} if +dup 3 eq { + [ /GTS_PDFXVersion (PDF/X-3:2002) % Must be so (the standard requires). + /Title (Title) % Customize. + /Trapped /False % Must be so (Ghostscript doesn't provide other). + /DOCINFO pdfmark +} if +4 eq { + [ /GTS_PDFXVersion (PDF/X-4) % Must be so (the standard requires). + /Title (Title) % Customize. + /Trapped /False % Must be so (Ghostscript doesn't provide other). + /DOCINFO pdfmark +} if + + +/ICCProfile (ISO Coated sb.icc) def % Customize or remove. + +% Define an ICC profile in the output, if the user specified one. +% +currentdict /ICCProfile known { + [/_objdef {icc_PDFX} /type /stream /OBJ pdfmark + +% This code attempts to set the /N (number of components) key for the ICC colour space. +% To do this it checks the ColorConversionStrategy or the device ProcessColorModel if +% ColorConversionStrategy is not set. +% This is not 100% reliable. A better solution is for the user to edit this and replace +% the code between the ---8<--- lines with a simple declaration like: +% /N 3 +% where the value of N is the number of components from the profile defined in /ICCProfile above. +% Note, if you don't set ColorConversionStrategy, the output will likely be invalid anyway. + [{icc_PDFX} << +% ----------8<--------------8<-------------8<--------------8<---------- + systemdict /ColorConversionStrategy known { + systemdict /ColorConversionStrategy get cvn dup /Gray eq { + pop /N 1 false + }{ + dup /RGB eq { + systemdict /PDFX known {systemdict /PDFX get}{3} ifelse + 4 lt { + (RGB is not a valid ColorConversionStrategy for PDF/X output)= + /ColorConversionStrategycvx /rangecheck signalerror + } if + }{ + /CMYK eq { + /N 4 false + }{ + (ColorConversionStrategy not a device space, falling back to ProcessColorModel, output may not be valid PDF/X.)= + true + } ifelse + } ifelse + } ifelse + } { + (ColorConversionStrategy not set, falling back to ProcessColorModel, output may not be valid PDF/X.)= + true + } ifelse + + { + currentpagedevice /ProcessColorModel get + dup /DeviceGray eq { + pop /N 1 + }{ + dup /DeviceRGB eq { + systemdict /PDFX known {systemdict /PDFX get}{3} ifelse + 4 lt { + (RGB is not a valid ProcessColorModel for PDF/X output)= + /ColorConversionStrategycvx /rangecheck signalerror + } if + }{ + dup /DeviceCMYK eq { + pop /N 4 + } { + (ProcessColorModel not a device space.)= + /ProcessColorModel cvx /rangecheck signalerror + } ifelse + } ifelse + } ifelse + } if +% ----------8<--------------8<-------------8<--------------8<---------- + >> /PUT pdfmark + [{icc_PDFX} ICCProfile (r) file /PUT pdfmark +} if + +% Define the output intent dictionary : + +[/_objdef {OutputIntent_PDFX} /type /dict /OBJ pdfmark +[{OutputIntent_PDFX} << + /Type /OutputIntent % Must be so (the standard requires). + /S /GTS_PDFX % Must be so (the standard requires). + /OutputCondition (Commercial and specialty printing) % Customize + /Info (none) % Customize + /OutputConditionIdentifier (CGATS TR001) % Customize + /RegistryName (http://www.color.org) % Must be so (the standard requires). + currentdict /ICCProfile known { + /DestOutputProfile {icc_PDFX} % Must be so (see above). + } if +>> /PUT pdfmark +[{Catalog} <> /PUT pdfmark diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/PM760p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/PM760p.upp new file mode 100644 index 0000000000000000000000000000000000000000..5d69b72645d4249259733f2a8748a01f588b759d --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/PM760p.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Photo PM760, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0260 0.0587 0.1079 0.2109 0.3750 }" +-dupCyanTransfer="{ 0.0000 0.0254 0.0620 0.1070 0.2250 0.4125 }" +-dupMagentaTransfer="{ 0.0000 0.0233 0.0569 0.0981 0.2063 0.4125 }" +-dupYellowTransfer="{ 0.0000 0.0212 0.0516 0.0891 0.2250 0.4125 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=8 +-dupOutputPins=32 +-dupWeaveYFeeds="{31 31 31 31 37 33 33 29}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 1 1 25}" +-dupWeaveInitialPins="{ 4 24 28 32 19 15 11 7}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/PM760pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/PM760pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..f095a83d2c4602adacce816a7bd54f5c9ee1053d --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/PM760pl.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Photo PM760, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=4 +-dupOutputPins=32 +-dupWeaveYFeeds="{33 30 35 30}" +-dupWeaveInitialYFeeds="{1 1 1 29}" +-dupWeaveInitialPins="{ 8 16 32 23}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/PM820p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/PM820p.upp new file mode 100644 index 0000000000000000000000000000000000000000..dfac6193df319ac5512be09c6401e762e1970d37 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/PM820p.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Photo PM820, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0260 0.0587 0.1079 0.2109 0.3750 }" +-dupCyanTransfer="{ 0.0000 0.0254 0.0620 0.1070 0.2250 0.4125 }" +-dupMagentaTransfer="{ 0.0000 0.0233 0.0569 0.0981 0.2063 0.4125 }" +-dupYellowTransfer="{ 0.0000 0.0212 0.0516 0.0891 0.2250 0.4125 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=6 +-dupOutputPins=48 +-dupWeaveYFeeds="{47 47 47 53 47 47}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 43}" +-dupWeaveInitialPins="{ 8 48 40 31 23 15}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/PM820pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/PM820pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..96b40231bccb22e0fba692b0fc257b2408a18487 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/PM820pl.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Photo PM820, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=3 +-dupOutputPins=48 +-dupWeaveYFeeds="{52 46 46}" +-dupWeaveInitialYFeeds="{1 1 46}" +-dupWeaveInitialPins="{ 16 33 48}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc670p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc670p.upp new file mode 100644 index 0000000000000000000000000000000000000000..2e94ceddf32500022bf18082d1be77af9e5a5e96 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc670p.upp @@ -0,0 +1,35 @@ +-supModel="Epson Stylus Color 670, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0173 0.0391 0.0719 0.1406 0.2500 }" +-dupCyanTransfer="{ 0.0000 0.0169 0.0413 0.0713 0.1500 0.2750 }" +-dupMagentaTransfer="{ 0.0000 0.0155 0.0379 0.0654 0.1375 0.2750 }" +-dupYellowTransfer="{ 0.0000 0.0141 0.0344 0.0594 0.1500 0.2750 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=8 +-dupOutputPins=32 +-dupWeaveYFeeds="{31 31 31 31 37 33 33 29}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 1 1 25}" +-dupWeaveInitialPins="{ 4 24 28 32 19 15 11 7}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" + diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc670pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc670pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..5c5fc8daa890816d2901fbca5964a4c54f647605 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc670pl.upp @@ -0,0 +1,35 @@ +-supModel="Epson Stylus Color 670, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 39.96 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=4 +-dupOutputPins=32 +-dupWeaveYFeeds="{33 30 35 30}" +-dupWeaveInitialYFeeds="{1 1 1 29}" +-dupWeaveInitialPins="{ 8 16 32 23}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" + diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc680p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc680p.upp new file mode 100644 index 0000000000000000000000000000000000000000..80b28d5b341c2455086d8893286a321716c18f00 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc680p.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Color 680, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0173 0.0391 0.0719 0.1406 0.2500 }" +-dupCyanTransfer="{ 0.0000 0.0169 0.0413 0.0713 0.1500 0.2750 }" +-dupMagentaTransfer="{ 0.0000 0.0155 0.0379 0.0654 0.1375 0.2750 }" +-dupYellowTransfer="{ 0.0000 0.0141 0.0344 0.0594 0.1500 0.2750 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=6 +-dupOutputPins=48 +-dupWeaveYFeeds="{47 47 47 53 47 47}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 43}" +-dupWeaveInitialPins="{ 8 48 40 31 23 15}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc680pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc680pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..5baa44a6afe2f833b2ae94d050a0d4530c018c6d --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc680pl.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Color 680, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=3 +-dupOutputPins=48 +-dupWeaveYFeeds="{52 46 46}" +-dupWeaveInitialYFeeds="{1 1 46}" +-dupWeaveInitialPins="{ 16 33 48}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc740p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc740p.upp new file mode 100644 index 0000000000000000000000000000000000000000..6fb561b81ed25e846d0a37ef57f1f8f117d4d325 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc740p.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Color 740, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 39.96 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=6 +-dupOutputPins=48 +-dupWeaveYFeeds="{47 47 47 53 47 47}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 43}" +-dupWeaveInitialPins="{ 8 48 40 31 23 15}" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0002 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" + diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc740pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc740pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..4ed68d7bd5f18d7c0c5844e2fb8768b3476cb0ae --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc740pl.upp @@ -0,0 +1,35 @@ +-supModel="Epson Stylus Color 740, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=3 +-dupOutputPins=48 +-dupWeaveYFeeds="{47 47 50}" +-dupWeaveInitialYFeeds="{1 1 46}" +-dupWeaveInitialPins="{ 16 48 31}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" + diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc760p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc760p.upp new file mode 100644 index 0000000000000000000000000000000000000000..14dea4120fefb07695935b27f88da06396ec6511 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc760p.upp @@ -0,0 +1,35 @@ +-supModel="Epson Stylus Color 760, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0173 0.0391 0.0719 0.1406 0.2500 }" +-dupCyanTransfer="{ 0.0000 0.0169 0.0413 0.0713 0.1500 0.2750 }" +-dupMagentaTransfer="{ 0.0000 0.0155 0.0379 0.0654 0.1375 0.2750 }" +-dupYellowTransfer="{ 0.0000 0.0141 0.0344 0.0594 0.1500 0.2750 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=6 +-dupOutputPins=48 +-dupWeaveYFeeds="{47 47 47 53 47 47}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 43}" +-dupWeaveInitialPins="{ 8 48 40 31 23 15}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" + diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc760pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc760pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..a7f0d0f4cd961cc30311d8659a63fa6a9c848c95 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc760pl.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Color 760, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=3 +-dupOutputPins=48 +-dupWeaveYFeeds="{52 46 46}" +-dupWeaveInitialYFeeds="{1 1 46}" +-dupWeaveInitialPins="{ 16 33 48}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc777p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc777p.upp new file mode 100644 index 0000000000000000000000000000000000000000..6840e51d2fd9335a90773b866c69c3e158afa470 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc777p.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Color 777, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0173 0.0391 0.0719 0.1406 0.2500 }" +-dupCyanTransfer="{ 0.0000 0.0169 0.0413 0.0713 0.1500 0.2750 }" +-dupMagentaTransfer="{ 0.0000 0.0155 0.0379 0.0654 0.1375 0.2750 }" +-dupYellowTransfer="{ 0.0000 0.0141 0.0344 0.0594 0.1500 0.2750 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=6 +-dupOutputPins=48 +-dupWeaveYFeeds="{47 47 47 53 47 47}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 43}" +-dupWeaveInitialPins="{ 8 48 40 31 23 15}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stc777pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc777pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..e63de07d070bea3d0e56682f69e63f7048d2e553 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stc777pl.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Color 777, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=3 +-dupOutputPins=48 +-dupWeaveYFeeds="{52 46 46}" +-dupWeaveInitialYFeeds="{1 1 46}" +-dupWeaveInitialPins="{ 16 33 48}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stp720p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stp720p.upp new file mode 100644 index 0000000000000000000000000000000000000000..137b0efcf54b60cf9e326393b9f78d5e28748591 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stp720p.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Photo 720, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0260 0.0587 0.1079 0.2109 0.3750 }" +-dupCyanTransfer="{ 0.0000 0.0254 0.0620 0.1070 0.2250 0.4125 }" +-dupMagentaTransfer="{ 0.0000 0.0233 0.0569 0.0981 0.2063 0.4125 }" +-dupYellowTransfer="{ 0.0000 0.0212 0.0516 0.0891 0.2250 0.4125 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=8 +-dupOutputPins=32 +-dupWeaveYFeeds="{31 31 31 31 37 33 33 29}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 1 1 25}" +-dupWeaveInitialPins="{ 4 24 28 32 19 15 11 7}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stp720pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stp720pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..f441c43d2cfed4904cf3f201f4f39bf64388e2b8 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stp720pl.upp @@ -0,0 +1,34 @@ +-supModel="Epson Photo 720, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=4 +-dupOutputPins=32 +-dupWeaveYFeeds="{33 30 35 30}" +-dupWeaveInitialYFeeds="{1 1 1 29}" +-dupWeaveInitialPins="{ 8 16 32 23}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stp870p.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stp870p.upp new file mode 100644 index 0000000000000000000000000000000000000000..4bb18cb8f5e0779b0e7e91be4ef6fd4a1c7bff10 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stp870p.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Photo 870, 720x720DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r720x720 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0260 0.0587 0.1079 0.2109 0.3750 }" +-dupCyanTransfer="{ 0.0000 0.0254 0.0620 0.1070 0.2250 0.4125 }" +-dupMagentaTransfer="{ 0.0000 0.0233 0.0569 0.0981 0.2063 0.4125 }" +-dupYellowTransfer="{ 0.0000 0.0212 0.0516 0.0891 0.2250 0.4125 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=6 +-dupOutputPins=48 +-dupWeaveYFeeds="{47 47 47 53 47 47}" +-dupWeaveInitialYFeeds="{1 1 1 1 1 43}" +-dupWeaveInitialPins="{ 8 48 40 31 23 15}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 05 + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/Stp870pl.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/Stp870pl.upp new file mode 100644 index 0000000000000000000000000000000000000000..8f6eccac26c190f4d862d93672618de664ca0126 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/Stp870pl.upp @@ -0,0 +1,34 @@ +-supModel="Epson Stylus Photo 870, 360x360DpI, Plain Paper" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/EscP2 +-r360x360 +-dupMargins="{ 9.0 31.0 9.0 9.0}" +-dupBlackTransfer="{ 0.0000 0.0550 0.1250 0.2300 0.4500 0.8000 }" +-dupCyanTransfer="{ 0.0000 0.0540 0.1320 0.2280 0.4800 0.8800 }" +-dupMagentaTransfer="{ 0.0000 0.0495 0.1210 0.2090 0.4400 0.8800 }" +-dupYellowTransfer="{ 0.0000 0.0450 0.1100 0.1900 0.4800 0.8800 }" +-dupOutputComponentOrder="{ 1 2 3 0 }" +-dupWeaveYPasses=3 +-dupOutputPins=48 +-dupWeaveYFeeds="{52 46 46}" +-dupWeaveInitialYFeeds="{1 1 46}" +-dupWeaveInitialPins="{ 16 33 48}" +-dupBeginJobCommand="(\000\000\000\000\000\000\033\001@EJL\0401284.4\012@EJL\040\040\040\040\040\012)" +-dupBeginPageCommand="< + 1b40 1b40 + 1b2847 0100 01 + 1b2855 0100 0A + 1b5501 + 1b2865 0200 0000 + 1b2843 0200 0000 + 1b2863 0400 0000 0000 +>" +-dupAdjustPageLengthCommand +-dupAdjustTopMarginCommand +-dupAdjustBottomMarginCommand +-dupEndPageCommand="(\033@\014)" +-dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/acctest.ps b/data/miniconda3/share/ghostscript/10.07.0/lib/acctest.ps new file mode 100644 index 0000000000000000000000000000000000000000..2af46bef1e072782672a6076be845dfb92619082 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/acctest.ps @@ -0,0 +1,99 @@ +%! +% Check that operators do their access tests correctly. + +% proc dotest => . +/dotest + { + dup + mark + exch + stopped not % False if error, true if no error. + { (Allowed access: ) print cleartomark == } + if + clear + } +def + +0 0 moveto % So the show commands don't bomb because of nocurrentpoint. + +{ [1 2] executeonly aload } dotest +{ (string) executeonly (seek) anchorsearch } dotest +{ (string) (seek) executeonly anchorsearch } dotest +{ 100 101 (string) noaccess ashow} dotest +{ 100 1 array readonly astore } dotest +{ 100 101 102 103 104 (string) noaccess awidthshow } dotest +{ 1 dict noacess begin } dotest +{ 1 array executeonly 1 array copy } dotest +{ 1 array 1 array readonly copy } dotest +{ 1 dict noaccess 1 dict copy } dotest +{ 1 dict 1 dict readonly copy } dotest +{ 1 string executeonly 1 string copy } dotest +{ 1 string 1 string readonly copy } dotest +{ (100) executeonly cvi } dotest +{ (string) executeonly cvn } dotest +{ (100.001) executeonly cvr } dotest +{ 1 10 1 string readonly cvrs } dotest +{ true 5 string readonly cvs } dotest +{ 1 dict readonly begin /foo true def } dotest +{ 10 array readonly dictstack } dotest +{ 1 string executeonly 1 string eq } dotest +{ 1 string 1 string executeonly eq } dotest +{ 10 array readonly execstack } dotest +{ 1 string noaccess executeonly } dotest +{ 1 array noaccess executeonly } dotest +{ 1 array executeonly { pop } forall } dotest +{ 1 dict noaccess { pop pop } forall } dotest +{ 1 string executeonly { pop } forall } dotest +{ (string1) executeonly (string2) ge } dotest +{ (string1) (string2) executeonly ge } dotest +{ 1 array executeonly 0 get } dotest +{ 1 dict noaccess /key get } dotest +{ 1 string executeonly 0 get } dotest +{ 1 array executeonly 0 1 getinterval } dotest +{ 1 string executeonly 0 1 getinterval } dotest +{ (string1) executeonly (string2) gt } dotest +{ (string1) (string2) executeonly gt } dotest +{ 1 dict noaccess /key known } dotest +{ {} (string) executeonly kshow } dotest +{ (string1) executeonly (string2) le } dotest +{ (string1) (string2) executeonly le } dotest +{ 1 array executeonly length } dotest +{ 1 dict noaccess length } dotest +{ 1 string executeonly length } dotest +%%{ /foo 1 dict def foo begin /bar foo def bar noaccess pop /key load } dotest +{ (string1) executeonly (string2) lt } dotest +{ (string1) (string2) executeonly lt } dotest +{ 1 dict noaccess maxlength } dotest +{ 1 string executeonly 1 string ne } dotest +{ 1 string 1 string executeonly ne } dotest +%{ newpath 0 0 moveto (a) false charpath +% {} {} {} {} pathforall closepath } dotest +{ 1 array executeonly 0 put } dotest +{ 1 dict noaccess /key put } dotest +{ 1 string executeonly 0 put } dotest +{ 1 array executeonly 0 1 putinterval } dotest +{ 1 string executeonly 0 1 putinterval } dotest +{ (access.ps) (r) file executeonly read } dotest +{ (access.ps) (r) file executeonly 10 string readhexstring } dotest +{ (access.ps) (r) file 10 string readonly readhexstring } dotest +{ (access.ps) (r) file executeonly 100 string readline } dotest +{ (access.ps) (r) file 100 string readonly readline } dotest +{ (access.ps) (r) file executeonly 10 string readstring } dotest +{ (access.ps) (r) file 10 string readonly readstring } dotest +% run does not check for no read access? +{ (string) executeonly (seek) search } dotest +{ (string) (seek) executeonly search } dotest +{ (string) executeonly show } +%% some test for store. +{ (string) executeonly stringwidth } dotest +{ (access.ps) (r) file executeonly token } dotest +{ (10) executeonly token } dotest +{ /foo 1 dict def foo begin /bar foo def bar noaccess pop /key where } dotest +{ 100 101 102 (string) noaccess widthshow } dotest +{ (/tmp/_.ps) noaccess (w) file closefile } dotest +{ (/tmp/_.ps) (w) noaccess file closefile } dotest +{ (/tmp/_.ps) (w) file executeonly 100 write } dotest +{ (/tmp/_.ps) (w) file executeonly 10 string writehexstring } dotest +{ (/tmp/_.ps) (w) file 10 string executeonly writehexstring } dotest +{ (/tmp/_.ps) (w) file executeonly 10 string writestring } dotest +{ (/tmp/_.ps) (w) file 10 string executeonly writestring } dotest diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/align.ps b/data/miniconda3/share/ghostscript/10.07.0/lib/align.ps new file mode 100644 index 0000000000000000000000000000000000000000..ae5b21e71a303c18583c62d7d6c975aac365c470 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/align.ps @@ -0,0 +1,72 @@ +% Copyright (C) 2001-2023 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, +% CA 94129, USA, for further information. +% + +% Print a page that indicates the proper settings of Margins and HWMargins +% for a given device. Requires a Level 2 system. + +% Reset the offset and margins. + +<< + /PageOffset [0 0] + /Margins [0 0] + /.HWMargins [0 0 0 0] +>> +setpagedevice +<< + /ImagingBBox null +>> +setpagedevice + +% Determine the actual page size. + +clippath pathbbox newpath +/y1 exch def /x1 exch def pop pop + +% Draw lines that should be exactly 1" in from each edge, +% and should extend precisely to the edge of the paper. + +1 setlinewidth +0 setgray +72 0 moveto 0 y1 rlineto stroke +0 72 moveto x1 0 rlineto stroke + +% Print the text in the middle of the page. + +/S 80 string def +108 480 moveto +/Helvetica 12 selectfont + { currentfile S readline pop dup (%END) eq { pop exit } if + gsave show grestore 0 -15 rmoveto + } loop +Let the distance in inches from the left edge of the page to +the vertical line be H, and from the bottom edge to the +horizontal line be V; let the lengths of the gaps at the top +and bottom of the vertical line be T and B respectively, and +the gaps at the left and right of the horizontal line be L +and R. For correct alignment of pages, put the following line +in a file named (for example) margins.ps, and then mention +margins.ps on the gs command line when printing any of your +own files: + + << /.HWMargins [ml mb mr mt] /Margins [x y] >> setpagedevice + +where + ml = L * 72, mb = B * 72, mr = R * 72, mt = T * 72, +%END +/res currentpagedevice /HWResolution get def +( x = (1 - H) * ) show res 0 get =string cvs show +(, y = (V - 1) * ) show res 1 get =string cvs show + +showpage diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bj8.rpd b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8.rpd new file mode 100644 index 0000000000000000000000000000000000000000..fce6c2d4b7d8bd633905d685d4611f8406847106 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8.rpd @@ -0,0 +1,17 @@ + +StartEntry: U_CanonBJC8200 +GSDriver: uniprint +Description: {Canon BJC-8200 (UP)} +About: { \ + Canon BJC-8200 uniprint driver settings.\ + } +Resolution: {NA} {NA} {} + BitsPerPixel: {bj8pp12f} {1200x1200DpI, photo paper pro, color, rendered} + BitsPerPixel: {bj8hg12f} {1200x1200DpI, high gloss photo film, color, rendered} + BitsPerPixel: {bj8gc12f} {1200x1200DpI, glossy photo cards, color, rendered} + BitsPerPixel: {bj8oh06n} {600x600DpI, transparencies, color, rendered} + BitsPerPixel: {bj8ts06n} {600x600DpI, t-shirt transfer, color, rendered} + BitsPerPixel: {bj8pa06n} {600x600DpI, plain paper, color, rendered} + +EndEntry +# diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bj8gc12f.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8gc12f.upp new file mode 100644 index 0000000000000000000000000000000000000000..005b2925181c6c48839b648bb905f61f3694aca0 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8gc12f.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 8200, (1200DpI)^2, glossy photo card, high quality" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/Canon +-r1200x1200 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b 4b 0200 000f + 1b28 62 0100 01 + 1b28 71 0100 01 + 1b28 64 0400 04b0 04b0 + 1b28 63 0300 3005 04 + 1b28 6c 0200 340d +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bj8hg12f.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8hg12f.upp new file mode 100644 index 0000000000000000000000000000000000000000..b176ee114adfa31a29a1132417b673826897229d --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8hg12f.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 8200, (1200DpI)^2, high gloss photo, high quality" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/Canon +-r1200x1200 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b 4b 0200 000f + 1b28 62 0100 01 + 1b28 71 0100 01 + 1b28 64 0400 04b0 04b0 + 1b28 63 0300 3006 04 + 1b28 6c 0200 3406 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bj8oh06n.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8oh06n.upp new file mode 100644 index 0000000000000000000000000000000000000000..9bbf17e812f58e1059a5d7e453fb6284ebc9a3c7 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8oh06n.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 8200, (600DpI)^2, OHP, normal quality" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/Canon +-r600x600 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b 4b 0200 000f + 1b28 62 0100 01 + 1b28 71 0100 01 + 1b28 64 0400 0258 0258 + 1b28 63 0300 3002 03 + 1b28 6c 0200 3402 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bj8pa06n.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8pa06n.upp new file mode 100644 index 0000000000000000000000000000000000000000..1f2a26c567381b377301f63c95ee257b3391ead2 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8pa06n.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 8200, (600DpI)^2, plain paper, normal quality" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/Canon +-r600x600 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b 4b 0200 000f + 1b28 62 0100 01 + 1b28 71 0100 01 + 1b28 64 0400 0258 0258 + 1b28 63 0300 3000 03 + 1b28 6c 0200 3400 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bj8pp12f.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8pp12f.upp new file mode 100644 index 0000000000000000000000000000000000000000..c11c0192bd6b2d116baabea5865674a27e3da5ae --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8pp12f.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 8200, (1200DpI)^2, professional photo paper, highest quality" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/Canon +-r1200x1200 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b 4b 0200 000f + 1b28 62 0100 01 + 1b28 71 0100 01 + 1b28 64 0400 04b0 04b0 + 1b28 63 0300 3009 04 + 1b28 6c 0200 340d +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bj8ts06n.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8ts06n.upp new file mode 100644 index 0000000000000000000000000000000000000000..e74b809c09fba964bfd50f2167974445bcf3da27 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bj8ts06n.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 8200, (600DpI)^2, t-shirt transfer, normal quality" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/Canon +-r600x600 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b 4b 0200 000f + 1b28 62 0100 01 + 1b28 71 0100 01 + 1b28 64 0400 0258 0258 + 1b28 63 0300 3003 03 + 1b28 6c 0200 3403 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc6000a1.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc6000a1.upp new file mode 100644 index 0000000000000000000000000000000000000000..17aafb0f858599ced807563b21f98b49cd5ead5e --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc6000a1.upp @@ -0,0 +1,48 @@ +-supModel="Canon BJC 6000, 360x360DpI, plain paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 10.77 20.5 6.24 9.00 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0058 0.0164 0.0301 0.0463 0.0648 0.0851 0.1073 +0.1311 0.1564 0.1832 0.2114 0.2408 0.2716 0.3035 0.3366 +0.3708 0.4061 0.4425 0.4798 0.5182 0.5576 0.5978 0.6391 +0.6812 0.7242 0.7681 0.8128 0.8584 0.9048 0.9520 1.0000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b 4b 0200 00 0f + 1b28 62 0100 01 + 1b28 71 0100 01 + 1b28 6d 0a00 02 ff ff 00 00 07 00 03 00 00 + 1b28 64 0400 01 68 01 68 + 1b28 74 0300 01 00 01 + 1b28 63 0300 30 00 01 + 1b28 70 0800 02 a6 00 00 01 e0 00 00 + 1b28 6c 0200 34 00 + 1b28 65 0200 00 00 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc6000b1.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc6000b1.upp new file mode 100644 index 0000000000000000000000000000000000000000..11836f6e9e7fcb93a25ae0fb159f54a1e6821807 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc6000b1.upp @@ -0,0 +1,48 @@ +-supModel="Canon BJC 6000, 720x720DpI, plain paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-dSAFER +-dupColorModel=/DeviceCMYKgenerate +-dupRendering=/FSCMYK32 +-dupOutputFormat=/Canon +-r720x720 +-dupMargins="{ 10.77 20.5 6.24 8.70 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0029 0.0082 0.0151 0.0232 0.0324 0.0426 0.0537 +0.0655 0.0782 0.0916 0.1057 0.1204 0.1358 0.1517 0.1683 +0.1854 0.2030 0.2212 0.2399 0.2591 0.2788 0.2989 0.3195 +0.3406 0.3621 0.3840 0.4064 0.4292 0.4524 0.4760 0.5000 +}" +-dupCyanTransfer="{ +0.0000 0.0004 0.0017 0.0037 0.0067 0.0104 0.0150 0.0204 +0.0266 0.0337 0.0416 0.0504 0.0599 0.0703 0.0816 0.0937 +0.1066 0.1203 0.1349 0.1503 0.1665 0.1836 0.2015 0.2202 +0.2398 0.2601 0.2814 0.3034 0.3263 0.3501 0.3746 0.4000 +}" +-dupMagentaTransfer="{ +0.0000 0.0004 0.0017 0.0037 0.0067 0.0104 0.0150 0.0204 +0.0266 0.0337 0.0416 0.0504 0.0599 0.0703 0.0816 0.0937 +0.1066 0.1203 0.1349 0.1503 0.1665 0.1836 0.2015 0.2202 +0.2398 0.2601 0.2814 0.3034 0.3263 0.3501 0.3746 0.4000 +}" +-dupYellowTransfer="{ +0.0000 0.0004 0.0017 0.0037 0.0067 0.0104 0.0150 0.0204 +0.0266 0.0337 0.0416 0.0504 0.0599 0.0703 0.0816 0.0937 +0.1066 0.1203 0.1349 0.1503 0.1665 0.1836 0.2015 0.2202 +0.2398 0.2601 0.2814 0.3034 0.3263 0.3501 0.3746 0.4000 +}" +-dupBeginPageCommand="< + 1b5b 4b 0200 00 0f + 1b28 62 0100 01 + 1b28 71 0100 01 + 1b28 6d 0a00 02 ff ff 00 00 07 00 03 00 00 + 1b28 64 0400 02 d0 02 d0 + 1b28 74 0300 01 00 09 + 1b28 63 0300 30 00 02 + 1b28 70 0800 02 a6 00 00 01 e0 00 00 + 1b28 6c 0200 34 00 + 1b28 65 0200 00 00 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a0.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a0.upp new file mode 100644 index 0000000000000000000000000000000000000000..5c388879ea0371f660d09584e580ac8b8fb32677 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a0.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 360x360DpI, plain paper high speed, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0058 0.0164 0.0301 0.0463 0.0648 0.0851 0.1073 +0.1311 0.1564 0.1832 0.2114 0.2408 0.2716 0.3035 0.3366 +0.3708 0.4061 0.4425 0.4798 0.5182 0.5576 0.5978 0.6391 +0.6812 0.7242 0.7681 0.8128 0.8584 0.9048 0.9520 1.0000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 100200 + 1b28 64 0200 0168 + 1b28 6c 0200 1400 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a1.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a1.upp new file mode 100644 index 0000000000000000000000000000000000000000..e63c495ca31bdb83db7fa47968343e0ff23538d5 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a1.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 360x360DpI, plain paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0058 0.0164 0.0301 0.0463 0.0648 0.0851 0.1073 +0.1311 0.1564 0.1832 0.2114 0.2408 0.2716 0.3035 0.3366 +0.3708 0.4061 0.4425 0.4798 0.5182 0.5576 0.5978 0.6391 +0.6812 0.7242 0.7681 0.8128 0.8584 0.9048 0.9520 1.0000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 100110 + 1b28 64 0200 0168 + 1b28 6c 0200 1400 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a2.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a2.upp new file mode 100644 index 0000000000000000000000000000000000000000..6e0c7cfff3bd209f30068d38be8494c6208287c4 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a2.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 360x360DpI, coated paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0058 0.0164 0.0301 0.0463 0.0648 0.0851 0.1073 +0.1311 0.1564 0.1832 0.2114 0.2408 0.2716 0.3035 0.3366 +0.3708 0.4061 0.4425 0.4798 0.5182 0.5576 0.5978 0.6391 +0.6812 0.7242 0.7681 0.8128 0.8584 0.9048 0.9520 1.0000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 101110 + 1b28 64 0200 0168 + 1b28 6c 0200 1410 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a3.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a3.upp new file mode 100644 index 0000000000000000000000000000000000000000..58458e237578282aca570cd73a0f984670ffc84b --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a3.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 360x360DpI, transparency film, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 102110 + 1b28 64 0200 0168 + 1b28 6c 0200 1420 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a4.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a4.upp new file mode 100644 index 0000000000000000000000000000000000000000..46e742b2b6aff1f4183ebb3542a5b6f766d49d95 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a4.upp @@ -0,0 +1,45 @@ +-supModel="Canon BJC 610, 360x360DpI, back print film, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupYFlip +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0058 0.0164 0.0301 0.0463 0.0648 0.0851 0.1073 +0.1311 0.1564 0.1832 0.2114 0.2408 0.2716 0.3035 0.3366 +0.3708 0.4061 0.4425 0.4798 0.5182 0.5576 0.5978 0.6391 +0.6812 0.7242 0.7681 0.8128 0.8584 0.9048 0.9520 1.0000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 103110 + 1b28 64 0200 0168 + 1b28 6c 0200 1430 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a5.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a5.upp new file mode 100644 index 0000000000000000000000000000000000000000..3fe187a92444256edd267522cb93094bfc17b9b8 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a5.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 360x360DpI, fabric sheet, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0058 0.0164 0.0301 0.0463 0.0648 0.0851 0.1073 +0.1311 0.1564 0.1832 0.2114 0.2408 0.2716 0.3035 0.3366 +0.3708 0.4061 0.4425 0.4798 0.5182 0.5576 0.5978 0.6391 +0.6812 0.7242 0.7681 0.8128 0.8584 0.9048 0.9520 1.0000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 104110 + 1b28 64 0200 0168 + 1b28 6c 0200 1850 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a6.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a6.upp new file mode 100644 index 0000000000000000000000000000000000000000..4940871c4db8712e553a13fa0ab86aa4a7d195b4 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a6.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 360x360DpI, glossy paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0058 0.0164 0.0301 0.0463 0.0648 0.0851 0.1073 +0.1311 0.1564 0.1832 0.2114 0.2408 0.2716 0.3035 0.3366 +0.3708 0.4061 0.4425 0.4798 0.5182 0.5576 0.5978 0.6391 +0.6812 0.7242 0.7681 0.8128 0.8584 0.9048 0.9520 1.0000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 105110 + 1b28 64 0200 0168 + 1b28 6c 0200 1460 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a7.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a7.upp new file mode 100644 index 0000000000000000000000000000000000000000..90415239069d1735326bb6d9dfb3f1aafbe17022 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a7.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 360x360DpI, high gloss film, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 106110 + 1b28 64 0200 0168 + 1b28 6c 0200 1470 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a8.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a8.upp new file mode 100644 index 0000000000000000000000000000000000000000..c173cfc5de54631c2266946ea65a3a10b7260cad --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610a8.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 360x360DpI, high resolution paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r360x360 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0058 0.0164 0.0301 0.0463 0.0648 0.0851 0.1073 +0.1311 0.1564 0.1832 0.2114 0.2408 0.2716 0.3035 0.3366 +0.3708 0.4061 0.4425 0.4798 0.5182 0.5576 0.5978 0.6391 +0.6812 0.7242 0.7681 0.8128 0.8584 0.9048 0.9520 1.0000 +}" +-dupCyanTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupMagentaTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupYellowTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 107110 + 1b28 64 0200 0168 + 1b28 6c 0200 14a0 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b1.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b1.upp new file mode 100644 index 0000000000000000000000000000000000000000..aa0d9442d77df01a861951eeb29b1eb3301330ee --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b1.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 720x720DpI, plain paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r720x720 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0029 0.0082 0.0151 0.0232 0.0324 0.0426 0.0537 +0.0655 0.0782 0.0916 0.1057 0.1204 0.1358 0.1517 0.1683 +0.1854 0.2030 0.2212 0.2399 0.2591 0.2788 0.2989 0.3195 +0.3406 0.3621 0.3840 0.4064 0.4292 0.4524 0.4760 0.5000 +}" +-dupCyanTransfer="{ +0.0000 0.0004 0.0017 0.0037 0.0067 0.0104 0.0150 0.0204 +0.0266 0.0337 0.0416 0.0504 0.0599 0.0703 0.0816 0.0937 +0.1066 0.1203 0.1349 0.1503 0.1665 0.1836 0.2015 0.2202 +0.2398 0.2601 0.2814 0.3034 0.3263 0.3501 0.3746 0.4000 +}" +-dupMagentaTransfer="{ +0.0000 0.0004 0.0017 0.0037 0.0067 0.0104 0.0150 0.0204 +0.0266 0.0337 0.0416 0.0504 0.0599 0.0703 0.0816 0.0937 +0.1066 0.1203 0.1349 0.1503 0.1665 0.1836 0.2015 0.2202 +0.2398 0.2601 0.2814 0.3034 0.3263 0.3501 0.3746 0.4000 +}" +-dupYellowTransfer="{ +0.0000 0.0004 0.0017 0.0037 0.0067 0.0104 0.0150 0.0204 +0.0266 0.0337 0.0416 0.0504 0.0599 0.0703 0.0816 0.0937 +0.1066 0.1203 0.1349 0.1503 0.1665 0.1836 0.2015 0.2202 +0.2398 0.2601 0.2814 0.3034 0.3263 0.3501 0.3746 0.4000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 101110 + 1b28 64 0200 02d0 + 1b28 6c 0200 1410 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b2.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b2.upp new file mode 100644 index 0000000000000000000000000000000000000000..66b28b6f0df91a0720d8b3ce7b5cc5a9eb1d1d5d --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b2.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 720x720DpI, coated paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r720x720 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0029 0.0082 0.0151 0.0232 0.0324 0.0426 0.0537 +0.0655 0.0782 0.0916 0.1057 0.1204 0.1358 0.1517 0.1683 +0.1854 0.2030 0.2212 0.2399 0.2591 0.2788 0.2989 0.3195 +0.3406 0.3621 0.3840 0.4064 0.4292 0.4524 0.4760 0.5000 +}" +-dupCyanTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupMagentaTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupYellowTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 101110 + 1b28 64 0200 02d0 + 1b28 6c 0200 1410 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b3.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b3.upp new file mode 100644 index 0000000000000000000000000000000000000000..f9a0a1096a10587c089aba5a0819c1e9af98e2ac --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b3.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 720x720DpI, transparency film, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r720x720 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupMagentaTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupYellowTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 102110 + 1b28 64 0200 02d0 + 1b28 6c 0200 1420 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b4.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b4.upp new file mode 100644 index 0000000000000000000000000000000000000000..22c5226e2b8b7b7d8e730aa5a8306e3fcd073ecf --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b4.upp @@ -0,0 +1,45 @@ +-supModel="Canon BJC 610, 720x720DpI, back print film, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r720x720 +-dupYFlip +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0005 0.0019 0.0042 0.0075 0.0117 0.0169 0.0229 +0.0300 0.0379 0.0468 0.0567 0.0674 0.0791 0.0918 0.1054 +0.1199 0.1353 0.1517 0.1690 0.1873 0.2065 0.2266 0.2477 +0.2697 0.2927 0.3165 0.3414 0.3671 0.3938 0.4214 0.4500 +}" +-dupMagentaTransfer="{ +0.0000 0.0005 0.0019 0.0042 0.0075 0.0117 0.0169 0.0229 +0.0300 0.0379 0.0468 0.0567 0.0674 0.0791 0.0918 0.1054 +0.1199 0.1353 0.1517 0.1690 0.1873 0.2065 0.2266 0.2477 +0.2697 0.2927 0.3165 0.3414 0.3671 0.3938 0.4214 0.4500 +}" +-dupYellowTransfer="{ +0.0000 0.0005 0.0019 0.0042 0.0075 0.0117 0.0169 0.0229 +0.0300 0.0379 0.0468 0.0567 0.0674 0.0791 0.0918 0.1054 +0.1199 0.1353 0.1517 0.1690 0.1873 0.2065 0.2266 0.2477 +0.2697 0.2927 0.3165 0.3414 0.3671 0.3938 0.4214 0.4500 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 103110 + 1b28 64 0200 02d0 + 1b28 6c 0200 1430 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b6.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b6.upp new file mode 100644 index 0000000000000000000000000000000000000000..bc839eb2569f9710c75b755b2d39a6be9d18ece2 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b6.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 720x720DpI, glossy paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r720x720 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0029 0.0082 0.0151 0.0232 0.0324 0.0426 0.0537 +0.0655 0.0782 0.0916 0.1057 0.1204 0.1358 0.1517 0.1683 +0.1854 0.2030 0.2212 0.2399 0.2591 0.2788 0.2989 0.3195 +0.3406 0.3621 0.3840 0.4064 0.4292 0.4524 0.4760 0.5000 +}" +-dupCyanTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupMagentaTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupYellowTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 105110 + 1b28 64 0200 02d0 + 1b28 6c 0200 1460 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b7.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b7.upp new file mode 100644 index 0000000000000000000000000000000000000000..76fb46fd69a700ec27ce260563d5aeb944b241b0 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b7.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 720x720DpI, high gloss paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r720x720 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupMagentaTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupYellowTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 106110 + 1b28 64 0200 02d0 + 1b28 6c 0200 1470 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b8.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b8.upp new file mode 100644 index 0000000000000000000000000000000000000000..5bea920f36ee9cffc90b87280103df10ce626dad --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/bjc610b8.upp @@ -0,0 +1,44 @@ +-supModel="Canon BJC 610, 720x720DpI, high resolution paper, color, rendered" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Canon +-r720x720 +-dupMargins="{ 8.23 20.44 11.05 7.9 }" +-dupOutputComponentOrder="{ 3 2 1 0 }" +-dupBlackTransfer="{ +0.0000 0.0008 0.0033 0.0075 0.0133 0.0208 0.0300 0.0408 +0.0533 0.0674 0.0832 0.1007 0.1199 0.1407 0.1632 0.1873 +0.2131 0.2406 0.2697 0.3005 0.3330 0.3671 0.4029 0.4404 +0.4795 0.5203 0.5627 0.6069 0.6527 0.7001 0.7492 0.8000 +}" +-dupCyanTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupMagentaTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupYellowTransfer="{ +0.0000 0.0005 0.0021 0.0047 0.0083 0.0130 0.0187 0.0255 +0.0333 0.0421 0.0520 0.0630 0.0749 0.0879 0.1020 0.1171 +0.1332 0.1504 0.1686 0.1878 0.2081 0.2294 0.2518 0.2752 +0.2997 0.3252 0.3517 0.3793 0.4079 0.4376 0.4683 0.5000 +}" +-dupBeginPageCommand="< + 1b5b4b 0200 000f + 1b28 62 0100 01 + 1b28 63 0300 107110 + 1b28 64 0200 02d0 + 1b28 6c 0200 14a0 + 1b28 67 0100 E5 +>" +-dupEndJobCommand="(\033\050b\001\000\000\033@)" +-dupEndPageCommand="(\014)" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/caption.ps b/data/miniconda3/share/ghostscript/10.07.0/lib/caption.ps new file mode 100644 index 0000000000000000000000000000000000000000..72b117ba936e574bcfd084c9e9f530c77034ece9 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/caption.ps @@ -0,0 +1,58 @@ +%! +% Copyright (C) 2001-2023 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, +% CA 94129, USA, for further information. +% + +% Add a "caption" to the bottom of each page. +/captionsize 20 def +/caption + { /Helvetica //captionsize selectfont + (Printed by Artifex's XXYYZZ) show + /Symbol //captionsize selectfont + (\324) show % trademarkserif + /Helvetica //captionsize selectfont + ( product) show + } bind def + +10 dict begin +gsave + initgraphics + clippath pathbbox + pop exch 36 add /by exch def + % We can't use stringwidth, so we have to show and measure. + gsave + 0 0 0 0 rectclip + 0 0 moveto caption currentpoint pop /bw exch def + grestore + add bw sub 2 div /bx exch def + % We don't have the font bbox available, so we guess. + /bh captionsize 1.05 mul def +grestore +/showcaption + { gsave + initgraphics + //bx 9 sub //by 9 sub //bw 18 add //bh 18 add + 1 setgray 4 copy rectfill 0 setgray 1.5 setlinewidth rectstroke + //bx //by moveto //caption exec + grestore + } bind def +<< /EndPage [ + %% + %% Only print the caption if 'reason' is not 2 (device deactivation) + %% + /dup load /exec load 2 /ne load /exec load [ /showcaption load /exec load ] cvx /if load /exec load + currentpagedevice /EndPage get /exec load + ] cvx +>> setpagedevice +end diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/cbjc600.ppd b/data/miniconda3/share/ghostscript/10.07.0/lib/cbjc600.ppd new file mode 100644 index 0000000000000000000000000000000000000000..5db654222b3133138067eed9abb7048032a41ae5 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/cbjc600.ppd @@ -0,0 +1,408 @@ +*PPD-Adobe: "4.1" +*% Adobe Systems PostScript(R) Printer Description File +*% Copyright 1995 Yves Arrouye for AFPL Ghostscript with Level 2 PS. +*% All Rights Reserved. +*% This file may be distributed as part of GNU Ghostscript and/or AFPL +*% Ghostscript, under the same terms and conditions as Ghostscript. +*% End of Copyright statement +*FormatVersion: "4.1" +*FileVersion: "1.0" +*LanguageEncoding: ISOLatin1 +*LanguageVersion: English +*PCFileName: "CBJC600.PPD" +*Product: "(Canon Bubble Jet Color 600)" +*PSVersion: "(2010.351) 0" +*ModelName: "Canon Bubble Jet Color 600" +*NickName: "BJC-600" +*ShortNickName: "BJC-600" +*Manufacturer: "Canon" + +*% This file is not complete, and may lack some useful information... + +*% Note: the default transfer function should be set to Null if Ghostscript +*% exhibit a bug making magenta appear while printing in gray levels... +*% Note: if you print on A4 paper by default, change *Default values (the +*% default is Letter here). + +*% ==============Constraints ================= + +*UIConstraints: *BitsPerPixel None *ColorModel DeviceCMYK +*UIConstraints: *BitsPerPixel None *ColorModel DeviceRGB +*UIConstraints: *BitsPerPixel 16 *ColorModel DeviceRGB +*UIConstraints: *BitsPerPixel 16 *ColorModel DeviceGray +*UIConstraints: *BitsPerPixel 24 *ColorModel DeviceGray +*UIConstraints: *BitsPerPixel 32 *ColorModel DeviceRGB +*UIConstraints: *BitsPerPixel 32 *ColorModel DeviceGray + +*UIConstraints: *ColorModel DeviceCMYK *BitsPerPixel None +*UIConstraints: *ColorModel DeviceRGB *BitsPerPixel None +*UIConstraints: *ColorModel DeviceRGB *BitsPerPixel 16 +*UIConstraints: *ColorModel DeviceRGB *BitsPerPixel 32 +*UIConstraints: *ColorModel DeviceGray *BitsPerPixel 16 +*UIConstraints: *ColorModel DeviceGray *BitsPerPixel 24 +*UIConstraints: *ColorModel DeviceGray *BitsPerPixel 32 + +*% =========== Device Capabilities =============== + +*LanguageLevel: "2" +*Protocols: TBCP +*FreeVM: "2124600" +*ColorDevice: True +*DefaultColorSpace: CMYK +*FileSystem: True +*Throughput: "1" + +*Password: "()" + +*% ============Paper Size Information ============== + +*OpenUI *PageSize: PickOne +*OrderDependency: 30 AnySetup *PageSize +*DefaultPageSize: Letter +*PageSize A4: "1 dict dup /PageSize [595 842] put setpagedevice" +*PageSize A5: "1 dict dup /PageSize [421 595] put setpagedevice" +*PageSize A6: "1 dict dup /PageSize [297 421] put setpagedevice" +*PageSize A7: "1 dict dup /PageSize [210 297] put setpagedevice" +*PageSize A8: "1 dict dup /PageSize [148 210] put setpagedevice" +*PageSize A9: "1 dict dup /PageSize [105 148] put setpagedevice" +*PageSize A10: "1 dict dup /PageSize [74 105] put setpagedevice" +*PageSize B5: "1 dict dup /PageSize [501 709] put setpagedevice" +*PageSize Letter/US Letter: "1 dict dup /PageSize [612 792] put setpagedevice" +*CloseUI: *PageSize + +*OpenUI *PageRegion: PickOne +*OrderDependency: 40 AnySetup *PageRegion +*DefaultPageRegion: Letter +*PageRegion A4: "1 dict dup /PageSize [595 842] put setpagedevice" +*PageRegion A5: "1 dict dup /PageSize [421 595] put setpagedevice" +*PageRegion A6: "1 dict dup /PageSize [297 421] put setpagedevice" +*PageRegion A7: "1 dict dup /PageSize [210 297] put setpagedevice" +*PageRegion A8: "1 dict dup /PageSize [148 210] put setpagedevice" +*PageRegion A9: "1 dict dup /PageSize [105 148] put setpagedevice" +*PageRegion A10: "1 dict dup /PageSize [74 105] put setpagedevice" +*PageRegion B5: "1 dict dup /PageSize [501 709] put setpagedevice" +*PageRegion Letter/US Letter: "1 dict dup /PageSize [612 792] put setpagedevice" +*CloseUI: *PageRegion + +*DefaultImageableArea: Letter +*ImageableArea A4: "18.425196 27.096094 576.625183 833.496094" +*ImageableArea A5: "18.425196 27.096045 402.625183 586.496033" +*ImageableArea A6: "18.425196 27.096045 278.625183 412.496033" +*ImageableArea A7: "18.425196 27.096045 191.625198 288.496033" +*ImageableArea A8: "18.425196 27.096045 129.625198 201.496048" +*ImageableArea A9: "18.425196 27.096045 86.625198 139.496048" +*ImageableArea A10: "18.425196 27.096045 55.625195 96.496048" +*ImageableArea B5: "18.425196 27.096045 482.625183 700.496033" +*ImageableArea Letter/US Letter: "18.425196 27.096045 593.625183 783.496033" + +*?ImageableArea: " +save + /cvp {( ) cvs print ( ) print } bind def + /upperright {10000 mul floor 10000 div} bind def + /lowerleft {10000 mul ceiling 10000 div} bind def + newpath clippath pathbbox + 4 -2 roll exch 2 {lowerleft cvp} repeat + exch 2 {upperright cvp} repeat flush + restore +" +*End + +*DefaultPaperDimension: Letter +*PaperDimension A4: "595 842" +*PaperDimension A5: "421 595" +*PaperDimension A6: "297 421" +*PaperDimension A7: "210 297" +*PaperDimension A8: "148 210" +*PaperDimension A9: "105 148" +*PaperDimension A10: "74 105" +*PaperDimension B5: "501 709" +*PaperDimension Letter/US Letter: "612 792" + +*HWMargins: "9.637794495 27.042521 9.637794495 8.503937" + +*% =============Halftone Information =============== + +*ScreenFreq: "60.0" +*ScreenAngle: "45.0" + +*DefaultScreenProc: Dot +*ScreenProc Dot: " +{dup mul exch dup mul add 1.0 exch sub } +" +*End +*ScreenProc Line: "{ pop }" +*ScreenProc Ellipse: "{ dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub }" + +*DefaultTransfer: Normalized +*Transfer Normalized: "{mark +1.0 1.000 0.955 0.915 0.847 0.765 0.683 0.602 0.500 0.311 0.030 0.0 +counttomark dup 3 add -1 roll exch +2 sub mul dup floor cvi dup 3 1 roll sub exch dup +3 add index exch 2 add index dup 4 1 roll sub mul add +counttomark 1 add 1 roll cleartomark +} bind" +*End +*Transfer Null: "{ }" +*Transfer Null.Inverse: "{ 1 exch sub }" +*End + +*%==================Input Slot==================== + +*OpenUI *InputSlot/Media Source: PickOne +*OrderDependency: 20 AnySetup *InputSlot +*DefaultInputSlot: Feeder +*InputSlot Feeder/Paper Tray: "" +*CloseUI: *InputSlot + +*%=================Manual Feed==================== + +*OpenUI *ManualFeed/Manual Feed: Boolean +*OrderDependency: 20 AnySetup *ManualFeed +*DefaultManualFeed: False +*ManualFeed True/True: "1 dict dup /ManualFeed true put setpagedevice" +*ManualFeed False/False: "1 dict dup /ManualFeed false put setpagedevice" +*?ManualFeed: " + save + currentpagedevice /ManualFeed get + {(True)}{(False)}ifelse = flush + restore" +*End + +*CloseUI: *ManualFeed + +*%===================Resolution==================== + +*OpenUI *Resolution/Resolution: PickOne +*OrderDependency: 10 AnySetup *Resolution +*DefaultResolution: 360x360dpi +*Resolution 90x90dpi/90dpi: " + 1 dict dup /HWResolution [ 90 90 ] + put setpagedevice" +*End + +*Resolution 180x180dpi/180dpi: " + 1 dict dup /HWResolution [ 180 180 ] + put setpagedevice" +*End + +*Resolution 360x360dpi/360dpi: " + 1 dict dup /HWResolution [ 360 360 ] + put setpagedevice" +*End + +*?Resolution: " + save + currentpagedevice /HWResolution get dup + 0 get cvi 10 string cvs print + (x) print + 0 get cvi 10 string print + (dpi) = flush + restore" +*End + +*CloseUI: *Resolution + +*%===================Output Depth==================== + +*OpenUI *BitsPerPixel/Print Depth: PickOne +*OrderDependency: 30 AnySetup *BitsPerPixel +*DefaultBitsPerPixel: 24 +*BitsPerPixel None/1bpp: " + 1 dict dup /BitsPerPixel 1 put + setpagedevice" +*End + +*BitsPerPixel 8/8bpp: " + 1 dict dup /BitsPerPixel 8 put + setpagedevice" +*End + +*BitsPerPixel 16/16bpp: " + 1 dict dup /BitsPerPixel 16 put + setpagedevice" +*End + +*BitsPerPixel 24/24bpp: " + 1 dict dup /BitsPerPixel 24 put + setpagedevice" +*End + +*BitsPerPixel 32/32bpp: " + 1 dict dup /BitsPerPixel 32 put + setpagedevice" +*End + +*?BitsPerPixel: " + save + currentpagedevice /BitsPerPixel get dup 1 eq { pop (None) } if = flush + restore" +*End + +*CloseUI: *BitsPerPixel + +*%=================Media Type============================ + +*OpenUI *MediaType/Media Type: PickOne +*OrderDependency: 50 AnySetup *MediaType +*DefaultMediaType: PlainPaper +*MediaType PlainPaper/Plain Paper: " + 1 dict dup /MediaType (PlainPaper) put setpagedevice" +*End + +*MediaType CoatedPaper/Coated Paper: " + 1 dict dup /MediaType (CoatedPaper) put setpagedevice" +*End + +*MediaType TransparencyFilm/Transparency Film: " + 1 dict dup /MediaType (TransparencyFilm) put setpagedevice" +*End + +*MediaType Envelope/Envelope: " + 1 dict dup /MediaType (Envelope) put setpagedevice" +*End + +*MediaType Card/Card: " + 1 dict dup /MediaType (Card) put setpagedevice" +*End + +*MediaType Other/Other: " + 1 dict dup /MediaType (Other) put setpagedevice" +*End + +*?MediaType: " + save + currentpagedevice /MediaType get + dup null eq {pop (Unknown)} if = flush + restore " +*End + +*CloseUI: *MediaType + +*%===================Printing Quality==================== + +*OpenUI *OutputMode/Print Quality: PickOne +*OrderDependency: 50 AnySetup *OuputMode +*DefaultOutputMode: Normal +*OutputMode Draft/Draft: " + 1 dict dup /PrintQuality (Draft) put setpagedevice" +*End + +*OutputMode Normal/Normal: " + 1 dict dup /PrintQuality (Normal) put setpagedevice" +*End + +*OutputMode High/High: " + 1 dict dup /PrintQuality (High) put setpagedevice" +*End + +*?OutputMode: " + save + currentpagedevice /PrintQuality get + dup null eq {pop (Unknown)} if = flush + restore " +*End + +*CloseUI: *OutputMode + +*%===================Color/Gray Printing==================== + +*OpenUI *ColorModel/Color Processing: PickOne +*OrderDependency: 20 AnySetup *ColorModel +*DefaultColorModel: DeviceCMYK +*ColorModel DeviceGray/Gray: " + 1 dict dup /ProcessColorModel /DeviceGray + put setpagedevice" +*End + +*ColorModel DeviceRGB/RGB: " + 1 dict dup /ProcessColorModel /DeviceRGB + put setpagedevice" +*End + +*ColorModel DeviceCMYK/CMYK: " + 1 dict dup /ProcessColorModel /DeviceCMYK + put setpagedevice" +*End + +*?ColorModel: " + save + currentpagedevice /ProcessColorModel get = flush + restore " +*End + +*CloseUI: *ColorModel + +*%===================Media Weight/Thick Media==================== + +*OpenUI *ThickMedia/Thick Media: PickOne +*OrderDependency: 30 AnySetup *ThickMedia +*DefaultThickMedia: Thin +*ThickMedia Thin/No: " + 1 dict dup /MediaWeight 80 + put setpagedevice" +*End + +*ThickMedia Thick/Yes: " + 1 dict dup /ThickMedia 120 + put setpagedevice" +*End + +*?ThickMedia: " + save + currentpagedevice /MediaWeight get 105 gt { (Thick) } { (Thin) } ifelse + = flush + restore " +*End + +*CloseUI: *ThickMedia + +*%===================PrintColors==================== + +*OpenUI *PrintColors/Print Colors: PickOne +*OrderDependency: 20 AnySetup *PrintColors +*DefaultPrintColors: "15" +*PrintColors 0/None: "1 dict dup /PrintColors 0 put setpagedevice" +*End + +*PrintColors 1/Cyan: "1 dict dup /PrintColors 1 put setpagedevice" +*End + +*PrintColors 2/Magenta: "1 dict dup /PrintColors 2 put setpagedevice" +*End + +*PrintColors 4/Yellow: "1 dict dup /PrintColors 4 put setpagedevice" +*End + +*PrintColors 8/Black: "1 dict dup /PrintColors 8 put setpagedevice" +*End + +*PrintColors 15/All: "1 dict dup /PrintColors 15 put setpagedevice" +*End + + +*CloseUI *PrintColors + +*%===================Monochrome Printing==================== + +*OpenUI *MonochromePrint/Monochrome Print: Boolean +*OrderDependency: 50 AnySetup *MonochromePrint +*DefaultMonochromePrint: False +*MonochromePrint True/Yes: " + 1 dict dup /MonochromePrint true + put setpagedevice" +*End + +*MonochromePrint False/No: " + 1 dict dup /MonochromePrint false + put setpagedevice" +*End + +*?MonochromePrint: " + save + currentpagedevice /MonochromePrint get + {(True)}{(False)}ifelse = flush + restore" +*End + +*CloseUI: *MonochromePrint + diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/cbjc800.ppd b/data/miniconda3/share/ghostscript/10.07.0/lib/cbjc800.ppd new file mode 100644 index 0000000000000000000000000000000000000000..aaf8c8916cc714adfbb9266752458a0c4a92bf3d --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/cbjc800.ppd @@ -0,0 +1,393 @@ +*PPD-Adobe: "4.1" +*% Adobe Systems PostScript(R) Printer Description File +*% Copyright 1995 Yves Arrouye for AFPL Ghostscript with Level 2 PS. +*% All Rights Reserved. +*% This file may be distributed as part of GNU Ghostscript and/or AFPL +*% Ghostscript, under the same terms and conditions as Ghostscript. +*% End of Copyright statement +*FormatVersion: "4.1" +*FileVersion: "1.0" +*LanguageEncoding: ISOLatin1 +*LanguageVersion: English +*PCFileName: "CBJC800.PPD" +*Product: "(Canon Bubble Jet Color 800)" +*PSVersion: "(2010.351) 0" +*ModelName: "Canon Bubble Jet Color 800" +*NickName: "BJC-800" +*ShortNickName: "BJC-800" +*Manufacturer: "Canon" + +*% This file is not complete, and may lack some useful information... + +*% Note: the default transfer function should be set to Null if Ghostscript +*% exhibit a bug making magenta appear while printing in gray levels... +*% Note: if you print on A4 paper by default, change *Default values (the +*% default is Letter here). + +*% ==============Constraints ================= + +*UIConstraints: *BitsPerPixel None *ColorModel DeviceCMYK +*UIConstraints: *BitsPerPixel None *ColorModel DeviceRGB +*UIConstraints: *BitsPerPixel 16 *ColorModel DeviceRGB +*UIConstraints: *BitsPerPixel 16 *ColorModel DeviceGray +*UIConstraints: *BitsPerPixel 24 *ColorModel DeviceGray +*UIConstraints: *BitsPerPixel 32 *ColorModel DeviceRGB +*UIConstraints: *BitsPerPixel 32 *ColorModel DeviceGray + +*UIConstraints: *ColorModel DeviceCMYK *BitsPerPixel None +*UIConstraints: *ColorModel DeviceRGB *BitsPerPixel None +*UIConstraints: *ColorModel DeviceRGB *BitsPerPixel 16 +*UIConstraints: *ColorModel DeviceRGB *BitsPerPixel 32 +*UIConstraints: *ColorModel DeviceGray *BitsPerPixel 16 +*UIConstraints: *ColorModel DeviceGray *BitsPerPixel 24 +*UIConstraints: *ColorModel DeviceGray *BitsPerPixel 32 + +*% =========== Device Capabilities =============== + +*LanguageLevel: "2" +*Protocols: TBCP +*FreeVM: "2124600" +*ColorDevice: True +*DefaultColorSpace: CMYK +*FileSystem: True +*Throughput: "1" + +*Password: "()" + +*% ============Paper Size Information ============== + +*OpenUI *PageSize: PickOne +*OrderDependency: 30 AnySetup *PageSize +*DefaultPageSize: Letter +*PageSize A4: "1 dict dup /PageSize [595 842] put setpagedevice" +*PageSize A5: "1 dict dup /PageSize [421 595] put setpagedevice" +*PageSize A6: "1 dict dup /PageSize [297 421] put setpagedevice" +*PageSize A7: "1 dict dup /PageSize [210 297] put setpagedevice" +*PageSize A8: "1 dict dup /PageSize [148 210] put setpagedevice" +*PageSize A9: "1 dict dup /PageSize [105 148] put setpagedevice" +*PageSize A10: "1 dict dup /PageSize [74 105] put setpagedevice" +*PageSize B5: "1 dict dup /PageSize [501 709] put setpagedevice" +*PageSize Letter/US Letter: "1 dict dup /PageSize [612 792] put setpagedevice" +*PageSize 11x17/US 11x17: "1 dict dup /PageSize [792 1224] put setpagedevice" +*PageSize Ledger/US Ledger: "1 dict dup /PageSize [1224 792] put setpagedevice" +*PageSize Legal/US Legal: "1 dict dup /PageSize [612 1008] put setpagedevice" +*CloseUI: *PageSize + +*OpenUI *PageRegion: PickOne +*OrderDependency: 40 AnySetup *PageRegion +*DefaultPageRegion: Letter +*PageRegion A4: "1 dict dup /PageSize [595 842] put setpagedevice" +*PageRegion A5: "1 dict dup /PageSize [421 595] put setpagedevice" +*PageRegion A6: "1 dict dup /PageSize [297 421] put setpagedevice" +*PageRegion A7: "1 dict dup /PageSize [210 297] put setpagedevice" +*PageRegion A8: "1 dict dup /PageSize [148 210] put setpagedevice" +*PageRegion A9: "1 dict dup /PageSize [105 148] put setpagedevice" +*PageRegion A10: "1 dict dup /PageSize [74 105] put setpagedevice" +*PageRegion B5: "1 dict dup /PageSize [501 709] put setpagedevice" +*PageRegion Letter/US Letter: "1 dict dup /PageSize [612 792] put setpagedevice" +*PageRegion 11x17/US 11x17: "1 dict dup /PageSize [792 1224] put setpagedevice" +*PageRegion Ledger/US Ledger: "1 dict dup /PageSize [1224 792] put setpagedevice" +*PageRegion Legal/US Legal: "1 dict dup /PageSize [612 1008] put setpagedevice" +*CloseUI: *PageRegion + +*DefaultImageableArea: Letter +*ImageableArea A3: "9.637793 27.096094 832.437805 1181.496094" +*ImageableArea A4: "18.425196 27.096094 576.625183 833.496094" +*ImageableArea A5: "18.425196 27.096045 402.625183 586.496033" +*ImageableArea A6: "18.425196 27.096045 278.625183 412.496033" +*ImageableArea A7: "18.425196 27.096045 191.625198 288.496033" +*ImageableArea A8: "18.425196 27.096045 129.625198 201.496048" +*ImageableArea A9: "18.425196 27.096045 86.625198 139.496048" +*ImageableArea A10: "18.425196 27.096045 55.625195 96.496048" +*ImageableArea B5: "18.425196 27.096045 482.625183 700.496033" +*ImageableArea Letter/US Letter: "18.425196 27.096045 593.625183 783.496033" +*ImageableArea 11x17/US 11x17: "9.637793 27.096094 782.437805 1215.496094" +*ImageableArea Ledger/US Ledger: "9.637793 27.096045 1214.437744 783.496033" +*ImageableArea Legal/US Legal: "9.637793 27.096094 602.437805 999.496094" + +*?ImageableArea: " +save + /cvp {( ) cvs print ( ) print } bind def + /upperright {10000 mul floor 10000 div} bind def + /lowerleft {10000 mul ceiling 10000 div} bind def + newpath clippath pathbbox + 4 -2 roll exch 2 {lowerleft cvp} repeat + exch 2 {upperright cvp} repeat flush + restore +" +*End + +*DefaultPaperDimension: Letter +*PaperDimension A4: "595 842" +*PaperDimension A5: "421 595" +*PaperDimension A6: "297 421" +*PaperDimension A7: "210 297" +*PaperDimension A8: "148 210" +*PaperDimension A9: "105 148" +*PaperDimension A10: "74 105" +*PaperDimension B5: "501 709" +*PaperDimension Letter/US Letter: "612 792" +*PaperDimension 11x17/US 11x17: "792 1224" +*PaperDimension Ledger/US Ledger: "1224 792" +*PaperDimension Legal/US Legal: "612 1008" + +*HWMargins: "9.637794495 19.842518 9.637794495 8.503937" + +*% =============Halftone Information =============== + +*ScreenFreq: "60.0" +*ScreenAngle: "45.0" + +*DefaultScreenProc: Dot +*ScreenProc Dot: " +{dup mul exch dup mul add 1.0 exch sub } +" +*End +*ScreenProc Line: "{ pop }" +*ScreenProc Ellipse: "{ dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub }" + +*DefaultTransfer: Normalized +*Transfer Normalized: "{mark +1.0 1.000 0.955 0.915 0.847 0.765 0.683 0.602 0.500 0.311 0.030 0.0 +counttomark dup 3 add -1 roll exch +2 sub mul dup floor cvi dup 3 1 roll sub exch dup +3 add index exch 2 add index dup 4 1 roll sub mul add +counttomark 1 add 1 roll cleartomark +} bind" +*End +*Transfer Null: "{ }" +*Transfer Null.Inverse: "{ 1 exch sub }" +*End + +*%==================Input Slot==================== + +*OpenUI *InputSlot/Media Source: PickOne +*OrderDependency: 20 AnySetup *InputSlot +*DefaultInputSlot: Feeder +*InputSlot Feeder/Paper Tray: "" +*CloseUI: *InputSlot + +*%=================Manual Feed==================== + +*OpenUI *ManualFeed/Manual Feed: Boolean +*OrderDependency: 20 AnySetup *ManualFeed +*DefaultManualFeed: False +*ManualFeed True/True: "1 dict dup /ManualFeed true put setpagedevice" +*ManualFeed False/False: "1 dict dup /ManualFeed false put setpagedevice" +*?ManualFeed: " + save + currentpagedevice /ManualFeed get + {(True)}{(False)}ifelse = flush + restore" +*End + +*CloseUI: *ManualFeed + +*%===================Resolution==================== + +*OpenUI *Resolution/Resolution: PickOne +*OrderDependency: 10 AnySetup *Resolution +*DefaultResolution: 360x360dpi +*Resolution 90x90dpi/90dpi: " + 1 dict dup /HWResolution [ 90 90 ] + put setpagedevice" +*End + +*Resolution 180x180dpi/180dpi: " + 1 dict dup /HWResolution [ 180 180 ] + put setpagedevice" +*End + +*Resolution 360x360dpi/360dpi: " + 1 dict dup /HWResolution [ 360 360 ] + put setpagedevice" +*End + +*?Resolution: " + save + currentpagedevice /HWResolution get dup + 0 get cvi 10 string cvs print + (x) print + 0 get cvi 10 string print + (dpi) = flush + restore" +*End + +*CloseUI: *Resolution + +*%===================Output Depth==================== + +*OpenUI *BitsPerPixel/Print Depth: PickOne +*OrderDependency: 30 AnySetup *BitsPerPixel +*DefaultBitsPerPixel: 24 +*BitsPerPixel None/1bpp: " + 1 dict dup /BitsPerPixel 1 put + setpagedevice" +*End + +*BitsPerPixel 8/8bpp: " + 1 dict dup /BitsPerPixel 8 put + setpagedevice" +*End + +*BitsPerPixel 16/16bpp: " + 1 dict dup /BitsPerPixel 16 put + setpagedevice" +*End + +*BitsPerPixel 24/24bpp: " + 1 dict dup /BitsPerPixel 24 put + setpagedevice" +*End + +*BitsPerPixel 32/32bpp: " + 1 dict dup /BitsPerPixel 32 put + setpagedevice" +*End + +*?BitsPerPixel: " + save + currentpagedevice /BitsPerPixel get dup 1 eq { pop (None) } if = flush + restore" +*End + +*CloseUI: *BitsPerPixel + +*%=================Media Type============================ + +*OpenUI *MediaType/Media Type: PickOne +*OrderDependency: 50 AnySetup *MediaType +*DefaultMediaType: PlainPaper +*MediaType PlainPaper/Plain Paper: " + 1 dict dup /MediaType (PlainPaper) put setpagedevice" +*End + +*MediaType CoatedPaper/Coated Paper: " + 1 dict dup /MediaType (CoatedPaper) put setpagedevice" +*End + +*MediaType TransparencyFilm/Transparency Film: " + 1 dict dup /MediaType (TransparencyFilm) put setpagedevice" +*End + +*MediaType Envelope/Envelope: " + 1 dict dup /MediaType (Envelope) put setpagedevice" +*End + +*MediaType Card/Card: " + 1 dict dup /MediaType (Card) put setpagedevice" +*End + +*MediaType Other/Other: " + 1 dict dup /MediaType (Other) put setpagedevice" +*End + +*?MediaType: " + save + currentpagedevice /MediaType get + dup null eq {pop (Unknown)} if = flush + restore " +*End + +*CloseUI: *MediaType + +*%===================Printing Quality==================== + +*OpenUI *OutputMode/Print Quality: PickOne +*OrderDependency: 10 AnySetup *OuputMode +*DefaultOutputMode: Normal +*OutputMode Draft/Draft: " + 1 dict dup /PrintQuality (Draft) put setpagedevice" +*End + +*OutputMode Low/Low: " + 1 dict dup /PrintQuality (Low) put setpagedevice" +*End + +*OutputMode Normal/Normal: " + 1 dict dup /PrintQuality (Normal) put setpagedevice" +*End + +*OutputMode High/High: " + 1 dict dup /PrintQuality (High) put setpagedevice" +*End + +*CloseUI: *OutputMode + +*%===================Color/Gray Printing==================== + +*OpenUI *ColorModel/Color Processing: PickOne +*OrderDependency: 20 AnySetup *ColorModel +*DefaultColorModel: DeviceCMYK +*ColorModel DeviceGray/Gray: " + 1 dict dup /ProcessColorModel /DeviceGray + put setpagedevice" +*End + +*ColorModel DeviceRGB/RGB: " + 1 dict dup /ProcessColorModel /DeviceRGB + put setpagedevice" +*End + +*ColorModel DeviceCMYK/CMYK: " + 1 dict dup /ProcessColorModel /DeviceCMYK + put setpagedevice" +*End + +*?ColorModel: " + save + currentpagedevice /ProcessColorModel get = flush + restore " +*End + +*CloseUI: *ColorModel + +*%===================Media Weight/Thick Media==================== + +*OpenUI *ThickMedia/Thick Media: PickOne +*OrderDependency: 30 AnySetup *ThickMedia +*DefaultThickMedia: Thin +*ThickMedia Thin/No: " + 1 dict dup /MediaWeight 80 + put setpagedevice" +*End + +*ThickMedia Thick/Yes: " + 1 dict dup /ThickMedia 120 + put setpagedevice" +*End + +*?ThickMedia: " + save + currentpagedevice /MediaWeight get 105 gt { (Thick) } { (Thin) } ifelse + = flush + restore " +*End + +*CloseUI: *ThickMedia + +*%===================PrintColors==================== + +*OpenUI *PrintColors/Print Colors: PickOne +*OrderDependency: 20 AnySetup *PrintColors +*DefaultPrintColors: "15" +*PrintColors 0/None: "1 dict dup /PrintColors 0 put setpagedevice" +*End + +*PrintColors 1/Cyan: "1 dict dup /PrintColors 1 put setpagedevice" +*End + +*PrintColors 2/Magenta: "1 dict dup /PrintColors 2 put setpagedevice" +*End + +*PrintColors 4/Yellow: "1 dict dup /PrintColors 4 put setpagedevice" +*End + +*PrintColors 8/Black: "1 dict dup /PrintColors 8 put setpagedevice" +*End + +*PrintColors 15/All: "1 dict dup /PrintColors 15 put setpagedevice" +*End + + +*CloseUI *PrintColors diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/cdj550.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/cdj550.upp new file mode 100644 index 0000000000000000000000000000000000000000..4f91a2ed49825961a8cc1947222fad025ecb27bb --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/cdj550.upp @@ -0,0 +1,48 @@ +-supModel="HP Deskjet 550c, 300x300DpI, Gamma=2" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Pcl +-r300x300 +-dupMargins="{ 12.0 36.0 12.0 12.0}" +-dupBlackTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupCyanTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupMagentaTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupYellowTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupBeginPageCommand="< + 1b2a726243 + 1b2a7433303052 + 1b266c33616f6c45 + 1b2a6f31643251 + 1b2a703059 + 1b2a72732d34753041 + 1b2a62326d +>" +-dupAdjustPageWidthCommand +-dupEndPageCommand="(0M\033*rbC\033E\033&l0H)" +-dupAbortCommand="(0M\033*rbC\033E\15\12\12\12\12 Printout-Aborted\15\033&l0H)" +-dupYMoveCommand="(%dy\0)" +-dupWriteComponentCommands="{ (%dv\0) (%dv\0) (%dv\0) (%dw\0) }" + diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/cdj690.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/cdj690.upp new file mode 100644 index 0000000000000000000000000000000000000000..b8b1aa0d98d062471db4fdcedb6349b0acac1304 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/cdj690.upp @@ -0,0 +1,52 @@ +-supModel="HP Deskjet 690 Normal Gamma 2.0" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Pcl +-r600x300 +-dupMargins="{ 12.0 36.0 12.0 12.0}" +-dupBlackTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupCyanTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupMagentaTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupYellowTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupBeginPageCommand="< +1b25 2d31 3233 3435 5840 +504a 4c20 454e 5445 5220 4c41 4e47 5541 +4745 3d50 434c 534c 4545 4b0a 1b45 1b2a +6232 421b 2a6f 3557 040c 0000 001b 2a6f +3144 1b26 6c31 481b 266c 3236 6130 4c1b +2a6f 3557 0103 0000 011b 266c 304d 1b26 +6c30 6f30 451b 2a6f 304d 1b26 7533 3030 +441b 2a70 3058 1b2a 7030 591b 2a67 3857 +0201 0258 012c 0002 1b2a 7234 3830 3053 +1b2a 7231 411b 2a62 324d 1b2a 6233 3034 +591b 2a62 326d +>" +-dupAdjustPageWidthCommand +-dupEndPageCommand="(0M\033*rbC\033E\033&l0H)" +-dupAbortCommand="(0M\033*rbC\033E\15\12\12\12\12 Printout-Aborted\15\033&l0H)" +-dupYMoveCommand="(%dy\0)" +-dupWriteComponentCommands="{ (%dv\0) (%dv\0) (%dv\0) (%dw\0) }" +-dupOutputYOffset=10000 diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/cdj690ec.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/cdj690ec.upp new file mode 100644 index 0000000000000000000000000000000000000000..fd3d5a9489c9c6240682cd8422767161c2621728 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/cdj690ec.upp @@ -0,0 +1,54 @@ +-supModel="HP Deskjet 690 Econo-Fast Gamma 2.0" +-sDEVICE=uniprint +-sPAPERSIZE=a4 +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceCMYK +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Pcl +-r300x300 + +-dupOutputYOffset=300 +-dupMargins="{ 0.0 36.0 12.0 12.0}" +-dupBlackTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupCyanTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupMagentaTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupYellowTransfer="{ + 0.0000 0.0010 0.0042 0.0094 0.0166 0.0260 0.0375 0.0510 + 0.0666 0.0843 0.1041 0.1259 0.1498 0.1758 0.2039 0.2341 + 0.2663 0.3007 0.3371 0.3756 0.4162 0.4589 0.5036 0.5505 + 0.5994 0.6504 0.7034 0.7586 0.8158 0.8751 0.9365 1.0000 +}" +-dupBeginPageCommand="< +1b25 2d31 3233 3435 5840 +504a 4c20 454e 5445 5220 4c41 4e47 5541 +4745 3d50 434c 534c 4545 4b0a 1b45 1b2a +6232 421b 2a6f 3557 040c 0000 001b 2a6f +3144 1b26 6c31 481b 266c 3236 6130 4c1b +2a6f 3557 0103 0000 011b 266c 304d 1b26 +6c30 6f30 451b 2a6f 2d31 4d1b 2675 3330 +3044 1b2a 7030 581b 2a70 3059 1b2a 6732 +3657 0204 012c 012c 0002 012c 012c 0002 +012c 012c 0002 012c 012c 0002 1b2a 7232 +3430 3053 1b2a 7231 411b 2a62 324d 1b2a +6231 591b 2a62 326d>" +-dupAdjustPageWidthCommand +-dupEndPageCommand="(0M\033*rbC\033E\033&l0H)" +-dupAbortCommand="(0M\033*rbC\033E\15\12\12\12\12 Printout-Aborted\15\033&l0H)" +-dupYMoveCommand="(%dy\0)" +-dupWriteComponentCommands="{ (%dv\0) (%dv\0) (%dv\0) (%dw\0) }" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/cid2code.ps b/data/miniconda3/share/ghostscript/10.07.0/lib/cid2code.ps new file mode 100644 index 0000000000000000000000000000000000000000..cafc92dd1e905dd1edaa1ce894029ff0625dd9c3 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/cid2code.ps @@ -0,0 +1,159 @@ +% Copyright (C) 2001-2023 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, +% CA 94129, USA, for further information. +% + +% Construct an inverse map from CIDs to codes. + +% Create an inverse map from CIDs to code values. +% We only use this for 16-bit Unicode, so it has some limitations. +% After invoking .cmap2code, loading a CMap file prints out the map +% instead of doing what it usually does. For example: +% +% gs -dNODISPLAY -dBATCH lib/cid2code.ps -c .cmap2code\ +% -f Resource/CMap/UniJIS-UCS2-H > mapfile + +/.cmap2codedict 10 dict begin + +/begincmap { + mark +} def +/endcmap { + % Stack: mark code_lo1 code_hi1 cid1 ... + 20 dict begin + /depth counttomark 3 sub def + % Do a first pass to determine the maximum CID. + 0 0 3 depth { + 1 add /d exch def + d index d 2 add index 1 get add d 3 add index 1 get sub .max + } for + 1 add /ncid exch def + /map ncid 2 mul string def + % Now fill in the map. + 0 3 depth { + /d exch def + d index 2 mul /cid2 exch def + d 1 add index /hi exch def + d 2 add index 2 string copy /lo exch def + lo 1 get 1 hi 1 get { + map cid2 lo 0 get put + map cid2 1 add 3 -1 roll put + /cid2 cid2 2 add def + } for + } for + % Print the map. + (%stdout) (w) file + dup (<) print + dup /ASCIIHexEncode filter + dup map writestring + closefile + () = flush + closefile + end +} def +%/begincodespacerange +/endcodespacerange {cleartomark} def +%/usecmap + +%/beginbfchar +/endbfchar {cleartomark} def +%/beginbfrange +/endbfrange {cleartomark} def + +%/begincidchar +/endcidchar { + counttomark 2 idiv { dup counttomark 1 add 3 roll } repeat pop +} def +%/begincidrange +/endcidrange { + counttomark 1 add -1 roll pop +} def + +%/beginnotdefchar +/endnotdefchar {cleartomark} def +%/beginnotdefrange +/endnotdefrange {cleartomark} def + +currentdict end readonly def + +/.cmap2code { % - .cmap2code - + /CIDInit /ProcSet findresource dup length dict copy + .cmap2codedict { 3 copy put pop pop } forall + /CIDInit exch /ProcSet defineresource pop +} def + +% Extract and print reverse mapping information from a cid2code.txt file. +/.printhex2 { % .printhex2 - + (<) print + 16#10000 add 16 =string cvrs 1 4 getinterval print + (>) print +} def +/.cid2code { % .cid2code - + 30 dict begin + /column exch def + (r) file /f exch def + (%!) = + (/CIDInit /ProcSet findresource begin 12 dict begin begincmap) = + % Print the information from the template. + { + exch ==only ( ) print + dup type /dicttype eq { + dup length =only ( dict dup begin) = { + ( ) print exch ===only ( ) print ===only ( def) = + } forall (end def) = + } { + ===only + } ifelse ( def) = + } forall + % Read the data from the cid2code.txt file. + { + f =string readline pop (CID\t) anchorsearch { pop pop exit } if pop + } loop + /map [ { + f =string readline not { pop exit } if + column { (\t) search pop pop pop } repeat + (\t) search { exch pop exch pop } if + (,) search { exch pop exch pop } if + dup length 4 ne { pop (*) } if + dup (*) eq { pop (0000) } if + (16#) exch concatstrings cvi + } loop ] def + % Print the code space range(s). + /maxcid map length 1 sub def + mark maxcid + dup 255 and 255 eq { + 0 exch + } { + dup 16#ff00 and exch 0 2 index 1 sub + } ifelse + counttomark 2 idiv dup =only ( begincodespacerange) = { + exch .printhex2 .printhex2 () = + } repeat (endcodespacerange) = + % Print the map data. + 0 1 100 maxcid { + /lo exch def + /hi lo 99 add maxcid .min def + 0 lo 1 hi { map exch get 0 ne { 1 add } if } for + dup 0 eq { + pop + } { + =only ( begincidchar) = lo 1 hi { + map 1 index get dup 0 eq { pop pop } { exch .printhex2 = } ifelse + } for (endcidchar) = + } ifelse + } for + % Wrap up. + (endcmap CMapName currentdict /CMap defineresource pop end end) = + f closefile + end +} bind def diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/dnj750c.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/dnj750c.upp new file mode 100644 index 0000000000000000000000000000000000000000..cfb4d913c31f79c55ff0d00aa1d5a365a1ef72d4 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/dnj750c.upp @@ -0,0 +1,47 @@ +-supModel="HP Designjet 750c, 300x300DpI, Gamma=2.5, CMY" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceRGB +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Pcl +-r300x300 +-dupMargins="{0.0 0.0 0.0 0.0}" +-dupRedTransfer="{1.0 0.921295345 0.846429467 0.775337517 0.707954228 +0.644212425 0.584044278 0.527380228 0.474149585 0.424279869 0.377697408 +0.334326446 0.294089675 0.256907612 0.222698912 0.191379622 0.162863538 +0.137061611 0.113881744 0.0932285339 0.0750028 0.0591011234 0.0454152822 +0.0338314585 0.0242292974 0.0164806321 0.0104477014 0.00598061318 0.00291339168 +0.00105723308 0.000186894162 0.0}" +-dupGreenTransfer="{1.0 0.921295345 0.846429467 0.775337517 0.707954228 +0.644212425 0.584044278 0.527380228 0.474149585 0.424279869 0.377697408 +0.334326446 0.294089675 0.256907612 0.222698912 0.191379622 0.162863538 +0.137061611 0.113881744 0.0932285339 0.0750028 0.0591011234 0.0454152822 +0.0338314585 0.0242292974 0.0164806321 0.0104477014 0.00598061318 0.00291339168 +0.00105723308 0.000186894162 0.0}" +-dupBlueTransfer="{1.0 0.921295345 0.846429467 0.775337517 0.707954228 +0.644212425 0.584044278 0.527380228 0.474149585 0.424279869 0.377697408 +0.334326446 0.294089675 0.256907612 0.222698912 0.191379622 0.162863538 +0.137061611 0.113881744 0.0932285339 0.0750028 0.0591011234 0.0454152822 +0.0338314585 0.0242292974 0.0164806321 0.0104477014 0.00598061318 0.00291339168 +0.00105723308 0.000186894162 0.0}" +-dupBeginPageCommand="<1b252d31323334355840504a4c204a4f42204e414d45203d20226773 +220d0a40504a4c20534554204d4952524f52203d204f4646200a40504a4c205345542050414c4554 +5445534f55524345203d20534f465457415245200a40504a4c205345542052454e4445524d4f4445 +203d20434f4c4f52200a40504a4c20534554205245534f4c5554494f4e203d2030200a40504a4c20 +534554205052494e5441524541203d2046554c4c53495a45200a40504a4c20534554205041504552 +4c454e475448203d2030200a40504a4c205345542050415045525749445448203d2030200a40504a +4c20534554204f5249454e544154494f4e203d20504f525452414954200a40504a4c20534554204d +415247494e53203d204e4f524d414c200a40504a4c20454e544552204c414e4755414745203d2048 +50474c32200d0a1b2531424250352c31494e5755304e50384543514c3130301b2531411b2661314e +1b2a7631385700000308080800ff00ff00ff0000000000001b2a7632353561323535623235356330 +491b2a763061323535623235356331491b2a763235356130623235356332491b2a76306130623235 +356333491b2a763235356132353562306334491b2a76306132353562306335491b2a763235356130 +62306336491b2a7630613062306337491b2a74521b2a72531b2a72541b2a7231411b2a62324d>" +-dupAdjustPageWidthCommand +-dupAdjustPageLengthCommand +-dupAdjustResolutionCommand +-dupEndPageCommand="<1b2a72431b451b25314250473b1b252d313233343558>" +-dupAbortCommand=" +(\033*rC\033E\15\12\12\12\12 Printout-Aborted\033%1BPG;\033%-12345X)" +-dupWriteComponentCommands="{(\033*b%dV\0) (\033*b%dV\0) (\033*b%dW\0)}" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/dnj750m.upp b/data/miniconda3/share/ghostscript/10.07.0/lib/dnj750m.upp new file mode 100644 index 0000000000000000000000000000000000000000..5a14cfc189e3a0e4811dbfa338b215fdee030ea2 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/dnj750m.upp @@ -0,0 +1,59 @@ +-supModel="HP Designjet 750m, 600x600DpI, Gamma=2.5, CMY" +-sDEVICE=uniprint +-dNOPAUSE +-P- -dSAFER +-dupColorModel=/DeviceGray +-dupRendering=/ErrorDiffusion +-dupOutputFormat=/Pcl +-r600x600 +-dupMargins="{0.0 0.0 0.0 0.0}" +-dupWhiteTransfer="{ +1.0 0.921295345 0.846429467 0.775337517 0.707954228 +0.644212425 0.584044278 0.527380228 0.474149585 0.424279869 +0.377697408 0.334326446 0.294089675 0.256907612 0.222698912 +0.191379622 0.162863538 0.137061611 0.113881744 0.0932285339 +0.0750028 0.0591011234 0.0454152822 0.0338314585 0.0242292974 +0.0164806321 0.0104477014 0.00598061318 0.00291339168 0.00105723308 +0.000186894162 0.0 +}" +-dupBeginPageCommand="< + 1b252d313233343558 + 40504a4c204a4f42204e414d45203d20226773220d0a + 40504a4c20534554204d4952524f52203d204f4646200a + 40504a4c205345542050414c45545445534f55524345203d20534f465457415245200a + 40504a4c205345542052454e4445524d4f4445203d20475241595343414c45200a + 40504a4c20534554205245534f4c5554494f4e203d2030200a + 40504a4c20534554205052494e5441524541203d2046554c4c53495a45200a + 40504a4c205345542050415045524c454e475448203d2030200a + 40504a4c205345542050415045525749445448203d2030200a + 40504a4c20534554204f5249454e544154494f4e203d20504f525452414954200a + 40504a4c20534554204d415247494e53203d204e4f524d414c200a + 40504a4c20454e544552204c414e4755414745203d204850474c32200d0a + 1b253142 + 4250352c31 + 494e + 575530 + 4e5032 + 4543 + 514c313030 + 1b253141 + 1b2661314e + 1b2a763657 + 00 + 00 + 01 + 080808 + 1b2a76 32353561 32353562 32353563 3049 + 1b2a76 3061 3062 3063 3149 + 1b2a74 33323152 + 1b2a72 33323153 + 1b2a72 54 + 1b2a72 3141 + 1b2a62 324d +>" +-dupAdjustPageWidthCommand +-dupAdjustPageLengthCommand +-dupAdjustResolutionCommand +-dupEndPageCommand="(\033*rC\033E\033%1BPG;\033%-12345X)" +-dupAbortCommand="(\033*rC\033E\15\12\12\12\12 Printout-Aborted\033%1BPG;\033%-12345X)" +-dupWriteComponentCommands="{ (\033*b%dW\0) }" diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/docie.ps b/data/miniconda3/share/ghostscript/10.07.0/lib/docie.ps new file mode 100644 index 0000000000000000000000000000000000000000..7f7f4d4caffca756ac0b5968d49f306b018707a3 --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/docie.ps @@ -0,0 +1,219 @@ +% Copyright (C) 2001-2023 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, +% CA 94129, USA, for further information. +% + +% docie.ps +% Emulate CIE algorithms in PostScript. + +% ---------------- Auxiliary procedures ---------------- % + +/r1default [0 1] def +/r3default [0 1 0 1 0 1] def + +/apply3 % [ ] apply3 + { { 4 -1 roll exch exec } forall + } bind def + +/restrict % restrict + { 3 1 roll .max .min + } bind def + +/restrict3 % [ ... ] restrict3 + { aload pop + 7 -1 roll 3 1 roll restrict 7 1 roll + 5 -1 roll 3 1 roll restrict 5 1 roll + restrict 3 1 roll + } bind def + +/rescale % rescale + { 1 index sub 3 1 roll sub exch div 0 .max 1 .min + } bind def + +/rescale3 % [ ... ] rescale3 + { aload pop + 7 -1 roll 3 1 roll rescale 7 1 roll + 5 -1 roll 3 1 roll rescale 5 1 roll + rescale 3 1 roll + } bind def + +/mmult3 % [ ... ] mmult3 + % + { 4 -1 roll dup dup 6 -1 roll dup dup 8 -1 roll dup dup + 10 -1 roll { 10 -1 roll mul } forall + % Stack: u1 v1 w1 u2 v2 w2 u3 v3 w3 + 4 -1 roll add 6 -1 roll add + % Stack: u1 v1 u2 v2 u3 v3 w' + 7 1 roll 3 -1 roll add 4 -1 roll add + % Stack: w' u1 u2 u3 v' + 5 1 roll add add 3 1 roll + } bind def + +/minvert3 % [ ... ] minvert3 + % [ ... ] + { 16 dict begin + aload pop { I H G F E D C B A } { exch def } forall + /coa E I mul F H mul sub def + /cob F G mul D I mul sub def + /coc D H mul E G mul sub def + /det A coa mul B cob mul add C coc mul add def + [ coa det div + C H mul B I mul sub det div + B F mul C E mul sub det div + cob det div + A I mul C G mul sub det div + C D mul A F mul sub det div + coc det div + B G mul A H mul sub det div + A E mul B D mul sub det div + ] + end + } bind def + +/print1 + { print dup == + } bind def + +/print3 + { print 3 array astore dup == aload pop + } bind def + +% ---------------- Mapping to XYZ ---------------- % + +/csmap % csmap + { 3 index /RangeLMN .knownget not { r3default } if restrict3 +DOCIEDEBUG { (After RangeLMN Decode: ) print3 } if + 3 index /DecodeLMN .knownget { apply3 } if +DOCIEDEBUG { (After DecodeLMN Decode: ) print3 } if + 3 index /MatrixLMN .knownget { mmult3 } if +DOCIEDEBUG { (After MatrixLMN Decode: ) print3 } if + } bind def + +/csciea % csciea + { 1 index /RangeA .knownget not { r1default aload pop } if restrict +DOCIEDEBUG { (After RangeA Decode: ) print1 } if + 1 index /DecodeA .knownget { exec } if +DOCIEDEBUG { (After DecodeA Decode: ) print1 } if + 1 index /MatrixA .knownget + { { 1 index mul exch } forall pop } + { dup dup } + ifelse +DOCIEDEBUG { (After MatrixA Decode: ) print3 } if + csmap + } bind def + +/cscieabc % cscieabc + { 3 index /RangeABC .knownget not { r3default } if restrict3 +DOCIEDEBUG { (After RangeABC Decode: ) print3 } if + 3 index /DecodeABC .knownget { apply3 } if +DOCIEDEBUG { (After DecodeABC Decode: ) print3 } if + 3 index /MatrixABC .knownget { mmult3 } if +DOCIEDEBUG { (After MatrixABC Decode: ) print3 } if + csmap + } bind def + +% ---------------- Rendering from XYZ ---------------- % + +/lookup3 % lookup3 + % + { 3 -1 roll 3 index 0 get 1 sub mul + 3 -1 roll 3 index 1 get 1 sub mul + 3 -1 roll 3 index 2 get 1 sub mul + % Stack: rtable ia ib ic +DOCIEDEBUG { (RenderTable indices: ) print3 mark 5 1 roll } if + 3 -1 roll round cvi 3 index 3 get exch get + % Stack: rtable ib ic string + 3 -1 roll round cvi 3 index 2 get mul + % Stack: rtable ic string ib*nc + 3 -1 roll round cvi add 2 index 4 get mul + % Stack: rtable string index + 2 index 4 get getinterval + % Stack: rtable bytes +DOCIEDEBUG { (RenderTable values: ) print (<) print (%stdout) (w) file 1 index writehexstring (>) = } if + } bind def + +/bpdefault [0 0 0] def + +/crmap % crmap ... + { +DOCIEDEBUG { (CIE XYZ = ) print3 } if + 3 index /MatrixPQR .knownget { mmult3 } if +DOCIEDEBUG { (After MatrixPQR: ) print3 } if + 4 index /WhitePoint get + 5 index /BlackPoint .knownget not { bpdefault } if + 5 index /WhitePoint get + 6 index /BlackPoint .knownget not { bpdefault } if + 4 + { 4 -1 roll aload pop + % Stack: csdict crdict x y z pt pt pt px py pz + 3 copy 12 index /MatrixPQR .knownget { mmult3 } if 6 array astore + } + repeat + % Stack: csdict crdict x y z wps+ bps+ wpd+ bpd+ + 9 -1 roll pop % get rid of csdict + 7 4 roll + 7 index /TransformPQR get + { % Stack: crdict wps+ bps+ wpd+ bpd+ u v w proc + 8 copy exch pop exch pop + exec exch pop 4 -1 roll pop + } + forall + 7 3 roll pop pop pop pop % get rid of White/BlackPoints +DOCIEDEBUG { (After TransformPQR: ) print3 } if + 3 index /MatrixPQR .knownget { minvert3 mmult3 } if +DOCIEDEBUG { (After MatrixPQR': ) print3 } if + 3 index /MatrixLMN .knownget { mmult3 } if +DOCIEDEBUG { (After MatrixLMN Encode: ) print3 } if + 3 index /EncodeLMN .knownget { apply3 } if +DOCIEDEBUG { (After EncodeLMN Encode: ) print3 } if + 3 index /RangeLMN .knownget not { r3default } if restrict3 +DOCIEDEBUG { (After RangeLMN Encode: ) print3 } if + 3 index /MatrixABC .knownget { mmult3 } if +DOCIEDEBUG { (After MatrixABC Encode: ) print3 } if + 3 index /EncodeABC .knownget { apply3 } if +DOCIEDEBUG { (After EncodeABC Encode: ) print3 } if + 3 index /RangeABC .knownget not { r3default } if + 5 -1 roll /RenderTable .knownget + { % Stack: u v w ranges rtable + 5 1 roll rescale3 +DOCIEDEBUG { (Rescaled ABC: ) print3 } if + % Stack: rtable a b c + lookup3 + % Stack: rtable bytes + 0 1 3 index 4 get 1 sub + { % Stack: values rtable bytes c + 2 copy get 255 div + % Stack: values rtable bytes c v + 3 index 3 -1 roll 5 add get exec 3 1 roll + } + for pop pop +DOCIEDEBUG { (After RenderTableT: ) print ] dup == aload pop } if + } + { restrict3 +DOCIEDEBUG { (After RangeABC Encode: ) print3 } if + } + ifelse + } bind def + +% ---------------- Top level control ---------------- % + +/mapdict mark + /CIEBasedA { 1 get exch csciea currentcolorrendering 4 1 roll crmap } bind + /DeviceGray { pop /DefaultGray /ColorSpace findresource 1 get exch csciea currentcolorrendering 4 1 roll crmap } bind + /CIEBasedABC { 1 get 4 1 roll cscieabc currentcolorrendering 4 1 roll crmap } bind + /DeviceRGB { pop /DefaultRGB /ColorSpace findresource 1 get 4 1 roll cscieabc currentcolorrendering 4 1 roll crmap } bind +.dicttomark def +/mapcie % mapcie ... + % mapcie ... + { currentcolorspace dup 0 get //mapdict exch get exec + } bind def diff --git a/data/miniconda3/share/ghostscript/10.07.0/lib/font2pcl.ps b/data/miniconda3/share/ghostscript/10.07.0/lib/font2pcl.ps new file mode 100644 index 0000000000000000000000000000000000000000..1d1545362a2144e9eb89244586a7fe4d44439c2d --- /dev/null +++ b/data/miniconda3/share/ghostscript/10.07.0/lib/font2pcl.ps @@ -0,0 +1,606 @@ +% Copyright (C) 2001-2023 Artifex Software, Inc. +% All Rights Reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% Refer to licensing information at http://www.artifex.com or contact +% Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, +% CA 94129, USA, for further information. +% + +% font2pcl.ps +% Write out a font as a PCL bitmap font. +% This program must be run with -dNOSAFER, as it uses the in-memory image device +% which is unavailable with SAFER. + +/pcldict 60 dict def + +% Write out the current font as a PCL bitmap font. +% The current transformation matrix defines the font size and orientation. + +/WriteResolution? false def % true=use "resolution bound font" format, + % false=use older format + +/LJ4 false def % true=use LJ4 Typeface code + % false=use LJIIP/IID/IIIx Typeface code + +pcldict begin % internal procedures + +/findstring % findstring + { search { pop pop pop true } { pop false } ifelse + } def + + % Determine which set of keywords is present in a string. + % The last keyword set must be empty. + +/keysearch % keysearch + { 0 1 2 index length 1 sub + { 2 copy get true exch + { % Stack: + 4 index exch findstring and + } + forall + { 0 exch getinterval exit + } + if pop + } + for + exch pop length % invalid index if missing + } def + + % Determine the device height of a string in quarter-dots. + +/charheight % charheight + { gsave newpath 0 0 moveto false charpath + pathbbox exch pop exch sub exch pop 0 exch grestore + dtransform add abs 4 mul cvi + } def + + % Compute an integer version of the transformed FontBBox. + +/inflate % inflate + { dup 0 gt { ceiling } { floor } ifelse + } def +/ixbbox % - ixbbox + { /FontBBox load aload pop % might be executable or literal + 4 2 roll transform exch truncate cvi exch truncate cvi + 4 2 roll transform exch inflate cvi exch inflate cvi + } def + + % Determine the original font of a possibly transformed font. + % Since some badly behaved PostScript files construct transformed + % fonts "by hand", we can't just rely on the OrigFont pointers. + % Instead, if a font with the given name exists, and if its + % entries for FontType and UniqueID match those of the font we + % obtain by following the OrigFont chain, we use that font. + +/origfont + { { dup /OrigFont known not { exit } if /OrigFont get } loop + FontDirectory 1 index /FontName get .knownget + { % Stack: origfont namedfont + 1 index /FontType get 1 index /FontType get eq + { 1 index /UniqueID .knownget + { 1 index /UniqueID .knownget + { eq { exch } if } + { pop } + ifelse + } + if + } + if pop + } + if + } def + + % Determine the bounding box of the current device's image. + % Free variables: row, zerow. + +/devbbox % devbbox + { % Find top and bottom whitespace. + dup + { dup 0 eq { exit } if 1 sub + dup currentdevice exch row copyscanlines + zerow ne { 1 add exit } if + } + loop % ymax1 + 0 + { 2 copy eq { exit } if + dup currentdevice exch row copyscanlines + zerow ne { exit } if + 1 add + } + loop % ymin + exch + % Find left and right whitespace. + 3 index 0 + % Stack: rw rh ymin ymax1 xmin xmax1 + 3 index 1 4 index 1 sub + { currentdevice exch row copyscanlines .findzeros + exch 4 1 roll .max 3 1 roll .min exch + } + for % xmin xmax1 + % Special check: xmin > xmax1 if height = 0 + 2 copy gt { exch pop dup } if + 6 -2 roll pop pop + + } def + + % Write values on outfile. + + /w1 { 255 and outfile exch write } def + /w2 { dup -8 bitshift w1 w1 } def + /wbyte %