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
25 .Fa "struct ps_prochandle *P"
32 function determines the name of the platform for the process handle
36 characters, including the null terminator, will be copied into
39 The platform is the value reported by the
43 For example, on x86 systems, the value will be
46 Note, process handles that correspond to a file, created by
47 .Xr Pgrab_file 3PROC ,
48 will not report a platform and the
52 Upon successful completion, the
66 function will fail if:
70 refers to a core file and there is no
75 refers to a live process and
77 is an invalid address.
79 .Sh INTERFACE STABILITY