Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 98 15:56:01 -0600
From:      "Richard Seaman, Jr." <lists@tar.com>
To:        "hackers@freebsd.org" <hackers@FreeBSD.ORG>
Subject:   pread/pwrite
Message-ID:  <199812102156.PAA27450@ns.tar.com>

next in thread | raw e-mail | index | archive | help
I don't know if there is any interest in X/Open pread, pwrite 
calls.  Essentially, they implement atomic seek/write and
atomic seek/read calls.  They are more useful in threaded
apps where you would need a file lock between a seek/write
or seek/read, but even in single threaded apps can allow
you to avoid a syscall.

Attached is an implementation.  If there is interest, and
if the implementation meets with approval, I'll submit
a PR.  Or, perhaps someone would want to commit it directly.

I welcome any comments.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812102156.PAA27450>