From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 14 15:23:08 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD0B816A4CE for ; Wed, 14 Apr 2004 15:23:08 -0700 (PDT) Received: from thong.s2s.msu.ru (thong.s2s.msu.ru [193.232.119.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9411B43D31 for ; Wed, 14 Apr 2004 15:23:07 -0700 (PDT) (envelope-from chinhngt@sectorb.msk.ru) Received: from hq.sectorb.msk.ru (petaflop.lcm.msu.ru [193.232.113.220]) by thong.s2s.msu.ru (Postfix) with ESMTP id C2313864B; Thu, 15 Apr 2004 02:23:05 +0400 (MSD) Received: from unix.local (unix.local [172.16.12.120]) by hq.sectorb.msk.ru (Postfix) with ESMTP id 359791A81; Thu, 15 Apr 2004 02:23:05 +0400 (MSD) Date: Thu, 15 Apr 2004 02:23:15 +0400 (MSD) From: Nguyen Tam Chinh X-X-Sender: chinhngt@chinhngt.b.gz.ru To: Craig Rodrigues In-Reply-To: <20040414215601.GA3923@crodrigues.org> Message-ID: <20040415021631.N1878@chinhngt.b.gz.ru> References: <20040414215601.GA3923@crodrigues.org> Website: http://chinhngt.hotmail.ru Home-addr: Vietnam_SR:Hue-city:45-Le_Huan-st Current-addr: Russian_Federation:Moscow:119234:Main_Building-MSU:Sector_B:Room_539 Keywords: 216091683 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: C code for parsing rc.conf? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 22:23:08 -0000 On Wed, 14 Apr 2004, Craig Rodrigues wrote: > Hi, > > Is there a C library that comes with FreeBSD which > can be used to parse, append to, and validate > rc.conf? > > I'd like to customize some of the settings in /etc/rc.conf > with my own GUI-based program. It's not too hard > to write something on my own, but I was wondering > if a reusable library existed in FreeBSD 4.x or 5.x for doing this. > rc.conf is parsed/executed by scripts in /etc/rc*. With your GUI program, simply take and change these scripts. ----- With best regards, | The Power to Serve Nguyen Tam Chinh | http://www.FreeBSD.org