Re: Softupdates not syncing

2001-06-08 Thread Doug Barton
Chris Coleman wrote: > > On one of our servers, deleted space is not being freed and causing is to > run out of disk space. To test this, I copied a 200 meg file to the /usr > partition and then deleted it. I checked df before copying, after copying, > and after deleting it. After deleting it,

Re: cloning network interfaces

2001-06-08 Thread Brooks Davis
Following Brian's suggestion, I've modified gif to create a /dev/if_gif device with is controlled by the IOCIFMANAGE ioctl which allows creation and deletion of specific devices and creation of wildcard devices. I've hacked ifconfig to support this in a general manner. If you know which one you

Re: newbussifying drivers

2001-06-08 Thread Julian Elischer
I don;t know why people always forget it, but also look at the sample driver in -current. /usr/share/examples/drivers/make_device_driver.sh (the 4.x version is way out of date) On Fri, 8 Jun 2001, Sergey Babkin wrote: > j mckitrick wrote: > > > > Okay, there is something i'm not understandin

Re: sysKonnect dual gig adapter

2001-06-08 Thread Bill Paul
> Looking at the description of the sysKonnect dual adapter, its not clear if > this is a real 2 port nic or that the second port is only a failover port. I > have 2 questions for anyone who has one: > > 1) Can this be used as a 2 port gigabit NIC? Yes. You will have two interfaces, sk0 and sk

Re: ELF p_offset & p_vaddr

2001-06-08 Thread John Polstra
In article <[EMAIL PROTECTED]>, milunovic <[EMAIL PROTECTED]> wrote: > > I'm little confused.I'm reading ELF specification and I found that > p_offset and p_vaddr should be congrunet to module PAGE_SIZE. > So is this correct ? If it isn't can anybody tell me what is correct. It is correct. It

Re: newbussifying drivers

2001-06-08 Thread Sergey Babkin
j mckitrick wrote: > > Okay, there is something i'm not understanding here. In the ed driver, > there are many possible cards, which each have different i/o ports, correct? > The driver has a lot of probe routines, and it looks like they are just > using different macros with hard-coded (#define

Re: free() and const warnings

