Menu

#540 [Patch] Make Expat build on CloudABI

Platform Specific
closed-fixed
None
5
2016-07-30
2016-07-29
Ed Schouten
No

Hi there,

Some time ago I ported Expat over to a new platform: CloudABI. CloudABI is a UNIX-like runtime environment that uses capability-based security. All of Expat seems to build, except for a single call to getpid(). There is no support for accessing process tables in CloudABI.

it seems that Expat is only calling getpid() to obtain 'random' numbers. Attached is a patch to make this use arc4random_buf() instead, which provides high-quality random numbers. It would be nice if this patch could be integrated.

Thanks,
Ed Schouten

1 Attachments

Discussion

  • Sebastian Pipping

    • status: open --> closed-fixed
    • assigned_to: Sebastian Pipping
     
  • Sebastian Pipping

    Hello Ed,

    thanks for you patch, I pushed it a minute ago.

    I like that arc4random_buf doesn't need initialization. I still want something like that for all supported platforms, so if that's interesing to you, more patches and collaboration are welcome.

    Best, Sebastian

     

Log in to post a comment.