The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

openpam_readline (3)
  • >> openpam_readline (3) ( FreeBSD man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    openpam_readline
    
     - read a line from a file
    
     
    

    LIBRARY

    Lb libpam
    
     
    

    SYNOPSIS

       #include <sys/types.h>
       #include <security/pam_appl.h>
       #include <security/openpam.h>
    char * openpam_readline (FILE *f int *lineno size_t *lenp);
     

    DESCRIPTION

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

    The function performs a certain amount of processing on the data it reads. Comments (introduced by a hash sign) are stripped, as is leading and trailing whitespace. Any amount of linear whitespace is collapsed to a single space. Blank lines are ignored. If a line ends in a backslash, the backslash is stripped and the next line is appended.

    If Fa lineno is not NULL the integer variable it points to is incremented every time a newline character is read.

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

    RETURN VALUES

    The function returns NULL on failure.  

    SEE ALSO

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

    STANDARDS

    The function is an OpenPAM extension.  

    AUTHORS

    The function and this manual page were developed for the Fx 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.


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    SEE ALSO
    STANDARDS
    AUTHORS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру