chown() vs. setfown() prototype in vfs_syscalls.c

2002-08-29 Thread Giorgos Keramidas
Hello, A friend asked me why he was getting warnings about conversion of unsigned to signed, when calling chown() with: chown("/dev/null", -1, -1); The manpage of chown has a prototype of: int chown(const char *path, uid_t owner, gid_t group); But the manpage mentions that (uid_d)

driver attach/detach functions

2002-08-29 Thread Harti Brandt
Hi, while trying to get rid of 'could sleep with mutex' messages a question occured to me: is there any global mechanism that ensures that no two threads enter the interface attach/detach functions at the same time? If there is, there should be a hint in driver(9) probably. If there isn't what i

Beware of the Jews

2002-08-29 Thread jmengele
Those filthy Jews ! Have you ever noticed how the Jews are at the forefront of those trying to restrict our rights? Know your enemy. Study this list of Jews trying to destroy your freedom: * Rosen * Coble * Berman * Eisner * Redstone The Jews never create anything. They are

Re: top shows all zeroes.

2002-08-29 Thread Bruce M Simpson
On Wed, Aug 28, 2002 at 11:55:14PM -0700, Patrick Thomas wrote: > rtc irq8 29272122 66 > and I am seeing a rate of 128 on normal systems. So maybe my top output > is still wrong, even though it isn't all zeros. rtc irq8 753070128 The problem has

FreeBSD-4.6.2 panic: ufs_dirbad: bad dir

