diff options
Diffstat (limited to 'lib/auto/POSIX/getgroups.al')
-rw-r--r-- | lib/auto/POSIX/getgroups.al | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/auto/POSIX/getgroups.al b/lib/auto/POSIX/getgroups.al new file mode 100644 index 0000000000..34ae5e87cd --- /dev/null +++ b/lib/auto/POSIX/getgroups.al @@ -0,0 +1,10 @@ +# NOTE: Derived from POSIX.pm. Changes made here will be lost. +package POSIX; + +sub getgroups { + usage "getgroups()", caller if @_ != 0; + local(%seen) = (); + grep(!%seen{$_}++, split(' ', $) )); +} + +1; |