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.

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

symlink_f Creates a symbolic link to a file.<br />

unsigned long symlink_f(<br />

char *name1, /* a string used in creating the<br />

* symbolic link */<br />

char *name2 /* the name of the file to be created */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

NFS volumes.<br />

symlink_f() creates a symbolic link name1 in the file name2. The files do not need<br />

to be on the same volume.<br />

The file to which the symbolic link points is used when an open_f() is performed<br />

on the link. A stat_f() performed on a symbolic link returns the linked-to file<br />

(whereas lstat_f() returns information about the link itself). read_link() can<br />

be used to read the contents of a symbolic link.<br />

name1 Points to the null-terminated pathname of the symbolic link.<br />

name2 Points to the null-terminated pathname of the file.<br />

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

Hex Mnemonic Description<br />

0x2001 E_FUNC Invalid function number.<br />

0x200C E_IFN Illegal pathname.<br />

0x200D E_NDD No default directory.<br />

2-112 <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!