.\" Hey Emacs! This file is -*- nroff -*- source. .\" .\" 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 Wed Jul 21 19:52:58 1993 by Rik Faith .\" Modified Sun Aug 21 17:40:38 1994 by Rik Faith .\" .TH BRK 2 "21 Julho 1993" "Linux 0.99.11" "Manual do Programador Linux" .SH NOME brk, sbrk \- altera o tamanho do segmento de dados .SH SINOPSE .B #include .sp .BI "int brk(void *" end_data_segment ); .sp .BI "void *sbrk(ptrdiff_t " increment ); .SH DESCRIÇÃO .B brk define o fim do segmento de dados para o valor especificado por .IR end_data_segment . .I end_datasegment deve ser maior que o fim do segmento de texto e este deve estar 16kB antes do fim da pilha. .B sbrk incrementa o espaço de dados do programa em .I increment bytes. .B sbrk não é uma chamada ao sistema, é somente uma biblioteca C empacotada. .SH "VALOR DE RETORNO" Em caso de sucesso .B brk retorna zero, e .B sbrk retorna um ponteiro para o inicio da nova área. Em caso de erro, \-1 é retornado, e .I errno é definido para .BR ENOMEM . .SH "CONFORMIDADE" BSD 4.3 .BR brk " e " sbrk não são definidos no C padrão e foram deliberadamente excluidos do padrão POSIX.1 (veja paragrafos B.1.1.1.3 e B.8.3.3). .SH "VEJA TAMBÉM" .BR execve (2), .BR getrlimit (2), .BR malloc (3) .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWMarcelo D. Beckmann (tradução)\fR \&\fR\&\f(CWFábio Henrique F. Silva (revisão)\fR