Re: C++ code in a kernel module?

2003-09-08 Thread Matthew Emmerton
On Mon, 8 Sep 2003 11:35:37 -0600 John Giacomoni [EMAIL PROTECTED] wrote: I was planning on using the macro __cplusplus to toggle using extern C { }, however the bsd.kmod.mk style Makefiles seem to force the language to -std=c99 even when compiling with c++ . my initial steps have

Re: getfsent(3) and spaces in fstab

2003-07-30 Thread Matthew Emmerton
No, none of these methods will work. This very discussion came up in -questions a few months ago (or maybe it was late last year). The conclusion was that unless someone rewrites the /etc/fstab parsing routines in libc to support quoted and/or escaped spaces, we'll never be able to mount

Re: RFC: Change to sys_errlist

2003-07-10 Thread Matthew Emmerton
On Sun, 6 Jul 2003, Terry Lambert wrote: Matthew Emmerton wrote: This is a RFC on a change to sys_errlist for errno = 0. On Linux, if perror() or strerror() is called with errno = 0, the resulting string is Success. On FreeBSD, the resulting string is Unknown error: 0. I think

RFC: Change to sys_errlist

2003-07-04 Thread Matthew Emmerton
This is a RFC on a change to sys_errlist for errno = 0. On Linux, if perror() or strerror() is called with errno = 0, the resulting string is Success. On FreeBSD, the resulting string is Unknown error: 0. I think that FreeBSD's output is unintentionally confusing, as errno = 0 implies success.

Re: Interview in Byte with Chris Sontag/SCO and FUD relatingtoBSDsettlement agreement

2003-06-17 Thread Matthew Emmerton
On Wed, Jun 18, 2003 at 12:01:38PM +0930, Greg 'groggy' Lehey wrote: On Tuesday, 17 June 2003 at 6:08:06 -0600, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Martin Heller [EMAIL PROTECTED] writes: Will the FreeBSD project issue an offical statement relating to these

Re: ports and /var/db/pkg

