iirc it is posix (but single user). I once 'ported' one of the xscreensavers (Galaxy - it only need to draw a single pixel) to the screensaver framework that became the defacto standard at the time and I got rc to compile (and run!).
I was hampered by only having access to the included C compiler which limited binaries to 65k.