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_quotactl_cmd(3) FreeBSD Library Functions Manual sysdecode_quotactl_cmd(3)

sysdecode_quotactl_cmd
output name of quotactl command

System Argument Decoding Library (libsysdecode, -lsysdecode)

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

bool
sysdecode_quotactl_cmd(FILE *fp, int cmd);

The sysdecode_quotactl_cmd() function outputs a text description of the cmd argument to quotactl(2) to the stream fp. The description is formatted as an invocation of the QCMD macro defined in the <ufs/ufs/quota.h> header.

The function first computes the primary and secondary values used by QCMD to construct cmd. If the primary command value does not represent a known constant, sysdecode_quotactl_cmd() does not generate any output and returns false. Otherwise, sysdecode_quotactl_cmd() outputs text depicting an invocation of QCMD with the associated constants for the primary and secondary command values and returns true. If the secondary command values does not represent a known constant, its value is output as a hexadecimal integer.

The sysdecode_quotactl_cmd function returns true if it outputs a description of cmd and false if it does not.

The statement

sysdecode_quotatcl_cmd(stdout, QCMD(Q_GETQUOTA, USRQUOTA);

outputs the text “QCMD(Q_GETQUOTA, USRQUOTA)” to standard output.

sysdecode(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.