.\" -*- nroff -*- .\" .\" Copyright (c) 1993 Michael Haardt .\" (michael@moria.de) .\" Fri Apr 2 11:32:09 MET DST 1993 .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, .\" USA. .\" .\" Modified Sat Jul 24 15:12:05 1993 by Rik Faith .\" Modified Tue Aug 1 16:27 1995 by Jochen Karrer .\" .\" Modified Tue Oct 22 08:11:14 EDT 1996 by Eric S. Raymond .\" Modified Mon Feb 15 17:28:41 CET 1999 by Andries E. Brouwer .\" .TH IOPERM 2 "21/01/1993" "Linux" "Manual do Programador Linux" .SH NOME ioperm \- seleciona as permissões de entrada/saída na porta .SH SINOPSE .B #include /* for libc5 */ .br .B #include /* for glibc */ .sp .BI "int ioperm(unsigned long " from ", unsigned long " num ", int " turn_on ); .SH DESCRIÇÃO \fBIoperm\fP seleciona os bits de permissões de acesso para processo \fInum\fP iniciando a partir do endereço da porta \fBfrom\fP para o valor \fBturn_on\fP. O uso de \fBioperm\fP requer privilégio de superusuário. Somente a primeira porta de E/S 0x3ff pode ser expecificada desta maneira. Para mais portas, a função .B iopl pode ser usada. Permissões não têm herdeiros herdados em bifurcações, mas em execução elas tem. Isto é útil para fornecer permissões de acesso a porta para tarefas não privilegiadas. .SH "VALORES RETORNADOS" Em caso de sucesso, zero é retornado. Caso contrário, \-1 é retornado, e .I errno é selecionado adequadamente. .SH "DE ACORDO COM" \fBioperm\fP é específica do Linux e não deveria ser usadas em programas que pretendem ser portáveis. .SH "NOTAS" Libc5 trata esta como uma chamadaa de sistema e tem um tipo primitivo em .IR . Glibc1 não tem um tipo primitivo. Glibc2 tem um tipo primitivo em .I e também .IR . Evite o Segundo, ele só somente é disponível em i386. .SH "VEJA TAMBÉM" .BR iopl (2) .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWAndré L. Fassone Canova (tradução)\fR \&\fR\&\f(CWxxxxxxxxxxxxxxxxxxxxxxxxx (revisão)\fR