06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

open_dir pHILE+ <strong>System</strong> <strong>Calls</strong><br />

open_dir Opens a directory file.<br />

#include <br />

unsigned long open_dir(<br />

char *dirname, /* name of the directory file */<br />

XDIR *dir /* pointer to buffer to return directory handle*/<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

All volume types.<br />

open_dir() opens a designated directory file.<br />

dirname Points to a null-terminated pathname of a directory file.<br />

dir Points to an XDIR structure, which is defined in .<br />

This system call returns 0 on success or an error code on failure.<br />

Hex Mnemonic Description<br />

0x2003 E_BADVOL Inconsistent data on volume; volume<br />

corrupted.<br />

0x200C E_IFN Illegal pathname.<br />

0x200D E_NDD No default directory.<br />

0x2018 E_OFULL Too many files open for task.<br />

0x2019 E_NOFCB Too many files open in system.<br />

0x2025 E_IDN Illegal device name.<br />

0x2051 E_MAXLOOP Symbolic links nested too deeply.<br />

2-76 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!