fcntl: Implement fcntl/ioctl variants which take memory buffer as arg.