next up previous contents index
Next: 7.5.4 unlink: Unlink a Up: 7.5 oskit_dir: Directory Interface Previous: 7.5.2 create: Create a

7.5.3 link: Link a file into this directory

 

SYNOPSIS

#include <oskit/fs/dir.h>

oskit_error_t oskit_dir_link(oskit_dir_t *d, const char *name, oskit_file_t *file);

DIRECTION

client OS tex2html_wrap_inline32841 filesystem library

DESCRIPTION

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.

PARAMETERS

d
The directory to search.
name
The name for the new link.
file
The file to be linked.

RETURNS

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



University of Utah Flux Research Group