Unix/Linux Go Back    

NetBSD 6.1.5 - man page for openpam_readline (netbsd section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

OPENPAM_READLINE(3)		   BSD Library Functions Manual 	      OPENPAM_READLINE(3)

     openpam_readline -- read a line from a file

     Pluggable Authentication Module Library (libpam, -lpam)

     #include <sys/types.h>
     #include <security/pam_appl.h>
     #include <security/openpam.h>

     char *
     openpam_readline(FILE *f, int *lineno, size_t *lenp);

     The openpam_readline function reads a line from a file, and returns it in a NUL-terminated
     buffer allocated with malloc(3).

     The openpam_readline function performs a certain amount of processing on the data it reads:

     o	 Comments (introduced by a hash sign) are stripped, as is leading and trailing white-

     o	 Any amount of linear whitespace is collapsed to a single space.

     o	 Blank lines are ignored.

     o	 If a line ends in a backslash, the backslash is stripped and the next line is appended.

     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).

     The openpam_readline function returns NULL on failure.

     free(3), malloc(3), pam(3)

     The openpam_readline function is an OpenPAM extension.

     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.

BSD					December 18, 2011				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 04:14 PM.