Re: ipcrm/shmctl failure

2002-04-10 Thread Terry Lambert
[EMAIL PROTECTED] wrote: } You could say that X11 shouldn't use SHMs the way it does now yeah. =) }The real problem is that over the UNIX domain socket, it doesn't }get client disconnect notificiations necessary for resource tracking, }AND browser use of these resources is practically the

Re: Hardlinks...

2002-04-10 Thread Terry Lambert
Crist J. Clark wrote: file is created in /etc; it does the right thing, if the symlink is read-only, though...). Exactly, you can't use symlinks with the passwd(1) and pwd_mkdb(8) commands as they stand. The commands will bail when they try to create a temporary file in /etc,

'rm' incompatibility with Posix.2

2002-04-10 Thread Bogdan TARU
Hi everyone, I have noticed quite some time ago a strange way in which some basic FreeBSD utilities work, related to symlinks. Example session: bgd@cvs$ mkdir temp bgd@cvs$ ln -s temp b bgd@cvs$ ls -ald temp b lrwxr-xr-x 1 bgd wheel4 Apr 9 11:27 b - temp drwxr-xr-x 2 bgd

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Terry Lambert
Bogdan TARU wrote: As you can see, when I tried to remove the symlink 'b' with a trailing slash 'rm -rf b/', the target directory was removed instead of the actual symlink. Of course, this is weird (tryied it on some other 10 un*xes, and all worked in another way). I have attached a

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Rogier R. Mulhuijzen
I have attached a patch for the 'rm' untility, which strips the trailing slash(es) from the path (according to Posix.2). But I think there are many other utilities which need to be patched (e.g. cp, mv). Can you point out how the behavior violates POSIX.2? Doc To Unsubscribe: send

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Bogdan TARU
Dear Rogier Terry, I didn't say the behaviour contradicts Posix.2. I just said that Posix.2 specifies removal of the trailing slashes when doing directory operation. Which, for example, freebsd 'rm' does not, which leads to a strange behaviour. As I stated, I have tryied this on more

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Bernd Walter
On Wed, Apr 10, 2002 at 10:45:25AM +0200, Bogdan TARU wrote: Dear Rogier Terry, I didn't say the behaviour contradicts Posix.2. I just said that Posix.2 specifies removal of the trailing slashes when doing directory operation. Which, for example, freebsd 'rm' does not, which leads

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Terry Lambert
Bogdan TARU wrote: I didn't say the behaviour contradicts Posix.2. I just said that Posix.2 specifies removal of the trailing slashes when doing directory operation. Path component operations are a mixed bag. They can occur partially in user space, or they can occur in the kernel. When you

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Brian T . Schellenberger
On Wednesday 10 April 2002 04:45 am, Bogdan TARU wrote: | Dear Rogier Terry, | | I didn't say the behaviour contradicts Posix.2. I just said that Posix.2 | specifies removal of the trailing slashes when doing directory operation. I don't think I follow the distinction here. If posix requires

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Dag-Erling Smorgrav
Bogdan TARU [EMAIL PROTECTED] writes: I have attached a patch for the 'rm' untility, which strips the trailing slash(es) from the path (according to Posix.2). But I think there are many other utilities which need to be patched (e.g. cp, mv). Please don't. This functionality is extremely

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Bogdan TARU
As well: bgd@web$ mkdir temp bgd@web$ touch temp/a bgd@web$ mkdir temp2 bgd@web$ cp -R temp/ temp2/ bgd@web$ ls -al temp2/ total 3 drwxr-xr-x 2 bgd wheel 512 Apr 10 17:20 . drwxr-xr-x 14 bgd wheel 2048 Apr 10 17:20 .. -rw-r--r-- 1 bgd wheel 0 Apr 10 17:20 a If ending a symlink

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Brian T . Schellenberger
On Wednesday 10 April 2002 11:21 am, Bogdan TARU wrote: | As well: | | bgd@web$ mkdir temp | bgd@web$ touch temp/a | bgd@web$ mkdir temp2 | bgd@web$ cp -R temp/ temp2/ | bgd@web$ ls -al temp2/ | total 3 | drwxr-xr-x 2 bgd wheel 512 Apr 10 17:20 . | drwxr-xr-x 14 bgd wheel 2048 Apr 10

