Date: Thu, 2 Jan 2003 01:20:42 +0200 From: Matthew West <mwest@uct.ac.za> To: Tim Kientzle <kientzle@acm.org> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? Message-ID: <20030102012042.A16965@apotheosis.org.za> In-Reply-To: <3E1362FD.6070001@acm.org>; from "Tim Kientzle" on Wed, Jan 01, 2003 at 01:51:57PM References: <3E1362FD.6070001@acm.org>
index | next in thread | previous in thread | raw e-mail
On Wed, Jan 01, 2003 at 01:51:57PM -0800, Tim Kientzle wrote:
> I'm trying to figure out how to read and use /etc/rc.conf
> configuration variables from within a C program.
You could perhaps copy the way that "The Fish" does it?
Take a look at "ports/sysutils/thefish".
The "parser.c" code appears to read /etc/{,defaults/}rc.conf and place
all the options into a linked list.
--
mwest@uct.ac.za
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030102012042.A16965>
