Index: uspace/lib/c/generic/task.c
===================================================================
--- uspace/lib/c/generic/task.c	(revision cde999aca79219e8751af76502001a86d411d176)
+++ uspace/lib/c/generic/task.c	(revision 2ca5a198f7308b0c892b04c0fcda44f5e83eb8f0)
@@ -71,9 +71,9 @@
  * @return Zero on success or an error code.
  */
-int task_set_name(const char *name)
+errno_t task_set_name(const char *name)
 {
 	assert(name);
 	
-	return (int) __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
+	return (errno_t) __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
 }
 
@@ -85,7 +85,7 @@
  */
 
-int task_kill(task_id_t task_id)
-{
-	return (int) __SYSCALL1(SYS_TASK_KILL, (sysarg_t) &task_id);
+errno_t task_kill(task_id_t task_id)
+{
+	return (errno_t) __SYSCALL1(SYS_TASK_KILL, (sysarg_t) &task_id);
 }
 
@@ -104,5 +104,5 @@
  *
  */
-int task_spawnv(task_id_t *id, task_wait_t *wait, const char *path,
+errno_t task_spawnv(task_id_t *id, task_wait_t *wait, const char *path,
     const char *const args[])
 {
@@ -146,5 +146,5 @@
  *
  */
-int task_spawnvf(task_id_t *id, task_wait_t *wait, const char *path,
+errno_t task_spawnvf(task_id_t *id, task_wait_t *wait, const char *path,
     const char *const args[], int fd_stdin, int fd_stdout, int fd_stderr)
 {
@@ -158,5 +158,5 @@
 	/* Get task ID. */
 	task_id_t task_id;
-	int rc = loader_get_task_id(ldr, &task_id);
+	errno_t rc = loader_get_task_id(ldr, &task_id);
 	if (rc != EOK)
 		goto error;
@@ -252,5 +252,5 @@
  *
  */
-int task_spawn(task_id_t *task_id, task_wait_t *wait, const char *path,
+errno_t task_spawn(task_id_t *task_id, task_wait_t *wait, const char *path,
     int cnt, va_list ap)
 {
@@ -269,5 +269,5 @@
 	
 	/* Spawn task. */
-	int rc = task_spawnv(task_id, wait, path, arglist);
+	errno_t rc = task_spawnv(task_id, wait, path, arglist);
 	
 	/* Free argument list. */
@@ -290,5 +290,5 @@
  *
  */
-int task_spawnl(task_id_t *task_id, task_wait_t *wait, const char *path, ...)
+errno_t task_spawnl(task_id_t *task_id, task_wait_t *wait, const char *path, ...)
 {
 	/* Count the number of arguments. */
@@ -306,5 +306,5 @@
 	
 	va_start(ap, path);
-	int rc = task_spawn(task_id, wait, path, cnt, ap);
+	errno_t rc = task_spawn(task_id, wait, path, cnt, ap);
 	va_end(ap);
 	
@@ -323,5 +323,5 @@
  * @return EOK on success, else error code.
  */
-int task_setup_wait(task_id_t id, task_wait_t *wait)
+errno_t task_setup_wait(task_id_t id, task_wait_t *wait)
 {
 	async_sess_t *sess_ns = ns_session_get();
@@ -364,10 +364,10 @@
  * @return EOK on success, else error code.
  */
-int task_wait(task_wait_t *wait, task_exit_t *texit, int *retval)
+errno_t task_wait(task_wait_t *wait, task_exit_t *texit, int *retval)
 {
 	assert(texit);
 	assert(retval);
 
-	int rc;
+	errno_t rc;
 	async_wait_for(wait->aid, &rc);
 
@@ -394,8 +394,8 @@
  * @return EOK on success, else error code.
  */
-int task_wait_task_id(task_id_t id, task_exit_t *texit, int *retval)
+errno_t task_wait_task_id(task_id_t id, task_exit_t *texit, int *retval)
 {
 	task_wait_t wait;
-	int rc = task_setup_wait(id, &wait);
+	errno_t rc = task_setup_wait(id, &wait);
 	if (rc != EOK)
 		return rc;
@@ -404,5 +404,5 @@
 }
 
-int task_retval(int val)
+errno_t task_retval(int val)
 {
 	async_sess_t *sess_ns = ns_session_get();
@@ -411,5 +411,5 @@
 
 	async_exch_t *exch = async_exchange_begin(sess_ns);
-	int rc = (int) async_req_1_0(exch, NS_RETVAL, val);
+	errno_t rc = (errno_t) async_req_1_0(exch, NS_RETVAL, val);
 	async_exchange_end(exch);
 	
