home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sgi / 16103 < prev    next >
Encoding:
Text File  |  1992-11-08  |  2.0 KB  |  61 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!ukma!darwin.sura.net!sgiblab!ultra!corin!keving
  3. From: keving@corin.ultra.com (Kevin W. Gurney)
  4. Subject: Re: More malloc() questions.
  5. Message-ID: <1992Nov7.015108.259@ultra.com>
  6. Keywords: malloc, WorkShop
  7. Sender: news@ultra.com
  8. Reply-To: keving@corin.ultra.com (Kevin W. Gurney)
  9. Organization: Ultra Network Technologies, Inc.
  10. References:  <1992Nov6.212516.336@den.mmc.com>
  11. Date: Sat, 7 Nov 92 01:51:08 GMT
  12. Lines: 47
  13.  
  14. In article <1992Nov6.212516.336@den.mmc.com>, beck@enterprise.den.mmc.com (Fred R. Beck) writes:
  15.  
  16. |> 
  17. |> So, I have been wondering, what is, or where can I find the 
  18. |> difference between the malloc()'s in:
  19. |> 
  20. |>     /usr/lib/libX11.a:256:malloc.o 264:usmalloc.o
  21. |>     /usr/lib/libX11_s.a:260:malloc.o 268:usmalloc.o
  22. |>     /usr/lib/libc.a:278:malloc.o
  23. |>     /usr/lib/libc_G0.a:265:malloc.o
  24. |>     /usr/lib/libc_s.a:308:malloc.o
  25. |>     /usr/lib/libgen.a:78:zmalloc.o
  26. |>     /usr/lib/libgen_G0.a:78:zmalloc.o
  27. |>     /usr/lib/libmalloc.a:1:malloc.o
  28. |>     /usr/lib/libmalloc_G0.a:1:malloc.o
  29. |>     /usr/lib/libmalloc_cv.a:1:malloc.o
  30. |>     /usr/lib/libmalloc_d.a:1:malloc.o
  31. |>     /usr/lib/libmpc.a:33:malloc.o 68:usmalloc.o
  32. |>     /usr/lib/libmpc_G0.a:33:malloc.o 68:usmalloc.o
  33. |> 
  34. |> I understand that the lib[*]_s.a are "shared" libraries.  I
  35. |> understand that the lib[*]_G0.a are graphics related routines.
  36.  
  37. libfoo_G0.a consists of the same objects in libfoo.a, each compiled with 
  38. ld(1)'s "-G 0" option.  Nothing to do with graphics at all.  See ld(1) for
  39. more details.
  40.  
  41. |> I am confused on what the lib[*]_d.a is.  Also, though I expect
  42. |> the libmpc[*].a to be MP libraries, where can I find info on the
  43. |> various mallocs() and thier differences?
  44.  
  45. See malloc(3C) for the one in libc*.a and malloc(3X) for the one in
  46. libmalloc.a.  A quick reading of malloc(3X) doesn't say what libmalloc_d.a
  47. is, but I think it's just a debugging version.
  48.  
  49. I can't find any other man pages that describe "malloc", but then again,
  50. I don't have a whatis database built up.  Try "man -k malloc" on your
  51. system.
  52.  
  53. |> 
  54. |> -ferd  (It's friday...)
  55.  
  56. -- 
  57. -----
  58.  
  59. Kevin Gurney
  60. (keving@ultra.com)
  61.