Fix calls to rump syscalls now that the padding argument is no

longer advertised.
This commit is contained in:
pooka 2009-05-15 15:54:03 +00:00
parent 68136aad74
commit 1decab3813
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ukfs.c,v 1.26 2009/05/02 15:20:08 pooka Exp $ */
/* $NetBSD: ukfs.c,v 1.27 2009/05/15 15:54:03 pooka Exp $ */
/*
* Copyright (c) 2007, 2008 Antti Kantee. All Rights Reserved.
@ -414,7 +414,7 @@ ukfs_read(struct ukfs *ukfs, const char *filename, off_t off,
if (fd == -1)
goto out;
xfer = rump_sys_pread(fd, buf, bufsize, 0, off);
xfer = rump_sys_pread(fd, buf, bufsize, off);
rump_sys_close(fd);
out:
@ -430,7 +430,7 @@ ssize_t
ukfs_read_fd(struct ukfs *ukfs, int fd, off_t off, uint8_t *buf, size_t buflen)
{
return rump_sys_pread(fd, buf, buflen, 0, off);
return rump_sys_pread(fd, buf, buflen, off);
}
ssize_t
@ -446,7 +446,7 @@ ukfs_write(struct ukfs *ukfs, const char *filename, off_t off,
goto out;
/* write and commit */
xfer = rump_sys_pwrite(fd, buf, bufsize, 0, off);
xfer = rump_sys_pwrite(fd, buf, bufsize, off);
if (xfer > 0)
rump_sys_fsync(fd);
@ -467,7 +467,7 @@ ukfs_write_fd(struct ukfs *ukfs, int fd, off_t off, uint8_t *buf, size_t buflen,
{
ssize_t xfer;
xfer = rump_sys_pwrite(fd, buf, buflen, 0, off);
xfer = rump_sys_pwrite(fd, buf, buflen, off);
if (xfer > 0 && dosync)
rump_sys_fsync(fd);

View File

@ -1,4 +1,4 @@
/* $NetBSD: t_cmsg.c,v 1.6 2009/05/08 13:03:46 pooka Exp $ */
/* $NetBSD: t_cmsg.c,v 1.7 2009/05/15 15:54:03 pooka Exp $ */
#include <sys/types.h>
#include <sys/mount.h>
@ -142,7 +142,7 @@ ATF_TC_BODY(cmsg_sendfd, tc)
sizeof(MAGICSTRING))
atf_tc_fail_errno("file write"); /* XXX: errno */
/* reset offset */
rump_sys_lseek(fd, 0, 0, SEEK_SET);
rump_sys_lseek(fd, 0, SEEK_SET);
cmp = malloc(CMSG_LEN(sizeof(int)));