.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" 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 .\" ======================================================================== .\" .IX Title "Perl::osnames 3pm" .TH Perl::osnames 3pm "2022-10-16" "perl v5.34.0" "User Contributed Perl Documentation" .\" 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" Perl::osnames \- List possible $^O ($OSNAME) values, with description .SH "VERSION" .IX Header "VERSION" This document describes version 0.122 of Perl::osnames (from Perl distribution Perl-osnames), released on 2020\-02\-13. .SH "DESCRIPTION" .IX Header "DESCRIPTION" This package contains \f(CW$data\fR which lists possible values of \f(CW$^O\fR along with description for each. It also provides some helper functions. .SS "Tags" .IX Subsection "Tags" .IP "\(bu" 4 unix .Sp Unix-like operating systems. This currently excludes beos/haiku. .IP "\(bu" 4 bsd .Sp BSD-derived Unix operating systems. .IP "\(bu" 4 sysv .Sp SysV-derived Unix operating systems. .IP "\(bu" 4 posix .Sp For POSIX-compliant OSes, including fully\-, mostly\-, and largely-compliant ones (source: ). .Sp From what I can gather, dec_osf is not \s-1POSIX\s0 compliant, although there is a posix package for it. .SH "VARIABLES" .IX Header "VARIABLES" None are exported by default, but they are exportable. .ie n .SS "$data" .el .SS "\f(CW$data\fP" .IX Subsection "$data" An arrayref of records (arrayrefs), each structured as: .PP .Vb 1 \& [$name, \e@tags, $description] .Ve .ie n .SS "$RE_OS_IS_KNOWN" .el .SS "\f(CW$RE_OS_IS_KNOWN\fP" .IX Subsection "$RE_OS_IS_KNOWN" Current value: .PP .Vb 1 \& qr/\eA(?:aix|amigaos|android|bsdos|beos|bitrig|dgux|dos|dynixptx|cygwin|darwin|dec_osf|dragonfly|freebsd|gnu|gnukfreebsd|haiku|hpux|interix|iphoneos|irix|linux|MacOS|machten|midnightbsd|minix|mirbsd|mpeix|msys|MSWin32|netbsd|next|nto|openbsd|os2|os390|os400|posix\-bc|qnx|riscos|sco|sco_sv|solaris|sunos|svr4|svr5|unicos|unicosmk|vmesa|VMS|vos)\ez/ .Ve .ie n .SS "$RE_OS_IS_POSIX" .el .SS "\f(CW$RE_OS_IS_POSIX\fP" .IX Subsection "$RE_OS_IS_POSIX" Current value: .PP .Vb 1 \& qr/\eA(?:aix|beos|cygwin|darwin|dragonfly|freebsd|gnu|gnukfreebsd|haiku|hpux|interix|iphoneos|irix|linux|midnightbsd|minix|mirbsd|msys|netbsd|openbsd|sco|sco_sv|solaris|sunos|svr4|svr5|unicos|unicosmk)\ez/ .Ve .ie n .SS "$RE_OS_IS_UNIX" .el .SS "\f(CW$RE_OS_IS_UNIX\fP" .IX Subsection "$RE_OS_IS_UNIX" Current value: .PP .Vb 1 \& qr/\eA(?:aix|android|bsdos|bitrig|dgux|dynixptx|cygwin|darwin|dragonfly|freebsd|gnu|gnukfreebsd|hpux|interix|iphoneos|irix|linux|machten|midnightbsd|mirbsd|msys|netbsd|next|nto|openbsd|qnx|sco|sco_sv|solaris|sunos|svr4|svr5|unicos|unicosmk)\ez/ .Ve .SH "FUNCTIONS" .IX Header "FUNCTIONS" None are exported by default, but they are exportable. .ie n .SS "is_posix([ $os ]) => bool" .el .SS "is_posix([ \f(CW$os\fP ]) => bool" .IX Subsection "is_posix([ $os ]) => bool" Check whether \f(CW$os\fR (defaults to \f(CW$^O\fR if not specified) is \s-1POSIX\s0 (checked by the existence of \f(CW\*(C`posix\*(C'\fR tag on the \s-1OS\s0's record in \f(CW$data\fR). Will return 0, 1, or undef if \f(CW$os\fR is unknown. .ie n .SS "is_unix([ $os ]) => bool" .el .SS "is_unix([ \f(CW$os\fP ]) => bool" .IX Subsection "is_unix([ $os ]) => bool" Check whether \f(CW$os\fR (defaults to \f(CW$^O\fR if not specified) is Unix (checked by the existence of \f(CW\*(C`unix\*(C'\fR tag on the \s-1OS\s0's record in \f(CW$data\fR). Will return 0, 1, or undef if \f(CW$os\fR is unknown. .SH "HOMEPAGE" .IX Header "HOMEPAGE" Please visit the project's homepage at . .SH "SOURCE" .IX Header "SOURCE" Source repository is at . .SH "BUGS" .IX Header "BUGS" Please report any bugs or feature requests on the bugtracker website .PP When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. .SH "SEE ALSO" .IX Header "SEE ALSO" perlvar .PP Config .PP Perl::OSType, a core module. You should probably use this module instead. Currently the difference between this module and Perl::osnames: 1) Perl::osnames currently doesn't list beos/haiku as Unix, but \s-1POSIX\s0; 2) Perl::osnames provides more tags (like sysv, bsd, posix) and description. .PP Devel::Platform::Info .PP The output of \f(CW\*(C`perl \-V\*(C'\fR .PP App::osnames, the original reason for Perl::osnames. With this \s-1CLI\s0 tool you can grep \s-1OS\s0 names by name, tag, or description, e.g. \f(CW\*(C`osnames solaris\*(C'\fR or \&\f(CW\*(C`osnames posix\*(C'\fR. .SH "AUTHOR" .IX Header "AUTHOR" perlancar .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2020, 2014 by perlancar@cpan.org. .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.