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.
20 .Nd produce a core file of a process
27 .Fa "struct ps_prochandle *P"
29 .Fa "core_content_t content"
33 .Fa "struct ps_prochandle *P"
34 .Fa "const char *fname"
35 .Fa "core_content_t content"
42 functions produce core files of the handle referred to by
44 Core files represent a snapshot of a process and may be manipulated by a
45 wide variety of tools and libraries including
51 For details on the core file format, see
55 writes the core to the file represented by the open descriptor
57 The file descriptor should be open for both read and write.
59 writes the core to the file path
62 The content of the core is controlled by the
65 It's the inclusive-bitwise-OR of the various content types listed under the
72 .Dv CC_CONTENT_INVALID
73 is illegal and will result in an error.
79 functions stop the handle
81 It is up to the caller to stop the process; which is recommended for
82 obtaining a consistent view of the process.
85 function for a means to stop a handle.
87 Upon successful completion, the
93 and write out a core file to specified location.
99 function will truncate
105 .Sh INTERFACE STABILITY