1.\" $NetBSD: pam_putenv.3,v 1.8 2019/12/15 17:08:21 christos Exp $ 2.\" 3.\" Generated from pam_putenv.c by gendoc.pl 4.\" $OpenPAM: pam_putenv.c 938 2017-04-30 21:34:42Z des $ 5.Dd February 24, 2019 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 SYNOPSIS 12.In sys/types.h 13.In security/pam_appl.h 14.Ft "int" 15.Fn pam_putenv "pam_handle_t *pamh" "const char *namevalue" 16.Sh DESCRIPTION 17The 18.Fn pam_putenv 19function sets an environment variable. 20Its semantics are similar to those of 21.Xr putenv 3 , 22but it modifies the PAM 23context's environment list instead of the application's. 24.Sh RETURN VALUES 25The 26.Fn pam_putenv 27function returns one of the following values: 28.Bl -tag -width 18n 29.It Bq Er PAM_SUCCESS 30Success. 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 Mt des@des.no . 62