home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!ukma!darwin.sura.net!sgiblab!ultra!corin!keving
- From: keving@corin.ultra.com (Kevin W. Gurney)
- Subject: Re: More malloc() questions.
- Message-ID: <1992Nov7.015108.259@ultra.com>
- Keywords: malloc, WorkShop
- Sender: news@ultra.com
- Reply-To: keving@corin.ultra.com (Kevin W. Gurney)
- Organization: Ultra Network Technologies, Inc.
- References: <1992Nov6.212516.336@den.mmc.com>
- Date: Sat, 7 Nov 92 01:51:08 GMT
- Lines: 47
-
- In article <1992Nov6.212516.336@den.mmc.com>, beck@enterprise.den.mmc.com (Fred R. Beck) writes:
-
- |>
- |> So, I have been wondering, what is, or where can I find the
- |> difference between the malloc()'s in:
- |>
- |> /usr/lib/libX11.a:256:malloc.o 264:usmalloc.o
- |> /usr/lib/libX11_s.a:260:malloc.o 268:usmalloc.o
- |> /usr/lib/libc.a:278:malloc.o
- |> /usr/lib/libc_G0.a:265:malloc.o
- |> /usr/lib/libc_s.a:308:malloc.o
- |> /usr/lib/libgen.a:78:zmalloc.o
- |> /usr/lib/libgen_G0.a:78:zmalloc.o
- |> /usr/lib/libmalloc.a:1:malloc.o
- |> /usr/lib/libmalloc_G0.a:1:malloc.o
- |> /usr/lib/libmalloc_cv.a:1:malloc.o
- |> /usr/lib/libmalloc_d.a:1:malloc.o
- |> /usr/lib/libmpc.a:33:malloc.o 68:usmalloc.o
- |> /usr/lib/libmpc_G0.a:33:malloc.o 68:usmalloc.o
- |>
- |> I understand that the lib[*]_s.a are "shared" libraries. I
- |> understand that the lib[*]_G0.a are graphics related routines.
-
- libfoo_G0.a consists of the same objects in libfoo.a, each compiled with
- ld(1)'s "-G 0" option. Nothing to do with graphics at all. See ld(1) for
- more details.
-
- |> I am confused on what the lib[*]_d.a is. Also, though I expect
- |> the libmpc[*].a to be MP libraries, where can I find info on the
- |> various mallocs() and thier differences?
-
- See malloc(3C) for the one in libc*.a and malloc(3X) for the one in
- libmalloc.a. A quick reading of malloc(3X) doesn't say what libmalloc_d.a
- is, but I think it's just a debugging version.
-
- I can't find any other man pages that describe "malloc", but then again,
- I don't have a whatis database built up. Try "man -k malloc" on your
- system.
-
- |>
- |> -ferd (It's friday...)
-
- --
- -----
-
- Kevin Gurney
- (keving@ultra.com)
-