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
24 .Fa "struct ps_prochandle *P"
26 .Fa "core_content_t content"
30 .Fa "struct ps_prochandle *P"
31 .Fa "const char *fname"
32 .Fa "core_content_t content"
39 functions produce core files of the handle referred to by
41 Core files represent a snapshot of a process and may be manipulated by a
42 wide variety of tools and libraries including
48 For details on the core file format, see
52 writes the core to the file represented by the open descriptor
54 The file descriptor should be open for both read and write.
56 writes the core to the file path
59 The content of the core is controlled by the
62 It's the inclusive-bitwise-OR of the various content types listed under the
69 .Dv CC_CONTENT_INVALID
70 is illegal and will result in an error.
76 functions stop the handle
78 It is up to the caller to stop the process; which is recommended for
79 obtaining a consistent view of the process.
82 function for a means to stop a handle.
84 Upon successful completion, the
90 and write out a core file to specified location.
96 function will truncate
102 .Sh INTERFACE STABILITY