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.
15 .Dt PROC_CONTENT2STR 3PROC
18 .Nm proc_content2str ,
20 .Nd convert a string to and from a core_content_t
26 .Fa "core_content_t content"
33 .Fa "core_content_t *cp"
38 function converts the contents of a process (whether active or a core
41 into a string and writes up to
43 characters, including the null-terminator, into
46 A content string will be a series of one or more tokens concatenated
51 characters, indicating that the subsequent token should be added or
52 subtracted from the previous ones.
53 The full list of tokens and constants is available in the
62 function takes the character string
64 and based on the format described in the previous paragraph, converts it
70 Upon successful completion, the
72 function will return the number of characters written into
74 excluding the terminating null character.
76 Upon successful completion, the
82 will be returned to indicate an unknown string.
83 .Sh INTERFACE STABILITY