GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
sysdecode_fcntl_arg(3) FreeBSD Library Functions Manual sysdecode_fcntl_arg(3)

sysdecode_fcntl_arg, sysdecode_fcntl_arg_p
output description of fcntl argument

System Argument Decoding Library (libsysdecode, -lsysdecode)

#include <sys/types.h>
#include <stdbool.h>
#include <stdio.h>
#include <sysdecode.h>

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

bool
sysdecode_fcntl_arg_p(int cmd);

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:
Command arg Type Output Format
int “FD_CLOEXEC” or the value of arg in the indicated base (one of 8, 10, or 16).
int File flags as output by sysdecode_fcntl_fileflags(3) with any unknown or remaining bits output in hexadecimal.
struct flock *
struct flock *
struct flock * The value of arg using the “%p” conversion specification.
Others int The value of arg in the indicated base (one of 8, 10, or 16).

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.

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

sysdecode(3), sysdecode_fcntl_cmd(3), sysdecode_fcntl_fileflags(3)
November 24, 2017 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.