2002-08-29 Thread Stefan Krüger
Hi folks, this happend yesterday, I still have the crashdump + kernel.debug, if you want me to do something with it... I executed /usr/ports/Tools/scripts/distclean.sh at that time. (with sudo) Just before a startx failed with a Sig 11... (started as a plain user) (my X is a bit unstable, don'

Porting libc_r from -current to -stable

2002-08-29 Thread Jonathon McKitrick
I've volunteered to do this port, with the expectation that it's within my ability. I'm just a bit over my head, but that's how I'll learn, right? I've gotten the -current version to build and install, but I've found 2 problems so far: gkrellm loads and cannot resolve the symbol _flockfile. Als

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
On 28 Aug 2002 at 16:43, Terry Lambert wrote: > Dan Langille wrote: > > I've tested this from several boxes behind my firewall each time > > emailing to a box outside the firewall. The test was: > > > >echo 'hi there' | mail [EMAIL PROTECTED] > > echo 'hi there' | mail -v [EMAIL PROTECTE

Re: Getting /dev/smb* to work.

2002-08-29 Thread Bruce M Simpson
On Wed, Aug 28, 2002 at 01:46:33PM -0700, Nate Lawson wrote: > What error is open or ioctl returning in your ktrace? EINVAL? boot -v > will give you more info about the attach progress. triage:/tmp % s ktrace healthd -S -d ioctl(SMB_READB): Device not configured InitMBInfo: Device not configur

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Daniel Eischen
On Thu, 29 Aug 2002, Jonathon McKitrick wrote: > I've volunteered to do this port, with the expectation that it's within my > ability. I'm just a bit over my head, but that's how I'll learn, right? > > I've gotten the -current version to build and install, but I've found 2 > problems so far: gkr

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Jonathon McKitrick
On Thu, Aug 29, 2002 at 09:45:49AM -0400, Daniel Eischen wrote: | You're going to have to keep the hashtable method of locking | FILEs. So is this project much more complicated than simply resolving symbols and dropping unused calls? jm -- My other computer is your Windows box. To Unsubscribe

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Michael Lucas
On Thu, Aug 29, 2002 at 03:03:19PM +0100, Jonathon McKitrick wrote: > On Thu, Aug 29, 2002 at 09:45:49AM -0400, Daniel Eischen wrote: > | You're going to have to keep the hashtable method of locking > | FILEs. > > So is this project much more complicated than simply resolving symbols and > droppi

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Jonathon McKitrick
On Thu, Aug 29, 2002 at 10:09:13AM -0400, Michael Lucas wrote: | On Thu, Aug 29, 2002 at 03:03:19PM +0100, Jonathon McKitrick wrote: | > On Thu, Aug 29, 2002 at 09:45:49AM -0400, Daniel Eischen wrote: | > | You're going to have to keep the hashtable method of locking | > | FILEs. | > | > So is th

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Jonathon McKitrick
Also, I'm a bit weak (read: clueless) about dynamic linking. Where is a good place to start? Or is the libc_r issue fundamentally different? jm -- My other computer is your Windows box. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the messa

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Kenneth Culver
> I've volunteered to do this port, with the expectation that it's within my > ability. I'm just a bit over my head, but that's how I'll learn, right? > > I've gotten the -current version to build and install, but I've found 2 > problems so far: gkrellm loads and cannot resolve the symbol _flockf

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Jonathon McKitrick
| Just curious, but what does doing this port get you? Better threading performance and less bugs in Java, so I'm told. I was looking for a Java on BSD project, and this is what I was given. jm -- My other computer is your Windows box. To Unsubscribe: send mail to [EMAIL PROTECTED] with "un

*nixopt, an idea

2002-08-29 Thread Koul-Henning Pamp
Fellow hackers, I'm creating a new unix optimizer tool, I've finished version 0.1 and need feedback. -- #!/bin/sh # The *nix optimizer # (C) 2002 Koul-Henning Pamp # Released under the superior FFL (Fuck Fumerola License) [ "`uname`" = "Linux" ] && echo "System not supported yet." [

More dynamic KVA_SPACE

2002-08-29 Thread Aaro J Koskinen
Hello all, I've been thinking what kind of modifications would it need to decide the KVA space size at the kernel boot time (maybe an argument to btext), instead of compile time. In theory I can't see any obstacles. Basically the approach would be simply the following: - The current KERNBASE w

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Kenneth Culver
> | Just curious, but what does doing this port get you? > > Better threading performance and less bugs in Java, so I'm told. I was > looking for a Java on BSD project, and this is what I was given. > Oh, I didn't realize the userland threads implementations on -current and -stable differed that

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Jonathon McKitrick
On Thu, Aug 29, 2002 at 11:22:38AM -0400, Kenneth Culver wrote: | Oh, I didn't realize the userland threads implementations on -current and | -stable differed that much. Good luck! 'Good luck!' I keep getting that. I wonder if that's an omen. jm -- My other computer is your Windows box. To

Re: chown() vs. setfown() prototype in vfs_syscalls.c

2002-08-29 Thread Pawel Jakub Dawidek
On Thu, Aug 29, 2002 at 10:35:31AM +0300, Giorgos Keramidas wrote: +> Hello, +> +> A friend asked me why he was getting warnings about conversion of +> unsigned to signed, when calling chown() with: +> +> chown("/dev/null", -1, -1); +> +> The manpage of chown has a prototype of: +> +>

FreeBSD's sh: "local" builtin

2002-08-29 Thread Eugene Ossintsev
Hallo, FreeBSD's sh has a builtin "local" for the functions. Is it a POSIX.2 feature or Bash influence? I ask about it because Vim doesn't recognize "local" as a keyword for the shell scripts. (Of course, it's not drammatical, it's just a matter of interest for me) It supposes that the classical

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Daniel Eischen
On Thu, 29 Aug 2002, Michael Lucas wrote: > On Thu, Aug 29, 2002 at 03:03:19PM +0100, Jonathon McKitrick wrote: > > On Thu, Aug 29, 2002 at 09:45:49AM -0400, Daniel Eischen wrote: > > | You're going to have to keep the hashtable method of locking > > | FILEs. > > > > So is this project much more

Re: *nixopt, an idea

2002-08-29 Thread Richard Sharpe
On Thu, 29 Aug 2002, Koul-Henning Pamp wrote: > Fellow hackers, > > I'm creating a new unix optimizer tool, I've finished version 0.1 and need feedback. At the risk of feeding the feeble Troll :-) You would think that if this person has that much time on their hands, they would actually go fi

*nixopt, an idea

2002-08-29 Thread Koul-Henning Pamp
Fellow hackers, I need help enhancing my *nix optimizer tool, here's version 0.1 #!/bin/sh # The *nix optimizer # (C) 2002 Koul-Henning Pamp # Released under the superior FFL [ "`uname`" = "Linux" ] && echo "System not supported yet." [ "`uname`" = "FreeBSD" ] && ec

