nlist(3bsd)
π nlist(3bsd) β LOCAL π
okay bestie, welcome to the nlist(3bsd) page, filed under LOCAL. pull up a chair, we're doing symbol tables today and honestly? it's giving main character energy. π
β¨ NAME β¨
nlist β retrieve symbol table name list from an executable file π¦
π LIBRARY π
Utility functions from BSD systems (libbsd, -lbsd)
πΈ SYNOPSIS πΈ
#include <nlist.h>
(See libbsd(7) for include usage.)
int
nlist(const char *filename, struct nlist *nl);
π DESCRIPTION π
so like, the nlist() function retrieves name list entries from the symbol table of an executable file (peep elf(5) if you wanna know more about that whole situation π
). the argument nl gets set to reference the beginning of the list, periodt.
and here's the tea: the list is preened of binary and invalid data. so if an entry in the name list is valid, the n_type and n_value for that entry get copied into the list referenced by nl. literally just those two. no other data is copied, bestie, that's the whole vibe. π
and the last entry in the list is always NULL. always. every time. iconic behaviour fr fr. β
π«Ά RETURN VALUES π«Ά
if it all goes well? you get back the number of invalid entries. slay.
but if the file filename does not exist or is not executable, or the nl pointer is NULL β the returned value is -1. π no cap, that's the deal.
π₯ SEE ALSO π₯
π¦ HISTORY π¦
a nlist() function appeared in Version 6 AT&T UNIX. ancient. legendary. the blueprint. π
and that's the whole page babes!! this little beauty comes to you courtesy of Debian, dated April 19, 1994, and it's nlist(3bsd) β go forth and nlist responsibly πβ¨π
π¦ where this page comes from
- alpine 3.22: libbsd-doc 0.12.2-r0 Β· BSD-3-Clause
- alpine 3.23: libbsd-doc 0.12.2-r0 Β· BSD-3-Clause
- alpine 3.24: libbsd-doc 0.12.2-r0 Β· BSD-3-Clause
- arch rolling: libbsd 0.12.2-2 Β· custom
- debian bookworm: libbsd-dev 0.11.7-2
- debian trixie: libbsd-dev 0.12.2-2
- epel 10: libbsd-devel 0.12.2-4.el10_0 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- epel 9: libbsd-devel 0.12.2-1.el9 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 43: libbsd-devel 0.12.2-6.fc43 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 43: libbsd-devel 0.12.2-6.fc43 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 44: libbsd-devel 0.12.2-7.fc44 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- fedora 44: libbsd-devel 0.12.2-7.fc44 Β· Beerware AND BSD-2-Clause AND BSD-3-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain
- nixos 26.05: libbsd 0.12.2
- opensuse-leap 16.0: libbsd-devel 0.11.7-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libbsd-devel 0.11.7-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libbsd-devel 0.11.7-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libbsd-devel 0.11.7-160000.3.2 Β· BSD-3-Clause
- ubuntu noble: libbsd-dev 0.12.1-1build1
- ubuntu noble: libbsd-dev 0.12.1-1build1.1
- ubuntu questing: libbsd-dev 0.12.2-2build1
- ubuntu resolute: libbsd-dev 0.12.2-2build2
- ubuntu stonking: libbsd-dev 0.12.2-3
- Copyright (c) 1980, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms