Module libif:kiface }}} - RMoX kernel utility procedures

RMoX kernel utility procedures. This file (libif/kiface.occ) contains various procedures that can be used by kernel and application code inside RMoX.

For dynamically loaded code: #INCLUDE "kiface_if.inc"

For statically linked code: #USE "libif/kiface"

Index

Declarations

kiface.occ:54Process rmox.stat

PROC rmox.stat (VAL []BYTE path, SHARED CT.KERNEL! to.kernel, RESULT STAT.BUF st.buf, RESULT INT result)

Does a 'stat' call on a particular file or directory.

Parameters:

VAL []BYTE path Path to stat.
SHARED CT.KERNEL! to.kernel Link to kernel.
RESULT STAT.BUF st.buf Structure where stat information is placed.
RESULT INT result Error status, st.buf only defined if ERR.SUCCESS.

kiface.occ:80Process rmox.mount.fs

PROC rmox.mount.fs (VAL []BYTE device, fstype, mountp, fsopt, SHARED CT.KERNEL! to.kernel, RESULT INT result)

Mount a file-system.

Parameters:

VAL []BYTE device Device to mount.
VAL []BYTE fstype File-system type.
VAL []BYTE mountp Mount-point.
VAL []BYTE fsopt File-system specific options.
SHARED CT.KERNEL! to.kernel Link to kernel.
RESULT INT result Error status (ERR.SUCCESS if mounted successfully).

kiface.occ:103Process rmox.open.file

PROC rmox.open.file (VAL []BYTE path, VAL INT mode, SHARED CT.KERNEL! to.kernel, RESULT CT.FILE! fcli, RESULT INT result)

Opens a file.

Parameters:

VAL []BYTE path Path to file.
VAL INT mode Mode to open with.
SHARED CT.KERNEL! to.kernel Link to kernel.
RESULT CT.FILE! fcli Returned file channel-end.
RESULT INT result Error status, fcli only defined if ERR.SUCCESS.

kiface.occ:127Process rmox.mkdir

PROC rmox.mkdir (VAL []BYTE path, VAL INT mode, SHARED CT.KERNEL! to.kernel, RESULT INT result)

Creates a directory.

Parameters:

VAL []BYTE path Path to directory to create.
VAL INT mode Mode to create directory with.
SHARED CT.KERNEL! to.kernel Link to kernel.
RESULT INT result Error status (ERR.SUCCESS if directory created successfully).