Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/compat/sys Return type of compat wait functions sho...
details: https://anonhg.NetBSD.org/src/rev/d9714e161483
branches: trunk
changeset: 336888:d9714e161483
user: justin <justin%NetBSD.org@localhost>
date: Thu Mar 26 11:17:08 2015 +0000
description:
Return type of compat wait functions should be pid_t not int.
diffstat:
lib/libc/compat/sys/compat_wait4.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (46 lines):
diff -r 7b394bac51d9 -r d9714e161483 lib/libc/compat/sys/compat_wait4.c
--- a/lib/libc/compat/sys/compat_wait4.c Thu Mar 26 10:37:06 2015 +0000
+++ b/lib/libc/compat/sys/compat_wait4.c Thu Mar 26 11:17:08 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_wait4.c,v 1.2 2009/01/11 02:46:27 christos Exp $ */
+/* $NetBSD: compat_wait4.c,v 1.3 2015/03/26 11:17:08 justin Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat_wait4.c,v 1.2 2009/01/11 02:46:27 christos Exp $");
+__RCSID("$NetBSD: compat_wait4.c,v 1.3 2015/03/26 11:17:08 justin Exp $");
#endif /* LIBC_SCCS and not lint */
#define __LIBC12_SOURCE__
@@ -59,11 +59,11 @@
/*
* libc12 compatible wait4 routine.
*/
-int
+pid_t
wait3(int *status, int options, struct rusage50 *ru50)
{
struct rusage ru;
- int rv;
+ pid_t rv;
if ((rv = __wait350(status, options, ru50 ? &ru : NULL)) == -1)
return rv;
@@ -72,11 +72,11 @@
return rv;
}
-int
+pid_t
wait4(pid_t wpid, int *status, int options, struct rusage50 *ru50)
{
struct rusage ru;
- int rv;
+ pid_t rv;
if ((rv = __wait450(wpid, status, options, ru50 ? &ru : NULL)) == -1)
return rv;
Home |
Main Index |
Thread Index |
Old Index