{
    "content": [
        {
            "type": "text",
            "text": "# Fcntl (man)\n\n## NAME\n\nFcntl - load the C Fcntl.h defines\n\n## SYNOPSIS\n\nuse Fcntl;\nuse Fcntl qw(:DEFAULT :flock);\n\n## DESCRIPTION\n\nThis module is just a translation of the C fcntl.h file.  Unlike the old mechanism of\nrequiring a translated fcntl.ph file, this uses the h2xs program (see the Perl source\ndistribution) and your native C compiler.  This means that it has a far more likely chance of\ngetting the numbers right.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **NOTE**\n- **EXPORTED SYMBOLS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Fcntl",
        "section": "",
        "mode": "man",
        "summary": "Fcntl - load the C Fcntl.h defines",
        "synopsis": "use Fcntl;\nuse Fcntl qw(:DEFAULT :flock);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "NOTE",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXPORTED SYMBOLS",
                "lines": 28,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Fcntl - load the C Fcntl.h defines\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Fcntl;\nuse Fcntl qw(:DEFAULT :flock);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module is just a translation of the C fcntl.h file.  Unlike the old mechanism of\nrequiring a translated fcntl.ph file, this uses the h2xs program (see the Perl source\ndistribution) and your native C compiler.  This means that it has a far more likely chance of\ngetting the numbers right.\n",
                "subsections": []
            },
            "NOTE": {
                "content": "Only \"#define\" symbols get translated; you must still correctly pack up your own arguments to\npass as args for locking functions, etc.\n",
                "subsections": []
            },
            "EXPORTED SYMBOLS": {
                "content": "By default your system's F* and O* constants (eg, FDUPFD and OCREAT) and the FDCLOEXEC\nconstant are exported into your namespace.\n\nYou can request that the flock() constants (LOCKSH, LOCKEX, LOCKNB and LOCKUN) be\nprovided by using the tag \":flock\".  See Exporter.\n\nYou can request that the old constants (FAPPEND, FASYNC, FCREAT, FDEFER, FEXCL, FNDELAY,\nFNONBLOCK, FSYNC, FTRUNC) be provided for compatibility reasons by using the tag \":Fcompat\".\nFor new applications the newer versions of these constants are suggested (OAPPEND, OASYNC,\nOCREAT, ODEFER, OEXCL, ONDELAY, ONONBLOCK, OSYNC, OTRUNC).\n\nFor ease of use also the SEEK* constants (for seek() and sysseek(), e.g. SEEKEND) and the\nSI* constants (for chmod() and stat()) are available for import.  They can be imported\neither separately or using the tags \":seek\" and \":mode\".\n\nPlease refer to your native fcntl(2), open(2), fseek(3), lseek(2) (equal to Perl's seek() and\nsysseek(), respectively), and chmod(2) documentation to see what constants are implemented in\nyour system.\n\nSee perlopentut to learn about the uses of the O* constants with sysopen().\n\nSee \"seek\" in perlfunc and \"sysseek\" in perlfunc about the SEEK* constants.\n\nSee \"stat\" in perlfunc about the SI* constants.\n\n\n\nperl v5.34.0                                 2026-06-23                                 Fcntl(3perl)",
                "subsections": []
            }
        }
    }
}