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 o

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

Weird behavior with either reading or write()ing !?

2004-04-10 Thread Brandon Erhart
Hello, This is a rather odd bug/weird behavior. Confidence is high that it is not logic in my code this time. Please read the following carefully! In a web-crawling program I am writing, I deal with several thousand fds at a time. I am using FreeBSD's KQueue to keep track of them all so that I

Re: FreeBSD and Debugging?

2004-04-09 Thread Brandon Erhart
no=45)" Any ideas? Brandon At 11:17 PM 4/9/2004, you wrote: Brandon Erhart wrote: For Linux, I've seen valgrind (probably one of the best) as well as several others. In the commercial arena, Rational's PURIFY and Parasoft's INSURE++ work on every OS *but* BSD. Any partic

FreeBSD and Debugging?

2004-04-09 Thread Brandon Erhart
Hi, I've been writing an application for some time now, and I seem to have introduced some kind of bug that is smashing the stack or the heap *somewhere*. One of my variables (or more) are being changed, and the program relies on this being set to the last time data was read from a socket. It'

KQueue dropping events?

2004-04-08 Thread Brandon Erhart
Hi, I am writing a web sucker downer (mirror) for a project on indexing the web (got myself a 1TB raid, just gonna d/l text ..). I am using the KQueue API in FreeBSD 4.9-REL to take care of watching over my sockets. I seem to be running into a nasty problem, however. Here's a scenario. I set t