Re: Question about possibly additions to TOP

2002-04-10 Thread John Kozubik
thanks for your patch - I think this _will_ be useful. Since there are security implications in giving arbitrary jail root users access to their own /dev/mem, /dev/kmem, and /dev/io devices, the ability to run `top` without these items is very useful. - John Kozubik - [EMAIL PROTECTED] -

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Bogdan TARU
On 10 Apr 2002, Dag-Erling Smorgrav wrote: Bogdan TARU [EMAIL PROTECTED] writes: I have attached a patch for the 'rm' untility, which strips the trailing slash(es) from the path (according to Posix.2). But I think there are many other utilities which need to be patched (e.g. cp, mv).

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Dag-Erling Smorgrav
Bogdan TARU [EMAIL PROTECTED] writes: On 10 Apr 2002, Dag-Erling Smorgrav wrote: In my humble opinion, Solaris (and every other *nix) is broken in this respect, and *BSD is correct. Except for OpenBDS. No NetBDS machine available, maybe some of you could try it on one as well? I don't

quotactl issues

2002-04-10 Thread Michael R. Wayne
Ported some code that uses quotactl to 4.3 p19 and it fails with EINVAL when trying to: quotactl(var/mail, QCMD(Q_GETQUOTA, USRQUOTA), VALID_UID, blk) Looked at the source for edquota on 4.5 RELEASE (what I had handy), and ran a copy of it through gdb, it fails with the same error, then it

fault on non-fault page - any debugging ideas?

2002-04-10 Thread Zhihui Zhang
While debugging kernel modules, I often get page fault panics. Using up command in gdb, I can find out which routine is the culprit. But I can not get information about which statement within that routine causes the problem. Is there a way to get this more exact information? Any help is

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Brian Somers
Bogdan TARU [EMAIL PROTECTED] writes: On 10 Apr 2002, Dag-Erling Smorgrav wrote: In my humble opinion, Solaris (and every other *nix) is broken in this respect, and *BSD is correct. Except for OpenBDS. No NetBDS machine available, maybe some of you could try it on one as well? I

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Bogdan TARU
UUps... :) Sorry, OpenBSD and NetBSD (typing fast wrong, that's what I'm good at). Could you also try the NetBDS's 'rm'? If it does work like FreeBDS, than I really don't know what to believe anymore. bogdan On 10 Apr 2002, Dag-Erling Smorgrav wrote: Bogdan TARU [EMAIL PROTECTED]

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Dag-Erling Smorgrav
Bogdan TARU [EMAIL PROTECTED] writes: Could you also try the NetBDS's 'rm'? If it does work like FreeBDS, than I really don't know what to believe anymore. It doesn't, actually, it removes the symlink rather than the directory it points at. DES -- Dag-Erling Smorgrav - [EMAIL PROTECTED] To

Re: USB Memorybird quirks

