1.\" $NetBSD: pam_putenv.3,v 1.4 2013/12/27 20:10:20 christos Exp $ 2.\" 3.\" Generated from pam_putenv.c by gendoc.pl 4.\" Id: pam_putenv.c 648 2013-03-05 17:54:27Z des 5.Dd September 7, 2013 6.Dt PAM_PUTENV 3 7.Os 8.Sh NAME 9.Nm pam_putenv 10.Nd set the value of an environment variable 11.Sh LIBRARY 12.Lb libpam 13.Sh SYNOPSIS 14.In sys/types.h 15.In security/pam_appl.h 16.Ft "int" 17.Fn pam_putenv "pam_handle_t *pamh" "const char *namevalue" 18.Sh DESCRIPTION 19The 20.Fn pam_putenv 21function sets an environment variable. 22Its semantics are similar to those of 23.Xr putenv 3 , 24but it modifies the PAM 25context's environment list instead of the application's. 26.Sh RETURN VALUES 27The 28.Fn pam_putenv 29function returns one of the following values: 30.Bl -tag -width 18n 31.It Bq Er PAM_BUF_ERR 32Memory buffer error. 33.It Bq Er PAM_SYSTEM_ERR 34System error. 35.El 36.Sh SEE ALSO 37.Xr pam 3 , 38.Xr pam_getenv 3 , 39.Xr pam_getenvlist 3 , 40.Xr pam_setenv 3 , 41.Xr pam_strerror 3 , 42.Xr putenv 3 43.Sh STANDARDS 44.Rs 45.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules" 46.%D "June 1997" 47.Re 48.Sh AUTHORS 49The 50.Fn pam_putenv 51function and this manual page were 52developed for the 53.Fx 54Project by ThinkSec AS and Network Associates Laboratories, the 55Security Research Division of Network Associates, Inc.\& under 56DARPA/SPAWAR contract N66001-01-C-8035 57.Pq Dq CBOSS , 58as part of the DARPA CHATS research program. 59.Pp 60The OpenPAM library is maintained by 61.An Dag-Erling Sm\(/orgrav Aq des@des.no . 62