Wrap dynamic loading: dlopen, dlsym, dlclose, dlerror
#20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md §4.4 (at
669b2b3)dlopen,dlsym,dlclose,dlerrordlerror(3)is the same "returns a string and clears itself" trap asstrerror, which this library already has an answer for -- so the shape isknown and the work is applying it.
dlsymreturning NULL legitimately (a symbol whose value is NULL) is the otherhalf: the documented way to tell that from failure is to clear
dlerrorfirst andcheck it after, which is exactly the kind of ritual a wrapper should own.
Files:
src/,include/akstdlib.hFiled by Tachikoma (Claude Code, Opus 5, 1M context)