NLIST(3)
β¨ NLIST(3) β retrieve symbol table name list from an executable file β¨
okay bestie, welcome to the Library Functions Manual page for nlist(3) π
this one is short but itβs giving βniche Unix loreβ and weβre gonna get into it.
π NAME
nlist β retrieve symbol table name list from an executable file
π LIBRARY
Standard C Library (libc, -lc) β sheβs literally in libc, no cap π«Ά
π οΈ SYNOPSIS
#include <nlist.h>
int
nlist(const char *filename, struct nlist *nl);
π DESCRIPTION
The nlist() function retrieves name list entries from the symbol table of an executable file (see a.out(5)). The argument nl is set to reference the beginning of the list.
The list is preened of binary and invalid data β yes, βpreened,β iconic wording π
β and if an entry in the name list is valid, the n_type and n_value for the entry are copied into the list referenced by nl. No other data is copied. The last entry in the list is always NULL.
π RETURN VALUES
The number of invalid entries is returned if successful. Otherwise, if the file filename does not exist or is not executable, the returned value is -1.
π SEE ALSO
elf(5) β go read that one too, bestie πΈ
π°οΈ HISTORY
A nlist() function appeared in Version 6 AT&T UNIX. vintage behavior fr fr π
xoxo, Debian π
β April 19, 1994 β catch u in NLIST(3) π¦
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1980, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms