next up previous contents index
Next: 7.5.10 symlink: Create a Up: 7.5 oskit_dir: Directory Interface Previous: 7.5.8 getdirentries: Read one

7.5.9 mknod: Create a special file node in this directory

 

SYNOPSIS

#include <oskit/fs/dir.h>

oskit_error_t oskit_dir_mknod(oskit_dir_t *d, const char *name, oskit_mode_t mode, oskit_dev_t dev);

DIRECTION

client OS tex2html_wrap_inline32841 filesystem library

DESCRIPTION

This method creates a device special file in this directory, with the specified name and file mode, and with the specified device number dev. The device number is opaque to the filesystem library.

The name may only be a single component; multi-component lookups are not supported.

PARAMETERS

d
The directory in which to create the node
name
The name of the new node.
mode
The mode for the new node.
dev
The device number for the new node.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group