Sign in Join
FPDoc Onlineexperiment

fpIOperm function

In unit x86

Set permission on IO ports.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.