Re: Style(9) and portability

2004-03-06 Thread Marcel Moolenaar
On Sat, Mar 06, 2004 at 12:18:21PM -0800, Tim Kientzle wrote: > One of the recommendations in style(9) is > inherently non-portable. I'm trying > to ensure that the new code I'm writing > for FreeBSD is portable to other systems, > so I've been scratching my head over > how to deal with the versio

Re: Style(9) and portability

2004-03-06 Thread Garance A Drosihn
At 12:18 PM -0800 3/6/04, Tim Kientzle wrote: ... I've been scratching my head over how to deal with the version ID code that is supposed to apear as the first two lines of any FreeBSD source file: #include __FBSDID("$FreeBSD$"); Clearly, I cannot reasonably assume that all platforms define a __FB

Re: Strange instructions in compiler output

2004-03-06 Thread Dag-Erling Smørgrav
chungwei Hsiung <[EMAIL PROTECTED]> writes: > thank you for the clarification, but how does FreeBSD know where the > passed arguments are?? just out of curiosity.. They are on the stack, just like in a regular function call. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED]

Re: Strange instructions in compiler output

2004-03-06 Thread chungwei Hsiung
OH yes... this is FreeBSD not linux, I will try it on the linux box later thank you for the clarification, but how does FreeBSD know where the passed arguments are?? just out of curiosity.. thanks again Chungwei On Sat, 06 Mar 2004 21:47:10 +0100 [EMAIL PROTECTED] (Dag-Erling Smørgrav) wrot

Re: Strange instructions in compiler output

2004-03-06 Thread Dag-Erling Smørgrav
chungwei Hsiung <[EMAIL PROTECTED]> writes: > I still don't understand it because we are supposed to pass in the > op code 0xb to %eax, and arguments to %ebx, %ecx, and %edx before > calling interupt, but I can't see any of those instruction > anywhere. Did I miss anything? Huh? Arguments are pas

Re: Strange instructions in compiler output

2004-03-06 Thread chungwei Hsiung
thanks for the reply compile the code by gcc -o shellcode -ggdb -static shellcode.c actually giving me the code you showed below I still don't understand it because we are supposed to pass in the op code 0xb to %eax, and arguments to %ebx, %ecx, and %edx before calling interupt, but I can't s

Re: Strange instructions in compiler output

2004-03-06 Thread Dag-Erling Smørgrav
Anthony Schneider <[EMAIL PROTECTED]> writes: > On Sat, Mar 06, 2004 at 02:26:51PM +, chungwei Hsiung wrote: > > gcc -o shellcode -ggdb -static shellcode.c > try compiling with the -static flag the gcc. Reading is fast becoming a lost art... Anyway, here's the code for execve(): 08048224 <__

Re: Style(9) and portability

2004-03-06 Thread Colin Percival
At 20:18 06/03/2004, Tim Kientzle wrote: I've been scratching my head over how to deal with the version ID code that is supposed to apear as the first two lines of any FreeBSD source file: #include __FBSDID("$FreeBSD$"); Clearly, I cannot reasonably assume that all platforms define a __FBSDID macr

Re: Strange instructions in compiler output (was: A simple question)

2004-03-06 Thread Anthony Schneider
try compiling with the -static flag the gcc. then 'disassemble execve'. -Anthony. On Sat, Mar 06, 2004 at 02:26:51PM +, chungwei Hsiung wrote: > Hello everyone > Thanks for fellows' previous helps. I actually have a further question. I read an > article that it says if I compile the follo

Style(9) and portability

2004-03-06 Thread Tim Kientzle
One of the recommendations in style(9) is inherently non-portable. I'm trying to ensure that the new code I'm writing for FreeBSD is portable to other systems, so I've been scratching my head over how to deal with the version ID code that is supposed to apear as the first two lines of any FreeBSD

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Helge Oldach
[EMAIL PROTECTED]: >Tijl Coosemans <[EMAIL PROTECTED]> writes: >> I have an old toshiba which also needs PNPBIOS in 4-STABLE and >> when I tried 5-CURRENT sound just worked. Of course that doesn't say >> anything about your setup... > >PNPBIOS is on by default (and non-optional) in 5.x. That's gre

Re: Strange instructions in compiler output (was: A simple question)

