Re: VFS locking: f_pos thread-safe ?

Pavel Machek
2004-02-23T13:23:15Z

Hi!

> POSIX says on <http://www.opengroup.org/onlinepubs/007904975/functions/
> read.html>:
>
> [...]
> DESCRIPTION
>
> The read() function shall attempt to read nbyte bytes from the file
> associated with the open file descriptor, fildes, into the buffer pointed
> to by buf. The behavior of multiple concurrent reads on the same pipe,
> FIFO, or terminal device is unspecified.

...which implies that concurrent reads on regular files are okay :-P.

Pavel

--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms