Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: HP FTAM/9000 Programmer's Guide > Chapter 3 HP FTAM/9000 Data Structures

Using Defined Constants To Set Bits

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Certain structures require that you use defined constants to set bits to request specific items like attributes, actions, and concurrency control. You request an item by setting a bit to ON (1). Refer to the following table for a list of defined constants and their corresponding structures.

Defined Constants

Corresponding Structures

FT_FA_XXX

Ft_file_actions

FT_AG_XXX

Ft_attribute_ groups

FT_AN_XXX

Ft_attribute_names

FT_AC_XXX

Ft_access_control_element

FT_PA_XXX

Ft_permitted_actions

FT_FT_XXX

Ft_functional_units

FT_PM_XXX

Ft_processing_mode

FT_SC_XXX

Ft_service_class

  • Use the defined constant to set the bits to either ON (1) or OFF (0). Setting bits other than those listed results in an error.

  • If needed, set the bit by first defining a variable. Use the appropriate defined constant to set the bit you want.

EXAMPLE

This example sets the filename and contents_type attributes in the variable called attribute_names.

Ft_attribute_names      attribute_names;
attribute_names = (FT_AN_FILENAME | FT_AN_CONTENT_TYPE);
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.