2004-03-06 Thread chungwei Hsiung
Hello everyone Thanks for fellows' previous helps. I actually have a further question. I read an article that it says if I compile the following program #include int main(){ char *name[2]; name[0] = "/bin/sh"; name[1] = NULL; execve(name[0],name,NULL); return 0; } by gcc -o shellc

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Mathew Kanner
On Mar 05, Daniel Lang wrote: > Hi, > > David Raistrick wrote on Fri, Mar 05, 2004 at 08:27:56AM -0800: > [..] > > kldload snd_driver > > > > is of course the correct way to do it. FWIW, kldunload snd_driver does > > /not/ unload all of the modules that kldload snd_driver loads. > [..] > > snd_

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Dag-Erling Smørgrav
Tijl Coosemans <[EMAIL PROTECTED]> writes: > I have an old toshiba which also needs PNPBIOS in 4-STABLE and > when I tried 5-CURRENT sound just worked. Of course that doesn't say > anything about your setup... PNPBIOS is on by default (and non-optional) in 5.x. DES -- Dag-Erling Smørgrav - [EMAI

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Dag-Erling Smørgrav
Jamie Bowden <[EMAIL PROTECTED]> writes: > It also presumes the end user has net access, which is not a given. The handbook is installed in /usr/share/doc, though it isn't updated when you build world. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Dag-Erling Smørgrav
Dan Langille <[EMAIL PROTECTED]> writes: > On Fri, 5 Mar 2004, Dan Langille wrote: > > *That* explanation is vast difference to saying they have to read man > > pcm(4). The difference is sigficicant. > In the same breath, someone needs to install a spell checker and verify > the grammer. ^^^

Re: Strange instructions in compiler output

2004-03-06 Thread Chungwei Hsiung
Greg 'groggy' Lehey wrote: On Friday, 5 March 2004 at 18:43:11 -0500, Chungwei Hsiung wrote: Greg 'groggy' Lehey wrote: On Friday, 5 March 2004 at 13:43:04 -0500, Chungwei Hsiung wrote: Hello.. I am super new to this list, and I have a simple question that I don't know why it do

Re: Strange instructions in compiler output

2004-03-06 Thread Chungwei Hsiung
Greg 'groggy' Lehey wrote: On Friday, 5 March 2004 at 13:43:04 -0500, Chungwei Hsiung wrote: Hello.. I am super new to this list, and I have a simple question that I don't know why it does that. I have a simple test program. I compile it, and gdb to disassemble main. I got the following.. 0x80

Re: A simple question

2004-03-06 Thread Chungwei Hsiung
ISAAC GELADO FERNANDEZ wrote: De: Chungwei Hsiung <[EMAIL PROTECTED]> Fecha: Viernes, Marzo 5, 2004 7:43 pm I have a simple test program. I compile it, and gdb to disassemble main. I got the following.. 0x80481f8 : push %ebp 0x80481f9 : mov%esp,%ebp 0x80481fb : sub$0x

Re: IPC nsswitch implementation

2004-03-06 Thread Jacques A. Vidrine
[We need to pick a list and stop cross-posting. I pick [EMAIL PROTECTED]'.] On Fri, Mar 05, 2004 at 10:41:33PM +0300, Michael Bushkov wrote: > The problem of using Darwin's lookupd was discussed some time ago in the > freebsd-arch mailing list. It seems to me that the way to port Darwin's > looku

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Randy Pratt
On Fri, 5 Mar 2004 14:49:45 -0500 John Baldwin <[EMAIL PROTECTED]> wrote: > On Wednesday 03 March 2004 04:31 pm, Randy Pratt wrote: > > On Wed, 3 Mar 2004 17:03:40 +0100 (CET) you wrote: > > > I've been on the question list for some time, and I have noticed > > > that many people do not know how

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Kevin Oberman
> Date: Fri, 5 Mar 2004 20:08:35 +0100 > From: Tijl Coosemans <[EMAIL PROTECTED]> > Sender: [EMAIL PROTECTED] > > On Fri, 5 Mar 2004 17:58:26 +0100 (MET), Helge Oldach wrote: > > > So yes: some machines require a kernel with PNPBIOS even when sound > > modules can be kldload'ed. I presume these a

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-06 Thread Tijl Coosemans
On Fri, 5 Mar 2004 17:58:26 +0100 (MET), Helge Oldach wrote: > So yes: some machines require a kernel with PNPBIOS even when sound > modules can be kldload'ed. I presume these are typically boxen without > knob to disable the PnP BIOS. > > Still I wonder whether sound on -CURRENT will do on such

FreeBSD 4.8 on Soekris

2004-03-06 Thread Nicola Martella
I'm currently running FreeBSD 4.8 on a Soekris with Geode's CPU. As i told you in the last email, i see in the pciconf -lv that the SC1100 Watchdog (which is embedded on the mobo, not a pci card) is taken from another driver. What i'm asking myself is if it's normal that the pci generic driver gets

Re: IPC nsswitch implementation

2004-03-06 Thread Michael Bushkov
Hello! What do you mean exactly by saying "not as functional"? Michael Bushkov Software Engineer, Rostov State University On Fri, 5 Mar 2004, Jordan K Hubbard wrote: > Sounds similar to, but not as functional as, the lookupd in Mac OS X. :) > > On Mar 5, 2004, at 12:45 AM, Michael Bushkov wrote:

Re: IPC nsswitch implementation

2004-03-06 Thread Julian Elischer
On Fri, 5 Mar 2004, Jordan K Hubbard wrote: > Why not use a UNIX domain socket as the transport and then use > credential passing to pass the credentials lookupd should use to do the > lookup? that was my thought.. the credential information passing must be useful for something :-) > > On M