redhat man page for nbp_name

Query: nbp_name

OS: redhat

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

NBP_NAME(3)						     Library Functions Manual						       NBP_NAME(3)

NAME
nbp_name - NBP name parsing
SYNOPSIS
nbp_name( name, obj, type, zone ) char *name, **obj, **type, **zone;
DESCRIPTION
nbp_name() parses user supplied names into their component object, type, and zone. obj, type, and zone should be passed by reference, and should point to the caller's default values. nbp_name() will change the pointers to the parsed-out values. name is of the form object:type@zone, where each of object, :type, and @zone replace obj, type, and zone, respectively. type must be proceeded by `:', and zone must be preceded by `@'.
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 as afpd -n @some-other-zone obj and type would retain their default values.
BUGS
obj, type, and zone return pointers into static area which may be over-written on each call. netatalk 1.3 12 Jan 1994 NBP_NAME(3)
Related Man Pages
nbp(1) - redhat
atalkd(8) - redhat
papstatus(8) - redhat
named-checkzone(1) - hpux
malloc_zone_memalign(3) - osx
Similar Topics in the Unix Linux Community
Not able to ping global zone from local zone
Is any patch availabe for zone cloning?
Swap in local zone
syslog not coming up
Not able to increase ZFS file system on NGZ