2002-04-10 Thread Nick Hibma
minimum_cmd_size is only used for read_write commands, not for others like MODE_SENSE_6 and friends. Nick As in, try a 6 byte command, and if that fails try a 10 byte command instead? As in, if it fails to reset, then sc-softc-minimum_cmd_size = 10; printf( auto-quirking

Re: USB to IDE converter

2002-04-10 Thread Nick Hibma
Have a look in the sys/dev/usb/umass.c driver and remove the check for the CSW tag. I wouldn't be surprised if the firmware is buggered and doesn't copy the tag from the incoming request into the outgoing packet. Like so: heather:n_hibma% diff -wu umass.c.2~ umass.c.2 --- umass.c.2~ Wed Apr

problems with shared libraries

2002-04-10 Thread bruno
I am trying to port a little program that makes use of shared libraries, and havin some problems with that. This is the situation: the software is an mp3 player daemon, controllable through sockets. For inout/output, it uses xmms plugins. the problem happens when loading the xmms plugin shared

Re: USB Memorybird quirks

2002-04-10 Thread Lars Eggert
There is some (maybe) related code that has been sitting for a while in PR misc/32490 (http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/32490) Lars -- Lars Eggert [EMAIL PROTECTED] Information Sciences Institute http://www.isi.edu/larse/ University of Southern

Re: USB Memorybird quirks

2002-04-10 Thread Nick Hibma
Cheers, I've closed the PR as the same thing has already been done in CURRENT by jhb. Thanks for pointing me at the PR though! Nick On Wed, 10 Apr 2002, Lars Eggert wrote: There is some (maybe) related code that has been sitting for a while in PR misc/32490

Re: USB Memorybird quirks

2002-04-10 Thread Kenneth D. Merry
On Wed, Apr 10, 2002 at 21:50:33 +0200, Nick Hibma wrote: The problem is that we emulate ATAPI and UFI command sets through converting SCSI commands. These command sets both do not have 6 byte commands. The solution is to have the umass driver pass a quirk back to the CAM layer

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Peter Kieser
I say we just leave it how it is now. Else alot of people are probably going to end up deleting directories by accident. It's perfectly fine how it is, if it's not broken why fix it? -- Peter Kieser [EMAIL PROTECTED] This is not about Napster or DVDs. It's about your Freedom.

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Terry Lambert
Bogdan TARU wrote: If ending a symlink with a slash is supposed to mean 'refer to the directory it points to', I imagine ending a directory with a slash is even more so. Then why, oh, why, 'cp -R' copies only the content of the directory in the new location man cp: -RIf

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Rahul Siddharthan
Dag-Erling Smorgrav wrote: Bogdan TARU [EMAIL PROTECTED] writes: On 10 Apr 2002, Dag-Erling Smorgrav wrote: In my humble opinion, Solaris (and every other *nix) is broken in this respect, and *BSD is correct. Except for OpenBDS. No NetBDS machine available, maybe some of you could

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Matthias Buelow
Dag-Erling Smorgrav writes: Please don't. This functionality is extremely useful. Consider this: It may be useful but it is nonstandard. In my humble opinion, Solaris (and every other *nix) is broken in this respect, and *BSD is correct. How do you define correctness? Solaris ls(1)

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread sthaug
Please don't. This functionality is extremely useful. Consider this: It may be useful but it is nonstandard. FreeBSD mostly follows standards. But there are several examples of FreeBSD *not* following standards because the standards are considered broken. In this particular case - I

SSE bcopy

2002-04-10 Thread Denis Serenyi
I've been looking at adding an SSE bcopy that runs at user-level to a program that I'm working on. I'm using FreeBSD 4.3 currently. I wrote the routine, and when I execute it, I get an illegal instruction exception when I try to execute the first SSE instruction (movups). After searching the

Re: problems with shared libraries

2002-04-10 Thread Terry Lambert
[EMAIL PROTECTED] wrote: Well, if I do link with -export-dynamic, I can not even make the first call to anything in the plugin, it segfaults immediately on some g_vsprintf_XXX function (that seems to come from glib). What is going on ? I link the program with glib and all necessary libs.

Re: ALi M5451 Sound card wont work. Please Help!

2002-04-10 Thread Mithril
Chris, I tried all the drivers and none of them worked, so I resorted to purchasing Soundblaster card and it works great. Thx, Mithril On Wed, 10 Apr 2002 09:20:22 -0700 Chris Kagadis (kagadis.com) [EMAIL PROTECTED] wrote: I know this sounds funny, but when I was having trouble finding the

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Brian T . Schellenberger
On Wednesday 10 April 2002 06:04 pm, Peter Kieser wrote: | I say we just leave it how it is now. Else alot of people are probably | going to end up deleting directories by accident. It's perfectly fine how | it is, if it's not broken why fix it? Well, the question is whether it's broken; and

syscons(4) driver

2002-04-10 Thread Wilkinson,Alex
Howdy Crew, From http://www.freebsd.org/releases/5.0R/DP1/relnotes-i386.html It says: The syscons(4) driver now supports keyboard-controlled pasting, by default bound to Shift-Insert My question: If moused is *not* running then how are u meant to select what u want to paste ?

Re: problems with shared libraries

2002-04-10 Thread bruno
I tried that and resolved all entry points. It is neither dlopen() nor dlsym() that fail, it is when I try using that entry point that it fails. code snippet: if ((phandle = dlopen(filename, RTLD_LAZY)) == NULL) { /* failed to load input plug */

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Terry Lambert
Brian T.Schellenberger wrote: On Wednesday 10 April 2002 06:04 pm, Peter Kieser wrote: | I say we just leave it how it is now. Else alot of people are probably | going to end up deleting directories by accident. It's perfectly fine how | it is, if it's not broken why fix it? Well, the

Re: problems with shared libraries

2002-04-10 Thread Terry Lambert
[EMAIL PROTECTED] wrote: I tried that and resolved all entry points. It is neither dlopen() nor dlsym() that fail, it is when I try using that entry point that it fails. code snippet: if ((phandle = dlopen(filename, RTLD_LAZY)) == NULL) { Change this to RTLD_NOW.

'rm' incompatibility with Posix.2

2002-04-10 Thread Bogdan TARU
Hi everyone, I have noticed quite some time ago a strange way in which some basic FreeBSD utilities work, related to symlinks. Example session: bgd@cvs$ mkdir temp bgd@cvs$ ln -s temp b bgd@cvs$ ls -ald temp b lrwxr-xr-x 1 bgd wheel4 Apr 9 11:27 b - temp drwxr-xr-x 2 bgd

FreeBSD Advanced tuning advice

2002-04-10 Thread Storms of Perfection
I am looking for some more in-dept tuning related articles that go beyond the scope of the tuning(5) document that is currently on FreeBSD. I am looking for some extra resources that deal with the following: Compiler Flags VM Subsystem Tuning Network Tuning And anything else that might be of

Re: problems with shared libraries (fwd)

2002-04-10 Thread bruno
that worked, I dlopen'ed glib in my program and put a stub for the glib function that was failing. It was getting bad data. Guess glib needs some stuff inited first maybe... anyway, it seems it works by spoofing it ! thanks bruno Create a module wrapper.so that dlopen's glib.so.xxx, and

Re: 'rm' incompatibility with Posix.2

2002-04-10 Thread Terry Lambert
Dag-Erling Smorgrav wrote: Bogdan TARU [EMAIL PROTECTED] writes: Could you also try the NetBDS's 'rm'? If it does work like FreeBDS, than I really don't know what to believe anymore. It doesn't, actually, it removes the symlink rather than the directory it points at. I think ut uses the

Bug in m_split() ?

2002-04-10 Thread Maksim Yevmenkin
System Administrator wrote: Your message To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Bug in m_split() ? Sent:Wed, 10 Apr 2002 09:23:16 -0700 did not reach the following recipient(s): [EMAIL PROTECTED] on Wed, 10 Apr 2002 09:23:21 -0700 The e-mail system was

Re: problems with shared libraries (fwd)

2002-04-10 Thread Terry Lambert
[EMAIL PROTECTED] wrote: that worked, I dlopen'ed glib in my program and put a stub for the glib function that was failing. It was getting bad data. Guess glib needs some stuff inited first maybe... anyway, it seems it works by spoofing it ! thanks Glad it working... but what you did

Re: USB Memorybird quirks

2002-04-10 Thread Nick Hibma
I saw the NEW_TRANS code and that seems definitely the way to code. A lot of work though. There are other commands that can get sent, though -- inquiry, test unit ready, and start/stop unit are all 6 byte commands, and there are no 10 byte SCSI equivalents. So how do you handle those now?

Low speed sync/async multiport serial cards driver/ usage info request

2002-04-10 Thread Murray Taylor
Has anyone experience with low speed multi port synchronous / asynchronous serial cards? I have data sheets on the following cards at present (the cards themselves may be outdated or unavailable as one of them is under a legacy tag on the websites), and am open to suggestions on alternative