2003-04-04 Thread Matthew Emmerton
ok, so i wrote a small script (tcl, since i don't know perl), that does some checking, it reports for each package, the number of files how many are realy there, and if so, checks the MD5. now, if im not to far off, if some/all files are missing, or if the md5 does not match, i

Re: matthew dillon

2003-02-09 Thread Matthew Emmerton
These messages aren't from the *real* Matt Dillon, they're from a stupid troll who has been impersonating various FreeBSD developers for a few months now. This particular troll uses anonymous remailers so the postmaster is helpless to block email addresses or IP ranges. So, if the message looks

Re: sis0 - phy problem

2002-10-02 Thread Matthew Emmerton
hi, i also encounter problem with sis0 nic onboard. here is an extract from dmesg: FreeBSD 4.6.2-RELEASE sis0: SiS 900 10/100BaseTX port 0xd400-0xd4ff mem 0xe780-0xe7800fff irq \ at device 1.1 on pci0 sis0: Ethernet address: 00:00:00:00:00:00 miibus0: MII bus on sis0 ukphy0:

Re: sis900 : sis0 attach returned 6

2002-10-02 Thread Matthew Emmerton
From: Matthew Emmerton [EMAIL PROTECTED] Subject: Re: sis900: sis0 attach returned 6 Guido, I did some more digging and it appears the bigger problem is that the RTL8201 external PHY isn't supported (yet) in FreeBSD. Patches to support this PHY, along with reports of successful

Re: sis900: sis0 attach returned 6

2002-10-01 Thread Matthew Emmerton
Guido, I did some more digging and it appears the bigger problem is that the RTL8201 external PHY isn't supported (yet) in FreeBSD. Patches to support this PHY, along with reports of successful testing in numerous configurations, are reported in PR kern/30836 (and kern/35691). This PR has been

Re: sis900 : sis0 attach returned 6

2002-09-30 Thread Matthew Emmerton
I am trying to install 'FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 21:23:26 GMT 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC i386' on a new ECS iBuddy4 desknote with sis900 fast ethernet card. The sis900 is never attached. When I look at dmesg output, I see repeated blocks of output about

perceived strangeness with getopt(1,3)

2002-09-25 Thread Matthew Emmerton
Maybe I'm missing something huge, but getopt(1,3) aren't working the way I think they should. I have a script that I want to take two options, both of which have required arguments. gabby# getopt k:s: -k getopt: option requires an argument -- k -- gabby# getopt k:s: -s getopt: option requires

Re: kern/41227: Serial port IRQs cannot be shared when they should be

2002-08-25 Thread Matthew Emmerton
I'm the originator of the patch in this PR. The patch allows FreeBSD to work with some USR/3Com PCI modems that share IRQs with other system devices. From the PR: Synopsis: Serial port IRQs cannot be shared when they should be State-Changed-From-To: open-feedback State-Changed-By: njl

Re: Reg: Claiming a device which is already claimed by another driver.

2002-07-18 Thread Matthew Emmerton
Hi, I am writing a charecter driver for a pci-ide controller, my problem is that atapci driver already claims my device. So in essence I need to detach the atapci driver from my device and claim it I have tried using the bus_generic_detach to detach the atapci driver, but now how

Questions about kernel/userspace backwards compatibilty between minor revisions

2002-06-09 Thread Matthew Emmerton
I' m working on getting OpenAFS working 100% on FreeBSD, and while reviewing the first set of my patches with the OpenAFS maintainer, some questions about kernel/userspace backwards compatibility came about. More specifically, OpenAFS was first ported on FreeBSD 4.2, and as a result, all config

Re: ruby ports and PREFIX

2002-05-27 Thread Matthew Emmerton
So, what I'm doing here is experimenting with encap, a nifty little package standard where the idea is that you install your software with PREFIX set to /usr/local/encap/pkgname-version, and the package manager, epkg, will look through that dir and symlink files from that hierarchy in to

Re: national security backdoor in FreeBSD.

2002-05-15 Thread Matthew Emmerton
There is a backdoor in all versions of FreeBSD that are not compiled from source code within portmapper and telnetd. Hmm. Let's check out this logic. The binaries that ship on the FreeBSD distros are compiled from source. When I upgrade my system, I compile from source. And the backdoor

Re: make(1) command-line variables

2002-04-13 Thread Matthew Emmerton
Dear Colleagues, I need some help. Consider I have a Makefile for application that can be build with different options. Some of them I need just to define via -D flag of the ``make'', but other need to be set to some specific values (for example, it can be path to my temporary dir). So I

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Matthew Emmerton
On Wed, 13 Mar 2002, Brooks Davis wrote: On Wed, Mar 13, 2002 at 04:25:00PM -0800, Terry Lambert wrote: This was actually discussed a while back (a month or two ago). It got really bogged down when someone pointed out that they were running CPUs with different clock rates in their

Reading BIOS from userland

2002-01-26 Thread Matthew Emmerton
Is there any easy way to read the contents of a system BIOS from userland? bios(9) seems to have some very specific kernel-related BIOS routines, but nothing generic. I'm trying to write a program that will dump the BIOS image to stdout so that I can use strings(1) to sniff out version strings

Re: Reading BIOS from userland

2002-01-26 Thread Matthew Emmerton
Is there any easy way to read the contents of a system BIOS from userland? No. Most modern BIOS code is paged, compressed and in some cases encrypted. bios(9) seems to have some very specific kernel-related BIOS routines, but nothing generic. I'm trying to write a program that will

Re: sar on FreeBSD

2002-01-11 Thread Matthew Emmerton
Dustin Puryear wrote: After a month of futile searching I am unable to find a sar-like tool available for FreeBSD. I was alerted to the SNMP capabilities of FreeBSD. However, it would still be nice to have a system-level tool available that doesn't require SNMP. Does anyone know of

Re: boot1

2002-01-04 Thread Matthew Emmerton
On 04-Jan-02 Matthew Emmerton wrote: On 03-Jan-02 David E. Cross wrote: I'd like to create a /boot.config switch that will have boot1 _not_ read from the console; this is for a secure setup. Would others be interested in these patches when I finish them? Yes. I've seen other

Re: boot1

2002-01-03 Thread Matthew Emmerton
On 03-Jan-02 David E. Cross wrote: I'd like to create a /boot.config switch that will have boot1 _not_ read from the console; this is for a secure setup. Would others be interested in these patches when I finish them? Yes. I've seen other places use this, and I would commit it. :) How