Re: FreeBSD's sh: "local" builtin

2002-08-29 Thread Christian Weisgerber
Eugene Ossintsev <[EMAIL PROTECTED]> wrote: > FreeBSD's sh has a builtin "local" for the functions. Is it a POSIX.2 > feature No. > or Bash influence? Korn Shell, more likely. > It supposes that the classical shell doesn't have "local" at all. Correct. -- Christian "naddy" Weisgerber

Re: why does this sendmail connection take so long?

2002-08-29 Thread Gregory Neil Shapiro
dan> [dan@xeon:~] $ echo 'hi there' | mail -v [EMAIL PROTECTED] dan> [EMAIL PROTECTED] Connecting to localhost.example.org. via dan> relay... dan> dan> 220 xeon.example.org ESMTP Sendmail 8.12.5/8.12.5; Thu, 29 Aug 2002 dan> 08:32:14 -0400 (EDT) That's either IDENT or DNS. 1. Does the same

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
On 29 Aug 2002 at 10:32, Gregory Neil Shapiro wrote: > dan> [dan@xeon:~] $ echo 'hi there' | mail -v [EMAIL PROTECTED] > dan> [EMAIL PROTECTED] Connecting to localhost.example.org. via > dan> relay... > > dan> > > dan> 220 xeon.example.org ESMTP Sendmail 8.12.5/8.12.5; Thu, 29 Aug 2002 > da

Re: why does this sendmail connection take so long?

2002-08-29 Thread Gregory Neil Shapiro
I see two related problems with your DNS setup: dan> dns_getcanonname: trying m20.example.org. (A) dan> ;; res_querydomain(m20.example.org, , 1, 1) dan> ;; res_query(m20.example.org., 1, 1) dan> ;; res_mkquery(0, m20.example.org., 1, 1) dan> ;; res_send() dan> ;; ->>HEADER<<- opcode: QUERY, statu

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
On 29 Aug 2002 at 10:57, Gregory Neil Shapiro wrote: > dan> xeon.example.org.org. 5S IN A 127.0.0.1 > ^ > > example.org's DNS zone has a mistake if it has an NS record pointing to a > bogus hostname like that (and what's worse the bogus hostname resolves). Ugh. The N

Re: FreeBSD's sh: "local" builtin

2002-08-29 Thread Chet Ramey
> Eugene Ossintsev <[EMAIL PROTECTED]> wrote: > > > FreeBSD's sh has a builtin "local" for the functions. Is it a POSIX.2 > > feature > > No. > > > or Bash influence? > > Korn Shell, more likely. It's bash. The Korn shell doesn't have it. We picked it up from one of the early POSIX.2 drafts

Re: why does this sendmail connection take so long?

2002-08-29 Thread Gregory Neil Shapiro
dan> sm_gethostbyname(localhost, 28)... localhost dan> alias: localhost.example.org dan> addr: IPv6:::1 dan> makeconnection (localhost.example.org. [IPv6:::1].25 (28)) dan> makeconnection: fd=6 dan> *** delay occurs here. dan> Connect failed (Operation timed out with localhost.example.org.); da

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
On 29 Aug 2002 at 11:27, Gregory Neil Shapiro wrote: > That explains it. You have a record pointing localhost.example.org at ::1 > but your sendmail daemon isn't listening for IPv6 connections and worse yet > your host appears to drop instead of reject connection attempts. My guess > is you hav

Re: why does this sendmail connection take so long?

2002-08-29 Thread Gregory Neil Shapiro
dan> I am using ipf with "pass out from any to any/pass out from any to dan> any". Unfortunately, I use ipfw/ip6fw so I don't know if my guesses are correct. That rule only appears to handle outbound connections (therefore allowing the sendmail client to open an outbound connection to the local

Re: why does this sendmail connection take so long?

