Index: uspace/lib/libc/generic/task.c
===================================================================
--- uspace/lib/libc/generic/task.c	(revision f89979b1e04f036c3b08e99110d2269a0314f7c9)
+++ uspace/lib/libc/generic/task.c	(revision bf25efb0b361ed9f7b43f5db17457fa376e1bd25)
@@ -39,4 +39,5 @@
 #include <errno.h>
 #include <loader/loader.h>
+#include <string.h>
 
 task_id_t task_get_id(void)
@@ -47,4 +48,15 @@
 
 	return task_id;
+}
+
+/** Set the task name.
+ *
+ * @param name	The new name, typically the command used to execute the
+ *		program.
+ * @return	Zero on success or negative error code.
+ */
+int task_set_name(const char *name)
+{
+	return __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, strlen(name));
 }
 
