2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
21 .Nd get zone name, root, and full object path
27 .Fa "struct ps_prochandle *P"
33 .Fa "struct ps_prochandle *P"
39 .Fa "struct ps_prochandle *P"
40 .Fa "const char *path"
47 function attempts to determine the name of the zone for the process
52 including a null terminator, will be written into
57 function attempts to determine the root of the zone corresponding to the
62 including a null terminator, will be written into
64 If the root cannot be found, for example a core file that did not
65 originate on the current system, then the empty string will be written
71 function attempts to derive the full path of the object
73 in a zone relative to the root associated with the current process
78 including a null terminator, will be written into
80 It is legal to use the same buffer for both
84 it will not be updated unless the function completes successfully.
86 Upon successful completion, the
93 Otherwise, if an error occurred,
103 functions will fail if:
107 refers to a core file and zone information was not available in the core
110 refers to an ELF object grabbed through
111 .Xr Pgrab_file 3PROC .
114 refers to an active process and
121 function will fail if:
124 Insufficient memory was available on the system.
126 .Sh INTERFACE STABILITY
134 .Xr getzoneidbyname 3C ,