Re: Review/testing request: changing the detection of data_addr/text_addr

2010-03-24 Thread Nathan Whitehorn
John Baldwin wrote: On Wednesday 24 March 2010 3:29:23 pm Nathan Whitehorn wrote: We currently detect the offical "text" and "data" addresses for ELF files in kern/imgact_elf.c by the heuristic of calling whichever section contains the executable's entry point the text section and everything

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread Ivan Voras
2010/3/24 Dag-Erling Smørgrav : > Ivan Voras writes: >> C is good enough. I'm after /bin/sh here. > > Bourne shell is a perfectly fine programming language if you know how to > use it. I'll agree that it's fine but only in the abstract - e.g. that it is Turing complete :) (But then again, I've h

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread Ivan Voras
On 24 March 2010 20:03, Peter Jeremy wrote: > On 2010-Mar-24 14:11:21 +0100, Ivan Voras wrote: > There's awk (though it's somewhat restricted in its abilities to do > anything more than text manipulation) but in principle, I agree.  The > requirements as I see them are (in no particular order):

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread Garrett Cooper
On Wed, Mar 24, 2010 at 6:11 AM, Ivan Voras wrote: > On 03/23/10 16:08, John Baldwin wrote: > > [snip - looks like a good utility, will probably use it instead of > mergemaster if it gets committed, like the idea about automated updates] > >> To that end, I wrote a new tool that I think does a dec

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread Dag-Erling Smørgrav
Ivan Voras writes: > C is good enough. I'm after /bin/sh here. Bourne shell is a perfectly fine programming language if you know how to use it. DES -- Dag-Erling Smørgrav - d...@des.no ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.

Re: Review/testing request: changing the detection of data_addr/text_addr

2010-03-24 Thread John Baldwin
On Wednesday 24 March 2010 3:29:23 pm Nathan Whitehorn wrote: > We currently detect the offical "text" and "data" addresses for ELF > files in kern/imgact_elf.c by the heuristic of calling whichever section > contains the executable's entry point the text section and everything > else data. In g

Re: Review/testing request: changing the arguments of exec_setregs()

2010-03-24 Thread John Baldwin
On Wednesday 24 March 2010 3:18:35 pm Nathan Whitehorn wrote: > In order to properly implement exec_setregs() on powerpc64, I must > hand-relocate the function descriptor pointed to by the executable entry > point. To do this, exec_setregs() must be passed the relocation base of > the executable

Review/testing request: changing the arguments of exec_setregs()

2010-03-24 Thread Nathan Whitehorn
In order to properly implement exec_setregs() on powerpc64, I must hand-relocate the function descriptor pointed to by the executable entry point. To do this, exec_setregs() must be passed the relocation base of the executable, which would originally come from the image_params struct. The patc

Re: kenv - output needed

2010-03-24 Thread Atom Smasher
thanks! if anyone has any input that doesn't behave well, please let me know. also, this seems to be all x86 variant hardware... does anyone have access to other hardware platforms? SHA1 (report_smbios.zsh.gz) = 0afc4c7a5170eaf549b7a1c42d8793861433c654 SHA1 (smbios.txt.gz) = 612353d1c30f7c16f

Review/testing request: changing the detection of data_addr/text_addr

2010-03-24 Thread Nathan Whitehorn
We currently detect the offical "text" and "data" addresses for ELF files in kern/imgact_elf.c by the heuristic of calling whichever section contains the executable's entry point the text section and everything else data. In general, both this concept and the very few things that use them are o

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread John Baldwin
On Wednesday 24 March 2010 10:49:12 am Ivan Voras wrote: > On 03/24/10 15:02, John Baldwin wrote: > > On Wednesday 24 March 2010 9:11:21 am Ivan Voras wrote: > >> On 03/23/10 16:08, John Baldwin wrote: > >> > >> [snip - looks like a good utility, will probably use it instead of > >> mergemaster if

Re: Another tool for updating /etc

2010-03-24 Thread John Baldwin
On Wednesday 24 March 2010 12:57:48 pm Bakul Shah wrote: > On Tue, 23 Mar 2010 11:08:45 EDT John Baldwin wrote: > > or 'cvs up'. If the local changes I made do not conflict, then just merge > > the > > changes automatically (e.g. enabling a serial console in /etc/ttys should > > not > > confli

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread Peter Jeremy
On 2010-Mar-24 14:11:21 +0100, Ivan Voras wrote: >Since the issue comes around very rarely, I assume there are not many >people who also get the shivers when they see a shell script (and then a >"posixy" /bin/sh shell script) more than a 100 lines long? :) With the specific exception of GNU con

Re: Another tool for updating /etc

2010-03-24 Thread Bakul Shah
On Tue, 23 Mar 2010 11:08:45 EDT John Baldwin wrote: > or 'cvs up'. If the local changes I made do not conflict, then just merge the > changes automatically (e.g. enabling a serial console in /etc/ttys should not > conflict with $FreeBSD$ changing when moving from 7.2 to 7.3). > > To that end,

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread Ivan Voras
On 03/24/10 15:02, John Baldwin wrote: On Wednesday 24 March 2010 9:11:21 am Ivan Voras wrote: On 03/23/10 16:08, John Baldwin wrote: [snip - looks like a good utility, will probably use it instead of mergemaster if it gets committed, like the idea about automated updates] To that end, I wrot

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread John Baldwin
On Wednesday 24 March 2010 9:11:21 am Ivan Voras wrote: > On 03/23/10 16:08, John Baldwin wrote: > > [snip - looks like a good utility, will probably use it instead of > mergemaster if it gets committed, like the idea about automated updates] > > > To that end, I wrote a new tool that I think do

Re: Another tool for updating /etc -- lua||other script language bikeshed

2010-03-24 Thread Ivan Voras
On 03/23/10 16:08, John Baldwin wrote: [snip - looks like a good utility, will probably use it instead of mergemaster if it gets committed, like the idea about automated updates] To that end, I wrote a new tool that I think does a decent job of solving these goals. Since the issue comes aro