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.

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

Notes<br />

See Also<br />

Hex Mnemonic Description<br />

0x2079 E_ECANTDECODEARGS Decode arguments error.<br />

0x207A E_EUNKNOWNHOST Unknown host name.<br />

0x207B E_EPROGNOTREGISTERED Remote program is not registered.<br />

0x207C E_UNKNOWNPROTO Unknown protocol.<br />

0x207D E_EINTR Call interrupted.<br />

0x207E ERPC All other RPC errors.<br />

1. On pHILE+ and MS-DOS volumes, write_f() operations are more efficient if<br />

bcount is an integral multiple of the block size and the L_ptr is positioned at a<br />

block boundary.<br />

2. On pHILE+ and MS-DOS volumes, if the requested data includes either entire<br />

blocks or a contiguous sequence of blocks and if such blocks are not already in<br />

the buffer cache, the pHILE+ file system manager writes these blocks directly<br />

from the user’s buffer (without going through the buffer cache).<br />

3. write_f() automatically positions the L_ptr for sequential write operations. If<br />

random writes are needed, the lseek_f() call should be used to reposition the<br />

L_ptr.<br />

4. Writing to system or directory files is not allowed.<br />

5. write_f() expands a file if space is needed to accommodate the new data.<br />

6. CD-ROM volumes are read-only.<br />

lseek_f, sync_vol, write_vol<br />

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