fpIOperm

Set permission on IO ports

Declaration

Source position: x86.pp line 45

  function fpIOperm(From: Cardinal; Num: Cardinal; Value: cint) : cint;

Description

FpIOperm sets permissions on Num ports starting with port From to Value. The function returns zero if the call was successful, a nonzero value otherwise.

Note:

  • This works ONLY as root.
  • Only the first 0x03ff ports can be set.
  • When doing a FpFork , the permissions are reset. When doing a FpExecVE they are kept.

Errors

Extended error information can be retrieved with FpGetErrno