Re: C code for parsing rc.conf?

2004-04-14 Thread Greg Shenaut
On Apr 14, 2004, at 5:14 PM, Tim Kientzle wrote: Craig Rodrigues wrote: 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 so

Re: C code for parsing rc.conf?

2004-04-14 Thread Tim Kientzle
Craig Rodrigues wrote: 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 reusab

Re: C code for parsing rc.conf?

2004-04-14 Thread Brandon Erhart
Ah yes, I was just being crude .. giving some lame example :-P Parsing the rc.conf would take considerably more work than that "Tha whistles go WOO!" - Bubb Rubb Brandon At 04:59 PM 4/14/2004, you wrote: --- Brandon Erhart <[EMAIL PROTECTED]> wrote: > Not that I know of, but it should be

Re: C code for parsing rc.conf?

2004-04-14 Thread Brian O'Shea
--- Brandon Erhart <[EMAIL PROTECTED]> wrote: > Not that I know of, but it should be a breeze to write a simple parsing > engine. > Just ignore all lines starting with a '#', and break at the '=' sign. The > first part would be your variable name, the last part your value for it. Don't forget to

Re: C code for parsing rc.conf?

2004-04-14 Thread Brandon Erhart
Not that I know of, but it should be a breeze to write a simple parsing engine. Just ignore all lines starting with a '#', and break at the '=' sign. The first part would be your variable name, the last part your value for it. Then just display variables and their names, and maybe parse the variab

Re: C code for parsing rc.conf?

2004-04-14 Thread Dan Nelson
In the last episode (Apr 15), Nguyen Tam Chinh said: > On Wed, 14 Apr 2004, Craig Rodrigues wrote: > > 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

Re: C code for parsing rc.conf?

2004-04-14 Thread Nguyen Tam Chinh
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 somethin

C code for parsing rc.conf?

2004-04-14 Thread Craig Rodrigues
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 existe

Re: Invalid realloc size of 0 when installing on an AMD athlonXP barton poweredmachine

2004-04-14 Thread Baldur Gislason
Turned out to be a bug in sysinstall when booting from a floppy and installing over a network, I had no problems when I just wrote the ISO but I prefer network install since it takes me about an hour to download the ISO, and by that time I could have the machine up and running if I used network

Re: killpower(UPS inverter shutdown)

2004-04-14 Thread Julian H. Stacey
Gregory Edigarov wrote: > Hello, > > If anyone have the working sources to killpower an USB UPS under > FreeBSD please enlight me. I have APC RS 500, but an example for any > other should also be ok. Thanks a lot in advance. Tip: Also try mail lists & web of the UPS ports on FreeBSD (4 when I co