Add POSIX fcntl to control blocking
Add the POSIX fcntl call, but only implementing F_SETFL and F_GETFL
for O_NONBLOCK, so users can control the blocking flag of streams
with only the integer file descriptor.

Necessary to portably control the blockingness of the console:

    int flags = fcntl(STDOUT_FILENO, F_GETFL);
    fcntl(STDOUT_FILENO, F_SETFL, flags | O_NONBLOCK);
ls
1 parent a8ab233 commit cf91b1c6d700f93f66dddd567efff3ec8dd87495
@Kevin Bracey Kevin Bracey authored on 2 May 2018
Showing 2 changed files
View
platform/mbed_retarget.cpp
View
platform/mbed_retarget.h