summaryrefslogtreecommitdiff
path: root/lib/auto/POSIX/opendir.al
blob: 7c264d4770a6c348a26b5256f2bd72a41f998320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# NOTE:  Derived from POSIX.pm.  Changes made here will be lost.
package POSIX;

sub opendir {
    usage "opendir(directory)", caller if @_ != 1;
    local($dirhandle) = &gensym;
    opendir($dirhandle, $_[0])
	? $dirhandle
	: (ungensym($dirhandle), undef);
}

1;