nbp_name (3) Linux Manual Page
nbp_name – NBP name parsing
Synopsis
- int nbp_name(char
* name, char** obj, char** type, char** zone);
Description
nbp_name()Example
The argument of afpd(8)’s -n option is parsed with nbp_name(). The default value of obj is the first component of the machine’s hostname (as returned by gethostbyname(3)). The default value of type is “AFPServer”, and of zone is “*”, the default zone. To cause afpd to register itself in some zone other than the default, one would invoke it asafpd -n @some-other-zone
obj and type would retain their default values.
