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 2018 Joyent, Inc.
15 .Dt PLWP_GETNAME 3PROC
26 .Fa "struct ps_prochandle *P"
34 function returns the thread name in the supplied buffer, from the
40 If no thread name is set, the buffer is set to the empty string.
41 The buffer should be at least
47 function only works on process handles that refer to active processes
48 and core files, it does not work on process handles that refer to
51 Upon successful completion, the
58 is set to indicate the error.
59 The buffer may be modified even if an error is returned.
61 For a full list of possible errors also see the
68 function will fail if:
72 refers to a file handle obtained through
73 .Xr Pgrab_file 3PROC .
77 refers to a core file and the specified thread does not exist.
81 refers to an active process and the specified thread does not exist.
84 The buffer is not sufficient to hold the thread name.
86 .Sh INTERFACE STABILITY