Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2933 → Rev 2934

/trunk/kernel/generic/src/ipc/sysipc.c
243,7 → 243,7
uintptr_t dst = IPC_GET_ARG1(*olddata);
size_t max_size = IPC_GET_ARG2(*olddata);
size_t size = IPC_GET_ARG2(answer->data);
if (size <= max_size) {
if (size && size <= max_size) {
/*
* Copy the destination VA so that this piece of
* information is not lost.
258,6 → 258,8
free(answer->buffer);
answer->buffer = NULL;
}
} else if (!size) {
IPC_SET_RETVAL(answer->data, EOK);
} else {
IPC_SET_RETVAL(answer->data, ELIMIT);
}
/trunk/uspace/app/tester/vfs/vfs1.c
86,13 → 86,14
 
char buf[10];
 
cnt = read(fd0, buf, sizeof(buf));
if (cnt < 0)
return "read() failed.\n";
while ((cnt = read(fd0, buf, sizeof(buf)))) {
if (cnt < 0)
return "read() failed.\n";
if (!quiet)
printf("read %d bytes: \"%.*s\", fd=%d\n", cnt, cnt,
buf, fd0);
}
 
if (!quiet)
printf("read %d bytes: \"%.*s\", fd=%d\n", cnt, cnt, buf, fd0);
 
close(fd0);
 
DIR *dirp;