home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man3 / nlist.3 < prev    next >
Encoding:
Text File  |  1975-06-26  |  987 b   |  48 lines

  1. .th NLIST III 6/12/72
  2. .sh NAME
  3. nlist \*- get entries from name list
  4. .sh SYNOPSIS
  5. .ft B
  6. .nf
  7. .i0
  8. nlist(filename, nl)
  9. char *filename;
  10. .dt
  11. struct {
  12.     char    name[8];
  13.     int    type;
  14.     int    value;
  15. } nl[ ];
  16. .fi
  17. .ft R
  18. .sh DESCRIPTION
  19. .it Nlist
  20. examines the name list in
  21. the given executable output file
  22. and selectively extracts a
  23. list of values.
  24. The name list consists of
  25. a list of 8-character names (null padded)
  26. each followed by two words.
  27. The list is terminated with a null name.
  28. Each name is looked up in the name list of
  29. the file.
  30. If the name is found, the type and value of the
  31. name are placed in the two words following
  32. the name.
  33. If the name is not found, the type entry is set to \*-1.
  34. .s3
  35. This subroutine is useful for
  36. examining the system name list kept in
  37. the file
  38. \fB/unix\fR.
  39. In this way programs can obtain system addresses
  40. that are up to date.
  41. .sh "SEE ALSO"
  42. a.out (V)
  43. .sh DIAGNOSTICS
  44. All
  45. type entries are set to \*-1 if the file cannot be found
  46. or if it is not a valid namelist.
  47. .sh BUGS
  48.