| @@ -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 |
45 | The | | 45 | The |
46 | .Fn nlist | | 46 | .Fn nlist |
47 | function | | 47 | function |
48 | retrieves name list entries from the symbol table of an | | 48 | retrieves name list entries from the symbol table of an |
49 | executable file. | | 49 | executable file. |
50 | (See | | 50 | (See |
51 | .Xr a.out 5 . ) | | 51 | .Xr elf 5 . ) |
52 | The argument | | 52 | The argument |
53 | .Fa \&nl | | 53 | .Fa \&nl |
54 | is set to reference the | | 54 | is set to reference the |
55 | beginning of the list. | | 55 | beginning of the list. |
56 | The list is preened of binary and invalid data; | | 56 | The list is preened of binary and invalid data; |
57 | if an entry in the | | 57 | if an entry in the |
58 | name list is valid, the | | 58 | name list is valid, the |
59 | .Fa n_type | | 59 | .Fa n_type |
60 | and | | 60 | and |
61 | .Fa n_value | | 61 | .Fa n_value |
62 | for the entry are copied into the list | | 62 | for the entry are copied into the list |
63 | referenced by | | 63 | referenced by |
64 | .Fa \&nl . | | 64 | .Fa \&nl . |