lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 12 Dec 2008 00:13:43 +0100
From:	Gerd Hoffmann <kraxel@...hat.com>
To:	lkml - Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [RFC/PATCH] Add preadv and pwritev system calls.

  Hi,

The attached patch adds preadv and pwritev system calls.  These syscalls
are a pretty straightforward combination of pread and readv (same for
write).  They are quite useful for doing vectored I/O in threaded
applications.  Using lseek+readv instead opens race windows you'll have
to plug with locking.

Other systems have such system calls too, for example NetBSD, check
here: http://www.daemon-systems.org/man/preadv.2.html

The patch sports the actual system call implementation and the windup in
the x86 system call tables.  Other archs are TBD.

Comments?  Reviews?  Suggestions?  Flames?

cheers,
  Gerd


View attachment "preadv.diff" of type "text/plain" (4266 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