1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
.\" -*- nroff -*-
.\"
.\" Copyright (c) 1995 Michael Chastain (mec@duracef.shout.net), 22 July 1995.
.\"
.\" 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.
.\"
.TH MODIFY_LDT 2 "22/07/1995" "Linux 1.3.6" "Manual do Programador Linux"
.SH NOME
modify_ldt \- obtm ou seleciona ldt
.SH SINOPSE
.nf
.B #include <linux/ldt.h>
.B #include <linux/unistd.h>
.sp
.B _syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount )
.sp
.BI "int modify_ldt(int " "func" ", void *" "ptr" ", unsigned long " "bytecount" ");"
.fi
.SH DESCRIO
.B modify_ldt
l ou escreve a tabela local de descritores (ldt) para um processo.
A ldt uma maneira atravs do qual o gerenciamento da tabela de memria feito por processadores i386.
Para mais inforamaes sobre esta tabela, veja o guia do processador Intel 386.
.PP
Quando
.I func
0,
.B modify_ldt
l a ldt na memria apontando para o
.IR ptr .
O nmero de bytes lidos pe o menor de
.I bytecount
e o tamanho atual da ldt.
.PP
Quando
.I func
1,
.B modify_ldt
modifica uma entrada ldt.
.I ptr
aponta para uma estrutura
.I modify_ldt_ldt_s
e
.I bytecount
deve ser igual ao tamanho desta estrutura.
.SH "VALORES RETORNADOS"
Em caso de sucesso,
.B modify_ldt
retorna ou o nmero atual de bytes lidos (para leitura)
ou 0 (para escrita).
Em caso de falha,
.B modify_ldt
retorna \-1 e seleciona
.IR errno .
.SH ERROS
.TP
.B ENOSYS
.I func
no nem 0 nem 1.
.TP
.B EINVAL
.I ptr
0,
ou
.I func
1 e
.I bytecount
no igual ao tamanho da estrutura
.IR modify_ldt_ldt_s ,
ou
.I func
1 e a nova entrada ldt possui valores ilegais.
.TP
.B EFAULT
.I ptr
aponta para fora do espao de endereamento.
.SH "DE ACORDO COM"
Esta chamada especfica do Linux e no deveria ser usadas em programas que pretendem ser portveis.
.SH "VEJA TAMBM"
.BR vm86 (2)
.SH TRADUZIDO POR LDP-BR em 21/08/2000.
\&\fR\&\f(CWAndr L. Fassone Canova <lonelywolf@blv.com.br> (traduo)\fR
\&\fR\&\f(CWAdemar de Souza Reis Jr. <ademar@ademar.org> (reviso)\fR
|