Re: SMP beeping

2001-12-11 Thread Matthew Emmerton
On Mon, 10 Dec 2001, Chad David wrote: I sent a message about this to -stable last week, but didn't get any input that resulted in a solution to this problem so... -stable for the last week or more (I did a make world last week for the first time in over a month) beeps on and off when SMP

Re: [SUGGESTION] - JFS for FreeBSD

2001-12-10 Thread Matthew Emmerton
* Hiten Pandya [EMAIL PROTECTED] [011210 16:02] wrote: hi all, this is a wild idea...suggestion... i wanted to ask if there were any _plans_ to port JFS (Journaled File System) to FreeBSD... as for JFS, it is developed by IBM for Linux and is licensed under GPL, so we could put

Re: [SUGGESTION] - JFS for FreeBSD

2001-12-10 Thread Matthew Emmerton
Most current users will probably not like the speed penalties of a journal file system, and stick to the faster FS. On the other hand a solid journal FS may encourage more take up for back end databases, for e-commerce, data warehousing, etc... The transaction support of JFS isn't really

Re: about boot0

2001-12-09 Thread Matthew Emmerton
I believe it's because the boot loader goes by partition type. All Microsoft operating systems can use FAT (either FAT16, FAT32 or both). The boot loader can't tell what operating system you've got installed on your FAT partition, so it goes with the lowest common denominator - DOS. -- Matt

Re: FreeBSD performing worse than Linux?

2001-11-28 Thread Matthew Emmerton
FWIW, I'm seeing this as well. However, this appears to be a new occurance, as we were using a FreeBSD 3.X system for our reference test platform. I recently updated it to FreeBSD 4.4-RELEASE, and I'm getting nothing but complaints about broken connections, poor performance, and very

Re: meteor driver problems

2001-11-22 Thread Matthew Emmerton
My guess every computer that you used to test the card uses the PCI 2.x chipset. Correct. In fact, they're all identical: Asus P2B-D(S) dual PII mainboards (at various clock speeds), so I'm a bit surprised that I'm only having issues with two of them (so far, *knocking on wood*). Well,

Does DDB's watch feature actually work?

2001-11-17 Thread Matthew Emmerton
I've been using DDB the last few days attempting to track down a supposed bug in our TCP/IP stack. (See PR/31746). From what I've been able to tell so far (using the ugly insert-printf-here mechanism of debugging), a structure is getting zeroed which is causing the problem reported in the PR.

Re: Tracking down BTX halted

2001-11-16 Thread Matthew Emmerton
Doug Write wrote: On Fri, 16 Nov 2001, Sandeep Joshi wrote: I changed the disklabels on a few SCSI disks and now I keep getting these BTX halted messages every time I reboot. Lemme guess, you're running them in 'dangerously dedicated' mode. There is a bug in Adaptec BIOSen that they

Simple x86 assembler question

2001-10-27 Thread Matthew Emmerton
Hi all, This weekend I decided to do some assembly hacking on some object-only code that I've lost the C source for. Since I haven't coded assembler for at least 8 years, and I threw my x86 assembly manuals out when I moved 6 months ago, there are a few things that are stumping me. In

