f_offset
Ed Schouten
ed at 80386.nl
Mon Apr 14 14:55:55 UTC 2008
* Jeff Roberson <jroberson at jroberson.net> wrote:
> You should use an sx lock which can be held across such operations. Non
> seekable devices, terminals included, have to serialize all IO. They are
> treated separately by posix.
It's all so confusing that the standards seem to change then. When I
take a look at the POSIX onlinepubs, the articles seem to mention the
opposite:
http://www.opengroup.org/onlinepubs/009695399/functions/read.html
"The behavior of multiple concurrent reads on the same pipe,
FIFO, or terminal device is unspecified."
http://www.opengroup.org/onlinepubs/009695399/functions/write.html
"This volume of IEEE Std 1003.1-2001 does not specify behavior
of concurrent writes to a file from multiple processes.
Applications should use some form of concurrency control."
--
Ed Schouten <ed at 80386.nl>
WWW: http://g-rave.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20080414/3a940080/attachment.pgp
More information about the freebsd-arch
mailing list