2002-08-29 Thread Dan Langille
On 29 Aug 2002 at 11:50, Gregory Neil Shapiro wrote: > dan> I am using ipf with "pass out from any to any/pass out from any to > dan> any". > > Unfortunately, I use ipfw/ip6fw so I don't know if my guesses are correct. > > That rule only appears to handle outbound connections (therefore allowi

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Terry Lambert
Jonathon McKitrick wrote: > I've volunteered to do this port, with the expectation that it's within my > ability. I'm just a bit over my head, but that's how I'll learn, right? > > I've gotten the -current version to build and install, but I've found 2 > problems so far: gkrellm loads and cannot

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Terry Lambert
Daniel Eischen wrote: > In -current, we modified FILE (/usr/include/stdio.h) and added > (or changed) a field to use for holding a mutex that is used by > flockfile (lib/libc/stdio/_flock_stub.c). We broke the ABI > in order to do this, and it was very painful (just search for > "the whole stdio

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Terry Lambert
Kenneth Culver wrote: > > I've volunteered to do this port, with the expectation that it's within my > > ability. I'm just a bit over my head, but that's how I'll learn, right? [ ... ] > Just curious, but what does doing this port get you? In theory, it should mean that threaded code compiled fo

Re: More dynamic KVA_SPACE

2002-08-29 Thread Terry Lambert
Aaro J Koskinen wrote: > I've been thinking what kind of modifications would it need to decide > the KVA space size at the kernel boot time (maybe an argument to > btext), instead of compile time. In theory I can't see any obstacles. > > Basically the approach would be simply the following: [ ..

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Terry Lambert
Jonathon McKitrick wrote: > On Thu, Aug 29, 2002 at 11:22:38AM -0400, Kenneth Culver wrote: > | Oh, I didn't realize the userland threads implementations on -current and > | -stable differed that much. Good luck! > > 'Good luck!' > > I keep getting that. I wonder if that's an omen. It's a comp

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Daniel Eischen
On Thu, 29 Aug 2002, Terry Lambert wrote: > Kenneth Culver wrote: > > > I've volunteered to do this port, with the expectation that it's within my > > > ability. I'm just a bit over my head, but that's how I'll learn, right? > [ ... ] > > Just curious, but what does doing this port get you? > >

Re: why does this sendmail connection take so long?

2002-08-29 Thread Terry Lambert
Dan Langille wrote: > On 28 Aug 2002 at 16:43, Terry Lambert wrote: > > echo 'hi there' | mail -v [EMAIL PROTECTED] > > > > ? > > After issuing the above command, there is a 75s delay (see below for > delay location). All subsequent lines appear without delay. At the > end of this message, I've

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Jonathon McKitrick
On Thu, Aug 29, 2002 at 12:43:09PM -0700, Terry Lambert wrote: | It's a complex task. Not insurmountable, but you will find it | difficult. We all still want you to do the work for us while | we sit in our armchairs and comment, though... 8-). Maybe I'd be better off with the Junior Kernel Hack

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Terry Lambert
Daniel Eischen wrote: > -stable already has flockfile and friends in both libc and libc_r. > The only work in porting -current's libc_r to -stable in this > case is to keep libc_r's uthread_file.c which implements them. Whoops! That's what I get for assuming, based on the error message, instead

Re: More dynamic KVA_SPACE

2002-08-29 Thread Jake Burkholder
Apparently, On Thu, Aug 29, 2002 at 12:41:14PM -0700, Terry Lambert said words to the effect of; > Aaro J Koskinen wrote: > > I've been thinking what kind of modifications would it need to decide > > the KVA space size at the kernel boot time (maybe an argument to > > btext), instead of c

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Terry Lambert
Jonathon McKitrick wrote: > On Thu, Aug 29, 2002 at 12:43:09PM -0700, Terry Lambert wrote: > | It's a complex task. Not insurmountable, but you will find it > | difficult. We all still want you to do the work for us while > | we sit in our armchairs and comment, though... 8-). > > Maybe I'd be

Re: More dynamic KVA_SPACE

2002-08-29 Thread Terry Lambert
Jake Burkholder wrote: > > If you need a larger amount of UVA space, you might want to consider > > buying an IA64 machine, instead, since the bigger your iron, the > > bigger your KVA space requirements will be. > > What, no UltraSPARC? :) :) :) Unfortunately, my SPARC machine is not an UltraS

Re: More dynamic KVA_SPACE

