summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-11-02 11:30:42 +0000
committerphk <phk@FreeBSD.org>2001-11-02 11:30:42 +0000
commitd88ecc48a577b7e835d80ab8eec6b5c867a10ce6 (patch)
treee330a16922ad9499c600cbf21cdb25e9e44f1325 /lib
parent71aecf4a81e9b4118714d448f0af015e292ab6f4 (diff)
downloadFreeBSD-src-d88ecc48a577b7e835d80ab8eec6b5c867a10ce6.zip
FreeBSD-src-d88ecc48a577b7e835d80ab8eec6b5c867a10ce6.tar.gz
Add notice about early use from malloc.c forbidding malloc use from
this function.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getpagesize.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/gen/getpagesize.c b/lib/libc/gen/getpagesize.c
index 556ff9e..0087feb 100644
--- a/lib/libc/gen/getpagesize.c
+++ b/lib/libc/gen/getpagesize.c
@@ -29,6 +29,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
#if defined(LIBC_SCCS) && !defined(lint)
@@ -41,6 +43,9 @@ static char sccsid[] = "@(#)getpagesize.c 8.1 (Berkeley) 6/4/93";
/*
* This is unlikely to change over the running time of any
* program, so we cache the result to save some syscalls.
+ *
+ * NB: This function may be called from malloc(3) at initialization
+ * NB: so must not result in a malloc(3) related call!
*/
int
OpenPOWER on IntegriCloud