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

7.5.1 lookup: Look up a file in this directory

 

SYNOPSIS

#include <oskit/fs/dir.h>

oskit_error_t oskit_dir_lookup(oskit_dir_t *d, const char *name, [out] oskit_file_t **out_file);

DIRECTION

client OS tex2html_wrap_inline32841 filesystem library

DESCRIPTION

This method returns the oskit_file COM interface for the file named by name in this directory. The name may only be a single component; multi-component lookups are not supported. If the file is a symbolic link, then out_file will reference the symbolic link itself.

PARAMETERS

d
The directory to search.
name
The name of the file.
out_file
The oskit_file COM interface for the file.

RETURNS

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



University of Utah Flux Research Group