/*
- * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
#include <dirent.h> /* readdir() */
#include <assert.h>
-
#include "para.h"
-#include "string.h"
#include "list.h"
#include "sched.h"
#include "fd.h"
return;
ret = read(STDIN_FILENO, sit->buf + sit->loaded, sit->bufsize - sit->loaded);
if (ret < 0)
- t->error = ERRNO_TO_PARA_ERROR(errno);
+ t->error = -ERRNO_TO_PARA_ERROR(errno);
else if (ret > 0)
sit->loaded += ret;
else
{
int ret;
- sit->bufsize = 16 * 1024,
+ sit->bufsize = 32 * 1024,
sit->task.pre_select = stdin_pre_select;
sit->task.post_select = stdin_post_select;
sprintf(sit->task.status, "stdin reader");