Re: Problem detecting POSIX symbolic constants

2002-10-10 Thread Terry Lambert
Garrett Wollman wrote: On Wed, 9 Oct 2002 22:23:07 -0400, Craig Rodrigues [EMAIL PROTECTED] said: I was advised by Terry Lambert to use: #ifdef _POSIX_REALTIME_SIGNALS Terry was wrong. If _POSIX_REALTIME_SIGNALS is undefined, it means one of two things: - The RTS option is not

Re: [hackers] Writing a PCI ADSL Driver

2002-10-10 Thread Taavi Talvik
On Thu, 10 Oct 2002, Bruce M Simpson wrote: I'm sure that if we drive the 3060 as a NATM interface, we can write generic netgraph code to attach to a link layer ATM interface and examine inbound ATM UNI cells for their VPI*VCI and act accordingly. This will certainly require ngatm and is a

RE: FreeBSD usage in safety-critical environments

2002-10-10 Thread Nelson, Trent .
-Original Message- From: Ted Faber [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 10:59 PM To: Terry Lambert Cc: Nelson, Trent .; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: Re: FreeBSD usage in safety-critical environments On Wed, Oct 09, 2002 at 12:26:14PM

Re: FreeBSD usage in safety-critical environments

2002-10-10 Thread Jamie Heckford
Hardly reassuring from all the recent train crashes really :P - Original Message - From: Nelson, Trent . [EMAIL PROTECTED] To: 'Ted Faber' [EMAIL PROTECTED]; Terry Lambert [EMAIL PROTECTED] Cc: Nelson, Trent . [EMAIL PROTECTED]; '[EMAIL PROTECTED]' [EMAIL PROTECTED]; '[EMAIL PROTECTED]'

Re: Problem detecting POSIX symbolic constants

2002-10-10 Thread Bruce Evans
On Wed, 9 Oct 2002, Craig Rodrigues wrote: On Wed, Oct 09, 2002 at 07:29:48PM -0700, Terry Lambert wrote: To be totally correct, you will need to: #ifdef _POSIX_REALTIME_SIGNALS #if (_POSIX_REALTIME_SIGNALS != -1) ... #endif #endif It's annoying, but

Re: Problem detecting POSIX symbolic constants

2002-10-10 Thread Bruce Evans
On Wed, 9 Oct 2002, Craig Rodrigues wrote: Earlier this year on the FreeBSD hackers mailing list: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=278142+0+/usr/local/www/db/text/2002/freebsd-hackers/20020317.freebsd-hackers I was advised by Terry Lambert to use: #ifdef _POSIX_REALTIME_SIGNALS

Re: Problem detecting POSIX symbolic constants

2002-10-10 Thread Giorgos Keramidas
On 2002-10-10 01:07, Terry Lambert [EMAIL PROTECTED] wrote: So the test is: #ifdef _POSIX_REALTIME_SIGNALS #if _POSIX_REALTIME_SIGNALS 0 ...or, if you want to assume all preprocessors support #if: #if defined(_POSIX_REALTIME_SIGNALS) (_POSIX_REALTIME_SIGNALS 0) I think the first is

Re: i-buddie

2002-10-10 Thread John Baldwin
On 09-Oct-2002 Guido Van Hoecke wrote: i4o beke wrote: Hi Guido. I've seen your question on freebsd-mobile, without answer. I'd like to buy i-buddie, 3c or 4. So your problems with setup are really interesting for me. Is your sis network card working? Is it possible to run XWin on

Re: Problem detecting POSIX symbolic constants

2002-10-10 Thread Craig Rodrigues
On Thu, Oct 10, 2002 at 09:31:56PM +1000, Bruce Evans wrote: Perhaps because they wanted you to use sysconf() instead of these mistakes. Well in the case of ACE, it is a C++ library that is compiled on platforms which may or may not have sysconf() (ie. Windows), so using sysconf() is not

C-2(Security) blues and the like

2002-10-10 Thread Steve Kudlak
It has been a long time since I dealt with those arcane security matters. At least they are obscure and arcane to most people. Many consider me to be babbling when I go on about these things. If I start saying rainbow books (the NSA's security books are in different colors) many people assume

Re: Mount option nomtime?

2002-10-10 Thread Scott Hess
On Thu, 10 Oct 2002, Oliver Fromme wrote: Wolfieee [EMAIL PROTECTED] wrote: what about vnconfiging some files on the netapp thing, this way the *bsd can see the vnconfig files as local raw disk partitions? That wouldn't make a difference, because the NetApp Filer would still schedule

Re: Sharing a SCSI bus between some computers

2002-10-10 Thread Dan Nelson
In the last episode (Oct 10), Attila Nagy said: Due to the lack of enough networking power I started to think about alternatives. [ snip pic of SCSI RAID with 3 servers hanging off it ] The question is: what will happen if BOX3 mounts the filesystem from the SCSI BOX RW and BOX[1-2] mount

Porting work on sigcontext from linux to BSD...

2002-10-10 Thread Sean Chittenden
I'm by no means a kernel guy and don't really pretend to be one, but I'm certainly willing to learn given some simple docs. I'm trying to port the bigforth forth compiler to FreeBSD and am having a miserable time doing so because bigforth isn't written in a very generic way. That said, I'm

Re: Problem detecting POSIX symbolic constants

2002-10-10 Thread Terry Lambert
Giorgos Keramidas wrote: I think the first is safer, in that if #if is not supported, it being an undefined preprocessor directive would be non-fatal, being in an uncompiled #ifdef block... Well, almost. There is one exception. A compiler that doesn't support #if but happens to run in

Re: Problem detecting POSIX symbolic constants

2002-10-10 Thread Terry Lambert
Bruce Evans wrote: In Standard C, this is equivalent to the non-verbose version: #if _POSIX_REALTIME_SIGNALS != -1 ... #endif since if _POSIX_REALTIME_SIGNALS is not defined then it is equivalent to 0 in cpp expressions. The problem cases are if

Re: Problem detecting POSIX symbolic constants

2002-10-10 Thread Terry Lambert
Bruce Evans wrote: _POSIX_REALTIME_SIGNALS is defined to 0: This means that the interface may work, and that it exists in headers and libraries, so applications may reference it in normal ways. It may fail at runtime; applications must use sysconf() to determine if it is actually

Re: Mount option nomtime?

2002-10-10 Thread Terry Lambert
Scott Hess wrote: That wouldn't make a difference, because the NetApp Filer would still schedule mtime updates for evey write access to the file that has been vnconfiged on the client. Probably talking through my hat, here, but doesn't NetApp use a LFS (log-structured file system)

Re: FreeBSD usage in safety-critical environments

2002-10-10 Thread Terry Lambert
Nelson, Trent . wrote: Oh, and Terry, I think you'd be astonished if I informed you of how many rail control systems in the US and around the world use either Linux or some of the commercial variants such as Tru64 UNIX or Solaris. I rather think they run Solaris. Earlier in my career

fatal trap 12 kernel panic

2002-10-10 Thread abe
Hi, I've written to the questions list recently with regard to a panic that keeps occuring and perhaps my message was not formatted as well as it could have been. In more testing it seems that the minute the ipfw rules are loaded (which previously worked without issue), the machine

Sil 0648/0649/0680 supporting DMA for ATAPI?

2002-10-10 Thread Hanspeter Roth
On Oct 05 at 15:05, Soeren Schmidt spoke: Too late, I've already added support for the Sil 0680 chip in both -current and -stable. BTW it was not supported before that (not even Does any of the Sil 0648/0649/0680 support DMA for ATAPI devices, particularly for Plextor CD-R PX-W4012A?

Re: fatal trap 12 kernel panic

2002-10-10 Thread Terry Lambert
abe wrote: I've written to the questions list recently with regard to a panic that keeps occuring and perhaps my message was not formatted as well as it could have been. In more testing it seems that the minute the ipfw rules are loaded (which previously worked without issue), the

Re: fatal trap 12 kernel panic

2002-10-10 Thread abe
Hi Luigi, Pardon, been a hectic week. Heh. I've tried this on fresh installs of 4.5-rel, 4.5-rel-p20, 4.6.2-p2, and 4.7-RC. On Thu, Oct 10, 2002 at 02:39:48PM -0700, Luigi Rizzo wrote: what freebsd version are you using, are you using compiled-in ipfw or a module ? cheers

Re: fatal trap 12 kernel panic

2002-10-10 Thread abe
Hi Terry, This started out as a sudden panic on a machine that was in a datacenter for more than 8 months without issue. Then I installed on fresh machines, compiled in ipfw support, and also tried this as a module. The result is the same regardless. Regards, Abe On Thu, Oct 10,

Re: PRNG not seeded - error in non-root ssh inside 4.6.2 jails...

2002-10-10 Thread Firsto Lasto
Do you mean recompile SSL using urandom instead of random ? Would it be the exact same effect if I simply changed my /dev/random to major/minor 2,4 instead of 2,3 ? It seems like that would be much easier... Ok, I am not sure how I can do that though - I cannot successfully run

RE: FreeBSD usage in safety-critical environments

2002-10-10 Thread Robert Watson
On Wed, 9 Oct 2002, Nelson, Trent . wrote: If you're referring to security criteria (Trusted Computer Security Evaluation Criteria or ITSEC for Euro/UK), then no, FreeBSD doesn't currently provide any features C2/F-C2+ configuration (Access Control Lists, auditing, accountability,

Re: C-2(Security) blues and the like

2002-10-10 Thread Robert Watson
On Thu, 10 Oct 2002, Steve Kudlak wrote: It has been a long time since I dealt with those arcane security matters. At least they are obscure and arcane to most people. Many consider me to be babbling when I go on about these things. If I start saying rainbow books (the NSA's security books

Re: fatal trap 12 kernel panic

2002-10-10 Thread Terry Lambert
abe wrote: This started out as a sudden panic on a machine that was in a datacenter for more than 8 months without issue. Then I installed on fresh machines, compiled in ipfw support, and also tried this as a module. The result is the same regardless. You have a traceback; do you have

Re: fatal trap 12 kernel panic

2002-10-10 Thread abe
On Thu, Oct 10, 2002 at 03:18:58PM -0700, Terry Lambert wrote: abe wrote: This started out as a sudden panic on a machine that was in a datacenter for more than 8 months without issue. Then I installed on fresh machines, compiled in ipfw support, and also tried this as a module.

Re: C-2(Security) blues and the like

2002-10-10 Thread Terry Lambert
Robert Watson wrote: The first thing you are probably interested in is the Common Criteria description, which I believe is available from ISO. ...which answers the how do I get it? followup question that naturally comes from the CAPP/LSPP profile references for the various EAL levels: You pay

Re: C-2(Security) blues and the like

2002-10-10 Thread Robert Watson
On Thu, 10 Oct 2002, Terry Lambert wrote: Robert Watson wrote: The first thing you are probably interested in is the Common Criteria description, which I believe is available from ISO. ...which answers the how do I get it? followup question that naturally comes from the CAPP/LSPP

Re: fatal trap 12 kernel panic

2002-10-10 Thread Terry Lambert
abe wrote: You have a traceback; do you have a system dump? Sorry Terry, unfortunately it wouldn't produce a system dump unless I was not taking the proper steps to produce one. Any URL that would point this out to me or any suggestion? Poul changed this code. I haven't been able to get

Re: C-2(Security) blues and the like

2002-10-10 Thread Craig Rodrigues
On Thu, Oct 10, 2002 at 06:34:30PM -0400, Robert Watson wrote: Are ISO standards still on the order of US$9 per single-sided page? I just got my copies of the ECMA standards on CDROM (for free...). You can get ISO 15408 (Common Criteria) from ANSI:

Re: C-2(Security) blues and the like

2002-10-10 Thread Terry Lambert
Craig Rodrigues wrote: On Thu, Oct 10, 2002 at 06:34:30PM -0400, Robert Watson wrote: [ ... where to get security standards ... ] Cool. You guys are a wealth of information.. Robert: any chance of this finding its way into a docs secion on the TrustedBSD.org web site? -- Terry To

Re: FreeBSD usage in safety-critical environments

2002-10-10 Thread Robert Watson
On Wed, 9 Oct 2002, Terry Lambert wrote: Roman V. Mashak wrote: On Wed, Oct 09, 2002 at 01:07:43PM -0400, Steve Kudlak wrote: project and mucking with the low grade in my opinion C-2 security that Sun OSes had and finding bugs in things like FTP logging and the like. I now do other

Re: C-2(Security) blues and the like

2002-10-10 Thread Robert Watson
On Thu, 10 Oct 2002, Terry Lambert wrote: Craig Rodrigues wrote: On Thu, Oct 10, 2002 at 06:34:30PM -0400, Robert Watson wrote: [ ... where to get security standards ... ] Cool. You guys are a wealth of information.. Robert: any chance of this finding its way into a docs secion on

Re: fatal trap 12 kernel panic

2002-10-10 Thread abe
On Thu, Oct 10, 2002 at 03:50:47PM -0700, Terry Lambert wrote: abe wrote: You have a traceback; do you have a system dump? Sorry Terry, unfortunately it wouldn't produce a system dump unless I was not taking the proper steps to produce one. Any URL that would point this out to me or

sis900 problem persists in 4.7

2002-10-10 Thread Guido Van Hoecke
My sis900 network card is behaves in 4.7 as it did in 4.6.2: it still complains 'MII without any PHY!' The least i can say is that this is utterly frustrating... -- Guido Van Hoecke [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body

4.7 messed up my mandrake-lilo config

2002-10-10 Thread Guido Van Hoecke
I installed 4.7 in a free partition on a machine that has a Lilo configuration to boot either Win2K or Mandrake 8.2. After installing the FreeBsd Boot Manager, I get following options: F1 ?? F2 Linux F3 ?? F4 FreeBSD F4 works and F1 boots into Win2K. F2 and F3 beep at me but do not boot

csa kernel module access

2002-10-10 Thread Anish Mistry
What would be the best way to read/write from a device that shows up on boot, but there is no device node for it? Basically what I am trying to do is to be able to send to commands to the csa device so that I can control the breakout box for my GameTheatre XP so I don't get

Question about light-weight mutex (kind of)

2002-10-10 Thread Andrei Cojocaru
Hello, I have a question, please include me in the reply specifically because I'm not subscribed to the mailing list. Thanks I want a thread to spin atomically on a value until it's equal to 1(i.e. it's waiting for an event), how do I do that? I have no idea.. I want this to be fast, not have

Re: fatal trap 12 kernel panic

2002-10-10 Thread Terry Lambert
abe wrote: On Thu, Oct 10, 2002 at 03:50:47PM -0700, Terry Lambert wrote: You should be able to find out the C code at assembly code offset 0x172, assuming you created your kernel with config -g, and you *** compiled the

Re: csa kernel module access

2002-10-10 Thread Terry Lambert
Anish Mistry wrote: What would be the best way to read/write from a device that shows up on boot, but there is no device node for it? I'll go out on a limb here and say Create a device node for it. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in

Re: fatal trap 12 kernel panic

2002-10-10 Thread abe
On Thu, Oct 10, 2002 at 07:10:52PM -0700, Terry Lambert wrote: abe wrote: On Thu, Oct 10, 2002 at 03:50:47PM -0700, Terry Lambert wrote: You should be able to find out the C code at assembly code offset 0x172, assuming you created your kernel with config -g, and you

Re: fatal trap 12 kernel panic

2002-10-10 Thread abe
Bill, Any hint as to what seems to be going on here and maybe a clue to a possible solution? Regards, Abe On Thu, Oct 10, 2002 at 08:02:07PM -0700, Bill Fumerola wrote: On Thu, Oct 10, 2002 at 07:10:52PM -0700, Terry Lambert wrote: Not to be emphatic, or anything, but IPFW has to

Re: fatal trap 12 kernel panic

2002-10-10 Thread abe
Hello folks, Recently I have been corresponding with several from this list and questions@ with regard to an odd issue with ipfw and my machine panicing after any network communication was attempted after loading some IPFW rules. Some evidence of the panics can be found at:

Re: fatal trap 12 kernel panic

2002-10-10 Thread Bill Fumerola
On Fri, Oct 11, 2002 at 12:46:36AM -0400, abe wrote: Unfortunately, feedback sent while in good intentions did not help. However, in further tinkering with this issue I believe I've come to a conclusion. I run a rather high-traffic server so I had initially increased

Re: fatal trap 12 kernel panic

2002-10-10 Thread abe
On Thu, Oct 10, 2002 at 09:50:13PM -0700, Bill Fumerola wrote: On Fri, Oct 11, 2002 at 12:46:36AM -0400, abe wrote: Unfortunately, feedback sent while in good intentions did not help. However, in further tinkering with this issue I believe I've come to a conclusion. I run a rather

Re: 4.7 messed up my mandrake-lilo config

2002-10-10 Thread Sergey N. Voronkov
On Fri, Oct 11, 2002 at 01:41:00AM +0200, Guido Van Hoecke wrote: I installed 4.7 in a free partition on a machine that has a Lilo configuration to boot either Win2K or Mandrake 8.2. After installing the FreeBsd Boot Manager, I get following options: F1 ?? F2 Linux F3 ?? F4 FreeBSD

Re: fatal trap 12 kernel panic

2002-10-10 Thread Terry Lambert
Bill Fumerola wrote: On Thu, Oct 10, 2002 at 07:10:52PM -0700, Terry Lambert wrote: Not to be emphatic, or anything, but IPFW has to be static. There is voodoo you can use to make it know about loaded modules, but I'll be damned if I know what it is (again, I refer you to the handbook).

Re: fatal trap 12 kernel panic

2002-10-10 Thread Terry Lambert
abe wrote: gdb -k kernel.debug list *add_dyn_rule+0x172 (kgdb) list *add_dyn_rule+0x172 No source file for address 0xc021e5d6 (kgdb) Not to be emphatic, or anything, but IPFW has to be static. I thought it was static considering I compiled the kernel with