Documentation of kernel API
This commit is contained in:
parent
3d981098bb
commit
a582a0daa9
|
@ -331,4 +331,44 @@ Return value:
|
|||
This call moves the internal file pointer, the position in the specified file from
|
||||
which data can be read or to which data can be written. On success, this call returns
|
||||
STATUS_OK in C, and the new file position in X and Y. On error, C will contain a negative
|
||||
value indicating the specific error, and the new file position in X and Y.
|
||||
value indicating the specific error, and the new file position in X and Y.
|
||||
|
||||
## 0x13: Device I/O Control
|
||||
|
||||
This call performs driver-specific functions.
|
||||
|
||||
## 0x14: Delete File
|
||||
|
||||
Arguments:
|
||||
C: 0x14
|
||||
X: Bank of pathname
|
||||
Y: Address of pathname
|
||||
|
||||
Return Values:
|
||||
C: Status code
|
||||
|
||||
This call attempts to delete the file indicated by the given NULL-terminated string,
|
||||
which must contain a fully-qualified pathname. On success, this C will contain
|
||||
STATUS_OK. On failure, C will contain a negative number indicating the specific
|
||||
error.
|
||||
|
||||
## 0x15: Move File
|
||||
|
||||
Arguments:
|
||||
C: 0x15
|
||||
X: Bank of argument structure
|
||||
Y: Address of argument structure
|
||||
|
||||
Return Values:
|
||||
C: Status code
|
||||
|
||||
Argument Structure:
|
||||
|
||||
struct {
|
||||
char *src; // Fully-qualified source pathname.
|
||||
char *dest; // Fully-qualified destination pathname.
|
||||
};
|
||||
|
||||
This call attempts to move or rename the specified `source` file to `dest`. On success,
|
||||
C will contain STATUS_OK. On error, C will contain a negative value indicating the
|
||||
specific error.
|
||||
|
|
Loading…
Reference in New Issue