Re: Adding support for Duxbury PCI modem to FreeBSD 4.4

2001-10-16 Thread Matthew Emmerton
On Tue, 16 Oct 2001, Peter van Heusden wrote: On Mon, Oct 15, 2001 at 09:35:58AM -0600, Warner Losh wrote: In message [EMAIL PROTECTED] Peter van Heusden writes: I'm having a look at the Linux 2.4 kernel code, since they apparently have winmodem support (including for the SM56 chipset,

Re: got bad cookie vp 0xe2e5ef80 bp 0xcf317328

2001-09-25 Thread Matthew Emmerton
What OS is running on the NFS client and server? -- Matthew Emmerton || [EMAIL PROTECTED] GSI Computer Services || http://www.gsicomp.on.ca On Tue, 25 Sep 2001, Brian Reichert wrote: I'm starting to see errors in /var/log/messages under 4.2-RELEASE: Sep 23 00:31:17 bmdb1 /kernel

Re: Mounting FAT16 on USB connected Rio 600

2001-08-23 Thread Matthew Emmerton
Hackers, The overwhelming lack of response on -questions suggests I might do better here. I though this would be an easy one. In short, I simply want to know what device to mount and what to do get that device configured. # usbdevs -v Controller /dev/usb0: addr 1: self powered, config

Re: perhaps one of phk's intern projects?

2001-07-26 Thread Matthew Emmerton
On Thu, 26 Jul 2001, Matthew Jacob wrote: It'd be nice if one could pass a time specification to at in the form of next reboot. -matt Why not just write a script for the command and stick it in /usr/local/etc/rc.d? -- Matt Emmerton To Unsubscribe: send mail to [EMAIL PROTECTED] with

Re: FreeBSD Mall now BSDCentral

2001-07-07 Thread Matthew Emmerton
Richard Hodges wrote: Sure, no argument there. Taking Wes' suggestion, maybe there is an opportunity in the official distribution distinction. How about a certificate of authenticity which costs the vendors $1 or $2 (or whatever), and shows the customer that their choice of vendors

Re: rpc.statd

2001-06-06 Thread Matthew Emmerton
On Wed, 6 Jun 2001, Dan Phoenix wrote: Jun 6 18:48:10 www rpc.statd: invalid hostname to sm_stat: ^XF7FFBF^XF7FFBF^ZF7FF BF^ZF7FFBF%8x%8x%8x%8x%8x%8x%8x%8x%8x%62716x%hn%51859x%hnM-^PM-^PM-^PM-^PM-^PM-^PM-^PM-^PM- [ snip ] It's some l33t h4x0r attemting to use a Linux RPC exploit against

Re: no keyboard

2001-05-06 Thread Matthew Emmerton
On Sat, 5 May 2001, Ceri Storey wrote: On Sat, May 05, 2001 at 08:54:18PM +0200, Ingo Flaschberger wrote: Note : this is a way to kill your keyboard : an AT keyboard is not hot-plug compatible i have never killed a keyboard with un / plugging. at linux it works. Well, it

Re: Problem with device rl

2001-04-30 Thread Matthew Emmerton
-BEGIN PGP SIGNED MESSAGE- Maybe this isn't right mailing list to send this problem but here it is: I have D-Link DFE-530TX+ and in LINT I read that I should use device rl for this Network card but kernel don't want to find it only output off kernel is : pci0: unknown card

Re: thoughts on /etc/newsyslog.conf

2001-04-18 Thread Matthew Emmerton
Hello, In writing an article on syslogd and newsyslog, I've noticed something intensely annoying about newsyslog.conf. FreeBSD supports three different formats for dates in newsyslog.conf: raw hours since last rotation, ISO 8601, and FreeBSD-specific week-day-month. Wouldn't it make

Re: sigh... ypserv bug still very much alive

