.\" -*- 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 \- obtém ou seleciona ldt .SH SINOPSE .nf .B #include .B #include .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 DESCRIÇÃO .B modify_ldt lê ou escreve a tabela local de descritores (ldt) para um processo. A ldt é uma maneira através do qual o gerenciamento da tabela de memória é feito por processadores i386. Para mais inforamações sobre esta tabela, veja o guia do processador Intel 386. .PP Quando .I func é 0, .B modify_ldt lê a ldt na memória apontando para o .IR ptr . O número 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 número 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 não é nem 0 nem 1. .TP .B EINVAL .I ptr é 0, ou .I func é 1 e .I bytecount não é 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 espaço de endereçamento. .SH "DE ACORDO COM" Esta chamada é específica do Linux e não deveria ser usadas em programas que pretendem ser portáveis. .SH "VEJA TAMBÉM" .BR vm86 (2) .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWAndré L. Fassone Canova (tradução)\fR \&\fR\&\f(CWAdemar de Souza Reis Jr. (revisão)\fR