From owner-cvs-gnu Tue Feb 13 16:21:53 1996 Return-Path: owner-cvs-gnu Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA20025 for cvs-gnu-outgoing; Tue, 13 Feb 1996 16:21:53 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id QAA20014 Tue, 13 Feb 1996 16:21:46 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id BAA09070; Wed, 14 Feb 1996 01:21:38 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id BAA20157; Wed, 14 Feb 1996 01:21:37 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id AAA09609; Wed, 14 Feb 1996 00:55:17 +0100 (MET) From: J Wunsch Message-Id: <199602132355.AAA09609@uriah.heep.sax.de> Subject: Re: cvs commit: src/gnu/usr.bin/perl/lib gethostname.pl Makefile To: CVS-committers@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org Date: Wed, 14 Feb 1996 00:55:15 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199602132330.QAA24492@rocky.sri.MT.net> from "Nate Williams" at Feb 13, 96 04:30:19 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-cvs-gnu@FreeBSD.ORG Precedence: bulk As Nate Williams wrote: > > My concern was to avoid the overhead from > > the additional process, and the fact that i don't like to call > > unneeded external programs at all in setuid scripts. > > Isn't calling sysctl an additiona/external program? I'm using __sysctl(2). It took me half an hour to figure out how to use it from Perl, and i'd like to save this time for other people needing the same. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)