Naming the User-Provided Module

This section describes the name of modules containing user-defined APIs.

The names of modules containing user-defined APIs follow this general form:

NameAddressfamily

Where:

Item Description
Name Is the name of the dynamic loadable module name. The length of the Name can be between one to eight characters.

The following key words are reserved as the user option name and may not be used as the name of the dynamically loadable module:

  • local
  • bind
  • dns
  • nis
  • ldap
  • nis_ldap
Addressfamily Represents the address family and can be either 4 or 6. If no number is specified, the address family is AF_UNSPEC. If the number is 4, the address family is AF_INET. If the number is 6, the address family is AF_INET6.

Any other format for user options is not valid.

Note: If a user calls the gethostbyname2 system call from within the application, whatever the address family the user passed to the gethostbyname2 system call overwrites the address family in the user option. For example, a user option is david6 and there is a system call gethostbyname2(name, AF_INET) in the application. Given this example, the address family AF_INET overwrites the user option's address family (6, same as AF_INET6).