2001-04-09 Thread Matthew Emmerton
The ypserv bug (the one where ypserv randomly stops responding or just seg-faults) is still very much alive. I had to restart it about 11 times in the course of 20 minutes this morning. That's the bad news, the good news is that I started it each time with 'ktrace -i'. Also, in the last

Re: gzip's custom i386 asm should be disabled

2001-03-21 Thread Matthew Emmerton
I sure hope I'm not the only one with a "lab" of 4 FreeBSD machines that are all 486s or 586s. You may find that the 686 assembly is as fast on a 386/486/586 as the old assembly is. Maybe you could test it and let the list know? I was under the impression that the 586/686 code uses

Re: gzip's custom i386 asm should be disabled

2001-03-21 Thread Matthew Emmerton
I sure hope I'm not the only one with a "lab" of 4 FreeBSD machines that are all 486s or 586s. You may find that the 686 assembly is as fast on a 386/486/586 as the old assembly is. Maybe you could test it and let the list know? I was under the impression that the 586/686 code uses

Re: gzip's custom i386 asm should be disabled

2001-03-20 Thread Matthew Emmerton
Since I would imagine a large percentage of FreeBSD users run on i686 cores, it'd be great to get this pretty significant speed increase into our tree. I sure hope I'm not the only one with a "lab" of 4 FreeBSD machines that are all 486s or 586s. It would be great to implement these patches

Re: Kernel area libmish stuff

2001-03-09 Thread Matthew Emmerton
Well here's the story: a few days ago my video card broke, so I'm without X and such, and using a spare 486 box on the freebsd console. Out of lack of other things to do, I did most of the porting of one of the screensavers in the xscreensaver collection to the freebsd syscons. The

Re: Kernel area libmish stuff

2001-03-09 Thread Matthew Emmerton
On Fri, 9 Mar 2001, Matt Dillon wrote: You can't safely do FP instructions in the kernel. I do not believe the FP context is saved/restored between processes in kernel mode, only from user mode. The kernel saves and restores the fp state in the few places it uses FP

Re: FreeBSD on S/390?

2001-03-01 Thread Matthew Emmerton
On Thu, 1 Mar 2001, Robert Watson wrote: On Wed, 28 Feb 2001, Ken Bolingbroke wrote: Long shot, probably, but I've got a bunch of virtual machines on an IBM S/390 mainframe, and while we're running SuSE Linux on most of them, on a whim I tossed out the idea of running FreeBSD on one of

Re: soft updates performance

2001-02-13 Thread Matthew Emmerton
On Mon, 12 Feb 2001, Jordan Hubbard wrote: One other point that I would like to understand is why -j4 takes longer on all of my systems. That goes against what everyone claims should happen. With how many running processors? If you're running -j4 on a uniprocessor system, you're only

Re: mount checking for read-only media

2001-02-08 Thread Matthew Emmerton
In message [EMAIL PROTECTED] Kenny Drobnack writes: : Up there on my wish list is getting a journaling : filesystem ported to FreeBSD. You may wish to check out IBM's JFS port for Linux (http://oss.software.ibm.com/developerworks/opensource/jfs/) It's released under the GPL. The nice

Re: syscall kernel modules on 3.0-release

2001-02-07 Thread Matthew Emmerton
On 7 Feb 2001, Dag-Erling Smorgrav wrote: Matthew Luckie [EMAIL PROTECTED] writes: I completely understand your plea to not use 3.0 release. I am personally using 4.2-stable. Its not my decision to use 3.0 I beleive the computers running 3.0 have been running it for several years now -

Re: syscall kernel modules on 3.0-release

2001-02-07 Thread Matthew Emmerton
On Thu, 8 Feb 2001, Dan Langille wrote: On 7 Feb 2001, at 21:14, Matthew Emmerton wrote: On 7 Feb 2001, Dag-Erling Smorgrav wrote: Matthew Luckie [EMAIL PROTECTED] writes: I completely understand your plea to not use 3.0 release. I am personally using 4.2-stable. Its not my

Re: make top better

