Contenida dentro deEncontrar más documentaciónRecursos de soporte técnico destacados de | Descargar este libro en PDF (3779 KB)
getzonenamebyid(3C)Name | Synopsis | Description | Return Values | Errors | Attributes | See Also Name
Synopsis#include <zone.h> zoneid_t getzoneid(void); zoneid_t getzoneidbyname(const char *name); ssize_t getzonenamebyid(zoneid_t id, char *buf, size_t buflen); DescriptionThe getzoneid() function returns the zone ID of the calling process. The getzoneidbyname() function returns the zone ID corresponding to the named zone, if that zone is currently active. If name is NULL, the function returns the zone ID of the calling process. The getzonenamebyid() function stores the name of the zone with ID specified by id in the location specified by buf. The bufsize argument specifies the size in bytes of the buffer. If the buffer is too small to hold the complete null-terminated name, the first bufsize bytes of the name are stored in the buffer. A buffer of size {ZONENAME_MAX} is sufficient to hold any zone name. If buf is NULL or bufsize is 0, the name is not copied into the buffer. Return ValuesOn successful completion, getzoneid() and getzoneidbyname() return a non-negative zone ID. Otherwise, getzoneidbyname() returns -1 and sets errno to indicate the error. On successful completion, the getzonenamebyid() function returns the buffer size required to hold the full null-terminated name. Otherwise, it returns -1 and sets errno to indicate the error. Errors
The getzoneidbyname() function will fail if: The getzonenamebyid() function will fail if: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 1 Nov 2004Name | Synopsis | Description | Return Values | Errors | Attributes | See Also |
||||||