21.01.2014 Views

Lab 3 - IDA

Lab 3 - IDA

Lab 3 - IDA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Lab</strong> 4: Additional System Calls<br />

• void seek (int fd, unsigned position)<br />

– Sets the current seek position of fd<br />

• unsigned tell (int fd)<br />

– Get the seek position of fd.<br />

• int filesize (int fd)<br />

– Returns the file size of the open file fd.<br />

• bool remove (const char *file_name)<br />

– Removes the file file_name.<br />

– Open files are not deleted from the file system before they are<br />

closed.<br />

37

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

Saved successfully!

Ooh no, something went wrong!