functions.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="uid_gflags.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. </sectioninfo>
  7. <title>Functions</title>
  8. <section id="set_ugflag">
  9. <title><function>set_gflag(flag_num)</function></title>
  10. <para>
  11. Set the flag identified by flag_num to 1. The range of
  12. flag_num is 0 to 31.
  13. </para>
  14. <example>
  15. <title><function>set_ugflag</function> usage</title>
  16. <programlisting>
  17. ...
  18. set_ugflag("2");
  19. ...
  20. </programlisting>
  21. </example>
  22. </section>
  23. <section id="reset_ugflag">
  24. <title><function>reset_ugflag(flag_num)</function></title>
  25. <para>
  26. Set the flag identified by flag_num to 0. The range of
  27. flag_num is 0 to 31.
  28. </para>
  29. <example>
  30. <title><function>reset_ugflag</function> usage</title>
  31. <programlisting>
  32. ...
  33. reset_ugflag("2");
  34. ...
  35. </programlisting>
  36. </example>
  37. </section>
  38. <section id="is_ugflag">
  39. <title><function moreinfo="none">is_ugflag(flag_num)</function></title>
  40. <para>
  41. Returns 1 when flag identified by flag_num is set, 0
  42. otherwise. The range of flag_num parameter is 0 to 31.
  43. </para>
  44. </section>
  45. </section>