2002-08-29 Thread Wilko Bulte
On Thu, Aug 29, 2002 at 01:48:11PM -0700, Terry Lambert wrote: > Jake Burkholder wrote: > > > If you need a larger amount of UVA space, you might want to consider > > > buying an IA64 machine, instead, since the bigger your iron, the > > > bigger your KVA space requirements will be. > > > > What,

Re: More dynamic KVA_SPACE

2002-08-29 Thread Aaro J Koskinen
Hello Terry, On Thu, 29 Aug 2002, Terry Lambert wrote: > Aaro J Koskinen wrote: > > I've been thinking what kind of modifications would it need to decide > > the KVA space size at the kernel boot time (maybe an argument to > > btext), instead of compile time. In theory I can't see any obstacles.

Re: Porting libc_r from -current to -stable

2002-08-29 Thread Daniel Eischen
On Thu, 29 Aug 2002, Terry Lambert wrote: > Daniel Eischen wrote: > > -stable already has flockfile and friends in both libc and libc_r. > > The only work in porting -current's libc_r to -stable in this > > case is to keep libc_r's uthread_file.c which implements them. > > Whoops! That's what I

Re: More dynamic KVA_SPACE

2002-08-29 Thread Terry Lambert
Wilko Bulte wrote: > > I knew not to recommend the Alpha because it is limited to 2G > > of physical memory. > > ? > > FreeBSD is limited to using 2G of whatever you have in the Alpha. > Which is a deficiency that has been debated a number of times, > IIRC it needs bus space work etc. See the ar

Re: FreeBSD's sh: "local" builtin

2002-08-29 Thread Christian Weisgerber
Chet Ramey: > > Korn Shell, more likely. > It's bash. The Korn shell doesn't have it. ksh88 has a pre-defined alias local=typeset. -- Christian "naddy" Weisgerber [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in t

Re: More dynamic KVA_SPACE

2002-08-29 Thread Terry Lambert
Aaro J Koskinen wrote: > > > Am I completely off the track? What are the main reasons behind the > > > current KVM layout? > > > > Kernel code is not position independent. > > Yes, I understand this. It seems I failed to explain what I meant. :-( > > The reason for moving the kernel text, data a

Re: Ultra320 drivers?

2002-08-29 Thread Lars Eggert
Peter Wemm wrote: > Jonathan Lemon wrote: > >>I have an IBM box that has a dual LSI 53c1030 controller on the >>motherboard. Our SYM driver doesn't appear to have support for >>this device; under Linux it is supported by a Fusion/MPT driver >>from LSI. >> >>Any chance of getting a driver for thi

Re: *nixopt, an idea

2002-08-29 Thread soralx
> > I'm creating a new unix optimizer tool, I've finished version 0.1 and need >feedback. u forgot the option '-r' :) 29.08.2002; 19:51:37 [SorAlx] http://cydem.zp.ua/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Ultra320 drivers?

2002-08-29 Thread Peter Wemm
Lars Eggert wrote: > This is a cryptographically signed message in MIME format. > Peter Wemm wrote: > > Jonathan Lemon wrote: > > > >>I have an IBM box that has a dual LSI 53c1030 controller on the > >>motherboard. Our SYM driver doesn't appear to have support for > >>this device; under Linux i

Re: Ultra320 drivers?

2002-08-29 Thread Lars Eggert
Peter Wemm wrote: > Lars Eggert wrote: >>We just got a bunch of Dell machines that have this controller as well. >>Any news about support in sym? > > > No, you want the 'mpt' driver that Matt Jacob recently committed. The 1030 > has nothing in common with sym. I just saw the message on cvs-al

Re: SMP P4 Xeons out there?

2002-08-29 Thread Lars Eggert
Lars Eggert wrote: > Doug White wrote: >> >> Anyone other there with multiprocessor P4 Xeon systems with >> Hyperthreading enabled that are seeing 4 CPUs show up on boot? > > Not yet, but we're expecting some Dell Precision 530s later this week > - I'll let you know. Just got them, and no,

Re: Porting libc_r from -current to -stable

2002-08-29 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Jonathon McKitrick <[EMAIL PROTECTED]> writes: : On Thu, Aug 29, 2002 at 11:22:38AM -0400, Kenneth Culver wrote: : | Oh, I didn't realize the userland threads implementations on -current and : | -stable differed that much. Good luck! : : 'Good luck!' :