01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Pointer to a null terminated file path.<br />

Return Value<br />

Comments<br />

Success: Carry flag cleared, AX = file handle<br />

Failure: Carry flag set, AX = error code:<br />

AX=2: Path or file not found<br />

AX=4: Too many files open<br />

AX=5: Access denied<br />

In write mode, files are always opened in a non-sharing mode.<br />

The file system does not distinguish between file not found or invalid path. The error return value in both<br />

cases is 2.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Create New File Handle<br />

Close File Handle<br />

Get/Set File Attributes<br />

Get/Set File Date/Time<br />

Interrupt 0x21 service 0x3E: Close File Handle<br />

Parameters<br />

AH<br />

BX<br />

Closes an open file.<br />

0x3E<br />

File handle<br />

Return Value<br />

Success: Carry flag cleared<br />

Failure: Carry flag set, AX = error code:<br />

AX=6: file not open<br />

Related Topics<br />

Create New File Handle<br />

Open Existing File<br />

Get/Set File Date/Time<br />

Page 264 / 400

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

Saved successfully!

Ooh no, something went wrong!