2001-06-08 Thread Matt Dillon
Oh my, and just posting these I found a couple of bugs! :char * :safe_replace(char **pptr, const char *s) :{ :/* : * Same data (also occurs if s == *ptr), nothing to do : */ :if (*pptr) { : if (s && strcmp(s, *pptr) == 0) : return(*pptr); : free(*pptr);

Re: free() and const warnings

2001-06-08 Thread Matt Dillon
Here is the whole set of supporting routines. -Matt /* * STRDUP.C * * $Backplane: backplane/src/libsupport/strdup.c,v 1.13 2001/04/03 00:03:18 dillon Exp $ */ #include "defs.h" Export char *safe_strdup(const char *s); Export char *safe_strdup_s

Re: free() and const warnings

2001-06-08 Thread Matt Dillon
:OK, here's a scenario: : :struct validation_fun { : const char *name; : valfun *fun; : int dyn; :}; : :This is a structure for a set of validation functions, referenced by :name from another type of object. There are some predefined functions, :present

Re: New error - lost data?

2001-06-08 Thread Munish Chopra
On Fri, Jun 08, 2001 at 06:47:01PM +0300, Giorgos Keramidas wrote: > On Fri, 8 Jun 2001, Deepak Jain wrote: > > > Is this a hardware issue or an application problem? The kernel is 4.1 > > RELEASE. The RAM is ECC. > > I would start by removing a few RAM chips and seeing if this happens > when a p

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Seth Kingsley
On Fri, Jun 08, 2001 at 12:17:41PM -0500, Kevin Day wrote: > I looked at this.. I see how I can dlopen my own executable, and dlsym() > will let me get addresses from symbol names, but how do I do the reverse? I > have an address and need to get the symbol name from it, not vice versa. dladdr(3)

Re: free() and const warnings

2001-06-08 Thread Thomas David Rivers
> > > Since some strings are non-constant (the are allocated) - I believe > > the `const' qualifier in the structure declaration is incorrect. > > 'const' just means "I will not be modifying this"; it's a way for a > function prototype to constrain the function's implementation. > Yes - it

Re: sysKonnect dual gig adapter

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 03:55:55PM -0400, [EMAIL PROTECTED] wrote: > In a message dated 06/08/2001 1:28:22 PM Eastern Daylight Time, > [EMAIL PROTECTED] writes: > > > > 1) Can this be used as a 2 port gigabit NIC? > > > 2) Does this NIC have hardware failover (that is, when power is cut the >

Re: sysKonnect dual gig adapter

2001-06-08 Thread Bsdguru
In a message dated 06/08/2001 1:28:22 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: > > 1) Can this be used as a 2 port gigabit NIC? > > 2) Does this NIC have hardware failover (that is, when power is cut the 2 > > ports will be physically tied together. I dont know of any PC plug in

Re: read(2) and ETIMEDOUT

2001-06-08 Thread Graham Barr
On Fri, Jun 08, 2001 at 09:39:15PM +0200, Bernd Walter wrote: > On Thu, Jun 07, 2001 at 03:20:58PM -0700, Matt Dillon wrote: > > > > : > > :On Thu, Jun 07, 2001 at 10:33:50AM -0700, Matt Dillon wrote: > > :> > > :> : > > :> :Thanks, I will try setting errno, but I don't think it is signals. > >

Re: read(2) and ETIMEDOUT

2001-06-08 Thread Bernd Walter
On Thu, Jun 07, 2001 at 03:20:58PM -0700, Matt Dillon wrote: > > : > :On Thu, Jun 07, 2001 at 10:33:50AM -0700, Matt Dillon wrote: > :> > :> : > :> :Thanks, I will try setting errno, but I don't think it is signals. > :> :I have been running truss on the process. The relevant part is > :> : > :>

Re: New error - lost data?

2001-06-08 Thread Giorgos Keramidas
On Fri, 8 Jun 2001, Deepak Jain wrote: > I've never seen this error. Its been occuring randomly on this > machine, sometimes as often as every few minutes, sometimes days > apart. > > Others have seen this error (based on a Google search) but nothing recent > and nothing that conclusive. This is

RE: New error - lost data?

2001-06-08 Thread Deepak Jain
Yes, its only happening on this one chassis so far. We'll try replacing the memory and see what happens. Thanks! Deepak Jain AiNET -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Assar Westerlund Sent: Friday, June 08, 2001 9:07 AM To: [EMAIL PROTECTED

ELF p_offset & p_vaddr

2001-06-08 Thread milunovic
-BEGIN PGP SIGNED MESSAGE- I'm little confused.I'm reading ELF specification and I found that p_offset and p_vaddr should be congrunet to module PAGE_SIZE. So is this correct ? If it isn't can anybody tell me what is correct. #define PAGE_SIZE 4096 p_offset % PAGE_SIZE == p_vaddr % PAGE_

Re: free() and const warnings

2001-06-08 Thread Mike Smith
> Since some strings are non-constant (the are allocated) - I believe > the `const' qualifier in the structure declaration is incorrect. 'const' just means "I will not be modifying this"; it's a way for a function prototype to constrain the function's implementation. -- ... every activity me

Re: Wide character support - wchar.h?

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 07:51:08PM +0200, Stefan Hoffmeister wrote: > > What are the status of / plans for support of select wide character > routines, such as the ones declared in wchar.h? > > Particularly, I am looking for wcsoll, towupper, and towlower - IOW, the > whole barrage of wide chara

Wide character support - wchar.h?

2001-06-08 Thread Stefan Hoffmeister
What are the status of / plans for support of select wide character routines, such as the ones declared in wchar.h? Particularly, I am looking for wcsoll, towupper, and towlower - IOW, the whole barrage of wide character transformation and collation :-) I haven't found anything conclusive in th

Re: sysKonnect dual gig adapter

2001-06-08 Thread Brooks Davis
On Fri, Jun 08, 2001 at 01:18:44PM -0400, [EMAIL PROTECTED] wrote: > Looking at the description of the sysKonnect dual adapter, its not clear if > this is a real 2 port nic or that the second port is only a failover port. I > have 2 questions for anyone who has one: > > 1) Can this be used as a

