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
26 .Fa "struct ps_prochandle *P"
27 .Fa "struct utsname *u"
32 function copies the operating system information from the process
38 For an active process or zombie process, this is the same information
41 For core files, if available, it is the system information at the time
44 Handles that correspond to ELF objects do not contain uname
47 Upon successful completion, the
51 and updates the information at
57 is set to indicate the error.
61 function will fail if:
65 is a handle that corresponds to an ELF object or
67 is a handle that corresponds to a core file and that information is not
68 available in the core file.
71 is a handle that corresponds to an active process and
75 .Sh INTERFACE STABILITY