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.
19 .Nd get platform string
26 .Fa "struct ps_prochandle *P"
33 function determines the name of the platform for the process handle
37 characters, including the null terminator, will be copied into
40 The platform is the value reported by the
44 For example, on x86 systems, the value will be
47 Note, process handles that correspond to a file, created by
48 .Xr Pgrab_file 3PROC ,
49 will not report a platform and the
53 Upon successful completion, the
67 function will fail if:
71 refers to a core file and there is no
76 refers to a live process and
78 is an invalid address.
80 .Sh INTERFACE STABILITY