Make soc_fcntl.c more sane.