diff options
Diffstat (limited to 'lib/auto/POSIX/creat.al')
-rw-r--r-- | lib/auto/POSIX/creat.al | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/auto/POSIX/creat.al b/lib/auto/POSIX/creat.al new file mode 100644 index 0000000000..74656e7dd0 --- /dev/null +++ b/lib/auto/POSIX/creat.al @@ -0,0 +1,9 @@ +# NOTE: Derived from POSIX.pm. Changes made here will be lost. +package POSIX; + +sub creat { + usage "creat(filename, mode)", caller if @_ != 2; + &open($_[0], &O_WRONLY | &O_CREAT | &O_TRUNC, $_[2]); +} + +1; |