Forum Discussion
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- How do I set nonblocking mode for stdin (a standard uart) using the HAL? After wading through hunderds of pages of useless Altera info and library sources, I still can't find that simple piece of information. <rant> It could be me, but I find this whole HAL/Posix compliance thing one big pile of useless, horribly documented useless junk that frustates the hell out of me, that instead of saving me time, only cost me more time. </rant>[/b] --- Quote End --- The information you sought was in chapter 10 page 60 of the Nios II Software Devlopers Handbook n2sw_nii5v2.pdf. This is the description of the open() function call. It was the first thing that a search of this manual found when searching for NONBLOCK. "You may also bitwise-OR flags with O_NONBLOCK, which causes the file to be opened in non-blocking mode. Neither open() nor any subsequent operations on the returned file descriptor causes the calling process to wait." As for your rant, it would be much more beneficial to all if you could post problems you have encountered, that way we can try to fix them.