GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  OPENPAM_READLINE (3)

NAME

openpam_readline - read a line from a file

CONTENTS

Library
Synopsis
Description
Return Values
See Also
Standards
Authors

LIBRARY


.Lb libpam

SYNOPSIS


.In sys/types.h
.In stdio.h
.In security/pam_appl.h
.In security/openpam.h char * openpam_readline FILE *f int *lineno size_t *lenp

DESCRIPTION


.Bf Sy 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.
.Ef

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:

  • Comments (introduced by a hash sign) are stripped.
  • Blank lines are ignored.
  • 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).

RETURN VALUES

The openpam_readline function returns NULL on failure.

SEE ALSO

openpam_readlinev(3), openpam_readword(3), pam(3)

STANDARDS

The openpam_readline function is an OpenPAM extension.

AUTHORS

The openpam_readline 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.

The OpenPAM library is maintained by
.An Dag-Erling Sm\(/orgrav Aq des@des.no .

Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.