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 uname information from a process
25 .Fa "struct ps_prochandle *P"
26 .Fa "struct utsname *u"
31 function copies the operating system information from the process
37 For an active process or zombie process, this is the same information
40 For core files, if available, it is the system information at the time
43 Handles that correspond to ELF objects do not contain uname
46 Upon successful completion, the
50 and updates the information at
56 is set to indicate the error.
60 function will fail if:
64 is a handle that corresponds to an ELF object or
66 is a handle that corresponds to a core file and that information is not
67 available in the core file.
70 is a handle that corresponds to an active process and
74 .Sh INTERFACE STABILITY