Re: New kernel drivers

1999-08-09 Thread Julian Elischer
On Tue, 10 Aug 1999, eT wrote: > Joe Groff wrote: > > > I have a device 'foo' which I'm working on. What files do I need to edit so > > that config recognizes foo as a controller/pseudo-device/device/disk/whatever? > > Take a look at /usr/src/sys/i386/files.i386. You device driver files > ne

Re: gethostbyaddr() and threads.

1999-08-09 Thread Wes Peters
Joe Groff wrote: > > On Mon, 9 Aug 1999, Wes Peters wrote: > > > > struct rpcent *getrpcent_r(struct rpcent *result, > > char *buffer, int buflen); > > > > Any questions? > > Looks pretty close to the POSIX/GNU way. Good luck with it. ;^) Straight from the Solaris man pages. Shou

Re: New kernel drivers

1999-08-09 Thread eT
Joe Groff wrote: > I have a device 'foo' which I'm working on. What files do I need to edit so > that config recognizes foo as a controller/pseudo-device/device/disk/whatever? Take a look at /usr/src/sys/i386/files.i386. You device driver files need to have an entry in this file. Also make sur

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
On Mon, 9 Aug 1999, Wes Peters wrote: > Here are the prototypes. Hosts: > > #include > #include > #include > #include > #include > > struct hostent *gethostbyname_r(const char *name, > struct hostent *result, char *buffer, int buflen, > i

Re: gethostbyaddr() and threads.

1999-08-09 Thread Wes Peters
Joe Groff wrote: > > ---Dan Moschuk said: > > > > | Well, I guess we might as well change the API, since everyone else does. > > Unless > > | someone comes up with a bettter idea, of course :) > > | > > | -Joe > > > > The API should not change. There is already enough descrepency between > > UNI

Re: gethostbyaddr() and threads.

1999-08-09 Thread Wes Peters
Joe Groff wrote: > > ---Louis A. Mamakos said: > >> You could malloc() a struct hostent for each call to > >> gethostby*(), each time registering the hostent in some list along with the > >> thread's PID. If the same thread calls gethostby*, use the same buffer, or > >> allocate a new one if anoth

Re: freebsd-hackers-digest V4 #576

1999-08-09 Thread Stephen Hocking-Senior Programmer PGS Tensor Perth
> > Stephen > Well, I was going to try to roll my own for this, but it's always nice to > know someone's already done it for me. :) I'm gone though for the next > couple weeks though, so that'll be a nice thing to get back home to. Many > thanks! > > Where will I be able to get it? > > -Joe >

Re: gethostbyaddr() and threads.

1999-08-09 Thread Wes Peters
Joe Groff wrote: > > On Mon, 9 Aug 1999, Wes Peters wrote: > > > > struct rpcent *getrpcent_r(struct rpcent *result, > > char *buffer, int buflen); > > > > Any questions? > > Looks pretty close to the POSIX/GNU way. Good luck with it. ;^) Straight from the Solaris man pages. Sho

Re: freebsd-hackers-digest V4 #576

1999-08-09 Thread Mark Newton
Stephen Hocking wrote: > The recent chatter about allowing kldload to give modules arguments is very > interesting, as it would allow one to specify port addresses and the like. Would it be useful to be able to be able to do something like this: kldload -t kernel_config /sys/i386/conf/Y

Re: freebsd-hackers-digest V4 #576

1999-08-09 Thread Joe Groff
On Tue, 10 Aug 1999, Stephen Hocking-Senior Programmer PGS Tensor Perth wrote: > > > > > I believe the joystick driver in FreeBSD could probably be redone, to > > support > > all the non-standard joysticks that many people (like me :) have. Having > > just recently converted to FreeBSD from L

Re: New kernel drivers

1999-08-09 Thread eT
Joe Groff wrote: > I have a device 'foo' which I'm working on. What files do I need to edit so > that config recognizes foo as a controller/pseudo-device/device/disk/whatever? Take a look at /usr/src/sys/i386/files.i386. You device driver files need to have an entry in this file. Also make sur

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
On Mon, 9 Aug 1999, Wes Peters wrote: > Here are the prototypes. Hosts: > > #include > #include > #include > #include > #include > > struct hostent *gethostbyname_r(const char *name, > struct hostent *result, char *buffer, int buflen, >

Re: gethostbyaddr() and threads.

1999-08-09 Thread Wes Peters
Joe Groff wrote: > > ---Dan Moschuk said: > > > > | Well, I guess we might as well change the API, since everyone else does. > > Unless > > | someone comes up with a bettter idea, of course :) > > | > > | -Joe > > > > The API should not change. There is already enough descrepency between UNIXs >

