On this page
  1. posix.fpathconf
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posix.fpathconf

Prev: posix.forkpty | Up: posix | Next: posix.fspath
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.fpathconf
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import fpathconf

Signature & Overview

posix.fpathconf(fd, name, /)

Return the configuration limit name for the file descriptor fd.

Usage

import os, tempfile

with tempfile.TemporaryFile() as f:
    val = os.fpathconf(f.fileno(), 'PC_NAME_MAX')
    assert isinstance(val, int)

Gotchas

REPL Inspect

from posix import fpathconf
help(fpathconf)

Linked from

Related notes