Sam Vilain > Sys-Mknod > Sys::Mknod

Download:
Sys-Mknod-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Sys::Mknod - make special files

SYNOPSIS ^

  use Sys::Mknod;

  mknod ("/dev/filename", type, $major, $minor, $mode);
  mkfifo ("filename", $mode);

DESCRIPTION ^

mknod - creates special files. Why use system() when you can use syscall()?

$mode is the resultant file mode, and defaults to 0666. It does not override your umask.

SPECIAL FILE TYPES ^

$type must be one of:

m/^c/i

Creates a "Character Special" device.

m/^b/i

Creates a "Block Special" device"

AUTHOR ^

Sam Vilain, <sam@vilain.net>

SEE ALSO ^

perlfunc, mknod(2), mknod(1), mkfifo(1)

syntax highlighting: