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