#include <oskit/fs/dir.h>oskit_error_t oskit_dir_link(oskit_dir_t *d, const char *name, oskit_file_t *file);
client OS filesystem library
This method adds an entry for file into this directory, using name for the new directory entry. Typically, this is only supported if file resides in the same filesystem as d.file may not be a symbolic link.
The name may only be a single component; multi-component lookups are not supported.
- d
- The directory to search.
- name
- The name for the new link.
- file
- The file to be linked.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.