Index: uspace/lib/libc/generic/task.c
===================================================================
--- uspace/lib/libc/generic/task.c	(revision 42742c5a9c4daa815f9a9127c69040aed0d194e0)
+++ 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));
 }
 
Index: uspace/lib/libc/include/task.h
===================================================================
--- uspace/lib/libc/include/task.h	(revision 42742c5a9c4daa815f9a9127c69040aed0d194e0)
+++ uspace/lib/libc/include/task.h	(revision bf25efb0b361ed9f7b43f5db17457fa376e1bd25)
@@ -41,4 +41,5 @@
 
 extern task_id_t task_get_id(void);
+extern int task_set_name(const char *name);
 extern task_id_t task_spawn(const char *path, char *const argv[]);
 
