Re: gzip and cvsweb.cgi

2001-01-29 Thread Dan Langille
On 30 Jan 2001, at 14:35, Akinori MUSHA wrote: > Hmm, this reminds me of the transparent HTTP proxy issue. I suspect > an HTTP proxy server is between your box and www.FreeBSD.org and it > had a cache of the former page and didn't for the latter. I initially thought it was a proxy issue, and pu

Re: gzip and cvsweb.cgi

2001-01-29 Thread Akinori MUSHA
At Tue, 30 Jan 2001 14:26:01 +1300 (NZDT), Dan Langille wrote: > I've noticed that cvsweb.cgi sometimes gives me GZIP and sometimes not. I > tracked down a fix for my needs, but would like some feedback please. > > The problem arose when FreshPorts old me it couldn't do anything with a > Makefil

Re: Kernel Hacking (i tried not to make it lame)

2001-01-29 Thread Peter Wemm
Doug Barton wrote: > On Fri, 26 Jan 2001, Koster, K.J. wrote: > > > Dear Ariff, > > > > > > > > I remembered porting back cd9660 to 2.2.x tree, and now look > > > forward porting softupdates (If anybody can give me some light > > > I really appreciate that). I'm reviewing sources from current, >

Re: aio_read gives ENOSYS

2001-01-29 Thread Peter Wemm
Joe Albowicz wrote: > > Hi, > > I'm trying to write a sample program to use aio. However, I'm getting > back "function not implemented." I *know* I must be doing something > stupid, but I can't seem to find info on the web. Help! > > My code (that works on a Sun box) is below. The only dif

aio_read gives ENOSYS

2001-01-29 Thread Joe Albowicz
Hi, I'm trying to write a sample program to use aio. However, I'm getting back "function not implemented." I *know* I must be doing something stupid, but I can't seem to find info on the web. Help! My code (that works on a Sun box) is below. The only difference was "-lrt" on Sun. Note tha

Re: Suboptimal mmap of devices on i86

2001-01-29 Thread John Baldwin
On 30-Jan-01 Matt Dillon wrote: >: >:Oh yuck. Please do rename the darn thing back at some point then. Or if its >:only going to be in -current, don't bother. No one expects to be able to use >:a >:4.x module in 5.x, so just change the function w/o the old name. >: >:-- >: >:John Baldwin <[EM

gzip and cvsweb.cgi

2001-01-29 Thread Dan Langille
I've noticed that cvsweb.cgi sometimes gives me GZIP and sometimes not. I tracked down a fix for my needs, but would like some feedback please. The problem arose when FreshPorts old me it couldn't do anything with a Makefile it had just obtained (via fetch), so I went to look. What I found was

Re: Suboptimal mmap of devices on i86

2001-01-29 Thread Matt Dillon
: :Oh yuck. Please do rename the darn thing back at some point then. Or if its :only going to be in -current, don't bother. No one expects to be able to use a :4.x module in 5.x, so just change the function w/o the old name. : :-- : :John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~

Re: Suboptimal mmap of devices on i86

2001-01-29 Thread John Baldwin
On 29-Jan-01 Matt Dillon wrote: > I like it, with some minor tweaks. I recommend: > > * name the new function vm_map_findspace2() (or something similarly > short. > > * change all callers of vm_map_findspace() to instead call > vm_map_findspace2() directly. >

Re: Suboptimal mmap of devices on i86

2001-01-29 Thread Matt Dillon
I like it, with some minor tweaks. I recommend: * name the new function vm_map_findspace2() (or something similarly short. * change all callers of vm_map_findspace() to instead call vm_map_findspace2() directly. * depreciate the original vm_map_

Suboptimal mmap of devices on i86

2001-01-29 Thread Drew Eckhardt
On i86 boxes with 4M page capabilities, we want contiguous chunks of physical address space for mmaped devices to use those larger pages when possible. In practice, this doesn't happen in applications linked with shared libraries when mmap() is used in the usual way with 0 as the address argume

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-29 Thread Julian Stacey [EMAIL PROTECTED]
> A few months ago someone suggested that all binary attachments should be > stripped from freebsd-hackers mail. I believe it is still a very good idea, > and patches tend to be posted as text anyway. Good Idea. We should'nt filter out all mail with MIME enclosures, as occasionally MIME enclosu

RE: Kernel Hacking (i tried not to make it lame)

2001-01-29 Thread Doug Barton
On Fri, 26 Jan 2001, Koster, K.J. wrote: > Dear Ariff, > > > > > I remembered porting back cd9660 to 2.2.x tree, and now look > > forward porting softupdates (If anybody can give me some light > > I really appreciate that). I'm reviewing sources from current, > > stable and from other BSD project

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Matt Dillon
: :They say so in their book: : :http://www.amazon.com/exec/obidos/ASIN/0805316701/qid=980806275/sr=1-28/ref=sc_b_28/104-5366240-4220700 : : :-- :Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 :[EMAIL PROTECTED] | TCP/IP since RFC 956 :FreeBSD committer | BSD since 4.3-tahoe

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Bakul Shah writes: >> >If you can get to old CACMs see `Minimal Perfect Hash Functions Made Simple' >> >by Richard J. Cichelli, Comm. of ACM, Jan 1980. AFAIK gperf uses some >> >variation of that algorithm and may have some details. A minimal perfect hash >> >func

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Bakul Shah
> >If you can get to old CACMs see `Minimal Perfect Hash Functions Made Simple' > >by Richard J. Cichelli, Comm. of ACM, Jan 1980. AFAIK gperf uses some > >variation of that algorithm and may have some details. A minimal perfect hash > >function is only worth it (IMHO) when the set of input keys

Re: EBCDIC -> ASCII

2001-01-29 Thread Josef Grosch
On Mon, Jan 29, 2001 at 10:35:20PM +0100, Poul-Henning Kamp wrote: > In message <[EMAIL PROTECTED]>, Josef Grosch writes: > > > >Does anybody know of an EBCDIC to ASCII converter? I thought that at one > >time FreeBSD had one of these. > > man 1 dd Doh! Time to re-read the man pages. Thanks Jos

Re: EBCDIC -> ASCII

2001-01-29 Thread Thomas David Rivers
Josef Grosch <[EMAIL PROTECTED]> wrote: > > > Does anybody know of an EBCDIC to ASCII converter? I thought that at one > time FreeBSD had one of these. > > > Josef Check out the `dd' command.. particularly the `conv' suboption: conv= value[, value ...] Where value is one

Re: EBCDIC -> ASCII

2001-01-29 Thread Drew Eckhardt
In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] write s: > >Does anybody know of an EBCDIC to ASCII converter? I thought that at one >time FreeBSD had one of these. This is a standard dd(1) feature. More specifically, you want to use the conv=ascii option. To Unsubscribe: send mail to [EMAIL

Re: Really odd "BTX halted" problem booting - PXE/diskless

2001-01-29 Thread John Baldwin
On 29-Jan-01 Danny Braniss wrote: > im now being bitten by this one, but with a twist: > on a compaq deskpro workstation it's ok > on a dell-precision 420, it bombs. > both bioses are configured to boot via the network/pxe. > > im using the same disks for both boxes. > > i labeled the disks w

Re: EBCDIC -> ASCII

2001-01-29 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Josef Grosch writes: > >Does anybody know of an EBCDIC to ASCII converter? I thought that at one >time FreeBSD had one of these. man 1 dd -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer

EBCDIC -> ASCII

2001-01-29 Thread Josef Grosch
Does anybody know of an EBCDIC to ASCII converter? I thought that at one time FreeBSD had one of these. Josef -- Josef Grosch | Another day closer to a | FreeBSD 4.2 [EMAIL PROTECTED] | Micro$oft free world | www.bafug.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "u

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Bakul Shah writes: >This caught my eye: > >> Besides, there is no such thing as a >> perfect hash ... at least not one that has a small enough index range >> to be useful in a table lookup. > >If you can get to old CACMs see `

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Bakul Shah
This caught my eye: > Besides, there is no such thing as a > perfect hash ... at least not one that has a small enough index range > to be useful in a table lookup. If you can get to old CACMs see `Minimal Perfect Hash Functions Made Simple' by Richard J.

Bash2 removes SSH_CLIENT from the environment

2001-01-29 Thread Patrick Bihan-Faou
Hi, I am writing some script that looks for the SSH_CLIENT environment variable. As specified in the sshd(8) man page, this variable should contain the IP address of the client, the port number on the client side and the port number on the server side. However I found that if the login shell of

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Garrett Wollman
< said: > ok, sorry for the confusion then (though, how does one tell from > the manpage for pipe(2) what is going on there!) You're not supposed to -- it's an implementation detail. -GAWollman To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of t

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Luigi Rizzo
> Of course it can, and the manual page doesn't even suggest what you > say. It says: > > There is no way to simulate system calls that have multiple return values > such as pipe(2). ok, sorry for the confusion then (though, how does one tell from the manpage for pipe(2) what is going

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Garrett Wollman
< said: > but there is a problem with syscall() in that according to > the manpages it cannot handle in/out parameters as instead > it is supported by ioctl/fcntl Of course it can, and the manual page doesn't even suggest what you say. It says: There is no way to simulate system calls tha

Re: newbie - Audio CD question

2001-01-29 Thread Dan Feldman
There are two ways to play CDs. YOu can either tell the CD player to start playing and have it do all the work, or actually read the CD in software, interpret it, and send it to the speakers. The hardware method is nice because it uses no CPU power and the audio control buttons on the fron tof the

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Luigi Rizzo
> > The generic method would basically have the same interface as ioctl() > > or fcntl(), with the fd replaced by a pointer to the function name. > > Actually, the easiest way if to make a sysctl that exports the syscall > number to useland. > > mysubsystem.foosyscall: 188 but there is a proble

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Alfred Perlstein
* Luigi Rizzo <[EMAIL PROTECTED]> [010129 11:16] wrote: > > < said: > > > > > And, this mechanism would be explicitly used for "non portable" or > > > experimental functions (such as the closeall() which started the > > > thread, or next time someone comes up with a start_http_server_thread()) >

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Luigi Rizzo
> < said: > > > And, this mechanism would be explicitly used for "non portable" or > > experimental functions (such as the closeall() which started the > > thread, or next time someone comes up with a start_http_server_thread()) > > and avoiding overloading an existing syscall or having to modify

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Matt Dillon
:true, but if the same idea gets adopted by those many OSes, then it's a benefit :for them all. just how PAM came: it was non-portabble before adoption! : It doesn't solve anything. Besides, there is no such thing as a perfect hash ... at least not one that has a small enough index rang

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Garrett Wollman
< said: > And, this mechanism would be explicitly used for "non portable" or > experimental functions (such as the closeall() which started the > thread, or next time someone comes up with a start_http_server_thread()) > and avoiding overloading an existing syscall or having to modify > libc Thi

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Luigi Rizzo
> It doesn't solve anything. Besides, there is no such thing as a > perfect hash ... at least not one that has a small enough index range > to be useful in a table lookup. And, again, no real reason or need > to do such a thing. The kernel syscall is hardwired because it is >

newbie - Audio CD question

2001-01-29 Thread vijay
Hi, I am new to FreeBSD. I wanted to know if I can play audio CDs on "my" system. I have culled the following information from dmesg wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 6187MB (12672450 sectors), 13410 cyls, 15 heads, 63 S/T, 512 B/S wdc1 at 0x170-0x177 irq 15 on isa wdc1:

Using multiple Malloc-Disks

2001-01-29 Thread David E. Cross
I need to use multiple malloc disks for a custom net-boot image I am working on. The problem is that whenever I access /dev/md1 from the disk it gives me a 'device not configured' error. I originally thought that this was an error in how a preloaded image interfaced with the system, but I also g

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread mouss
At 12:28 29/01/01 -0500, Garrett Wollman wrote: >< >said: > > > kind-of, though the function name should be a string and not > > an integer (easier to extend/allocate), and it should allow > > return values in user-supplied buffers, same as ioctl/fcntl > > calls do. > >dlsym() you mean at user l

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread mouss
At 08:57 29/01/01 -0800, Luigi Rizzo wrote: >hi, >i have to admit i am not too much into theory of hashing, but i am >unclear on how a perfect hash function can be simpler than "the >obvious method" when the namespace is changing dynamically because >modules are added or deleted. >(the obvious met

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread mouss
At 09:37 29/01/01 -0800, Matt Dillon wrote: >This is a bad idea. One of the reasons why it is so easy for us to > write portability modules for Sun, Linux, etc... is because of the > hard-coded syscall numbers. Syscalls work plenty well enough as they > are now, we do not need a

Re: Kernel Hacking (i tried not to make it lame)

2001-01-29 Thread Brooks Davis
On Fri, Jan 26, 2001 at 08:35:54AM -0700, Wes Peters wrote: > Several others have made good replies to this, but here's another thought: > The best way to learn something is to have a goal in mind. If you understand > C pretty well, pick a PR out of the problem report database and start working >

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Matt Dillon
:> As for the "generic" syscall mechanism, I'd love it. I think that :> there are many places where "names" would be good, instead of :> hardcoded numbers. The only problem is to find a way to do that :> without reducing performance. names are good. just try to see what it :> would be if filenames

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Garrett Wollman
< said: > kind-of, though the function name should be a string and not > an integer (easier to extend/allocate), and it should allow > return values in user-supplied buffers, same as ioctl/fcntl > calls do. dlsym() -GAWollman To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe f

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-29 Thread Pedro F. Giffuni
Definitely a virus! Virus W95.Hybris.Gen.dr found. File NOT cleaned. Pedro. Patryk Zadarnowski wrote: > > On Mon, 29 Jan 2001 00:23:48 -0800 (PST), Hahaha <[EMAIL PROTECTED]> wrote: > > > Today, Snowhite was turning 18. The 7 Dwarfs always where very educated and > > polite with Snowhi

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Luigi Rizzo
hi, i have to admit i am not too much into theory of hashing, but i am unclear on how a perfect hash function can be simpler than "the obvious method" when the namespace is changing dynamically because modules are added or deleted. (the obvious method would be a cheap hash on 2-4 chars of the name

Virus in your letter

2001-01-29 Thread Mailer-Daemon
÷ÁÛÅ ÐÉÓØÍÏ ÎÅ ÂÙÌÏ ÄÏÓÔÁ×ÌÅÎÏ ÐÏ ÎÁÚÎÁÞÅÎÉÀ. AVP ÏÂÎÁÒÕÖÉÌ × ÎÅÍ ×ÉÒÕÓ ÉÌÉ ÔÒÏÑÎ: '/[From: Hahaha <[EMAIL PROTECTED]>][Date: Mon, 29 Jan 2001 00:23:48 -0800 (PST)]:\joke.exe infected: I-Worm.Hybris.b /var/spool/exim/input/T/14NGmT-0002wi-00-D/[From: Hahaha <[EMAIL PROTECTED]>][Date: Mon

Re: ports/x11/XFree86-4/files/patch-xthreads: broken in CURRENT?

2001-01-29 Thread Konstantin Chuguev
Aaron wrote: > Hello, > I have FreeBSD 4-STABLE running a binary install of XFree86 4.0.2. > After installing xine from sources, I get a message saying I dont have > Thread-safe X libraries and it wont run. I've scoured google and many > newsgroups in search of anything on getting these "thread

No Subject

2001-01-29 Thread Aaron
Hello, I have FreeBSD 4-STABLE running a binary install of XFree86 4.0.2. After installing xine from sources, I get a message saying I dont have Thread-safe X libraries and it wont run. I've scoured google and many newsgroups in search of anything on getting these "thread safe" libraries. C

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-29 Thread Ronald G Minnich
On Mon, 29 Jan 2001, Ronald G Minnich wrote: > On Mon, 29 Jan 2001, Hahaha wrote: > > > Today, Snowhite was turning 18. The 7 Dwarfs always where very educated and > > polite with Snowhite. When they go out work at mornign, they promissed a > > *huge* surprise. Snowhite was anxious. Suddlently, t

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-29 Thread Ronald G Minnich
On Mon, 29 Jan 2001, Hahaha wrote: > Today, Snowhite was turning 18. The 7 Dwarfs always where very educated and > polite with Snowhite. When they go out work at mornign, they promissed a > *huge* surprise. Snowhite was anxious. Suddlently, the door open, and the Seven > Dwarfs enter... > > To

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Daniel Eischen
On Mon, 29 Jan 2001, Jacques A. Vidrine wrote: > On Mon, Jan 29, 2001 at 03:13:05PM +0100, mouss wrote: > > I fully agree that we'd better mimic netbsd than aix... > > but the netbsd closeall() is just a libc function that calls close() > > for all descriptors. so we can still mimic it with: > >

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread Jacques A. Vidrine
On Mon, Jan 29, 2001 at 03:13:05PM +0100, mouss wrote: > I fully agree that we'd better mimic netbsd than aix... > but the netbsd closeall() is just a libc function that calls close() > for all descriptors. so we can still mimic it with: > > #define closeall(start) fcntl(start, F_CLOSEM, 0) Bett

Re: update jail

2001-01-29 Thread The Hermit Hacker
Sorry, my fault, I should have responded back after I had tested it ... yes, the below worked quite nicely for me *nod* On Mon, 29 Jan 2001, Stefan Aeschbacher wrote: > Hi > what is the correct way to update the world in a jail? > something like this? > > D=/path/to/jail > cd /usr/src > make up

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread mouss
At 10:37 28/01/01 -0800, Luigi Rizzo wrote: > generic_syscall("fdcloseall", ); > >In this way it would be clear what the non-portable pieces of code >are, and the mechanism would be extensible with no changes to >libraries and syscalls. You could even have dynamically-loaded >modules

Re: [kernel patch] fcntl(...) to close many descriptors

2001-01-29 Thread mouss
At 02:01 29/01/01 -0500, Garance A Drosihn wrote: >Mouss <[EMAIL PROTECTED]> mentioned that NetBSD has a closeall >function in it's libc, and it sounded like he was going to >mimic that instead of the fcntl change. If I were going to >mimic something, I'd rather mimic netbsd than some feature >wh

Re: disk problem

2001-01-29 Thread Justin T. Gibbs
>i did the vinum stuff again, but now im getting all kind of errors. >btw, the kernel is of this morning (4.2 cvsuped this morning - local time), i >noticed some fixes to the aic7xxx. You have a bad cable or terminator. The 7899 runs quite a bit faster than the 2940U, so the problem may not hav

disk problem

2001-01-29 Thread Danny Braniss
hi, Not sure were this belongs, so if im wrong please let me know, so I won't do it again :-). i have a box with several scsi disks - left over from a netapp, so i connected it to a AHA-2940U@, and started experimenting with vinum. after some trial an errors, got a stripe volume (4 x 8GB

Re: driver for Matrox Meteor II frame grabber

2001-01-29 Thread Rasputin
* Jeff Brooke <[EMAIL PROTECTED]> [010126 21:37]: > My questions are: (i) where, if at all, can I find info/tutorials/examples on >driver-writing with this method? (ii) what are the benefits of the newbus method? >(iii) is it still at all acceptable to write drivers using the old style/method?

RE: interrupt handling routine not called!!!

2001-01-29 Thread Satyajeet Seth
Hi > Oops. I meant to say: > > mask = inb(ICU1); > mask |= (inb(ICU2) << 8); > > Will give you a mask of the current interrupt lines set. We checked for the mask in the functions isa_irq_pending() and update_intr_masks() in intr_machdep.c. intrmask_t isa

update jail

2001-01-29 Thread Stefan Aeschbacher
Hi what is the correct way to update the world in a jail? something like this? D=/path/to/jail cd /usr/src make update make buildworld make installworld make installworld DESTDIR=$D mergemaster mergemaster -D $D (did not find any answers to this question even though it was asked several times in

Re: Snowhite and the Seven Dwarfs - The REAL story!

2001-01-29 Thread Patryk Zadarnowski
On Mon, 29 Jan 2001 00:23:48 -0800 (PST), Hahaha <[EMAIL PROTECTED]> wrote: > Today, Snowhite was turning 18. The 7 Dwarfs always where very educated and > polite with Snowhite. When they go out work at mornign, they promissed a > *huge* surprise. Snowhite was anxious. Suddlently, the door open,

Re: Really odd "BTX halted" problem booting - PXE/diskless

2001-01-29 Thread Danny Braniss
im now being bitten by this one, but with a twist: on a compaq deskpro workstation it's ok on a dell-precision 420, it bombs. both bioses are configured to boot via the network/pxe. im using the same disks for both boxes. i labeled the disks with: dd if=/dev/zero of=/dev/rda0 bs=1k count=1 d

Snowhite and the Seven Dwarfs - The REAL story!

2001-01-29 Thread Hahaha
Today, Snowhite was turning 18. The 7 Dwarfs always where very educated and polite with Snowhite. When they go out work at mornign, they promissed a *huge* surprise. Snowhite was anxious. Suddlently, the door open, and the Seven Dwarfs enter... sexy virgin.scr

Snowhite and the Seven Dwarfs - The REAL story!

2001-01-29 Thread Hahaha
Today, Snowhite was turning 18. The 7 Dwarfs always where very educated and polite with Snowhite. When they go out work at mornign, they promissed a *huge* surprise. Snowhite was anxious. Suddlently, the door open, and the Seven Dwarfs enter... joke.exe