Hi ports --

Attached is a new port, devel/libaio. libaio is a port of the DragonFly BSD userland POSIX asynchronous I/O routines to OpenBSD.

When updating lang/flang earlier today, I realized that there are a dozen patches that work around the fact that OpenBSD doesn't have an aio implementation. Having to maintain a number of patches for flang already, reducing that number is a great help.

It turns out that DragonFly BSD has a minimal but standard-compliant userland implementation of aio. So I did a quick and dirty port of it. flang is very happy with it.

According to POSIX, these routines belong in librt. I'm not opening that can of worms. I named the library libaio. That way, you have to specifically seek it out to use it. The good news is that a quick perusal of the ports tree didn't turn up any port other than flang that has patches that work around not having aio. At this rate, it'll be maybe 2038 by the time another port needs the library anyway.

---
pkg/DESCR:
libaio is a port of the POSIX asynchronous I/O library from DragonFly
BSD to OpenBSD.

This version of AIO is aimed at standards compliance; it is not aimed at
either reasonability or performance. It merely wraps synchronous I/O
routines.
---

Builds and passes some rudimentary tests on both amd64 and armv7. Makes flang happy on amd64.

OK?

~Brian

Attachment: libaio.tgz
Description: Binary data

Reply via email to