Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern CID 1327233: Expicitly ignore retu...
details: https://anonhg.NetBSD.org/src/rev/14ecdd84dcaf
branches: trunk
changeset: 340998:14ecdd84dcaf
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 14 01:33:32 2015 +0000
description:
CID 1327233: Expicitly ignore return values of syscalls that don't fail.
diffstat:
sys/rump/librump/rumpkern/rump_syscalls.c | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
diffs (118 lines):
diff -r 1c7ec13fc446 -r 14ecdd84dcaf sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Wed Oct 14 00:12:55 2015 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Wed Oct 14 01:33:32 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_syscalls.c,v 1.116 2015/10/10 03:30:17 pgoyette Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.117 2015/10/14 01:33:32 christos Exp $ */
/*
* System call vector and marshalling for rump.
@@ -15,7 +15,7 @@
#ifdef __NetBSD__
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.116 2015/10/10 03:30:17 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.117 2015/10/14 01:33:32 christos Exp $");
#include <sys/fstypes.h>
#include <sys/proc.h>
@@ -392,7 +392,7 @@
register_t retval[2];
pid_t rv = -1;
- rsys_syscall(SYS_getpid, NULL, 0, retval);
+ (void)rsys_syscall(SYS_getpid, NULL, 0, retval);
if (sizeof(pid_t) > sizeof(register_t))
rv = *(pid_t *)retval;
else
@@ -469,7 +469,7 @@
register_t retval[2];
uid_t rv = -1;
- rsys_syscall(SYS_getuid, NULL, 0, retval);
+ (void)rsys_syscall(SYS_getuid, NULL, 0, retval);
if (sizeof(uid_t) > sizeof(register_t))
rv = *(uid_t *)retval;
else
@@ -489,7 +489,7 @@
register_t retval[2];
uid_t rv = -1;
- rsys_syscall(SYS_geteuid, NULL, 0, retval);
+ (void)rsys_syscall(SYS_geteuid, NULL, 0, retval);
if (sizeof(uid_t) > sizeof(register_t))
rv = *(uid_t *)retval;
else
@@ -778,7 +778,7 @@
{
register_t retval[2];
- rsys_syscall(SYS_sync, NULL, 0, retval);
+ (void)rsys_syscall(SYS_sync, NULL, 0, retval);
}
#ifdef RUMP_KERNEL_IS_LIBC
__weak_alias(sync,rump___sysimpl_sync);
@@ -793,7 +793,7 @@
register_t retval[2];
pid_t rv = -1;
- rsys_syscall(SYS_getppid, NULL, 0, retval);
+ (void)rsys_syscall(SYS_getppid, NULL, 0, retval);
if (sizeof(pid_t) > sizeof(register_t))
rv = *(pid_t *)retval;
else
@@ -841,7 +841,7 @@
register_t retval[2];
gid_t rv = -1;
- rsys_syscall(SYS_getegid, NULL, 0, retval);
+ (void)rsys_syscall(SYS_getegid, NULL, 0, retval);
if (sizeof(gid_t) > sizeof(register_t))
rv = *(gid_t *)retval;
else
@@ -892,7 +892,7 @@
register_t retval[2];
gid_t rv = -1;
- rsys_syscall(SYS_getgid, NULL, 0, retval);
+ (void)rsys_syscall(SYS_getgid, NULL, 0, retval);
if (sizeof(gid_t) > sizeof(register_t))
rv = *(gid_t *)retval;
else
@@ -3379,7 +3379,7 @@
register_t retval[2];
int rv = -1;
- rsys_syscall(SYS_issetugid, NULL, 0, retval);
+ (void)rsys_syscall(SYS_issetugid, NULL, 0, retval);
if (sizeof(int) > sizeof(register_t))
rv = *(int *)retval;
else
@@ -4977,7 +4977,7 @@
SPARG(&callarg, len) = len;
SPARG(&callarg, advice) = advice;
- rsys_syscall(SYS___posix_fadvise50, &callarg, sizeof(callarg), retval);
+ (void)rsys_syscall(SYS___posix_fadvise50, &callarg, sizeof(callarg), retval);
if (sizeof(int) > sizeof(register_t))
rv = *(int *)retval;
else
@@ -6417,7 +6417,8 @@
SPARG(&callarg, rqtp) = rqtp;
SPARG(&callarg, rmtp) = rmtp;
- rsys_syscall(SYS_clock_nanosleep, &callarg, sizeof(callarg), retval);
+ (void)rsys_syscall(SYS_clock_nanosleep, &callarg, sizeof(callarg),
+ retval);
if (sizeof(int) > sizeof(register_t))
rv = *(int *)retval;
else
@@ -6444,7 +6445,7 @@
SPARG(&callarg, pos) = pos;
SPARG(&callarg, len) = len;
- rsys_syscall(SYS_posix_fallocate, &callarg, sizeof(callarg), retval);
+ (void)rsys_syscall(SYS_posix_fallocate, &callarg, sizeof(callarg), retval);
if (sizeof(int) > sizeof(register_t))
rv = *(int *)retval;
else
Home |
Main Index |
Thread Index |
Old Index