{
    "mode": "man",
    "parameter": "PAM_GETENV",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/PAM_GETENV/3/json",
    "generated": "2026-10-05T15:40:09Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "pamgetenv - get a PAM environment variable\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "#include <security/pam_appl.h>",
                    "content": "const char *pamgetenv(pamhandlet *pamh, const char *name);\n"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "The pamgetenv function searches the PAM environment list as associated with the handle pamh\nfor an item that matches the string pointed to by name and returns a pointer to the value of\nthe environment variable. The application is not allowed to free the data.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "The pamgetenv function returns NULL on failure.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pamstart(3), pamgetenvlist(3), pamputenv(3), pam(7)\n\nLinux-PAM                                    05/07/2023                                PAMGETENV(3)",
            "subsections": []
        }
    },
    "summary": "pamgetenv - get a PAM environment variable",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pamstart",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamstart/3/json"
        },
        {
            "name": "pamgetenvlist",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamgetenvlist/3/json"
        },
        {
            "name": "pamputenv",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamputenv/3/json"
        },
        {
            "name": "pam",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
        }
    ]
}