summaryrefslogtreecommitdiff
path: root/lib/util/util_process.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-03-05 15:54:44 +0100
committerDavid Disseldorp <ddiss@suse.de>2013-03-05 23:29:46 +0100
commitf9fb3faaef4c15b7c4c3748b0e93fa3061b573c3 (patch)
tree8c8e1e6c576130907cdfb2407fea6b3da08d9482 /lib/util/util_process.h
parentdef575bc29ee399fc93320b0f3716bc15740863d (diff)
downloadsamba-f9fb3faaef4c15b7c4c3748b0e93fa3061b573c3.tar.gz
samba-f9fb3faaef4c15b7c4c3748b0e93fa3061b573c3.tar.bz2
samba-f9fb3faaef4c15b7c4c3748b0e93fa3061b573c3.zip
lib: Add prctl_set_comment to utils.
Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'lib/util/util_process.h')
-rw-r--r--lib/util/util_process.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/util/util_process.h b/lib/util/util_process.h
new file mode 100644
index 0000000000..6e1ef07f18
--- /dev/null
+++ b/lib/util/util_process.h
@@ -0,0 +1,35 @@
+/*
+ * Unix SMB/CIFS implementation.
+ *
+ * Process utils.
+ *
+ * Copyright (c) 2013 Andreas Schneider <asn@samba.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _SAMBA_UTIL_PROCESS_H
+#define _SAMBA_UTIL_PROCESS_H
+
+/**
+ * @brief Set the process comment name.
+ *
+ * @param[in] comment The comment to set which shouldn't be longer than 16
+ * 16 characters (including \0).
+ *
+ * @return -1 on error, 0 on success.
+ */
+int prctl_set_comment(const char *comment);
+
+#endif