2 * Unix SMB/CIFS implementation.
6 * Copyright (c) 2013 Andreas Schneider <asn@samba.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
22 #ifndef _SAMBA_UTIL_PROCESS_H
23 #define _SAMBA_UTIL_PROCESS_H
28 * @brief Set the process comment name.
30 * @param[in] comment The comment to set which shouldn't be longer than 16
31 * 16 characters (including \0).
33 * @return -1 on error, 0 on success.
35 int prctl_set_comment(const char *comment_format
, ...) PRINTF_ATTRIBUTE(1,2);
38 * @brief Set the process comment name and longname
40 * @param[in] short_format The comment to set which shouldn't be longer than 16
41 * 16 characters (including \0).
42 * @param[in] long_format The format string and arguments to produce the long
43 * form of the process name.
45 * @return -1 on error, 0 on success.
47 void process_set_title(const char *short_format
, const char *long_format
, ...)
48 PRINTF_ATTRIBUTE(1,3) PRINTF_ATTRIBUTE(2,3);