Re: gethostbyaddr() and threads.

1999-08-09 Thread Wes Peters
Joe Groff wrote: > > ---Louis A. Mamakos said: > >> You could malloc() a struct hostent for each call to > >> gethostby*(), each time registering the hostent in some list along with the > >> thread's PID. If the same thread calls gethostby*, use the same buffer, or > >> allocate a new one if anot

Re: freebsd-hackers-digest V4 #576

1999-08-09 Thread Stephen Hocking-Senior Programmer PGS Tensor Perth
> > Stephen > Well, I was going to try to roll my own for this, but it's always nice to > know someone's already done it for me. :) I'm gone though for the next > couple weeks though, so that'll be a nice thing to get back home to. Many > thanks! > > Where will I be able to get it? > > -Joe

Re: freebsd-hackers-digest V4 #576

1999-08-09 Thread Mark Newton
Stephen Hocking wrote: > The recent chatter about allowing kldload to give modules arguments is very > interesting, as it would allow one to specify port addresses and the like. Would it be useful to be able to be able to do something like this: kldload -t kernel_config /sys/i386/conf/

Re: freebsd-hackers-digest V4 #576

1999-08-09 Thread Joe Groff
On Tue, 10 Aug 1999, Stephen Hocking-Senior Programmer PGS Tensor Perth wrote: > > > > > I believe the joystick driver in FreeBSD could probably be redone, to support > > all the non-standard joysticks that many people (like me :) have. Having > > just recently converted to FreeBSD from Linux

Re: freebsd-hackers-digest V4 #576

1999-08-09 Thread Stephen Hocking-Senior Programmer PGS Tensor Perth
> > I believe the joystick driver in FreeBSD could probably be redone, to support > all the non-standard joysticks that many people (like me :) have. Having > just recently converted to FreeBSD from Linux, though, I don't know the best > way to go about it. Here are some ideas (sorry if my termin

Configuration mechanism of PCI bus

1999-08-09 Thread Zhihui Zhang
Even with "PCI System Architecture, 4th edition" at hand, I still have some problems understanding the code in isa/pcibus.c. Please point out any misunderstanding I may have in the following: (1) At first, you can not modify the address port at 0xcf8 without a FULL 32-bit write. The routine pci

Re: freebsd-hackers-digest V4 #576

1999-08-09 Thread Stephen Hocking-Senior Programmer PGS Tensor Perth
> > I believe the joystick driver in FreeBSD could probably be redone, to support > all the non-standard joysticks that many people (like me :) have. Having > just recently converted to FreeBSD from Linux, though, I don't know the best > way to go about it. Here are some ideas (sorry if my termi

New kernel drivers

1999-08-09 Thread Joe Groff
I have a device 'foo' which I'm working on. What files do I need to edit so that config recognizes foo as a controller/pseudo-device/device/disk/whatever? Thanks! -Joe To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message

Configuration mechanism of PCI bus

1999-08-09 Thread Zhihui Zhang
Even with "PCI System Architecture, 4th edition" at hand, I still have some problems understanding the code in isa/pcibus.c. Please point out any misunderstanding I may have in the following: (1) At first, you can not modify the address port at 0xcf8 without a FULL 32-bit write. The routine pc

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Dan Moschuk said: > > | Well, I guess we might as well change the API, since everyone else does. > Unless > | someone comes up with a bettter idea, of course :) > | > | -Joe > > The API should not change. There is already enough descrepency between UNIXs > to warrant programs like autoconf,

Re: gethostbyaddr() and threads.

1999-08-09 Thread Dan Moschuk
| Well, I guess we might as well change the API, since everyone else does. Unless | someone comes up with a bettter idea, of course :) | | -Joe The API should not change. There is already enough descrepency between UNIXs to warrant programs like autoconf, we should not introduce another. We sh

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Louis A. Mamakos said: >> ---Steve Tarkalson said: >> > this is solved by one of two methods: >> >1-) require the caller of gethostbyaddr() to supply a pointer to >> >a hostent struct which will be filled. >> > or 2-) the library uses thread specific storage which is re-used in >> >

New kernel drivers

1999-08-09 Thread Joe Groff
I have a device 'foo' which I'm working on. What files do I need to edit so that config recognizes foo as a controller/pseudo-device/device/disk/whatever? Thanks! -Joe To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Dan Moschuk said: > > | Well, I guess we might as well change the API, since everyone else does. > Unless > | someone comes up with a bettter idea, of course :) > | > | -Joe > > The API should not change. There is already enough descrepency between UNIXs > to warrant programs like autoconf,

