Re: /dev/urandom with 64bit apps?
From: Phil Langerholc (root_at_localhost.nospam)
Date: 08/31/05
- Next message: pankajtakawale: "Re: sbrk fails with ENOMEM"
- Previous message: Phil Langerholc: "Re: sar data?"
- In reply to: Mark Woollard: "/dev/urandom with 64bit apps?"
- Next in thread: Mark Woollard: "Re: /dev/urandom with 64bit apps?"
- Reply: Mark Woollard: "Re: /dev/urandom with 64bit apps?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Aug 2005 02:03:03 GMT
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_link/en_US/a_doc_lib/libs/basetrf1/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
- Next message: pankajtakawale: "Re: sbrk fails with ENOMEM"
- Previous message: Phil Langerholc: "Re: sar data?"
- In reply to: Mark Woollard: "/dev/urandom with 64bit apps?"
- Next in thread: Mark Woollard: "Re: /dev/urandom with 64bit apps?"
- Reply: Mark Woollard: "Re: /dev/urandom with 64bit apps?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]