From: Ulrich Drepper Date: Wed, 23 Feb 2000 05:41:05 +0000 (+0000) Subject: (getpagesize): Declare as const function. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c5a52899db93f1040907cc4ffa35c242b914fa0;p=thirdparty%2Fglibc.git (getpagesize): Declare as const function. --- diff --git a/posix/unistd.h b/posix/unistd.h index 31ef90e2153..a9f9e417981 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc. +/* Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -809,8 +809,8 @@ extern int sync __P ((void)); /* Return the number of bytes in a page. This is the system's page size, which is not necessarily the same as the hardware page size. */ -extern int __getpagesize __P ((void)); -extern int getpagesize __P ((void)); +extern int __getpagesize __P ((void)) __attribute__ ((__const__)); +extern int getpagesize __P ((void)) __attribute__ ((__const__)); /* Truncate FILE to LENGTH bytes. */