Re: usleep() buffer update

2013-04-14 Thread Mihai Popescu
On Sun, Apr 14, 2013 at 1:21 AM, Matthew Dempsky wrote: > On Sat, Apr 13, 2013 at 2:53 PM, Mihai Popescu wrote: > > Can someone give me some hints in this direction, please, what exactly > > triggers usleep() internaly ? > > usleep() doesn't trigger anything, but usleep(1) doesn't mean "sleep > e

Re: usleep() buffer update

2013-04-13 Thread Matthew Dempsky
On Sat, Apr 13, 2013 at 2:53 PM, Mihai Popescu wrote: > Can someone give me some hints in this direction, please, what exactly > triggers usleep() internaly ? usleep() doesn't trigger anything, but usleep(1) doesn't mean "sleep exactly 1us", it means "sleep at least 1us". In practice, your proce

usleep() buffer update

2013-04-13 Thread Mihai Popescu
Hello, This is a question about OS behaviour which I can't find the answer for. I am using the serial port as /dev/cua00 set up for non blocking and no bytes count or timeout. Basicaly I send 5 bytes and after each one the connected device sends one back, so there are 5 bytes as a response. write