{
    "mode": "man",
    "parameter": "pam_prompt",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/pam_prompt/3/json",
    "generated": "2026-06-15T16:45:06Z",
    "synopsis": "#include <security/pamext.h>\nint pamprompt(pamhandlet *pamh, int style, char response, const char *fmt, ...);\nint pamvprompt(pamhandlet *pamh, int style, char response, const char *fmt,\nvalist args);",
    "sections": {
        "NAME": {
            "content": "pamprompt, pamvprompt - interface to conversation function\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "#include <security/pamext.h>\n\nint pamprompt(pamhandlet *pamh, int style, char response, const char *fmt, ...);\n\nint pamvprompt(pamhandlet *pamh, int style, char response, const char *fmt,\nvalist args);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The pamprompt function constructs a message from the specified format string and arguments\nand passes it to the conversation function as set by the service. Upon successful return,\nresponse is set to point to a string returned from the conversation function. This string is\nallocated on heap and should be freed.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "PAMBUFERR\nMemory buffer error.\n\nPAMCONVERR\nConversation failure.\n\nPAMSUCCESS\nConversation succeeded, response is set.\n\nPAMSYSTEMERR\nSystem error.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pam(7), pamconv(3)\n",
            "subsections": []
        },
        "STANDARDS": {
            "content": "The pamprompt and pamvprompt functions are Linux-PAM extensions.\n\n\n\nLinux-PAM Manual                             06/08/2020                                PAMPROMPT(3)",
            "subsections": []
        }
    },
    "summary": "pamprompt, pamvprompt - interface to conversation function",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pam",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
        },
        {
            "name": "pamconv",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pamconv/3/json"
        }
    ]
}