#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);
client OS filesystem library
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.
- 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 0 on success, or an error code specified in <oskit/error.h>, on error.