Re: Protection from the dreaded "rm -fr /"

2004-10-03 Thread Greg Shenaut
to users that it be the default, with "rm" reserved for special, extreme cases, then I think you will get the desired result, with zero breakage of existing scripts & conventions. Greg Shenaut ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: C code for parsing rc.conf?

2004-04-14 Thread Greg Shenaut
ever exec /your/program The shell's environment will be exported to your program's environment. Greg Shenaut ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-08 Thread Greg Shenaut
how to format drives, install distributions & packages, and so on. This "boot console" floppy would only need to change to support new hardware, and there could even be boot-source-specific versions of it. Once you had one that worked on a specific type of PC, you cou

Re: Ugly Huge BSD Monster

2003-09-01 Thread Greg Shenaut
s to a high degree, because it is a good idea. Has it ever been suggested to create one or more "dependencies" ports (or more to the point, packages)? I think it might be pretty useful to have something like that so that all of the "prerequisites" c

Re: Reading rc.conf from C programs?

2003-01-02 Thread Greg Shenaut
to the environment. It only sets them in the >local shell. Try the above where 'fred' is > #!/bin/sh > printenv >and you'll see what I mean. Try using the "set -a" command before reading rc.conf and it will work: #!/bin/sh set -a . /etc/rc.conf exec yourprog Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Reading rc.conf from C programs?

2003-01-01 Thread Greg Shenaut
rom within a C program. One off the wall way: #!/bin/sh set -a . /etc/rc.conf exec /your/program Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Programming the Parallel Port using ppi.

2002-10-27 Thread Greg Shenaut
In message <[EMAIL PROTECTED]>, David Nicholas Kayal cleopede: >Shouldn't 0xff result in 5v outputs? Sure, but in general you may get more information by using an alternating bit pattern (aa/55), that's all. Can you print from this port? Greg Shenaut To Unsubscribe:

Re: Programming the Parallel Port using ppi.

2002-10-27 Thread Greg Shenaut
random thought, it may not help here, but aa/ff are generally more useful than all 1's or all 0's. Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: RFC: style(9) isn't explicit about booleans for testing.

2002-03-06 Thread Greg Shenaut
read is extremely wrong of >that is actually happening. Too bad "strcmp" wasn't named "strdiff"--just think of all the hassle that would have prevented over the years... Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Help! serious problem.

2002-03-05 Thread Greg Shenaut
ned on. > T1 line from TELCO was shorted to house ground. > House wiring was NOT grounded, so house wiring found ground through T1! Another one I've seen is that the building air conditioners all get turned off at the end of the workday, and it takes a certain amount of time be

Re: stack alignment issues (was: unbelievable benchmark output)

2002-02-03 Thread Greg Shenaut
his has actually been an issue for ages, most commonly seen with >doubles. take a look at the thread at Has any "real world" program ever been significantly affected by this "problem"? Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: OS Textbook FreeBSD Appendix

2002-01-28 Thread Greg Shenaut
k the limitation was that you couldn't map a small piece of memory & share it among processes, only all text or all data, but I admit my memory is almost gone, and I don't remember PDP/11 architecture all that well either. Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Can TCP changes be put in RELENG_4?

2001-12-06 Thread Greg Shenaut
wever, I do see the value in making it easier to have a faster, more memory-intensive kernel, so why not just provide a "turbo kernel" in the standard root distribution along with the current "generic kernel"? Shoot, I think even casual, non kernel-configuring users might be interest

Re: head(1) speedup

2001-11-02 Thread Greg Shenaut
lines? I'm thinking of the impact of realloc and memcpy on speed. Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Duping a hard disk

2001-10-23 Thread Greg Shenaut
avoid the exploit. The system in our lab that was hacked a while back was running 3.2, so the exploit definitely works on it. Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: ALT- (Was: how to make 'for' understand two words as asingleargumen)

2001-10-04 Thread Greg Shenaut
at most (not quite all) character sets in which 0xa0 is defined at all use it for unbreakable space. (But it is not defined in 7-bit ASCII, which is the FreeBSD default.) Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: ALT- (Was: how to make 'for' understand two words as a single argumen)

2001-10-02 Thread Greg Shenaut
In message <[EMAIL PROTECTED]>, Giorgos Keramidas cleopede: >Greg Shenaut <[EMAIL PROTECTED]> wrote: >> >> Just out of curiosity, what would be an instance where you have >> wanted a space in a filename and wouldn't have been satisfied with >> 0xa0 i

Re: ALT- (Was: how to make 'for' understand two words as a single argumen)

2001-10-02 Thread Greg Shenaut
In message <[EMAIL PROTECTED]>, Giorgos Keramidas cleopede: >Greg Shenaut <[EMAIL PROTECTED]> wrote: >> >> I just throw out the idea--as for where to enforce such a convention, >> I agree that the file-system definition may not be the best place, >> but

Re: ALT- (Was: how to make 'for' understand two words as a single argumen)

2001-10-02 Thread Greg Shenaut
In message <[EMAIL PROTECTED]>, void cleopede: >On Tue, Oct 02, 2001 at 07:19:37AM -0700, Greg Shenaut wrote: >> >> Is there any reason why the "unbreakable space" (0xa0) shouldn't be >> the only kind of space character used/allowed in filenames? >

ALT- (Was: how to make 'for' understand two words as a single argumen)

2001-10-02 Thread Greg Shenaut
ace in the middle, or not? Is there any reason why the "unbreakable space" (0xa0) shouldn't be the only kind of space character used/allowed in filenames? Greg Shenaut To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: precise timing

2001-09-30 Thread Greg Shenaut
In message <200109301318.44290@EO>, Bart Kus cleopede: >On Sunday 30 September 2001 12:47, Greg Shenaut wrote: >> Well, setitimer has a maximum rate of 100 Hz, with a slop factor >> sometimes much greater than 10 ms. This was the result of some >> recent testing on a

Re: precise timing

2001-09-30 Thread Greg Shenaut
one at a time, then maybe the speaker port on the motherboard (a programmable counter-timer) would be more reliable. Another idea is to use a fifo'ed UART's data out line and fiddle with the baud rate to vary the speed of the pulses. And one final idea is to use a (possibly port-po