From owner-freebsd-hackers Thu Dec 10 13:56:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA24424 for freebsd-hackers-outgoing; Thu, 10 Dec 1998 13:56:17 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.tar.com (ns.tar.com [204.95.187.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA24417 for ; Thu, 10 Dec 1998 13:56:14 -0800 (PST) (envelope-from lists@tar.com) Received: from ppro.tar.com (ppro.tar.com [204.95.187.9]) by ns.tar.com (8.9.1/8.9.1) with SMTP id PAA27450 for ; Thu, 10 Dec 1998 15:56:01 -0600 (CST) (envelope-from lists@tar.com) Message-Id: <199812102156.PAA27450@ns.tar.com> From: "Richard Seaman, Jr." To: "hackers@freebsd.org" Date: Thu, 10 Dec 98 15:56:01 -0600 Reply-To: "Richard Seaman, Jr." X-Mailer: PMMail 1.92 For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: pread/pwrite Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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