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

2010-10-10 Thread Daniel Braniss
On 10/9/10 7:30 PM, Garrett Cooper wrote: [ ... ] is the same thing as [ -n ... ] or test -n ... [ ! ... ] is the same things as [ -z ... ] or test -z ... I'll never understand why people have to throw an extra letter in there and then compare it to that letter. I ran into issues

Re: Timestamps in static libraries

2010-10-10 Thread Erik Cederstrand
Den 06/10/2010 kl. 14.35 skrev Erik Cederstrand: Den 06/10/2010 kl. 13.07 skrev Erik Cederstrand: Is something like the following acceptable? Without risking changes to buildworld/distribution just now, this would allow me to dump contents of an archive and re-insert them with '0' for

Deterministic builds?

2010-10-10 Thread Erik Cederstrand
Hi hackers As a followup to the Timestamps in static libraries thread which resulted in a '-D' option to ar(1), I'd like to discuss if it is a worthy goal of the Project to create deterministic builds. By that I mean for two make build+install world+kernel+distribution runs, every contained

anyone got advice on sendmail and TLS on 8.1?

2010-10-10 Thread Julian Elischer
When I last did sendmail there wasn't any TLS/SSL stuff. has anyone got an exact howto as to how to enable a simple sendmail server? all I want is: TLS and authenticated email submission by me and my family able to forward the email anywhere (maybe just to my ISP but who knows) (outgoing)

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

2010-10-10 Thread Devin Teske
Trimming further context... On Oct 9, 2010, at 7:30 PM, Garrett Cooper wrote: Trimming out some context... On Sat, Oct 9, 2010 at 3:39 PM, Devin Teske dte...@vicor.com wrote: ... Perhaps you meant env FAILURE=0 sysrc foo reboot ? $ cat failure.sh #!/bin/sh echo FAILURE:

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

2010-10-10 Thread Devin Teske
On Oct 9, 2010, at 10:25 PM, Julian Elischer wrote: Ah grasshoppers... /me wonders if anyone will get the full significance of that.. On 10/9/10 3:39 PM, Devin Teske wrote: On Oct 9, 2010, at 1:25 PM, Garrett Cooper wrote: Why not just do... if [ x$rc_conf_files = x -o

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

2010-10-10 Thread Garrett Cooper
On Sun, Oct 10, 2010 at 3:49 PM, Devin Teske dte...@vicor.com wrote: Trimming further context... On Oct 9, 2010, at 7:30 PM, Garrett Cooper wrote: ... Perhaps you meant env FAILURE=0 sysrc foo reboot ? $ cat failure.sh #!/bin/sh echo FAILURE: $FAILURE $ FAILURE=0 sh failure.sh

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

2010-10-10 Thread Devin Teske
On Oct 10, 2010, at 4:51 PM, Garance A Drosihn wrote: On 10/10/10 7:09 PM, Devin Teske wrote: However, enclosing the argument (as the 'x$foo' portion is really just the first argument to the '[' built-in) in quotes: [ $foo = x ] makes it so that the expansion is taken as: [ -n = x

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

2010-10-10 Thread Devin Teske
On Oct 10, 2010, at 4:51 PM, Garance A Drosihn dro...@rpi.edu wrote: The latter does not cause an error. Try it: # [ -n = x ] ; echo $? 1 # [ -e = no ] ; echo $? 1 # [ -e = -n ] ; echo $? 1 1 is error. 0 is success. -- Devin ___

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

2010-10-10 Thread Garance A Drosihn
On 10/10/10 7:09 PM, Devin Teske wrote: On Oct 9, 2010, at 10:25 PM, Julian Elischer wrote: For what it matters, I'v enever found the [ x$foo = x ] construct to be useful. the quoting seems to work for everything I've ever worked on. There have been times where I had scripts which

Run queue questions

2010-10-10 Thread Eknath Venkataramani
How would the scheduling overhead and the system performance be affected when the total number of run queues is reduced from 64 to 32? -- Eknath Venkataramani ___ freebsd-hackers@freebsd.org mailing list

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

2010-10-10 Thread Garance A Drosihn
On 10/10/10 8:46 PM, Devin Teske wrote: On Oct 10, 2010, at 4:51 PM, Garance A Drosihn dro...@rpi.edu mailto:dro...@rpi.edu wrote: The latter does not cause an error. Try it: # [ -n = x ] ; echo $? 1 # [ -e = no ] ; echo $? 1 # [ -e = -n ] ; echo $? 1 1 is error. 0 is success. -- Um,

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

2010-10-10 Thread Anonymous
Devin Teske dte...@vicor.com writes: GLOBALS # Global exit status variables : ${SUCCESS:=0} : ${FAILURE:=1} Should this really be set to something other than 0 or 1 by the end-user's environment? This would simplify a lot of

Re: issue with unsetting 'arch' flag

2010-10-10 Thread Garrett Cooper
On Thu, Oct 7, 2010 at 3:36 AM, Alexander Best arun...@freebsd.org wrote: On Wed Oct  6 10, Garrett Cooper wrote: On Wed, Oct 6, 2010 at 4:03 PM, Garrett Cooper gcoo...@freebsd.org wrote: On Wed, Oct 6, 2010 at 3:01 PM, Sergey Kandaurov pluk...@gmail.com wrote: On 6 October 2010 23:38,

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

2010-10-10 Thread Devin Teske
On Oct 10, 2010, at 5:15 PM, Garrett Cooper wrote: On Sun, Oct 10, 2010 at 3:49 PM, Devin Teske dte...@vicor.com wrote: Hmmm, sysctl(9) is lock-free, which might imply that both sysctl(8) and sysctl(3) are also lock-free, and proposed sysrc(8) is lock-free, so might that imply that the