home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v22 / 054 / text0000.txt < prev   
Encoding:
Text File  |  1991-03-07  |  1.9 KB  |  50 lines

  1. Submitted-by: schnoebe@convex.com (Eric Schnoebelen)
  2.  
  3. jgd@csd4.csd.uwm.edu writes in <16397@cs.utexas.edu>:
  4. -Submitted-by: jgd@csd4.csd.uwm.edu (John G Dobnick)
  5. -
  6. -Our CONVEX system, which claims POSIX compliance, has a system call
  7. -that returns "system configuration" information.
  8.  
  9.     First off, getsysinfo(2) is not a POSIX standard routine.  It
  10. is an extension to UNIX that Convex has supported for quite some time.
  11. It is not available in the conforming modes of the C development
  12. environment (compiler and libraries), only the extended/backwards
  13. compatible modes.
  14.  
  15.     The features of getsysinfo(2) are available as part of the
  16. uname(2) call as well, as an extension to the standard uname
  17. structure.
  18.  
  19. -One item glaringly missing is the size of physical memory installed.
  20. -The writeup for the function claims it returns "system information", not
  21. -"CPU information".   In my book, a "system" includes processors AND
  22. -memory.
  23. -
  24. -My question, to those of you who know what happened in the
  25. -standardization process is threefold:
  26. -
  27. -    a) Was memory size even considered for inclusion in the
  28. -       'getsysinfo' (or whatever it's really named) call.
  29.  
  30.     According to the standard, the only things that have to be
  31. returned by uname(2) are the system (implementation) name, the node
  32. (host) name, the release name, the version name, and the hardware type
  33. name. See page 77, section 4.4 of the little green book.
  34.  
  35. -    c) How does one interrogate the system, in a 'standard' way,
  36. -       to determine physical memory size?   (My initial guess is
  37. -       that the answer will be "You don't.")
  38.  
  39.     Correct!.  For the Convexen, you  might try contacting the TAC,
  40. and asking them. I seem to remember a little program that determines
  41. just that floating around.
  42.  
  43. --
  44. Eric Schnoebelen        eric@cirr.com        schnoebe@convex.com
  45.     Biology is the only science in which multiplication means the
  46.             same thing as division.
  47.  
  48. Volume-Number: Volume 22, Number 54
  49.  
  50.