sysdecode_fcntl_arg(3)

sysdecode_fcntl_arg3

Output description of fcntl argument

Usage

#include <sysdecode.h>

void

sysdecode_fcntl_arg(FILE *fp, int cmd, uintptr_t arg, int base);

bool

sysdecode_fcntl_arg_p(int cmd);

Library

library “libsysdecode”

Overview

The sysdecode_fcntl_arg() function outputs a text description of the optional arg argument to fcntl(2) to the stream fp. The type and format of arg are determined by cmd:

Commandarg TypeOutput Format
F_SETFDint
F_SETFLint
F_GETLKstruct flock *
F_SETLKstruct flock *
F_SETLKWstruct flock *
Othersint

The sysdecode_fcntl_arg_p() function can be used to determine if a fcntl(2) command uses the optional third argument to fcntl(2). The function returns true if cmd accepts a third argument to fcntl(2) and false if it does not.

Return values

The sysdecode_fcntl_arg_p function returns true if cmd accepts a third argument to fcntl(2) and false if it does not.

Releases

24 releases since FreeBSD 11.1-RELEASE; the text changed 12 times.

  1. 11.1
  2. 11.2
  3. 11.3
  4. 11.4
  5. 12.0
  6. 12.1
  7. 12.2
  8. 12.3
  9. 12.4
  10. 13.0–13.1
  11. 13.2
  12. 13.3–14.5
  13. 15.0–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.