View Single Post

   
  #2 (permalink)  
Old 01-05-2008, 07:20 AM
Phil Langerholc
 
Posts: n/a
Default Re: /dev/urandom with 64bit apps?

Mark Woollard wrote:
> Am porting some code to aix and can't open /dev/urandom from a 64 bit
> build.
>
> int fd = open("/dev/urandom", O_RDONLY);
>
> fails with EAGAIN. Same test code built 32 bit works fine. Am using gcc
> 3.4.4 to build the code. Can find no info on the net about this.
>
> Anyone?
>
> Thanks
> Mark
>

Hi Mark,
EAGAIN The O_TRUNC flag is set and the named file contains a
record lock owned by another process.

http://publib16.boulder.ibm.com/doc_...etrf1/open.htm

may give you some good information. You may want to look at open64, but
I don't think that will solve your problem.

Hope this is somewhat useful.

---Phil
Reply With Quote