Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-12 Thread Devin Teske
On Tue, 2010-10-12 at 12:10 -0700, Doug Barton wrote: > On 2010-10-11 at 10:40 -0700, Doug Barton wrote: > | So to summarize, the general idea is a good one and needed, and an area > | that I'd like to see more work in. Perhaps it might be a good idea to > | move the discussion about that to freeb

Re: Scheduler Question

2010-10-12 Thread Garrett Cooper
On Sat, Oct 9, 2010 at 4:46 PM, Eknath Venkataramani wrote: > D&I of the FreeBSD Operating System says it's gonna refer to the BSD default > scheduler, the 'time share scheduler' does this mean sched_4BSD.c(In the > introduction section of Chapter 4) handles only time-share process? > If so, then

Re: sysrc -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-12 Thread Jilles Tjoelker
On Sat, Oct 09, 2010 at 03:39:44PM -0700, Devin Teske wrote: > On Oct 9, 2010, at 1:25 PM, Garrett Cooper wrote: [...] > The second usage (": function") aids in finding the function > declaration among the usages. See, in Perl, I can simply search for > "sub" preceding the function name. In C, I te

Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-12 Thread Doug Barton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 [ Snipping the areas in which there is no disagreement ] On 10/11/2010 12:22 PM, Devin Teske wrote: | On Mon, 2010-10-11 at 10:40 -0700, Doug Barton wrote: | | c) misses some knowledge of FreeBSD resources (e.g., mktemp) | |> I'm adding that

Re: [PATCH] Fix /bin/sh compilation with CFLAGS += -DDEBUG > 1

2010-10-12 Thread John Baldwin
On Tuesday, October 12, 2010 2:31:36 pm Garrett Cooper wrote: > On Tue, Oct 12, 2010 at 5:30 AM, John Baldwin wrote: > > You should use %z to print size_t's, but even better is to just use %t > > to print a ptrdiff_t (which is the type that holds the difference of two > > pointers). > > Ok. T

Re: [PATCH] Fix /bin/sh compilation with CFLAGS += -DDEBUG > 1

2010-10-12 Thread Garrett Cooper
On Tue, Oct 12, 2010 at 5:30 AM, John Baldwin wrote: > On Tuesday, October 12, 2010 6:47:49 am Garrett Cooper wrote: >> Hi, >>     It looks like the format strings are broken on 64-bit archs in >> /bin/sh's TRACE functionality (can be enabled by uncommenting -DDEBUG >> > 1 in bin/sh/Makefile). The

Re: [PATCH] Fix /bin/sh compilation with CFLAGS += -DDEBUG > 1

2010-10-12 Thread John Baldwin
On Tuesday, October 12, 2010 6:47:49 am Garrett Cooper wrote: > Hi, > It looks like the format strings are broken on 64-bit archs in > /bin/sh's TRACE functionality (can be enabled by uncommenting -DDEBUG > > 1 in bin/sh/Makefile). The attached patch fixes this functionality > again so one can

[PATCH] Fix /bin/sh compilation with CFLAGS += -DDEBUG > 1

2010-10-12 Thread Garrett Cooper
Hi, It looks like the format strings are broken on 64-bit archs in /bin/sh's TRACE functionality (can be enabled by uncommenting -DDEBUG > 1 in bin/sh/Makefile). The attached patch fixes this functionality again so one can trace sh's calls with TRACE, which may or may be helpful to those debugg