Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser lso translate errno in the rumpfiber version
details: https://anonhg.NetBSD.org/src/rev/3b5f7c4c5c0a
branches: trunk
changeset: 331812:3b5f7c4c5c0a
user: justin <justin%NetBSD.org@localhost>
date: Mon Aug 25 10:33:32 2014 +0000
description:
lso translate errno in the rumpfiber version
diffstat:
lib/librumpuser/rumpfiber_bio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 619c5c50037f -r 3b5f7c4c5c0a lib/librumpuser/rumpfiber_bio.c
--- a/lib/librumpuser/rumpfiber_bio.c Mon Aug 25 10:25:53 2014 +0000
+++ b/lib/librumpuser/rumpfiber_bio.c Mon Aug 25 10:33:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfiber_bio.c,v 1.3 2014/08/24 14:37:31 pooka Exp $ */
+/* $NetBSD: rumpfiber_bio.c,v 1.4 2014/08/25 10:33:32 justin Exp $ */
/*-
* Copyright (c) 2014 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: rumpfiber_bio.c,v 1.3 2014/08/24 14:37:31 pooka Exp $");
+__RCSID("$NetBSD: rumpfiber_bio.c,v 1.4 2014/08/25 10:33:32 justin Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -50,10 +50,10 @@
if (op & RUMPUSER_BIO_READ) {
if ((rv = pread(fd, data, dlen, doff)) == -1)
- error = errno;
+ error = rumpuser__errtrans(errno);
} else {
if ((rv = pwrite(fd, data, dlen, doff)) == -1)
- error = errno;
+ error = rumpuser__errtrans(errno);
if (error == 0 && (op & RUMPUSER_BIO_SYNC)) {
#ifdef __NetBSD__
fsync_range(fd, FDATASYNC, doff, dlen);
Home |
Main Index |
Thread Index |
Old Index