Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/irix Updated PR_GETNSHARE and added PR_TERMCHILD
details: https://anonhg.NetBSD.org/src/rev/9352db28e489
branches: trunk
changeset: 526229:9352db28e489
user: manu <manu%NetBSD.org@localhost>
date: Sun Apr 28 17:56:53 2002 +0000
description:
Updated PR_GETNSHARE and added PR_TERMCHILD
diffstat:
sys/compat/irix/irix_prctl.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 8caae217535a -r 9352db28e489 sys/compat/irix/irix_prctl.c
--- a/sys/compat/irix/irix_prctl.c Sun Apr 28 17:55:47 2002 +0000
+++ b/sys/compat/irix/irix_prctl.c Sun Apr 28 17:56:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irix_prctl.c,v 1.5 2002/04/28 17:21:58 manu Exp $ */
+/* $NetBSD: irix_prctl.c,v 1.6 2002/04/28 17:56:53 manu Exp $ */
/*-
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_prctl.c,v 1.5 2002/04/28 17:21:58 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_prctl.c,v 1.6 2002/04/28 17:56:53 manu Exp $");
#include <sys/errno.h>
#include <sys/types.h>
@@ -88,10 +88,13 @@
/* We do nothing */
break;
case IRIX_PR_GETNSHARE: /* Number of sproc share group memb.*/
- /* sproc needed here, we do nothing until we have it */
- *retval = 1; /* one thread in the process */
+ /* XXX This only gives threads that share VM space ... */
+ *retval = p->p_vmspace->vm_refcnt;
break;
-
+ case IRIX_PR_TERMCHILD: /* Send SIGHUP to parrent on exit */
+ p->p_exitsig = SIGHUP;
+ *retval = 0;
+ break;
default:
printf("Warning: call to unimplemented prctl() command %d\n",
option);
Home |
Main Index |
Thread Index |
Old Index