Re: VFS locking: f_pos thread-safe ?
From: Pavel Machek
Date: Mon Feb 23 2004 - 08:25:23 EST
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/