Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 1999 16:34:30 -0400 (EDT)
From:      zhihuizhang <bf20761@binghamton.edu>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   malloc() in libc vs. sbrk()
Message-ID:  <Pine.SOL.L3.93.990413163014.20153C-100000@bingsun1>

next in thread | raw e-mail | index | archive | help

In file mkfs.c, I find that the program uses the following sequence of
system/library calls instead of a simple malloc() in libc to allocate
memory: 

getpagesize() -> getrlimit() -> sbrk() --> memset()

Is there any particular reason for doing this?

Any help is appreciated.

-------------------------------------------------- 
| Zhihui Zhang, http://cs.binghamton.edu/~zzhang |
| Dept. of Computer Science,  SUNY at Binghamton |
--------------------------------------------------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.L3.93.990413163014.20153C-100000>