leahneukirchen / nq

Unix command line queue utility
Other
2.8k stars 61 forks source link

support illumos with fcntl #17

Closed josephholsten closed 8 years ago

josephholsten commented 9 years ago

I wrote a portable flock(1) a while back and I wanted it to work similarly on bsd, linux & illumos. I ended up reviewing different flock(2) emulation impls out there and came up with https://github.com/discoteq/flock/blob/master/src/flock.c#L26

Interested in me adding illumos support?

leahneukirchen commented 9 years ago

According to http://www.perkin.org.uk/posts/solaris-portability-flock.html this has two issues which nq critically depends on:

So, I don't think this will work out?

leahneukirchen commented 8 years ago

The code now works on SmartOS thanks to https://github.com/joyent/illumos-joyent/commit/ade223c and probably on Illumos https://github.com/illumos/illumos-gate/commit/7a5aac98bc37534537d4896efd4efd30627d221e

This function will be available on OmniOS with the import of LX branded zones, I guess.