mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 21:49:18 +02:00
+ IOPerm call added
This commit is contained in:
parent
db44daeebe
commit
b4cdf24729
@ -756,17 +756,16 @@ For an example, see \seep{Nice}.
|
|||||||
{\var{IOperm}
|
{\var{IOperm}
|
||||||
sets permissions on \var{Num} ports starting with port \var{From} to
|
sets permissions on \var{Num} ports starting with port \var{From} to
|
||||||
\var{Value}. The function returns \var{True} if the call was successfull,
|
\var{Value}. The function returns \var{True} if the call was successfull,
|
||||||
\var{False} otherwise. \var{Value} is as in \var{}
|
\var{False} otherwise.
|
||||||
|
|
||||||
{\em Remark:}
|
{\em Remark:}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item This works ONLY as root.
|
\item This works ONLY as root.
|
||||||
\item Only the first \var{$03ff} ports can be set.
|
\item Only the first \var{0x03ff} ports can be set.
|
||||||
\item When doing a \seef{Fork}, the permissions are reset. When doing a
|
\item When doing a \seef{Fork}, the permissions are reset. When doing a
|
||||||
\seep{Execve} they are kept.
|
\seep{Execve} they are kept.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
}
|
}{Errors are returned in \var{LinuxError}}{\seem{ioperm}{2}}
|
||||||
{Errors are returned in \var{LinuxError}}{\seem{ioperm}{2}}
|
|
||||||
|
|
||||||
\function{Link}{(OldPath,NewPath : pathstr)}{Boolean}
|
\function{Link}{(OldPath,NewPath : pathstr)}{Boolean}
|
||||||
{\var{Link} makes \var{NewPath} point to the same file als \var{OldPath}. The two files
|
{\var{Link} makes \var{NewPath} point to the same file als \var{OldPath}. The two files
|
||||||
|
Loading…
Reference in New Issue
Block a user