« blib/lib/Devel/AssertOS/OSFeatures/POSIXShellRedirection.pm
↑ Summary
blib/lib/Devel/AssertOS/Linux/Debian.pm »
| 1 | package Devel::AssertOS::Unix; | ||||||||||
| 2 | |||||||||||
| 3 | 6 | ▶ | use Devel::CheckOS; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 6 | ▶ | no warnings 'redefine'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 6 | our $VERSION = '1.6'; | |||||||||
| 9 | |||||||||||
| 10 | # list of OSes originally lifted from Module::Build 0.2808 | ||||||||||
| 11 | # | ||||||||||
| 12 | 14 | ▶ | sub matches { | ||||||||
|
Subroutine
matches: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 13 | 14 | return qw( | |||||||||
| 14 | AIX Android Bitrig BSDOS DGUX DragonflyBSD Dynix FreeBSD HPUX Hurd | ||||||||||
| 15 | Interix iOS Irix Linux MachTen MacOSX Minix MirOSBSD NetBSD OpenBSD OSF | ||||||||||
| 16 | QNX SCO Solaris SunOS SysVr4 SysVr5 Unicos MidnightBSD | ||||||||||
| 17 | ); | ||||||||||
| 18 | } | ||||||||||
| 19 | 12 | ▶ | sub os_is { Devel::CheckOS::os_is(matches()); } | ||||||||
|
Subroutine
os_is: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 20 | 6 | ▶ | Devel::CheckOS::die_unsupported() unless(os_is()); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | |||||||||||
| 22 | 1 | ▶ | sub expn { | ||||||||
|
Subroutine
expn: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 23 | 1 | join("\n", | |||||||||
| 24 | "The OS supports multiple concurrent users, devices are represented as", | ||||||||||
| 25 | "pseudo-files in /dev, there is a single root to the filesystem, users", | ||||||||||
| 26 | "are protected from interference from other users, and the API is POSIXy.", | ||||||||||
| 27 | "It should be reasonably easy to port a simple text-mode C program", | ||||||||||
| 28 | "between Unixes.\n", | ||||||||||
| 29 | "In some cases (eg Android, iOS) this might not be obvious or be exposed", | ||||||||||
| 30 | "to users." | ||||||||||
| 31 | ) | ||||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | =head1 COPYRIGHT and LICENCE | ||||||||||
| 35 | |||||||||||
| 36 | Copyright 2024 David Cantrell | ||||||||||
| 37 | |||||||||||
| 38 | This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively. | ||||||||||
| 39 | |||||||||||
| 40 | =cut | ||||||||||
| 41 | |||||||||||
| 42 | 6 | 1; | |||||||||