AW: sysKonnect dual gig adapter

2001-06-08 Thread Heimes, Rene
i can only answer question 1) - yes, it can be used as a dual port gigabit nic i can hardly imagine the syskonnect offers failover... hth cu rené -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 8. Juni 2001 18:19 An: [EMAIL PROTECTED] Betre

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Alfred Perlstein
* Kevin Day <[EMAIL PROTECTED]> [010608 13:21] wrote: > > > > In the last episode (Jun 08), Kevin Day said: > > > Is there a simple way that I can lookup a symbol name(by address) > > > during runtime? > > > > > > I know I can exec nm, look up for the address I need, and get local > > > symbols,

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Kevin Day
> > In the last episode (Jun 08), Kevin Day said: > > Is there a simple way that I can lookup a symbol name(by address) > > during runtime? > > > > I know I can exec nm, look up for the address I need, and get local > > symbols, but it would be really nice if I could get addresses of > > functio

sysKonnect dual gig adapter

2001-06-08 Thread Bsdguru
Looking at the description of the sysKonnect dual adapter, its not clear if this is a real 2 port nic or that the second port is only a failover port. I have 2 questions for anyone who has one: 1) Can this be used as a 2 port gigabit NIC? 2) Does this NIC have hardware failover (that is, when p

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Kevin Day
> > Kevin Day wrote: > > > > Is there a simple way that I can lookup a symbol name(by address) during > > runtime? > > man dlopen. > I looked at this.. I see how I can dlopen my own executable, and dlsym() will let me get addresses from symbol names, but how do I do the reverse? I have an add

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Dan Nelson
In the last episode (Jun 08), Kevin Day said: > Is there a simple way that I can lookup a symbol name(by address) > during runtime? > > I know I can exec nm, look up for the address I need, and get local > symbols, but it would be really nice if I could get addresses of > functions in dynamic lib

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Farooq Mela
Kevin Day wrote: > > Is there a simple way that I can lookup a symbol name(by address) during > runtime? man dlopen. -- farooq <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 12:09:39PM -0500, Kevin Day wrote: > > > Is there a simple way that I can lookup a symbol name(by address) during > runtime? > > I know I can exec nm, look up for the address I need, and get local > symbols, but it would be really nice if I could get addresses of functi

Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Kevin Day
Is there a simple way that I can lookup a symbol name(by address) during runtime? I know I can exec nm, look up for the address I need, and get local symbols, but it would be really nice if I could get addresses of functions in dynamic libraries as well. I know I could use ldd to get offsets o

Re: How to disable software TCP checksumming?

2001-06-08 Thread Jonathan Lemon
In article [EMAIL PROTECTED]> you write: >This thread is baffling. The bottom line is that you cant trust data coming >into your machine, and you have to checksum it. The link level check only >verifies that what was sent by the last forwarding point is the same as what >you got, but in NO WAY

Re: How to disable software TCP checksumming?

2001-06-08 Thread Bsdguru
This thread is baffling. The bottom line is that you cant trust data coming into your machine, and you have to checksum it. The link level check only verifies that what was sent by the last forwarding point is the same as what you got, but in NO WAY implies that all of the data is valid. A li

Re: problem with systm.h trying to call resettodr()

2001-06-08 Thread Alexey V. Neyman
On Fri, 8 Jun 2001, Peter Pentchev wrote: >On Fri, Jun 08, 2001 at 01:49:12PM +0100, Rasputin wrote: >You can only use kernel-space functions in kernel code, that is, writing >a kernel module, or writing a piece of code that is to be compiled along >with the rest in src/sys. By the way, are ther

Re: How to disable software TCP checksumming?

2001-06-08 Thread Julian Elischer
Assar Westerlund wrote: > > Ruslan Ermilov <[EMAIL PROTECTED]> writes: > > On Fri, Jun 08, 2001 at 02:24:23PM +0200, Assar Westerlund wrote: > > > Terry Lambert <[EMAIL PROTECTED]> writes: > > > > This all came from IP headers being 14 bytes long, instead > > > > of 16. > > > > > > Hu? An IPv4 h

Re: free() and const warnings

2001-06-08 Thread T. William Wells
> E.. this was the whole point of this thread. I *can't* cast > a (const char *) to a (char *) when using the -Wcast-qual gcc flag - Not all -W options are equally useful and some are actively harmful. This is one of them. There are several situations where it is necessary to remove a quali

Re: free() and const warnings

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 03:09:53PM +0200, Assar Westerlund wrote: > Peter Pentchev <[EMAIL PROTECTED]> writes: > > My explanation was a reply to a suggestion to remove the 'const' in > > the structure definition. > > My fault. The code that I should have shown was without the 'const'. > With gcc

Re: free() and const warnings

2001-06-08 Thread Assar Westerlund
Peter Pentchev <[EMAIL PROTECTED]> writes: > My explanation was a reply to a suggestion to remove the 'const' in > the structure definition. My fault. The code that I should have shown was without the 'const'. With gcc 2.95.3 and 'gcc -O -g -Werror -Wall -W -Wcast-qual -c foo.c' I don't get any

Re: New error - lost data?

2001-06-08 Thread Assar Westerlund
"Deepak Jain" <[EMAIL PROTECTED]> writes: > Others have seen this error (based on a Google search) but nothing recent > and nothing that conclusive. This is a very standard config that has been > stable for quite a while. The panic: malloc: lost data implies to me that > something is misbehaving w

Re: free() and const warnings

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 03:02:56PM +0200, Assar Westerlund wrote: > Peter Pentchev <[EMAIL PROTECTED]> writes: > > GCC complains when I try to initialize the structure with something like: > > > > struct validation_fun val_init[] = { > > {"init",valfun_init,0} > > }; > > >

Re: free() and const warnings

2001-06-08 Thread Assar Westerlund
Peter Pentchev <[EMAIL PROTECTED]> writes: > GCC complains when I try to initialize the structure with something like: > > struct validation_fun val_init[] = { > {"init",valfun_init,0} > }; > > This can be avoided by: > > struct validation_fun val_init[] = { > {(char *)

Re: free() and const warnings

2001-06-08 Thread Thomas David Rivers
> > On Fri, Jun 08, 2001 at 08:51:54AM -0400, Thomas David Rivers wrote: > > > > > > GCC complains when I try to initialize the structure with something like: > > > > > > struct validation_fun val_init[] = { > > > {"init",valfun_init,0} > > > }; > > > > > > This can be avoide

Re: free() and const warnings

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 08:51:54AM -0400, Thomas David Rivers wrote: > > > > GCC complains when I try to initialize the structure with something like: > > > > struct validation_fun val_init[] = { > > {"init",valfun_init,0} > > }; > > > > This can be avoided by: > > > > st

Re: problem with systm.h trying to call resettodr()

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 01:49:12PM +0100, Rasputin wrote: > * Peter Pentchev <[EMAIL PROTECTED]> [010608 13:35]: > > On Fri, Jun 08, 2001 at 12:47:31PM +0100, Rasputin wrote: > > > I'm playing with resettodr(9), to set the BIOS clock from the system time.. > > > As others pointed out, resettodr(9

Re: free() and const warnings

2001-06-08 Thread Thomas David Rivers
> > GCC complains when I try to initialize the structure with something like: > > struct validation_fun val_init[] = { > {"init",valfun_init,0} > }; > > This can be avoided by: > > struct validation_fun val_init[] = { > {(char *) (uintptr_t) "init", valfun_init,0}

Re: problem with systm.h trying to call resettodr()

2001-06-08 Thread Rasputin
* Peter Pentchev <[EMAIL PROTECTED]> [010608 13:35]: > On Fri, Jun 08, 2001 at 12:47:31PM +0100, Rasputin wrote: > > I'm playing with resettodr(9), to set the BIOS clock from the system time.. > As others pointed out, resettodr(9) is a kernel-space function. > Section 9 of the manual is for those

Re: free() and const warnings

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 06:55:50AM -0400, Thomas David Rivers wrote: > Peter Pentchev <[EMAIL PROTECTED]> wrote: > > > > On Thu, Jun 07, 2001 at 10:20:51AM -0700, John Baldwin wrote: > > > > > > On 07-Jun-01 Peter Pentchev wrote: > > > > On Thu, Jun 07, 2001 at 07:07:22PM +0300, Peter Pentchev w

Re: How to disable software TCP checksumming?

2001-06-08 Thread Assar Westerlund
Ruslan Ermilov <[EMAIL PROTECTED]> writes: > On Fri, Jun 08, 2001 at 02:24:23PM +0200, Assar Westerlund wrote: > > Terry Lambert <[EMAIL PROTECTED]> writes: > > > This all came from IP headers being 14 bytes long, instead > > > of 16. > > > > Hu? An IPv4 header (not including options) is 20 byte

Re: problem with systm.h trying to call resettodr()

2001-06-08 Thread Ceri
On Fri, Jun 08, 2001 at 12:47:31PM +0100, Rasputin said: > I'm playing with resettodr(9), to set the BIOS clock from the system time.. > > I get warning about syntax errors in systm.h: > > [rasputin@dogma rasputin]$ gcc b0rken.c > In file included from b0rken.c:3: > /usr/include/sys/systm.h:333

Re: How to disable software TCP checksumming?

2001-06-08 Thread Ruslan Ermilov
On Fri, Jun 08, 2001 at 02:24:23PM +0200, Assar Westerlund wrote: > Terry Lambert <[EMAIL PROTECTED]> writes: > > This all came from IP headers being 14 bytes long, instead > > of 16. > > Hu? An IPv4 header (not including options) is 20 bytes long. > Terry meant the length of an IPv4 header up

Re: problem with systm.h trying to call resettodr()

2001-06-08 Thread Peter Pentchev
On Fri, Jun 08, 2001 at 12:47:31PM +0100, Rasputin wrote: > I'm playing with resettodr(9), to set the BIOS clock from the system time.. > > When I try to compile the following snippet, > > [rasputin@dogma rasputin]$ cat b0rken.c > #include > #include > #include > > int main(void){ > resetto

Re: How to disable software TCP checksumming?

2001-06-08 Thread Assar Westerlund
Terry Lambert <[EMAIL PROTECTED]> writes: > This all came from IP headers being 14 bytes long, instead > of 16. Hu? An IPv4 header (not including options) is 20 bytes long. /assar To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: 'make clean' vs automake vs /bin/sh, which to fix?

2001-06-08 Thread Assar Westerlund
Garance A Drosihn <[EMAIL PROTECTED]> writes: > So, we could fix this by: > 1) changing /bin/sh This you have already done and I think it's ok. > 2) changing make not to call /bin/sh with -e > 3) changing 'automake' to include a "true;" statement > in that 'for' loop (or s

Re: problem with systm.h trying to call resettodr()

2001-06-08 Thread Louis A. Mamakos
I didn't think resettodr(9) was a system call exposed to user program, but instead a function available to be called from kernel code. Thus, the section 9 manual page. louie To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

problem with systm.h trying to call resettodr()

2001-06-08 Thread Rasputin
I'm playing with resettodr(9), to set the BIOS clock from the system time.. When I try to compile the following snippet, [rasputin@dogma rasputin]$ cat b0rken.c #include #include #include int main(void){ resettodr(); return(0); } I get warning about syntax errors in systm.h: [rasputin@dog

Re: free() and const warnings

2001-06-08 Thread Thomas David Rivers
Peter Pentchev <[EMAIL PROTECTED]> wrote: > > On Thu, Jun 07, 2001 at 10:20:51AM -0700, John Baldwin wrote: > > > > On 07-Jun-01 Peter Pentchev wrote: > > > On Thu, Jun 07, 2001 at 07:07:22PM +0300, Peter Pentchev wrote: > > >> Hi, > > >> > > >> Is free((void *) (size_t) ptr) the only way to fr

Re: UFS large directory performance

2001-06-08 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, Terry Lambert writes: > >Use a chain allocator. I would suggest using the zone >allocator, but it has some fundamental problems that I >don't think are really resolvable without a rewrite. Heh, maybe, but I'm not sure I want to write a new allocator for this :-) B

Re: Why does fsck try to fsck a CDROM?

2001-06-08 Thread Terry Lambert
Dave Hayes wrote: > > David O'Brien -Hackers <[EMAIL PROTECTED]> writes: > > You mentioned though that your CDROM is /. How about posting the real > > /etc/fstab from your root partition for us to have a look at? > > There is none. No default fstab exists. There is no Dana, only Zuul... I thi

Re: read(2) and ETIMEDOUT

2001-06-08 Thread Terry Lambert
Ian Dowse wrote: > > In message <[EMAIL PROTECTED]>, Graham Barr writes: > > >Also why does this happen only every few hours ? There is a lot of > >data going through these connections maybe the timer for SO_RCVTIMEO > >is not being reset. > > > >But then we have another server, with a similar n

Re: [Patch?] signal(SIGCHLD, SIG_IGN) is against SUSv2

2001-06-08 Thread Terry Lambert
Cejka Rudolf wrote: > > There is following paragraph in SUSv2: > > If a process sets the action for the SIGCHLD signal to SIG_IGN, > the behaviour is unspecified, except as specified below. If the > action for the SIGCHLD signal is set to SIG_IGN, child processes > of the calling process

Re: free() and const warnings

2001-06-08 Thread Peter Pentchev
On Thu, Jun 07, 2001 at 10:20:51AM -0700, John Baldwin wrote: > > On 07-Jun-01 Peter Pentchev wrote: > > On Thu, Jun 07, 2001 at 07:07:22PM +0300, Peter Pentchev wrote: > >> Hi, > >> > >> Is free((void *) (size_t) ptr) the only way to free a const whatever *ptr > >> with WARNS=2? (or more speci

Re: How to disable software TCP checksumming?

2001-06-08 Thread Terry Lambert
Bill Fenner wrote: > > >The TCP checksum protects more than just the contents of the packet > >on the wire; it's also a (somewhat) weak check on the contents > >of your packet sitting in memory, and as it's going over the bus > >in your computer between memory and peripherals and for other > >end

New error - lost data?

2001-06-08 Thread Deepak Jain
I've never seen this error. Its been occuring randomly on this machine, sometimes as often as every few minutes, sometimes days apart. Others have seen this error (based on a Google search) but nothing recent and nothing that conclusive. This is a very standard config that has been stable for qu

Re: UFS large directory performance

2001-06-08 Thread Terry Lambert
Ian Dowse wrote: > Nice idea, but I'm not sure I see the benefit of partially reclaiming > second-level arrays. Because it is a hash array, there isn't really > the concept of a working set; a directory that is `in use' will > rarely see many create/rename/delete operations on a small fixed > set

Re: UFS large directory performance

2001-06-08 Thread Terry Lambert
Ian Dowse wrote: > >The only potential problem I see here is that you could > >end up seriously fragmenting the malloc pool you are > >using to allocate the slot arrays. And, of course, the > >two issues you brought up in regards to regularing memory > >use. > > Thanks for th