From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: setgroups Date: 18 Apr 2003 12:31:57 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <874r4w85b6.fsf@zagadka.ping.de> References: <87brz4dagq.fsf@raven.i.defaultvalue.org> <87u1cwcwcq.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050661983 21943 80.91.224.249 (18 Apr 2003 10:33:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Apr 2003 10:33:03 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 18 12:33:01 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 196TAR-0005g6-00 for ; Fri, 18 Apr 2003 12:32:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 196TAy-0002km-01 for guile-devel@m.gmane.org; Fri, 18 Apr 2003 06:33:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 196TAP-000290-00 for guile-devel@gnu.org; Fri, 18 Apr 2003 06:32:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 196TAA-0001jF-00 for guile-devel@gnu.org; Fri, 18 Apr 2003 06:32:12 -0400 Original-Received: from mail.dokom.net ([195.253.8.218]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 196TA1-0001My-00 for guile-devel@gnu.org; Fri, 18 Apr 2003 06:32:01 -0400 Original-Received: from dialin.speedway43.dip213.dokom.de ([195.138.43.213] helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 3.36 #3) id 196TB7-0008NJ-00 for guile-devel@gnu.org; Fri, 18 Apr 2003 12:33:09 +0200 Original-Received: (qmail 32328 invoked by uid 1000); 18 Apr 2003 10:31:57 -0000 Original-To: Rob Browning In-Reply-To: <87u1cwcwcq.fsf@raven.i.defaultvalue.org> Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2183 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2183 Rob Browning writes: > I might add a > > scm_remember_upto_here_1 (group_vec); > > here just to be safe, but that might be overkill, depending on what > SCM_VECTOR_REF does. The scm_remember_upto_here is not necessary because SCM_VECTOR_REF returns a SCM, which is properly protected by the conservative scanning. Had you used SCM_VELTS, then you would need the scm_remember_upto_here since SCM_VELTS returns a 'naked' pointer to the SCM array of the the vector and the conservative scanning knows nothing about this (it only knows about SCMs). However, just assuming that the vector holds inums is not OK, I'd say. You need to use scm_num2ulong and then check that it fits in a gid_t. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel