strnstr(3) - New libc function for review

2001-10-04 Thread Mike Barcroft
[BCC'd to -hackers for additional comments.] Hello, I would appreciate comments/reviews of the following new addition to libc. It is largely based off the current strstr(3) implementation. Patch attached and also available at: http://people.FreeBSD.org/~mike/patches/strnstr.diff Best regards,

Re: [answer] odd behaviour from loader/kernel

2001-10-04 Thread Julian Elischer
oh hell.. now that I posted this I remembered how it's done in 4.x (kernel.conf) ignore this.. On Thu, 4 Oct 2001, Julian Elischer wrote: > > Running 4.4-RELEASE > > > I have a kernel with the cyclades driver (cy) which I want > to use on several machines. On on eof the machines however, hav

odd behaviour from loader/kernel

2001-10-04 Thread Julian Elischer
Running 4.4-RELEASE I have a kernel with the cyclades driver (cy) which I want to use on several machines. On on eof the machines however, having that kernel with no cyclades card results in a page fault in cyprobe(). The simple answer is to just disable the cy driver.. (I really don't want a

chroot

2001-10-04 Thread Thierry Black
hello...   I am writing one simple network server, and can make the daemon and network code work ok, but I want my server to chroot during the initialization.  The problem is this server by design is designed to be installed and run by normal users, and chroot() can only be called by superuser. Bec

4.4-stable, savecore and integer overflow in get_dumpsize()

2001-10-04 Thread mki
It appears that get_dumpsize is b0rked in that the following returns a negative number for systems with large memory/swap configs: void get_dumpsize() { int kdumpsize; /* Read the dump size. */ DumpRead(dumpfd, &kdumpsize, sizeof(kdumpsize), (off_t)(dumplo +

NFS swap and locking

2001-10-04 Thread David Gilbert
If you've been following the situation, we have many diskless nodes that swap over NFS. We're using a patch (kindly provided to us) that allows swapon to specify a string to mount NFS swap after boot. I've been told (and it looks like) that it calls the same set of functions that the nfs swap op

Re: 64bit Ethernet Card (if_sf driver)

2001-10-04 Thread Andrew Gallatin
[EMAIL PROTECTED] writes: > > Anyone with experience or ideas? > Because of the aligment constraints of the card, its copying every single packet the driver recvs. This is required on alpha (and possibly other platforms) to prevent an unlaligned access. In a forwarding situation on an x86

Re: 64bit Ethernet Card (if_sf driver)

2001-10-04 Thread Doug Ambrisko
[EMAIL PROTECTED] writes: | I've been testing the adaptec 64044 card (if_sf driver) which is a 64bit | 66Mhz 4 port ethernet. I can have come to one of two conclusions: | | 1) the card sucks | 2) the driver sucks | | or both. A 32bit Dlink 4 port card outperforms it by a wide margin, as do | 3

Re: [Q] Information on fb/vesa mode programming

2001-10-04 Thread Mike Smith
> I've been trying to find out some information on programming the > fb/vesa interface, eg. set_video_mode() and friends. Try the Vesa 3.0 document (google is your friend). > From the few examples I've seen, it appears that you have to > muck about with banks rather than use a pointer to linear

Re: ALT- (Was: how to make 'for' understand two words as asingleargumen)

2001-10-04 Thread Greg Shenaut
In message <89efc3b204df3107d1@[192.168.1.4]>, Michael Sinz cleopede: >This was within the context of alt-space replacing spaces in file names. >As things stand now, it is not even easily usable as the main tool used >to list the files in a directory does not show it correctly. (As far as >the no

Re: if_sf bug

2001-10-04 Thread Bsdguru
In a message dated 10/04/2001 2:30:51 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: > > > All the interfaces do that. If you want to make an invisible interface, > > > configure it with IP 0.0.0.0. > > > > I believe 'ifconfig foo0 up' is sufficient. > > Confirming data point: "ifc

[Q] Information on fb/vesa mode programming

2001-10-04 Thread Jonathan Belson
Hiya I've been trying to find out some information on programming the fb/vesa interface, eg. set_video_mode() and friends. >From the few examples I've seen, it appears that you have to muck about with banks rather than use a pointer to linear frame buffer (logo_saver.c, splash.c). Is there no

Re: grep memory footage

2001-10-04 Thread Guido van Rooij
On Thu, Oct 04, 2001 at 11:49:49AM -0700, Mike Smith wrote: > > It's a known bug in grep; there are probably a bunch of PRs outstanding > on it. We need grep to be updated. > >From looking at the source, it seems that the lates version still seems to have the same problem. The problem seems

Re: ALT- (Was: how to make 'for' understand two words as asingleargumen)

2001-10-04 Thread Michael Sinz
Dag-Erling Smorgrav wrote: > > Michael Sinz <[EMAIL PROTECTED]> writes: > > BTW - How does your system represent a file with 0xA0 in it? An ls on > > FreeBSD 4.4-Stable seems to show it as: > > > > -rw-r--r-- 1 msinz msinz 0 Oct 3 12:00 foo?bar > > > > Interesting - not what I would have ex

GA621 ?

2001-10-04 Thread DOROVSKOY,IGOR (A-Portsmouth,ex1)
Is anyone got running Netgear gigabit nic GA621 in 4.4? cheers, Igor To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: grep memory footage

2001-10-04 Thread Ruslan Ermilov
On Thu, Oct 04, 2001 at 11:49:49AM -0700, Mike Smith wrote: > > > > When fgrepping a huge file (say 10GB) for a non-existing string, > > fgrep's memory size skyrockets. At a certain point in time its SIZE was 391M > > (RSS was about 30MB) and the system got rather unreponsive. The > > string was

Re: grep memory footage

2001-10-04 Thread Mike Smith
> > When fgrepping a huge file (say 10GB) for a non-existing string, > fgrep's memory size skyrockets. At a certain point in time its SIZE was 391M > (RSS was about 30MB) and the system got rather unreponsive. The > string was about 12 bytes big, and we fail to see why grep would > need so much.

64bit Ethernet Card (if_sf driver)

2001-10-04 Thread Bsdguru
I've been testing the adaptec 64044 card (if_sf driver) which is a 64bit 66Mhz 4 port ethernet. I can have come to one of two conclusions: 1) the card sucks 2) the driver sucks or both. A 32bit Dlink 4 port card outperforms it by a wide margin, as do 32bit eepro100s. "wide margin" being defin

RE: [xine-user] xine on freebsd?

2001-10-04 Thread Heiko Schaefer
Hey everyone, > > Also, are you sure that you have enough shared memory on the freebsd box? > By > > default the amount of shm you can use is fairly small, and if you use > GNOME it > > will easily eat it all. > > I can't agree with this statement more. Gnome/GTK is a pig on SHM, and the > FreeB

Re: VM: file swapping (this time in libc): patch

2001-10-04 Thread Vladimir Dozen
ehlo. I was told that diff format I used is unappropriate for most cases, so I redo it in unified (-u) format. Purpose: to allow developers of large applications to use system memory allocation routines for allocating in mmap()ed file instead of writing own ones. Also, allow to run app

grep memory footage

2001-10-04 Thread Guido van Rooij
When fgrepping a huge file (say 10GB) for a non-existing string, fgrep's memory size skyrockets. At a certain point in time its SIZE was 391M (RSS was about 30MB) and the system got rather unreponsive. The string was about 12 bytes big, and we fail to see why grep would need so much. Is there a

Re: bluetooth

2001-10-04 Thread Maksim Yevmenkin
Duncan > I might be worth talking to the people at > > http://www.blueaid.com/ Thanks for the info! > Bill Munday has written and architected a number of the Bluetooth stacks > various vendors use. He does free consulting and knows a _lot_ of people > in the Bluetooth world. He is lik

Re: bluetooth

2001-10-04 Thread John Kozubik
I found my cards at pricewatch.com - just type bluetooth into the top search textbox - you should see 3com and xircom cards come up for $120 - $150. - John Kozubik - [EMAIL PROTECTED] - http://www.kozubik.com On Thu, 4 Oct 2001, Nicolai Petri wrote: > Hi Warner, > > I've seen cards for

Re: bluetooth

2001-10-04 Thread Duncan Barclay
Hi I might be worth talking to the people at http://www.blueaid.com/ Bill Munday has written and architected a number of the Bluetooth stacks various vendors use. He does free consulting and knows a _lot_ of people in the Bluetooth world. He is likely to know about other Bluetooth effor