_IO_fcntl
fd_flags = _IO_fcntl (fd, F_GETFL);
if (_IO_fcntl (fd, F_SETFL, fd_flags | O_APPEND) == -1)
#ifndef _IO_fcntl