The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mknod - Perl extension for the mknod(2) call

SYNOPSIS

use Mknod;
# create a pipe 
mknod('hole', S_IFIFO|0644);
# or a device
mknod('ttyS0', S_IFCHR|0644, 4|64);

DESCRIPTION

It seemed to me this system call wasnt available to perl yet.
If I was just looking in the wrong place, please let me know:)

Returns 1 on ok and 0 on failure.

EXPORT

mknod()
S_IFREG
S_IFIFO
S_IFBLK
S_IFCHR

This behaviour can be prevented: use Mknod (); Mknod::mknod(...)

SEE ALSO

mknod(1)
mknod(2)

AUTHOR

Raoul Zwart, <rlzwart@cpan.org<gt>

COPYRIGHT AND LICENSE

Copyright 2003 by Raoul Zwart

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.