Re: kernel stack size?

2000-11-07 Thread Jacques Fourie
Hi Thanks for your reply. I have two other questions regarding this matter. Would it be possible to extend the kernel stack? The reason is that some of the crypto and hashing algorithms use relatively large contexts which for performance reasons are currently allocated on the stack. If this is

Re: close call in a device ?

2000-11-07 Thread Luigi Rizzo
> Hi, > > The reason I am doing this, is precisely because I need to virtualize accesses > from several processes to _one_ _predefined_ device. I have no control over that > device name from the client process point of view, so I can not have multiple > devices. I pretty much need to be able to

Re: TCPDUMP patch v1.1 and AppleTalk

2000-11-07 Thread Kris Kennaway
On Tue, Nov 07, 2000 at 01:56:21PM +0100, Konrad Heuer wrote: > After patching and installing, tcpdump can't be used anymore since it puts > very heavy load onto the network via xl0 and AppleTalk broadcast messages > (one message each 0.2 ms). Sorry, in the moment I don't know more details > ...

Re: umask(2) and -Wconversion

2000-11-07 Thread Giorgos Keramidas
On Wed, Nov 08, 2000 at 02:47:40PM +1000, [EMAIL PROTECTED] wrote: > > On Tue, 7 Nov 2000, Albert D. Cahalan wrote: >> >> The C language is crufty. In the absense of a prototype, "short" is >> promoted to "int". You wanted to be warned about that; you got it! > > short going to int would be a de

Re: umask(2) and -Wconversion

2000-11-07 Thread andrew
On Tue, 7 Nov 2000, Albert D. Cahalan wrote: > of a fixed point argument except when the same as the default > promotion. > The C language is crufty. In the absense of a prototype, "short" is > promoted to "int". You wanted to be warned about that; you got it! short going

Re: daemon()

2000-11-07 Thread Doug Barton
Max Khon wrote: > > hi, there! > > On Tue, 7 Nov 2000, Don Lewis wrote: > > > } > what is FD 4? > > } > > } I can't reproduce this? Does it always happen? > > > > It might be something that the shell forgets to close, so it will be > > dependent on which shell you use. > > exactly. this does n

Re: umask(2) and -Wconversion

2000-11-07 Thread Greg Black
"Albert D. Cahalan" writes: > The C language is crufty. In the absense of a prototype, "short" is > promoted to "int". You wanted to be warned about that; you got it! > > To avoid the warning, avoid passing anything but "int" and "double". > Maybe "long" is OK too, I forget. I'm not sure which

Re: close call in a device ?

2000-11-07 Thread Mike Smith
> The reason I am doing this, is precisely because I need to virtualize > accesses from several processes to _one_ _predefined_ device. I have no > control over that device name from the client process point of view, so I > can not have multiple devices. I pretty much need to be able to lie to

Re: close call in a device ?

2000-11-07 Thread bruno schwander
Hi, The reason I am doing this, is precisely because I need to virtualize accesses from several processes to _one_ _predefined_ device. I have no control over that device name from the client process point of view, so I can not have multiple devices. I pretty much need to be able to lie to the

Re: umask(2) and -Wconversion

