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: se

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

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 17:2

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] - ht

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

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 d

ALi M5451 Sound card wont work. Please Help!

2002-04-10 Thread mithril
Hi Everyone,I hope this is the right list to post to.  I got no responses on freebsd-questions.  I have a Soyo K7ADA motherboard with integrated ALi M5451 sound card.  It was working fine under Linux using the trident driver, but I recently switched to using FreeBSD as my primary OS.  I am r

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 apprec

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 a

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]> wr

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]

Re: USB "Memorybird" quirks

2002-04-10 Thread Nick Hibma
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 dynamically for these devices. Any takers for an implementation that doesn'

Re: USB "Memorybird" quirks

2002-04-10 Thread Nick Hibma
The class of devices that does not accept 6 byte commands is well known: ATAPI and UFI. Nick > It seems to me that umass_scsi_transform() in umass.c is > the place intended for this kind of things. After the > first failure (which is detected in umass_bbb_state()), > a flag (quirk) should be s

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( "aut

Re: USB "Memorybird" quirks

2002-04-10 Thread Nick Hibma
Oh, and RBC of course. Anyway, you get my point I guess. Nick > > The class of devices that does not accept 6 byte commands is well known: > ATAPI and UFI. > > Nick > > > It seems to me that umass_scsi_transform() in umass.c is > > the place intended for this kind of things. After the > > firs

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 10

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 l

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 Califor

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 (http://www.freebsd.org/cgi/quer

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 dyn

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. http://www.anti-dmc

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: > > -RI

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

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) non

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 co

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 h

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

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 rig

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 ? O

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 */ ev

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, t

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 whe

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 rel

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 *th

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

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

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 w

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 cards