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