Re: gethostbyaddr() and threads.

1999-08-09 Thread Dan Moschuk
| Well, I guess we might as well change the API, since everyone else does. Unless | someone comes up with a bettter idea, of course :) | | -Joe The API should not change. There is already enough descrepency between UNIXs to warrant programs like autoconf, we should not introduce another. We sh

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Louis A. Mamakos said: >> ---Steve Tarkalson said: >> > this is solved by one of two methods: >> >1-) require the caller of gethostbyaddr() to supply a pointer to >> >a hostent struct which will be filled. >> > or 2-) the library uses thread specific storage which is re-used in >> >

Re: gethostbyaddr() and threads.

1999-08-09 Thread Nate Williams
> > ---Steve Tarkalson said: > > > this is solved by one of two methods: > > >1-) require the caller of gethostbyaddr() to supply a pointer to > > >a hostent struct which will be filled. > > > or 2-) the library uses thread specific storage which is re-used in > > >each call. >

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Louis A. Mamakos said: >> You could malloc() a struct hostent for each call to >> gethostby*(), each time registering the hostent in some list along with the >> thread's PID. If the same thread calls gethostby*, use the same buffer, or >> allocate a new one if another thread calls it. Have a sta

Re: gethostbyaddr() and threads.

1999-08-09 Thread Louis A. Mamakos
> ---Steve Tarkalson said: > > this is solved by one of two methods: > >1-) require the caller of gethostbyaddr() to supply a pointer to > >a hostent struct which will be filled. > > or 2-) the library uses thread specific storage which is re-used in > >each call. > > > You cou

Re: gethostbyaddr() and threads.

1999-08-09 Thread Nate Williams
> > ---Steve Tarkalson said: > > > this is solved by one of two methods: > > >1-) require the caller of gethostbyaddr() to supply a pointer to > > >a hostent struct which will be filled. > > > or 2-) the library uses thread specific storage which is re-used in > > >each call. >

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Louis A. Mamakos said: >> You could malloc() a struct hostent for each call to >> gethostby*(), each time registering the hostent in some list along with the >> thread's PID. If the same thread calls gethostby*, use the same buffer, or >> allocate a new one if another thread calls it. Have a st

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Steve Tarkalson said: > this is solved by one of two methods: >1-) require the caller of gethostbyaddr() to supply a pointer to >a hostent struct which will be filled. > or 2-) the library uses thread specific storage which is re-used in >each call. > You could malloc() a st

Re: gethostbyaddr() and threads.

1999-08-09 Thread Steve Tarkalson
this is solved by one of two methods: 1-) require the caller of gethostbyaddr() to supply a pointer to a hostent struct which will be filled. or 2-) the library uses thread specific storage which is re-used in each call. From: Joe Groff Reply-To: og...@humboldt1.com To: bmcgo...@

Re: gethostbyaddr() and threads.

1999-08-09 Thread Louis A. Mamakos
> ---Steve Tarkalson said: > > this is solved by one of two methods: > >1-) require the caller of gethostbyaddr() to supply a pointer to > >a hostent struct which will be filled. > > or 2-) the library uses thread specific storage which is re-used in > >each call. > > > You co

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Steve Tarkalson said: > this is solved by one of two methods: >1-) require the caller of gethostbyaddr() to supply a pointer to >a hostent struct which will be filled. > or 2-) the library uses thread specific storage which is re-used in >each call. > You could malloc() a s

Re: gethostbyaddr() and threads.

