Re: Fwd: timerfd read only gets single byte?

2007-07-17 Thread Davide Libenzi
On Tue, 17 Jul 2007, Davi Arnaut wrote: > Michael Kerrisk wrote: > > > > Hi Davide, > > > > While writing a test program to incorporate into the timerfd.2 man page, I > > think I've found a bug. It looks like only the least significant byte of > > ticks is being returned from read(2), even

Re: Fwd: timerfd read only gets single byte?

2007-07-17 Thread Davi Arnaut
Michael Kerrisk wrote: > > Hi Davide, > > While writing a test program to incorporate into the timerfd.2 man page, I > think I've found a bug. It looks like only the least significant byte of > ticks is being returned from read(2), even though I am providing a 4 byte > buffer. > > The test

timerfd read only gets single byte?

2007-07-17 Thread Michael Kerrisk
Hi Davide, While writing a test program to incorporate into the timerfd.2 man page, I think I've found a bug. It looks like only the least significant byte of ticks is being returned from read(2), even though I am providing a 4 byte buffer. The test program takes 3 command line arguments: 1)

timerfd read only gets single byte?

2007-07-17 Thread Michael Kerrisk
Hi Davide, While writing a test program to incorporate into the timerfd.2 man page, I think I've found a bug. It looks like only the least significant byte of ticks is being returned from read(2), even though I am providing a 4 byte buffer. The test program takes 3 command line arguments: 1)

Re: Fwd: timerfd read only gets single byte?

2007-07-17 Thread Davi Arnaut
Michael Kerrisk wrote: Hi Davide, While writing a test program to incorporate into the timerfd.2 man page, I think I've found a bug. It looks like only the least significant byte of ticks is being returned from read(2), even though I am providing a 4 byte buffer. The test program

Re: Fwd: timerfd read only gets single byte?

2007-07-17 Thread Davide Libenzi
On Tue, 17 Jul 2007, Davi Arnaut wrote: Michael Kerrisk wrote: Hi Davide, While writing a test program to incorporate into the timerfd.2 man page, I think I've found a bug. It looks like only the least significant byte of ticks is being returned from read(2), even though I am