/dev/urandom with 64bit apps?

From: Mark Woollard (mark.woollard_at_mac.com)
Date: 08/30/05

  • Next message: Fil: "Re: /var/spool/qdaemon 95% full... but nothing in it !"
    Date: 30 Aug 2005 09:17:32 -0700
    
    

    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


  • Next message: Fil: "Re: /var/spool/qdaemon 95% full... but nothing in it !"

    Relevant Pages

    • catopen() and LANG
      ... I am trying to open my own catlog file (on AIX) and catopenfails ... returning -1 and sets errno to ENOENT. ... My cat file is named SURF.en_US.cat and is located in the same path as ...
      (comp.unix.aix)
    • Re: nmon failing - AIX 5.2.02
      ... on a server that we are building as a replacement for old hardware, ... I rebooted it last night and nmon has been ... > to determine the AIX version and the lslpp command fails with these options. ...
      (comp.unix.aix)
    • Re: System call: how many file descriptors left?
      ... > counting, until the openfails, then closing the just opened descriptors. ... Dare I remind you that some Unices (e.g. AIX), ...
      (comp.unix.programmer)
    • Re: 2.4.2 on AIX 4.3 make fails on threading
      ... Paul Watson wrote: ... > When I try to build 2.4.2 on AIX 4.3, it fails on missing thread ...
      (comp.lang.python)
    • Test for GD 1.38 fails.
      ... I try to get GD 1.38 installed on my AIX box with AIX 5.1 but it fails ... FAILED tests 2-10 ... at least gddemo produces as usable png file ...
      (comp.lang.perl.modules)