Mon Mar 30 20:37:04 2020 UTC ()
Mention elf rather than a.out some more.

(Also, inspired by freebsd, which removed the non-elf support)


(maya)
diff -r1.12 -r1.13 src/lib/libc/gen/nlist.3

cvs diff -r1.12 -r1.13 src/lib/libc/gen/nlist.3 (expand / switch to unified diff)

--- src/lib/libc/gen/nlist.3 2020/03/30 20:35:12 1.12
+++ src/lib/libc/gen/nlist.3 2020/03/30 20:37:03 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: nlist.3,v 1.12 2020/03/30 20:35:12 maya Exp $ 1.\" $NetBSD: nlist.3,v 1.13 2020/03/30 20:37:03 maya Exp $
2.\" 2.\"
3.\" Copyright (c) 1980, 1991, 1993 3.\" Copyright (c) 1980, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 3. Neither the name of the University nor the names of its contributors 14.\" 3. Neither the name of the University nor the names of its contributors
@@ -38,27 +38,27 @@ @@ -38,27 +38,27 @@
38.Sh LIBRARY 38.Sh LIBRARY
39.Lb libc 39.Lb libc
40.Sh SYNOPSIS 40.Sh SYNOPSIS
41.In nlist.h 41.In nlist.h
42.Ft int 42.Ft int
43.Fn nlist "const char *filename" "struct nlist *nl" 43.Fn nlist "const char *filename" "struct nlist *nl"
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The 45The
46.Fn nlist 46.Fn nlist
47function 47function
48retrieves name list entries from the symbol table of an 48retrieves name list entries from the symbol table of an
49executable file. 49executable file.
50(See 50(See
51.Xr a.out 5 . ) 51.Xr elf 5 . )
52The argument 52The argument
53.Fa \&nl 53.Fa \&nl
54is set to reference the 54is set to reference the
55beginning of the list. 55beginning of the list.
56The list is preened of binary and invalid data; 56The list is preened of binary and invalid data;
57if an entry in the 57if an entry in the
58name list is valid, the 58name list is valid, the
59.Fa n_type 59.Fa n_type
60and 60and
61.Fa n_value 61.Fa n_value
62for the entry are copied into the list 62for the entry are copied into the list
63referenced by 63referenced by
64.Fa \&nl . 64.Fa \&nl .