OPENPAM_FREE_ENVLIST(3)
β¨ OPENPAM_FREE_ENVLIST(3) β¨
okay so bestie, we're in the Library Functions Manual today and the star of the show is openpam_free_envlist β say it with me, it's giving "cleanup era" π
πΈ NAME πΈ
openpam_free_envlist β free an environment list, no cap π§Ή
π SYNOPSIS π
#include <sys/types.h>
#include <security/pam_appl.h>
#include <security/openpam.h>
void
openpam_free_envlist(char **envlist);
look at those includes, so tidy, so iconic β¨
π¦ DESCRIPTION π¦
okay so openpam_free_envlist() is a convenience function β aka it does the annoying stuff for you so you don't have to β and what it does is free all the environment variables in an environment list, and then the list itself too. the whole thing. gone. bye π
and like, who is this for? it is suitable for freeing the return value from pam_getenvlist(3). that's the vibe check: you got a list back from there, you hand it to this function, everyone goes home happy and leak-free. main character energy fr fr π₯
π SEE ALSO π
go read those too, iykyk π
β STANDARDS β
the openpam_free_envlist() function is an OpenPAM extension. so like, it's not in the base standard, it's an OpenPAM thing β important detail, don't forget it bestie π
π AUTHORS π
the openpam_free_envlist() function and this manual page were developed by Dag-Erling SmΓΈrgrav <des@des.no>. we stan a legend who writes the code and the docs π«Ά
ok that's the whole page, nothing skipped, every detail accounted for, periodt π
and finally, the cute little sign-off: this beauty comes from Debian, dated June 27, 2023, and it lives at OPENPAM_FREE_ENVLIST(3) β drink water, free your envlists, and slay ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- nixos 26.05: openpam 20230627
- nixpkgs unstable: openpam 20230627
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms