It would be a sad day if your programming language didn't have stat.
Inotify is only present if your Linux-kernel is compiled with it turned on. If you want to use it in shell scripts there's inotify-tools (that's the Debian name anyway). Sadly GNU got their grubby fingers in and invented the stupid D-BUS.
In FreeBSD there's kqueue which does a similar job.