The z88dk compiler features several fcntl drivers for the ZX Spectrum:
The generic BASIC driver,
ZX Spectrum Plus 3 drives,
The ZX Microdrives native library
The ZXVGS system is supported as a new platform.