{
    "mode": "man",
    "parameter": "readproc",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/readproc/3/json",
    "generated": "2026-06-14T04:14:51Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "readproc, freeproc  - read information from next /proc/## entry\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "#include <proc/readproc.h>",
                    "content": "proct* readproc(PROCTAB *PT, proct *returnbuf);\nvoid freeproc(proct *p);\n\n"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "readproc reads the information for the next process matching the criteria specified in PT and\nfills them into a proct structure. If returnbuf is not NULL, it will use the struct pointed\nat  by returnbuf.  Otherwise it will allocate a new proct structure and return a pointer to\nit.  Note that (if so specified in PT) readproc always allocates memory if it  fills  in  the\nenviron or cmdline parts of proct.\n\nfreeproc frees all memory allocated for the proct struct *p.\n\nThe  proct  structure is defined in <proc/readproc.h>, please look there for a definition of\nall fields.\n\n",
            "subsections": []
        },
        "RETURN VALUE": {
            "content": "readproc returns a pointer to the next proct or NULL if there are no more processes left.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "openproc(3), readproctab(3), /usr/include/proc/readproc.h, /proc/#pid/,\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "Please send bug reports to ⟨procps@freelists.org⟩\n\n\n\nLinux Manpage                               14 July 2014                                 READPROC(3)",
            "subsections": []
        }
    },
    "summary": "readproc, freeproc  - read information from next /proc/## entry",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "openproc",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/openproc/3/json"
        },
        {
            "name": "readproctab",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/readproctab/3/json"
        }
    ]
}