gd_flags—alter GetData operational flags
#include <getdata.h>
unsigned long gd_flags(DIRFILE *dirfile, unsigned long set, unsigned long reset);
The gd_flags() function modifies the operational flags of the dirfile(5) database specified by dirfile, and returns the new value of the flags register.
The flags which may be queried or modified with this interface are a subset of the open flags (see gd_cbopen(3)). These are:
Flags which appear only in set will be turned on (enabled); flags which appear only in reset will be turned off (disabled); flags which appear in both set and reset will be toggled. Flags which appear in neither of these are left unchanged. Accordingly, to simply query the current flags, both set and reset should be zero, and to explicitly specify all the flags, ignoring their old values, the new flags register should be given in set, and it's bitwise complement in reset.
The gd_flags() function returns a bitwise or'd collection those of the above flags which are enabled after performing the modifications specified (if any). This function does not fail.
The gd_flags() function appeared in GetData-0.8.0.
gd_open(3), gd_verbose_prefix(3), dirfile(5)