From owner-freebsd-questions Tue Nov 21 8:33:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id 583CF37B4C5 for ; Tue, 21 Nov 2000 08:33:07 -0800 (PST) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id TAA60200 for ; Tue, 21 Nov 2000 19:59:17 +0300 (MSK) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.1/8.10.0) id eALGWqG30871 for freebsd-questions@freebsd.org; Tue, 21 Nov 2000 19:32:52 +0300 Date: Tue, 21 Nov 2000 19:32:52 +0300 From: "Igor' Robul'" To: freebsd-questions@freebsd.org Subject: Re: Systems programming questions... Message-ID: <20001121193252.B29687@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: freebsd-questions@freebsd.org References: <20001121092902.A6568@online.dct.com> <20001121173651.C9661@ringworld.oblivion.bg> <20001121095053.B6568@online.dct.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <20001121095053.B6568@online.dct.com>; from markm@online.dct.com on Tue, Nov 21, 2000 at 09:50:53AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Nov 21, 2000 at 09:50:53AM -0600, Mark wrote: > with the "ifconfig ... alias" system call. I guess the next step is to look > at the source for /sbin/ifconfig, like you suggested. But I think that better is just use execl(3) to execute ifconfig. This guarant that your C program will work even if somethink in kernel or ifconfig will be changed. -- Igor' Robul', Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message