.\" -*- nroff -*- .\" .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu) .\" Portions from /usr/include/unistd.h are .\" Copyright (C) 1991, 1992 Free Software Foundation, Inc. .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" Modified Tue Oct 22 00:22:35 EDT 1996 by Eric S. Raymond .TH GETPAGESIZE 2 "23/07/1993" "Linux 0.99.11" "Manual do Programador Linux" .SH NOME getpagesize \- obtém o tamanho da página de sistema .SH SINOPSE .B #include .sp .B size_t getpagesize(void); .SH DESCRIÇÃO Retorna o número de bytes na página. Este é o tamanho da página do sistema, o qual não é necessariamente o mesmo do tamanho da página do hardware. .SH NOTAS .B getpagesize é implementado como um biblioteca de função no formato DLL 4.4.1. Dependendo de como é definida quando a biblioteca é compilada, esta função retorna .B EXEC_PAGESIZE (seleciona 4096 no Linux 0.99.11), .B NBPG (seleciona to 4096 no Linux 0.99.11), ou .B NBPC (não é definida no Linux 0.99.11 ou na bibliotecas DLL 4.4.1). .SH PROBLEMAS Dependendo da arquitetura e versão da bibliotecas, esta biblioteca pode chamar uma chamada de sistema ou não. Ela pode retornar um volor diferente a partir daquela da chamada de sistema. Por exemplo, no sun4 com libc5 esta rotina retorna EXEC_PAGESIZE, o qual é 8192, e não PAGE_SIZE, o qual é 4096, ou o resultado da chamada de sistema, que também é 4096. .SH "DE ACORDO COM" SVr4, 4.4BSD (esta chamama apareceu a primeira vez no BSD 4.2). .SH "VEJA TAMBÉM" .BR sbrk (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