> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Lutz Jaenicke via RT
> On Mon, Mar 31, 2003 at 10:54:31AM +0200, > [EMAIL PROTECTED] via RT wrote: > > Since 5.2 AIX supports /dev/random and /dev/urandom. > Openssl don't use it > > because the select > > system call works different on AIX than on linux. > > > > As described in the following URL, the select system call > expects the > > number > > of file describtors as first parameter in AIX. Linux > expects the highst > > numbered > > fd +1. > http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/libs/c > ommtrf1/select.htm > > Are you sure? select() is around since UNIX exists, that > means the early 70s, > maybe longer. I am not that good when it comes to UNIX history :-) > > I would not believe that IBM would break more or less all programs by > chaning the select() API in an incompatible way. This is a non-issue; they are two different ways of saying the same thing. The AIX description is the same one all Unix systems with select() have used since... 4.2BSD. I don't recall if 4.1 had select() or not. Think about it. The fdset is a bit field. The nfds parameter tells select how far into the field it needs to look. Each bit corresponds to one fd. If you have fd#0, that corresponds to bit #1. This is why the number of fds is *always* the highest numbered fd +1. -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
