How to know __FreeBSD_version for a symbol

2012-08-13 Thread Hooman Fazaeli
Hi hackers In the process of back porting drivers to older freebsd versions, We sometimes need to add suitable '#if __FreeBSD_version >= x ... else ... ' directives to the source to use an alternate function or exclude certain statements, defines, etc. What is the best (quick/reliable) way t

Re: system() using vfork() or posix_spawn() and libthr

2012-08-13 Thread Konstantin Belousov
On Sun, Aug 12, 2012 at 08:11:29AM +0800, David Xu wrote: > On 2012/08/10 18:13, Konstantin Belousov wrote: > >On Thu, Aug 09, 2012 at 02:08:50PM +0300, Konstantin Belousov wrote: > >>Third alternative, which seems to be even better, is to restore > >>single-threading of the parent for vfork(). > s

Re: system() using vfork() or posix_spawn() and libthr

2012-08-13 Thread David Xu
On 2012/08/11 21:10, Jilles Tjoelker wrote: On Fri, Aug 10, 2012 at 10:16:04AM +0800, David Xu wrote: On 2012/08/09 18:56, Jilles Tjoelker wrote: On Mon, Aug 06, 2012 at 11:25:35AM +0300, Konstantin Belousov wrote: On Sun, Aug 05, 2012 at 11:54:32PM +0200, Jilles Tjoelker wrote: On Mon, Jul 3

Re: How to know __FreeBSD_version for a symbol

2012-08-13 Thread mdf
On Mon, Aug 13, 2012 at 1:24 AM, Hooman Fazaeli wrote: > Hi hackers > > In the process of back porting drivers to older freebsd versions, > We sometimes need to add suitable '#if __FreeBSD_version >= x ... else > ... ' > directives to the source to use an alternate function or exclude certain

Re: NUMA support in FreeBSD 9.0 / 9.1

2012-08-13 Thread John Baldwin
On Thursday, August 09, 2012 10:38:12 am Resit Sahin wrote: > Hello, > > Does FreeBSD 9.0 or 9.1 "fully" support NUMA Architectures? It is said > that FreeBSD 9.0 has an initial NUMA support but is this initial support > enough for getting major performance gains? It can give gains if you are c

Re: Disabling ethernet link on an Intel nic?

2012-08-13 Thread John Baldwin
On Saturday, August 11, 2012 9:35:14 am David Duchscher wrote: > Greetings, > > I have a need to turn off the link of an ethernet port on a Intel nic. The issue is not a big deal but one we would like to solve. we have no way of signaling an upstream router that a path is down but via turning

Re: Disabling ethernet link on an Intel nic?

2012-08-13 Thread Adrian Chadd
Hi, On 11 August 2012 06:35, David Duchscher wrote: > Greetings, > > I have a need to turn off the link of an ethernet port on a Intel nic. The > issue is not a big deal but one we would like to solve. we have no way of > signaling an upstream router that a path is down but via turning off th

Re: FreeBSD 1.x Binaries Work Except under Chroot

2012-08-13 Thread Dan Plassche
Konstantin, My apologies for any confusion. Your patch solved the problem on 8.2. Static and dynamic a.out binaries from 1.1.5.1 are working normally in a chroot environment now. On Sat, Aug 11, 2012 at 2:45 PM, Konstantin Belousov wrote: > Why did you stripped the public list from the Cc: ?

Re: system() using vfork() or posix_spawn() and libthr

2012-08-13 Thread David Xu
On 2012/08/13 19:50, Konstantin Belousov wrote: On Sun, Aug 12, 2012 at 08:11:29AM +0800, David Xu wrote: On 2012/08/10 18:13, Konstantin Belousov wrote: On Thu, Aug 09, 2012 at 02:08:50PM +0300, Konstantin Belousov wrote: Third alternative, which seems to be even better, is to restore single-

Re: FreeBSD 1.x Binaries Work Except under Chroot

2012-08-13 Thread Julian Elischer
On 8/13/12 3:33 PM, Dan Plassche wrote: Konstantin, My apologies for any confusion. Your patch solved the problem on 8.2. Static and dynamic a.out binaries from 1.1.5.1 are working normally in a chroot environment now. you will also have to change PID_MAX (spelling?) to be 6 I have consi

Re: system() using vfork() or posix_spawn() and libthr

2012-08-13 Thread David Xu
On 2012/08/09 18:56, Jilles Tjoelker wrote: On Mon, Aug 06, 2012 at 11:25:35AM +0300, Konstantin Belousov wrote: On Sun, Aug 05, 2012 at 11:54:32PM +0200, Jilles Tjoelker wrote: On Mon, Jul 30, 2012 at 01:53:03PM +0300, Konstantin Belousov wrote: On Mon, Jul 30, 2012 at 12:24:08PM +0200, Jille