Compiling code in gcc on windows under msys2.
Working code in linux called:
write(fd, buf, len)
for a file descriptor that wrote to a