2001-02-05 Thread Matthew Emmerton
Hi, "top" always puts CPU idle time in last, but I think in CPU states, idle is most important field, could anyone move idle field to first. It all depends on your focus. Someone using FreeBSD as a terminal or fax server with a whole bunch of serial devices might want "interrupt" first.

Re: Moving to KLM's

2001-02-02 Thread Matthew Emmerton
this isn't what i was askingFWIW, my current kernel is 1.4M :P. What i'm wanting to know is what is the minimal kernel (meaning what HAS to be there for it to boot) that can be compiled. I want to try using the KLM feature for pretty much everything (if_dc, if_ed, ipfw, nfs, etc etc),

Re: Moving to KLM's

2001-02-01 Thread Matthew Emmerton
ok, what would be the minimal kernel that i can compile :), or is there a document somewhere that says that info? We have LINT, should we make something called MIN for minimal kernel needed to boot? It's not really feasible to create a "minimal" kernal, since "minimal" really depends on your

Atomic bit operations

2001-01-31 Thread Matthew Emmerton
Hi all, I've taken a look around for an implementation of atomic bit operations in FreeBSD (similar to Linux' asm/bitopt.h, which include clear_bit() and test_and_set_bit()) but haven't found any. The only thing I've found are the atomic clear/set/add/sub routines in machine/atomic.h. Do we

Re: Atomic bit operations

2001-01-31 Thread Matthew Emmerton
On 01-Feb-01 Matthew Emmerton wrote: On 31-Jan-01 Matthew Emmerton wrote: Hi all, I've taken a look around for an implementation of atomic bit operations in FreeBSD (similar to Linux' asm/bitopt.h, which include clear_bit() and test_and_set_bit()) but haven't found any

Re: Atomic bit operations

2001-01-31 Thread Matthew Emmerton
On 31-Jan-01 Matthew Emmerton wrote: Hi all, I've taken a look around for an implementation of atomic bit operations in FreeBSD (similar to Linux' asm/bitopt.h, which include clear_bit() and test_and_set_bit()) but haven't found any. The only thing I've found are the atomic clear

Re: Atomic bit operations

2001-01-31 Thread Matthew Emmerton
On 01-Feb-01 Matthew Emmerton wrote: 2) atomic_set_int(my_int, 4); sets bit _2_ in the integer variable my_int. Make sense? You can't address individual bits on a machine. :-P I presume that I could wrap the char operations with something that takes 0x01 and bit-shifts

Re: SVR4 Emulation [was Re: iBCS status?]

2000-06-13 Thread Matthew Emmerton
On Wed, Jun 07, 2000 at 10:24:15PM -0400, Matthew Emmerton wrote: brandelf will really understand any brand at all; We just add special cases to suppress the need for -f for "known" brands. As it happens, though, there's no reason why you can't run "brandelf -f -t

SVR4 Emulation and SCO OpenServer 5

2000-06-13 Thread Matthew Emmerton
According to the lxrun (Linux Emulator for SCO) documentation and the Debian ibcs2/svr3 emulator package, OpenServer 5 is SVR3 (with extension for symbolic links and a few other goodies.) SCO documentation backs up the SVR3lineage for OSR5, and verifies that UnixWare 2 and 7 are SVR4 and

Re: SVR4 Emulation [was Re: iBCS status?]

2000-06-07 Thread Matthew Emmerton
nds. What may compound the problem is if multiple ELF formats use the same brand, or none at all (as is the case with SCO ODT5 binaries.) -- Matthew Emmerton GSI Computer Services To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

iBCS status?

2000-06-05 Thread Matthew Emmerton
Hi all, I was recently playing around with iBCS support in FreeBSD 3.4/4.0, and noticed that there hasn't been much done since 96/97. >From what I can see now, FreeBSD can't run SCO OpenServer 5.0 ELF binaries, which is a feature I need desperately -- Linux has this functionality. If