unieject is a drop-in replacement for usual eject command, which works on Linux and FreeBSD. It has more functionalities than FreeBSD's eject command, and it's partially compatible with Linux's one.
It also features a library to access functions to lookup devices and mountpoints, unmount and eject devices.
These details are provided for information only. No information here is legal advice and should not be used as such.
At one point, Open Hub analyzed source code for this project based on code location(s) available at that time. Since then, the code locations have been removed.