2000-11-07 Thread Albert D. Cahalan
Peter Pentchev writes: > As you can see, I'm passing a short i as a first arg, a short f > as second, and a short b as third; and yet, gcc with BDECFLAGS > complains about ALL the arguments! Yes, no kidding. That's what you asked gcc to do. `-Wconversion' Warn if a prototype caus

Re: close call in a device ?

2000-11-07 Thread Luigi Rizzo
> when a process closes the device, I do not get a "close" call for each > process closing the device. I instead get a close only on the last > process closing the device. the reason for this is that you might have a process fork() after it has opened the device, and you do not want to get to the

close call in a device ?

2000-11-07 Thread bruno schwander
Hello everybody, I am writing a pseudo-device driver (as a kernel module) that needs to be opened in write mode by several processes. The problem I am having is that I do get all the "open" calls when a process opens the device, and I am able to process data written, etc. on a per-process basis;

Re: Digi Xem help!

2000-11-07 Thread Sergey Babkin
Nathan Boeger wrote: > > Sorry if this is the wrong list !! > > Anyway I have a Digi / Xem eisa adapter on 4.1-RELEASE. I have made the > kernel and it see's the card. I have also remade the /dev/ttyD* entries. > > Problem, when I try to access any of the ports I get : > > cu: open (/dev/ttyD0

Re: Documenting sysV IPC tunables.

2000-11-07 Thread Alfred Perlstein
* John Baldwin <[EMAIL PROTECTED]> [001107 15:33] wrote: > > On 07-Nov-00 Alfred Perlstein wrote: > > * Alfred Perlstein <[EMAIL PROTECTED]> [001107 14:58] wrote: > >> I have a patch here that I'd like to get into LINT for 4.2, > >> it _finally_ documents the sysV IPC tunables. > >> > >> I'll al

Re: Documenting sysV IPC tunables.

2000-11-07 Thread John Baldwin
On 07-Nov-00 Alfred Perlstein wrote: > * Alfred Perlstein <[EMAIL PROTECTED]> [001107 14:58] wrote: >> I have a patch here that I'd like to get into LINT for 4.2, >> it _finally_ documents the sysV IPC tunables. >> >> I'll also be applying this patch to NOTES for -current. > > Bah, someone beat

Re: Documenting sysV IPC tunables.

2000-11-07 Thread Alfred Perlstein
* Alfred Perlstein <[EMAIL PROTECTED]> [001107 14:58] wrote: > I have a patch here that I'd like to get into LINT for 4.2, > it _finally_ documents the sysV IPC tunables. > > I'll also be applying this patch to NOTES for -current. Bah, someone beat me for -current, but I like my patch better bec

Documenting sysV IPC tunables.

2000-11-07 Thread Alfred Perlstein
I have a patch here that I'd like to get into LINT for 4.2, it _finally_ documents the sysV IPC tunables. I'll also be applying this patch to NOTES for -current. Index: LINT === RCS file: /home/ncvs/src/sys/i386/conf/Attic/LINT,v re

problem with sysinstall and serial console

2000-11-07 Thread Sven Huster
hi everyone, i want to install serveral intel isp1100 servers with serial console attached. the problem is that is want install them automatically without any user interaction. but sysinstall asks me for the terminal type on serial console. everything else work real fine (pxe boot, package i

Re: Help writing a screen saver module

2000-11-07 Thread Dan Nelson
In the last episode (Nov 07), Dag-Erling Smorgrav said: > Graham Wheeler <[EMAIL PROTECTED]> writes: > > I am trying to write a screen saver module that, when it kicks in, > > will switch to the first console, and then, if a key is pressed, > > will switch back to the one that was previously activ

Re: kernel stack size?

2000-11-07 Thread Matt Dillon
:Hi : :Please excuse any silly questions, but I am stuck with :a problem that I can't find the answer for. : :I wrote a KLD module that performs encryption on :network packets in the kernel. Packets are intercepted :for encryption on a ethernet level (in ether_input() :and ether_output_frame() re

Re: StarOffice 5.2 port for FreeBSD.

2000-11-07 Thread Wes Peters
Maarten van Schie wrote: > > When I installed SO it didn't spitt out any complaints about the checksum. > > Did you install the Linux Emulator from /usr/ports/emulators/linux_base ? > You need it since the SO port uses the Linux version. Yes, and linux-netscape and wordperfect both install and

Re: hardware problem?

2000-11-07 Thread Wilko Bulte
On Tue, Nov 07, 2000 at 11:01:21AM +0100, Stefan Aeschbacher wrote: > cc: Internal compiler error: program ld got fatal signal 11 > > this error happens during each compilation but it does not > happen at the same location in the source code each run. > furthermore, some daemons tend to segfaul

Re: Mounting a md as a root filesystem.

2000-11-07 Thread Dag-Erling Smorgrav
Andrzej Bialecki <[EMAIL PROTECTED]> writes: > On 7 Nov 2000, Dag-Erling Smorgrav wrote: > > Josef Karthauser <[EMAIL PROTECTED]> writes: > > > # load -t md /filesystemfile > > Shouldn't that be 'load -t md_root'? > Actually, it's md_image or mfs_root (see /sys/dev/md/md.c:446). Both of > these ar

[PATCH] Please review and commit (Re: if_tap and devfs)

2000-11-07 Thread Maksim Yevmenkin
Hello Harti, > > > is there somebody working to make if_tap devfs-ready? Or I'm doing > > > something wrong? > > > > [SNIP] > > it seems to me that it did not get commited. i will look into it again > > today and re-send patch to the list. > > Great! It works. (Minus a spelling error: the parame

Re: Help writing a screen saver module

2000-11-07 Thread Dag-Erling Smorgrav
Graham Wheeler <[EMAIL PROTECTED]> writes: > I am trying to write a screen saver module that, when it kicks in, will > switch to the first console, and then, if a key is pressed, will switch > back to the one that was previously active. The idea is that the first > console has something useful ru

Re: umask(2) and -Wconversion

2000-11-07 Thread Peter Pentchev
On Tue, Nov 07, 2000 at 11:32:11AM -0500, Chris BeHanna wrote: > On Tue, 7 Nov 2000, Peter Pentchev wrote: > > > In my experience, the problem is not only with umask(2) - GCC *is* > > a bit stubborn about -Wconversion; I wonder if this is really a GCC bug :( > > > > I'm having the same problems

Re: umask(2) and -Wconversion

2000-11-07 Thread Chris BeHanna
On Tue, 7 Nov 2000, Peter Pentchev wrote: > In my experience, the problem is not only with umask(2) - GCC *is* > a bit stubborn about -Wconversion; I wonder if this is really a GCC bug :( > > I'm having the same problems with many other functions when passing > integer constants - even if I expl

Re: umask(2) and -Wconversion

2000-11-07 Thread Giorgos Keramidas
On Tue, Nov 07, 2000 at 11:30:05PM +1000, [EMAIL PROTECTED] wrote: > > On Tue, 7 Nov 2000, Giorgos Keramidas wrote: > > > discovered the following funny thing about -Wconversion and umask(2), > > I spent quite a while trying to silence that warning in one of my programs > the otherday but I dec

SIGALARM is loosing when time are shifted.

2000-11-07 Thread Lev Serebryakov
Hello, All! How are you? One my program use alarm() to interrupt some blocking system calls. I use alarm(1) (one second). Everything works Ok, except cases, when ntpdate shift time more than 1 second forward. If time is shifted when alarm are set already, but not generated yet, SIGALARM d

Re: Mounting a md as a root filesystem.

2000-11-07 Thread Andrzej Bialecki
On 7 Nov 2000, Dag-Erling Smorgrav wrote: > Josef Karthauser <[EMAIL PROTECTED]> writes: > > # load -t md /filesystemfile > > Shouldn't that be 'load -t md_root'? Actually, it's md_image or mfs_root (see /sys/dev/md/md.c:446). Both of these are mentioned in md(4). Andrzej Bialecki // <[EMAIL

Re: "iowait" CPU state

2000-11-07 Thread Dag-Erling Smorgrav
void <[EMAIL PROTECTED]> writes: > I've been using Solaris a lot lately, and I've noticed that in e.g. > top's output, it has a distinct CPU state called "iowait", which seems > to be a pretty good indicator of how I/O-bound a system is. Is there > any reason that FreeBSD doesn't have such a stat

Re: Mounting a md as a root filesystem.

2000-11-07 Thread Dag-Erling Smorgrav
Josef Karthauser <[EMAIL PROTECTED]> writes: > # load -t md /filesystemfile Shouldn't that be 'load -t md_root'? DES -- Dag-Erling Smorgrav - [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

RE: High-availability failover software available.

2000-11-07 Thread Andrew Sporner
Hi! > | a H/A Failover system that happens to work with BSD. I > would like to > | contribute > | this to the FreeBSD project or at a minimum make it > available to those who > | What it includes is: > | - Multi-path heartbeat based node failure detection. > > How do you determine that

Re: daemon()

2000-11-07 Thread Peter Pentchev
On Tue, Nov 07, 2000 at 08:24:19PM +0600, Max Khon wrote: > hi, there! > > On Tue, 7 Nov 2000 [EMAIL PROTECTED] wrote: > > > > what is FD 4? > > > > I can't reproduce this? Does it always happen? > > yes. I am running sample program under FreeBSD 4.2-BETA (31 Oct 2000) As was already mentione

Re: daemon()

2000-11-07 Thread Max Khon
hi, there! On Tue, 7 Nov 2000, Don Lewis wrote: > } > what is FD 4? > } > } I can't reproduce this? Does it always happen? > > It might be something that the shell forgets to close, so it will be > dependent on which shell you use. exactly. this does not happen if I run this program from tcsh

Mounting a md as a root filesystem.

2000-11-07 Thread Josef Karthauser
I'm having trouble mounting an MD as a root filesystem from 5.0. Can anyone tell me what I'm doing wrong please? /boot/loader: # load /kernel # load -t md /filesystemfile # boot PROBES,etc. Manual root filesystem specification: : Mount using filesystem etc... Yes, I do have MD_ROOT compi

Re: daemon()

2000-11-07 Thread Max Khon
hi, there! On Tue, 7 Nov 2000 [EMAIL PROTECTED] wrote: > > what is FD 4? > > I can't reproduce this? Does it always happen? yes. I am running sample program under FreeBSD 4.2-BETA (31 Oct 2000) /fjoe To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the b

Re: daemon()

2000-11-07 Thread Peter Pentchev
On Tue, Nov 07, 2000 at 11:41:19PM +1000, [EMAIL PROTECTED] wrote: > > > On Tue, 7 Nov 2000, Max Khon wrote: > > > what is FD 4? > > I can't reproduce this? Does it always happen? Me neither.. RELENG_4 here, but daemon() seems to be exactly the same across (supported) releases. All fd's I

Re: daemon()

2000-11-07 Thread Don Lewis
On Nov 7, 11:41pm, [EMAIL PROTECTED] wrote: } Subject: Re: daemon() } } } On Tue, 7 Nov 2000, Max Khon wrote: } } > what is FD 4? } } I can't reproduce this? Does it always happen? It might be something that the shell forgets to close, so it will be dependent on which shell you use. To Unsu

Re: daemon()

2000-11-07 Thread andrew
On Tue, 7 Nov 2000, Max Khon wrote: > what is FD 4? I can't reproduce this? Does it always happen? Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: umask(2) and -Wconversion

2000-11-07 Thread andrew
On Tue, 7 Nov 2000, Giorgos Keramidas wrote: > discovered the following funny thing about -Wconversion and umask(2), I spent quite a while trying to silence that warning in one of my programs the otherday but I decided it was probably harmless and left it. > and vice versa, and conve

kernel stack size?

2000-11-07 Thread Jacques Fourie
Hi Please excuse any silly questions, but I am stuck with a problem that I can't find the answer for. I wrote a KLD module that performs encryption on network packets in the kernel. Packets are intercepted for encryption on a ethernet level (in ether_input() and ether_output_frame() respectivel

TCPDUMP patch v1.1 and AppleTalk

2000-11-07 Thread Konrad Heuer
This morning I applied the tcpdump v1.1 patch for 4.x-R on a 4.1-R system with following configuration: ti0 Gigabit-LinkIPv4 interface xl0 Fast Ethernet AppleTalk interface options NETATALK is included in the kernel config since the host uses the netatalk package exports the home

Re: if_tap and devfs

2000-11-07 Thread Harti Brandt
On Mon, 6 Nov 2000, Maksim Yevmenkin wrote: Hi Maksim, > > is there somebody working to make if_tap devfs-ready? Or I'm doing > > something wrong? > > [SNIP] > it seems to me that it did not get commited. i will look into it again > today and re-send patch to the list. Great! It works. (Minus

daemon()

2000-11-07 Thread Max Khon
hi, there! --- cut here --- #include #include main() { if (daemon(1, 1) < 0) { perror("daemon"); } for (;;) sleep(1); } --- cut here --- lark:~$ps ax | grep foo3 26102 ?? Ss 0:00.00 ./foo3 26104 p8 S+ 0:00.01 grep foo3 lark

diskless/routing

2000-11-07 Thread Danny Braniss
hi, Some more WLP (wee-little-problem :-) 1- not setting a gateway in dhcp panics the kernel. I've been down this road road before, but can't remember the fix - yet :-(. 2- somewhere - and it's not bootp.c - there must be a htonl ntohl problem. example: client-ip: 132

Re: umask(2) and -Wconversion

2000-11-07 Thread Giorgos Keramidas
On Tue, Nov 07, 2000 at 12:17:34PM +0200, Peter Pentchev wrote: > In my experience, the problem is not only with umask(2) - GCC *is* > a bit stubborn about -Wconversion; I wonder if this is really a GCC bug :( > > I'm having the same problems with many other functions when passing > integer const

Re: umask(2) and -Wconversion

2000-11-07 Thread Peter Pentchev
In my experience, the problem is not only with umask(2) - GCC *is* a bit stubborn about -Wconversion; I wonder if this is really a GCC bug :( I'm having the same problems with many other functions when passing integer constants - even if I explicitly cast them to a long or unsigned long or plain

umask(2) and -Wconversion

2000-11-07 Thread Giorgos Keramidas
While trying to compile libskey with various warnings enabled, I discovered the following funny thing about -Wconversion and umask(2), which caused libskey to fail to compile, because it compiles by default with -Werror which makes every warning fatal. I found that the warning is caused when a pr

hardware problem?

2000-11-07 Thread Stefan Aeschbacher
Hi I have a machine which behaves very weird. It runs 4.0-stable built in June. Recently i made a cvsupdate followed by a buildworld. Both worked. Due to lack of time (and access to the machine for installing in single user mode), I did not install anything. Today I tried to compile something and

Re: New mergemaster behavior - comparing CVS $Id too

2000-11-07 Thread Peter Pentchev
On Tue, Nov 07, 2000 at 12:15:14AM -0800, Doug Barton wrote: > Peter Pentchev wrote: > > > > Is there a way to make mergemaster revert to its old behavior - only > > comparing $FreeBSD tags on files which have those? > > Of course there is a way, the question is how likely it is to happen

Re: New mergemaster behavior - comparing CVS $Id too

2000-11-07 Thread Doug Barton
Peter Pentchev wrote: > > Is there a way to make mergemaster revert to its old behavior - only > comparing $FreeBSD tags on files which have those? Of course there is a way, the question is how likely it is to happen. :) You've stated the solution, just take the local tags out for now.