1999-08-09 Thread Steve Tarkalson
this is solved by one of two methods: 1-) require the caller of gethostbyaddr() to supply a pointer to a hostent struct which will be filled. or 2-) the library uses thread specific storage which is re-used in each call. >From: Joe Groff <[EMAIL PROTECTED]> >Reply-To: [EMAIL PRO

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Brian McGovern said: > [snip] > > gethostbyaddr... actually, most of the gethostby* functions... are not > thread safe. They all use a static buffer in the library. > > Therefore, with threads, if you don't take precautions, I'd expect your > results to be odd. > -Brian > Couldn't this be

Re: gethostbyaddr() and threads.

1999-08-09 Thread Brian McGovern
[snip] gethostbyaddr... actually, most of the gethostby* functions... are not thread safe. They all use a static buffer in the library. Therefore, with threads, if you don't take precautions, I'd expect your results to be odd. -Brian To Unsubscribe: send mail to majord...@freebsd.org wi

fetchGetURL() (fwd)

1999-08-09 Thread Mailing Lists
I can't seem to get libfetch to properly link in. I've tinkered with the order to no avail & don't see what I'm missing. cc -O2 -pipe -g -o importquotes importquotes.o -L/usr/local/lib/mysql -lmysqlclient -lfetch -lcom_err -lstdc++ importquotes.o: In function `main': /usr/local/stock/importqu

Re: gethostbyaddr() and threads.

1999-08-09 Thread Joe Groff
---Brian McGovern said: > [snip] > > gethostbyaddr... actually, most of the gethostby* functions... are not > thread safe. They all use a static buffer in the library. > > Therefore, with threads, if you don't take precautions, I'd expect your > results to be odd. > -Brian > Couldn't this b

Re: gethostbyaddr() and threads.

1999-08-09 Thread Brian McGovern
[snip] gethostbyaddr... actually, most of the gethostby* functions... are not thread safe. They all use a static buffer in the library. Therefore, with threads, if you don't take precautions, I'd expect your results to be odd. -Brian To Unsubscribe: send mail to [EMAIL PROTECTED] with

fetchGetURL() (fwd)

1999-08-09 Thread Mailing Lists
I can't seem to get libfetch to properly link in. I've tinkered with the order to no avail & don't see what I'm missing. cc -O2 -pipe -g -o importquotes importquotes.o -L/usr/local/lib/mysql -lmysqlclient -lfetch -lcom_err -lstdc++ importquotes.o: In function `main': /usr/local/stock/importq

Re: gethostbyaddr() and threads.

1999-08-09 Thread Wes Peters
Dan Moschuk wrote: > > | >After quite an exhausting night (of all the ways I didn't want to spend my > | >Sunday...) I've managed to track down a problem that has been frustrating > me > | >all night. The problem exists with multiple threads calling > gethostbyaddr() > | >(not necessarily at th

Re: gethostbyaddr() and threads.

1999-08-09 Thread Wes Peters
Dan Moschuk wrote: > > | >After quite an exhausting night (of all the ways I didn't want to spend my > | >Sunday...) I've managed to track down a problem that has been frustrating me > | >all night. The problem exists with multiple threads calling gethostbyaddr() > | >(not necessarily at the sam

Re: quad_t and portability

1999-08-09 Thread Brian F. Feldman
On Mon, 9 Aug 1999, Tony Finch wrote: > "Brian F. Feldman" wrote: > > > >Is there anyone who is specifically checking for long long > >C9X-compliancy in the source tree (mainly libc)? > > I started reviewing libc for C9X features in general -- a fair amount > of work is required to update macros

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Matthew Dillon
: I should have mentioned, I have 20 nfsiod's running. I started so many :initially to help in the stress testing I was doing, but I left them :running because the servers are handling from 2-4 requests per second and :we have lots of ram in the boxes. Is there a way to figure out how many ar

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Doug
Alfred Perlstein wrote: > > On Mon, 9 Aug 1999, Doug wrote: > > > Matthew Dillon wrote: > > > > > > : So, the big question is whether there is anything we can tune to > > > speed up > > > :the writes. The freebsd machines are NFS clients to the sun servers doing > > > :most of the web proc

Re: quad_t and portability

1999-08-09 Thread Brian F. Feldman
On Mon, 9 Aug 1999, Tony Finch wrote: > "Brian F. Feldman" <[EMAIL PROTECTED]> wrote: > > > >Is there anyone who is specifically checking for long long > >C9X-compliancy in the source tree (mainly libc)? > > I started reviewing libc for C9X features in general -- a fair amount > of work is requi

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Matthew Dillon
: I should have mentioned, I have 20 nfsiod's running. I started so many :initially to help in the stress testing I was doing, but I left them :running because the servers are handling from 2-4 requests per second and :we have lots of ram in the boxes. Is there a way to figure out how many a

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Doug
Alfred Perlstein wrote: > > On Mon, 9 Aug 1999, Doug wrote: > > > Matthew Dillon wrote: > > > > > > : So, the big question is whether there is anything we can tune to speed up > > > :the writes. The freebsd machines are NFS clients to the sun servers doing > > > :most of the web processing

Re: gethostbyaddr() and threads.

1999-08-09 Thread Dan Moschuk
| >After quite an exhausting night (of all the ways I didn't want to spend my | >Sunday...) I've managed to track down a problem that has been frustrating me | >all night. The problem exists with multiple threads calling gethostbyaddr() | >(not necessarily at the same time). | | src/lib/libc/n

Re: gethostbyaddr() and threads.

1999-08-09 Thread Dan Moschuk
| >After quite an exhausting night (of all the ways I didn't want to spend my | >Sunday...) I've managed to track down a problem that has been frustrating me | >all night. The problem exists with multiple threads calling gethostbyaddr() | >(not necessarily at the same time). | | src/lib/libc/

Re: gethostbyaddr() and threads.

1999-08-09 Thread Tony Finch
Dan Moschuk wrote: > >After quite an exhausting night (of all the ways I didn't want to spend my >Sunday...) I've managed to track down a problem that has been frustrating me >all night. The problem exists with multiple threads calling gethostbyaddr() >(not necessarily at the same time). src/l

Re: quad_t and portability

1999-08-09 Thread Tony Finch
"Brian F. Feldman" wrote: > >Is there anyone who is specifically checking for long long >C9X-compliancy in the source tree (mainly libc)? I started reviewing libc for C9X features in general -- a fair amount of work is required to update macros and typedefs in (plus the new ). Doing a thorough

Re: gethostbyaddr() and threads.

1999-08-09 Thread Tony Finch
Dan Moschuk <[EMAIL PROTECTED]> wrote: > >After quite an exhausting night (of all the ways I didn't want to spend my >Sunday...) I've managed to track down a problem that has been frustrating me >all night. The problem exists with multiple threads calling gethostbyaddr() >(not necessarily at the

Re: quad_t and portability

1999-08-09 Thread Tony Finch
"Brian F. Feldman" <[EMAIL PROTECTED]> wrote: > >Is there anyone who is specifically checking for long long >C9X-compliancy in the source tree (mainly libc)? I started reviewing libc for C9X features in general -- a fair amount of work is required to update macros and typedefs in (plus the new )

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Gregory Sutter
On Mon, Aug 09, 1999 at 04:50:51AM -0400, Alfred Perlstein wrote: > On Mon, 9 Aug 1999, Doug wrote: > > > Matthew Dillon wrote: > > > > > > : So, the big question is whether there is anything we can tune to > > > speed up > > > :the writes. The freebsd machines are NFS clients to the sun s

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Alfred Perlstein
On Mon, 9 Aug 1999, Doug wrote: > Matthew Dillon wrote: > > > > : So, the big question is whether there is anything we can tune to > > speed up > > :the writes. The freebsd machines are NFS clients to the sun servers doing > > :most of the web processing. Overall performance on the reads s

FYI [ymiron...@earthlink.net: C-Forge for FreeBSD]

1999-08-09 Thread Wolfram Schneider
- Forwarded message from "Yuri Mironoff" - Reply-To: "Yuri Mironoff" From: "Yuri Mironoff" To: Subject: C-Forge for FreeBSD Date: Sun, 8 Aug 1999 22:42:50 -0400 Hello, We're recently ported the C-Forge Integrated Development Environment to FreeBSD (short description of product fol

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Gregory Sutter
On Mon, Aug 09, 1999 at 04:50:51AM -0400, Alfred Perlstein wrote: > On Mon, 9 Aug 1999, Doug wrote: > > > Matthew Dillon wrote: > > > > > > : So, the big question is whether there is anything we can tune to speed up > > > :the writes. The freebsd machines are NFS clients to the sun servers

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Alfred Perlstein
On Mon, 9 Aug 1999, Doug wrote: > Matthew Dillon wrote: > > > > : So, the big question is whether there is anything we can tune to speed up > > :the writes. The freebsd machines are NFS clients to the sun servers doing > > :most of the web processing. Overall performance on the reads seems

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Doug
Matthew Dillon wrote: > > : So, the big question is whether there is anything we can tune to > speed up > :the writes. The freebsd machines are NFS clients to the sun servers doing > :most of the web processing. Overall performance on the reads seems to be > :best with nfs v3 over udp, whic

FYI [ymironoff@earthlink.net: C-Forge for FreeBSD]

1999-08-09 Thread Wolfram Schneider
- Forwarded message from "Yuri Mironoff" <[EMAIL PROTECTED]> - Reply-To: "Yuri Mironoff" <[EMAIL PROTECTED]> From: "Yuri Mironoff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: C-Forge for FreeBSD Date: Sun, 8 Aug 1999 22:42:50 -0400 Hello, We're recently ported the C-Forge Int

Re: Fix/tuning to improve slow NFS writes?

1999-08-09 Thread Matthew Dillon
: So, the big question is whether there is anything we can tune to speed up :the writes. The freebsd machines are NFS clients to the sun servers doing :most of the web processing. Overall performance on the reads seems to be :best with nfs v3 over udp, which is what I'm using now. All of the