OPENPAM_READLINE(3)
okay so this is the OPENPAM_READLINE(3) page from the Library Functions Manual β and yes, bestie, weβre reading a line from a file π
πΈ NAME πΈ
openpam_readline β read a line from a file, literally thatβs the whole vibe β¨
π¦ SYNOPSIS π¦
#include <sys/types.h>
#include <stdio.h>
#include <security/pam_appl.h>
#include <security/openpam.h>
char *
openpam_readline(FILE *f, int *lineno, size_t *lenp);
π DESCRIPTION π
π¨ warning, bestie: this function is deprecated and may be removed in a future release without further warning. The openpam_readlinev() function may be used to achieve similar results. no cap, keep that in mind π
The openpam_readline() function reads a line from a file, and returns it in a NUL-terminated buffer allocated with malloc(3). iconic behavior, honestly π«Ά
The openpam_readline() function performs a certain amount of processing on the data it reads:
- Comments (introduced by a hash sign) are stripped. bye-bye comment text π
- Blank lines are ignored. not even acknowledged π
- If a line ends in a backslash, the backslash is stripped and the next line is appended. the backslash ate and left no crumbs π
If lineno is not NULL, the integer variable it points to is incremented every time a newline character is read.
If lenp is not NULL, the length of the line (not including the terminating NUL character) is stored in the variable it points to.
The caller is responsible for releasing the returned buffer by passing it to free(3). yes, that means you, bestie β clean up after yourself π§
β RETURN VALUES β
The openpam_readline() function returns NULL on failure. sad girl hours π
π SEE ALSO π
π STANDARDS π
The openpam_readline() function is an OpenPAM extension. itβs giving special edition π
π AUTHORS π
so the lore is: the openpam_readline() function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (βCBOSSβ), as part of the DARPA CHATS research program.
The OpenPAM library is maintained by Dag-Erling SmΓΈrgrav <des@des.no>. crown-holding icon energy π
π thatβs the whole page, bestie β source/version: Debian, date: June 27, 2023, manual page: OPENPAM_READLINE(3). periodt π
β¨
π¦ 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