Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/irix One more thread related command in prctl to ...



details:   https://anonhg.NetBSD.org/src/rev/5fd8525d48ab
branches:  trunk
changeset: 518619:5fd8525d48ab
user:      manu <manu%NetBSD.org@localhost>
date:      Sun Dec 02 18:06:59 2001 +0000

description:
One more thread related command in prctl to make dynamic linking happy

diffstat:

 sys/compat/irix/irix_prctl.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 70337da38c3e -r 5fd8525d48ab sys/compat/irix/irix_prctl.c
--- a/sys/compat/irix/irix_prctl.c      Sun Dec 02 17:04:41 2001 +0000
+++ b/sys/compat/irix/irix_prctl.c      Sun Dec 02 18:06:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irix_prctl.c,v 1.1 2001/12/02 09:23:58 manu Exp $ */
+/*     $NetBSD: irix_prctl.c,v 1.2 2001/12/02 18:06:59 manu Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_prctl.c,v 1.1 2001/12/02 09:23:58 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_prctl.c,v 1.2 2001/12/02 18:06:59 manu Exp $");
 
 #include <sys/errno.h>
 #include <sys/types.h>
@@ -65,9 +65,13 @@
 #endif
 
        switch(option) {
-       case IRIX_PR_LASTSHEXIT: /* "Last sproc exit" */
+       case IRIX_PR_LASTSHEXIT:        /* "Last sproc exit" */
                /* 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 */
+               break;
 
        default:
                printf("Warning: call to unimplemented prctl() command %d\n",



Home | Main Index | Thread Index | Old Index