Re: How many files can I put in one diretory?

2000-06-23 Thread Luigi Rizzo
I have a user who needs to store a large amount of small html files. Like around 2 million... that sounds insane! Because a name is a name, why dont they call those files xx/yy/zz/tt.html and the like, to get down to a more reasonable # of files per directory. Well.. Yea that's

libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread FengYue
in thread read() implementation, there is this line of code: while ((ret = _thread_sys_read(fd, buf, nbytes)) 0) { suppose we're doing the IO on a TCP socket: _thread_sys_read() is going to return -1 if there is no data available in the stream and the errno is then set to

Re: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread andrew
On Fri, 23 Jun 2000, FengYue wrote: My question is, shouldn't it be reset to zero? From intro(2): Successful calls never set errno; once set, it remains until another error occurs. It should only be examined after an error. Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with

Re: Apache with PAM/RADIUS authentication

2000-06-23 Thread Ingo Luetkebohle
please cc any replies to me, I'm not on the FreeBSD lists. Anyways, this looks like a simple path problem. I don't know where FreeBSD places the pam modules, but on Linux they are in /lib/security/. Jun 22 13:50:15 nwlynx dev-httpd: unable to dlopen(/usr/lib/pam_radius.so) Jun 22 13:50:15

Problem with normal exit all threads of task...

2000-06-23 Thread Sergey A. Osokin
Hello! I have a problem with normal exit all threads of task by signal... At Linux, as i know, all threads of task receive a signal, but under FreeBSD only one. Any idea? -- Rgdz, Sergey Osokin aka oZZ, [EMAIL PROTECTED] http://www.freebsd.org.ru/~osa/ To Unsubscribe: send mail to [EMAIL

Re: Apache with PAM/RADIUS authentication

2000-06-23 Thread Alexander Prohorenko
Greetings, On Fri, Jun 23, 2000 at 01:04:14PM +0200, Ingo Luetkebohle wrote: please cc any replies to me, I'm not on the FreeBSD lists. Okay, I'll bounce everything I'll got on this subject. You may include this into your FAQ. Of course, if we'll solve this problem :) Anyways, this looks

Cooperative site-sitting

2000-06-23 Thread Koster, K.J.
Dear FreeBSD Hackers, I've been walking around with a wild idea again. I'm worried that this mail is going to be a bit of a long rant. Sorry in advance. I've been looking at those sites that can monitor the availability and performance of your web site. For a few bucks per URL, you can receive

FW: Cooperative site-sitting

2000-06-23 Thread Koster, K.J.
Hi Colman, I'm replying to you through -hackers, because I got the following when I e-mailed you personally: The original message was received at Fri, 23 Jun 2000 13:20:35 GMT from hermes.research.kpn.com [139.63.192.8] - The following addresses had permanent fatal errors

Re: Apache with PAM/RADIUS authentication

2000-06-23 Thread Bjoern Fischer
On Fri, Jun 23, 2000 at 11:57:43AM +0300, Alexander Prohorenko wrote: I hope to get some help here. I've got in troubles trying to run Apache PAM authentication module on FreeBSD. [...] I've used PAM module from http://blank.pages.de/pam/ - mod_auth_pam.c and added it as DSO module using

Re: Apache with PAM/RADIUS authentication

2000-06-23 Thread Alexander Prohorenko
On Fri, Jun 23, 2000 at 03:44:09PM +0200, Bjoern Fischer wrote: On Fri, Jun 23, 2000 at 11:57:43AM +0300, Alexander Prohorenko wrote: I hope to get some help here. I've got in troubles trying to run Apache PAM authentication module on FreeBSD. [...] I've used PAM module from

RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread Bohne, Peter
This means that *you* should set errno to 0 just before you do the read call. At this point, you no longer care what it had been before. -- pete == pbohne at hboc dot com Peter Bohne -- McKessonHBOC -- Louisville, CO Work: 303-926-2218 -- Cell: 303-817-8312 -- Home Ofc: 970-586-9031 ==

RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread andrew
On Fri, 23 Jun 2000, Bohne, Peter wrote: This means that *you* should set errno to 0 just before you do the read call. At this point, you no longer care what it had been before. Why set it at all? If read returns an error then it will set it for you and if read doesn't return an error it

RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread Bohne, Peter
Anytime you make a call that can potentially set errno, and you are planning to *check* errno afterwards, you have to set errno to 0 yourself. Once a system call sets errno to some (any) value, errno will just retain that value until the next system call that fails and sets errno. AFAIK

RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread andrew
On Fri, 23 Jun 2000, Bohne, Peter wrote: Anytime you make a call that can potentially set errno, and you are planning to *check* errno afterwards, you have to set errno to 0 yourself. Once a ...but you would only be checking errno if the call failed and if the call failed then it will have

RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread Bohne, Peter
Right - but unless I'm mis-remembering the original post (which I may well be), your *second* read() succeeded, but errno was still set to EAGAIN, which was causing you some sort of headache. My apologies if I've got my memory mixed up - happens all the time :-) pete -Original Message-

RE: libc_r/_read(), should the errno be reset to 0?

2000-06-23 Thread FengYue
Wait, that's not going to do anything, the errno is set inside the _thread_sys_read(). But I agree with Andrew, why bother to check errno if read() returns no error. On Fri, 23 Jun 2000, Bohne, Peter wrote: This means that *you* should set errno to 0 just before you do the read call. At

SCSI HBA device detection?

2000-06-23 Thread Nat Lanza
I'm writing a SCSI HBA driver that simulates a bus with some ramdisk-backed disks attached to it. I've read through the HBA tutorial in Daemon News, but I'm still unsure how to tell the system about my pretend disk devices. I suspect part of the problem is that I don't actually have real devices

ttys entry for palm pilot as dumb terminal

2000-06-23 Thread Brian Reichert
I have no idea why I'm seeing this symptom: Using the 'ptelnet' application on my Palm III, I can log into machines. Really cute to see a little 'top' running. :) Anyway, the suggested entry in /etc/ttys: ttyd0 "/usr/libexec/getty std.9600" dialup on secure does not work for me at all,

Re: How many files can I put in one diretory?

2000-06-23 Thread Murray Stokely
On Fri, 23 Jun 2000, Daniel O'Connor wrote: % I chunk of binary data you can put in a DB. % % Like an image, or an mpeg, or a sound file.. % % AFAIK postgres supports BLOBS. So does MySQL. You can display a BLOB using a Perl/DBI cgi script with about 5 lines of code. Just print the correct

Re: How many files can I put in one diretory?

2000-06-23 Thread Jeroen C. van Gelderen
"Nicole Harrington." wrote: On 23-Jun-00 Daniel O'Connor wrote: On 23-Jun-00 Nicole Harrington. wrote: Yeah.. This is why databases where invented :) Hey I agree... However even if the html was databased.. (working on that now) the custom graphics cannot be. (yet) Hmm..

PPPoE help me please!!

2000-06-23 Thread Adam Blake
Greetings All and Everyone. I am becoming quite desperate and I am in of dire nned for help with PPPoE! I spoke to an individual on the list a few weeks ago regarding this issue and I truly appreciate their time (Thanks Dima). Here's the deal... I can't get PPPoE running to save my life!! I

Re: ttys entry for palm pilot as dumb terminal

2000-06-23 Thread Mark Newton
On Fri, Jun 23, 2000 at 03:34:06PM -0400, Brian Reichert wrote: Anyway, the suggested entry in /etc/ttys: ttyd0 "/usr/libexec/getty std.9600" dialup on secure does not work for me at all, yet if I do this intead: cuaa0 "/usr/libexec/getty std.9600" dialup on secure I indeed