# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:39+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "readv" msgstr "" #. type: TH #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2026-02-22" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "readv, writev, preadv, pwritev, preadv2, pwritev2 - read or write data into " "multiple buffers" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Esys/uio.hE>\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, const struct iovec *>IB<, int >IB<);>\n" "BIB<, const struct iovec *>IB<, int >IB<);>\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, const struct iovec *>IB<, int >IB<,>\n" "B< off_t >IB<);>\n" "BIB<, const struct iovec *>IB<, int >IB<,>\n" "B< off_t >IB<);>\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, const struct iovec *>IB<, int >IB<,>\n" "B< off_t >IB<, int >IB<);>\n" "BIB<, const struct iovec *>IB<, int >IB<,>\n" "B< off_t >IB<, int >IB<);>\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(), B():" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " Since glibc 2.19:\n" " _DEFAULT_SOURCE\n" " glibc 2.19 and earlier:\n" " _BSD_SOURCE\n" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call reads I buffers from the file associated " "with the file descriptor I into the buffers described by I " "(\"scatter input\")." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call writes I buffers of data described by " "I to the file associated with the file descriptor I (\"gather " "output\")." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The pointer I points to an array of I structures, described in " "B(3type)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call works just like B(2) except that multiple " "buffers are filled." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call works just like B(2) except that " "multiple buffers are written out." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Buffers are processed in array order. This means that B() " "completely fills I before proceeding to I, and so on. (If " "there is insufficient data, then not all buffers pointed to by I may be " "filled.) Similarly, B() writes out the entire contents of " "I before proceeding to I, and so on." msgstr "" #. Regarding atomicity, see https://bugzilla.kernel.org/show_bug.cgi?id=10596 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The data transfers performed by B() and B() are atomic: the " "data written by B() is written as a single block that is not " "intermingled with output from writes in other processes; analogously, " "B() is guaranteed to read a contiguous block of data from the file, " "regardless of read operations performed in other threads or processes that " "have file descriptors referring to the same open file description (see " "B(2))." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "preadv() and pwritev()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call combines the functionality of B() and " "B(2). It performs the same task as B(), but adds a fourth " "argument, I, which specifies the file offset at which the input " "operation is to be performed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call combines the functionality of B() and " "B(2). It performs the same task as B(), but adds a fourth " "argument, I, which specifies the file offset at which the output " "operation is to be performed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file offset is not changed by these system calls. The file referred to " "by I must be capable of seeking." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "preadv2() and pwritev2()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "These system calls are similar to B() and B() calls, but " "add a fifth argument, I, which modifies the behavior on a per-call " "basis." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Unlike B() and B(), if the I argument is -1, then " "the current file offset is used and updated." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument contains a bitwise OR of zero or more of the following " "flags:" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.7)" msgstr "" #. commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Provide a per-write equivalent of the B B(2) flag. This " "flag is meaningful only for B(), and its effect applies only to " "the data range written by the system call." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.6)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "High priority read/write. Allows block-based filesystems to use polling of " "the device, which provides lower latency, but may use additional resources. " "(Currently, this feature is usable only on a file descriptor opened using " "the B flag.)" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.7)" msgstr "" #. commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Provide a per-write equivalent of the B B(2) flag. This flag " "is meaningful only for B(), and its effect applies only to the " "data range written by the system call." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.14)" msgstr "" #. commit 3239d834847627b6634a4139cf1dc58f6f137a46 #. commit 91f9943e1c7b6638f27312d03fe71fcc67b23571 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Do not wait for data which is not immediately available. If this flag is " "specified, the B() system call will return instantly if it would " "have to read data from the backing storage or wait for a lock. If some data " "was successfully read, it will return the number of bytes read. If no bytes " "were read, it will return -1 and set I to B (but see " "B). Currently, this flag is meaningful only for B()." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.16)" msgstr "" #. commit e1fc742e14e01d84d9693c4aca4ab23da65811fb #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Provide a per-write equivalent of the B B(2) flag. This " "flag is meaningful only for B(), and its effect applies only to " "the data range written by the system call. The I argument does not " "affect the write operation; the data is always appended to the end of the " "file. However, if the I argument is -1, the current file offset is " "updated." msgstr "" #. type: TP #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.9)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Do not honor the B B(2) flag. This flag is meaningful only " "for B(). Historically, Linux honored B flag if set and " "ignored the offset argument, which is a bug. For B(), the " "I argument is honored as expected if B flag is set, " "the same as if B flag were not set." msgstr "" #. type: TP #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.11)" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Requires that writes to regular files in block-based filesystems be issued " "with torn-write protection. Torn-write protection means that for a power or " "any other hardware failure, all or none of the data from the write will be " "stored, but never a mix of old and new data. This flag is meaningful only " "for B(), and its effect applies only to the data range written by " "the system call. The total write length must be power-of-2 and must be " "sized in the range [I, " "I]. The write must be at a naturally-aligned " "offset within the file with respect to the total write length. For example, " "a write of length 32KiB at a file offset of 32KiB is permitted, however a " "write of length 32KiB at a file offset of 48KiB is not permitted. The upper " "limit of I for B() is given by the value in " "I Torn-write protection only works with " "B flag, that is, buffered writes are not supported. To guarantee " "consistency from the write between a file's in-core state with the storage " "device, B or B must be specified for B(2). The same " "synchronized I/O guarantees as described in B(2) are provided when " "these flags or their equivalent flags and system calls are used (e.g., if " "B is specified for B())." msgstr "" #. type: TP #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.14)" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Reads or writes to a regular file will prune instantiated page cache content " "when the operation completes. This is different than normal buffered I/O, " "where the data usually remains in cache until such time that it gets " "reclaimed due to memory pressure. If ranges of the read or written I/O were " "already in cache before this read or write, then those ranges will not be " "pruned at I/O completion time." msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Additionally, any range dirtied by a write operation with B " "set will get kicked off for writeback. This is similar to calling " "B(2) with I to start writeback on " "the given range. B is a hint, or best effort, where no hard " "guarantees are given on the state of the page cache once the operation " "completes." msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If used on a file system or block device that doesn't support it, it will " "return -1, and I will be set to B." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B(), B(), and B() return the number of " "bytes read; B(), B(), and B() return the number " "of bytes written." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that it is not an error for a successful call to transfer fewer bytes " "than requested (see B(2) and B(2))." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "On error, -1 is returned, and I is set to indicate the error." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The errors are as given for B(2) and B(2). Furthermore, " "B(), B(), B(), and B() can also fail " "for the same reasons as B(2). Additionally, the following errors are " "defined:" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The sum of the I values overflows an I value." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If B is specified, the combination of the sum of the I " "values and the I value does not comply with the length and offset " "torn-write protection rules." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The vector count, I, is less than zero or greater than the permitted " "maximum. If B is specified, this maximum is given by the " "I value from I" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "B was set in I and the file doesn't support it." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "An unknown flag is specified in I." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "VERSIONS" msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "C library/kernel differences" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The raw B() and B() system calls have call signatures " "that differ slightly from that of the corresponding GNU C library wrapper " "functions shown in the SYNOPSIS. The final argument, I, is unpacked " "by the wrapper functions into two arguments in the system calls:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B< unsigned long >IB<, unsigned long >I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "These arguments contain, respectively, the low order and high order 32 bits " "of I." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "POSIX.1-2024." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "BSD." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "" #. #-#-#-#-# archlinux: readv.2.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc5 used #. .I size_t #. as the type of the #. .I iovcnt #. argument, #. and #. .I int #. as the return type. #. The readv/writev system calls were buggy before Linux 1.3.40. #. (Says release.libc.) #. type: Plain text #. #-#-#-#-# debian-trixie: readv.2.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc5 used \fIsize_t\fP as the type of the \fIiovcnt\fP argument, #. and \fIint\fP as the return type. #. The readv/writev system calls were buggy before Linux 1.3.40. #. (Says release.libc.) #. type: Plain text #. #-#-#-#-# debian-unstable: readv.2.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc5 used #. .I size_t #. as the type of the #. .I iovcnt #. argument, #. and #. .I int #. as the return type. #. The readv/writev system calls were buggy before Linux 1.3.40. #. (Says release.libc.) #. type: Plain text #. #-#-#-#-# fedora-44: readv.2.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc5 used \fIsize_t\fP as the type of the \fIiovcnt\fP argument, #. and \fIint\fP as the return type. #. The readv/writev system calls were buggy before Linux 1.3.40. #. (Says release.libc.) #. type: Plain text #. #-#-#-#-# fedora-rawhide: readv.2.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc5 used \fIsize_t\fP as the type of the \fIiovcnt\fP argument, #. and \fIint\fP as the return type. #. The readv/writev system calls were buggy before Linux 1.3.40. #. (Says release.libc.) #. type: Plain text #. #-#-#-#-# mageia-cauldron: readv.2.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc5 used #. .I size_t #. as the type of the #. .I iovcnt #. argument, #. and #. .I int #. as the return type. #. The readv/writev system calls were buggy before Linux 1.3.40. #. (Says release.libc.) #. type: Plain text #. #-#-#-#-# opensuse-leap-16-1: readv.2.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc5 used #. .I size_t #. as the type of the #. .I iovcnt #. argument, #. and #. .I int #. as the return type. #. The readv/writev system calls were buggy before Linux 1.3.40. #. (Says release.libc.) #. type: Plain text #. #-#-#-#-# opensuse-tumbleweed: readv.2.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc5 used #. .I size_t #. as the type of the #. .I iovcnt #. argument, #. and #. .I int #. as the return type. #. The readv/writev system calls were buggy before Linux 1.3.40. #. (Says release.libc.) #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)." msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 2.6.30, glibc 2.10." msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 4.6, glibc 2.26." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Historical C library/kernel differences" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "To deal with the fact that B was so low on early versions of Linux, " "the glibc wrapper functions for B() and B() did some extra " "work if they detected that the underlying kernel system call failed because " "this limit was exceeded. In the case of B(), the wrapper function " "allocated a temporary buffer large enough for all of the items specified by " "I, passed that buffer in a call to B(2), copied data from the " "buffer to the locations specified by the I fields of the elements " "of I, and then freed the buffer. The wrapper function for B() " "performed the analogous task using a temporary buffer and a call to " "B(2)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The need for this extra effort in the glibc wrapper functions went away with " "Linux 2.2 and later. However, glibc continued to provide this behavior " "until glibc 2.10. Starting with glibc 2.9, the wrapper functions provide " "this behavior only if the library detects that the system is running a Linux " "kernel older than Linux 2.6.18 (an arbitrarily selected kernel version). " "And since glibc 2.20 (which requires a minimum of Linux 2.6.32), the glibc " "wrapper functions always just directly invoke the system calls." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "POSIX.1 allows an implementation to place a limit on the number of items " "that can be passed in I. An implementation can advertise its limit by " "defining B in Ilimits.hE> or at run time via the return " "value from I. On modern Linux systems, the limit is " "1024. Back in Linux 2.0 days, this limit was 16." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "" #. See #. #. The bug was introduced in #. efa8480a831 fs: RWF_NOWAIT should imply IOCB_NOIO #. and fixed in #. 06c0444290 mm/filemap.c: generic_file_buffered_read() now uses find_get_pages_contig #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Linux 5.9 and Linux 5.10 have a bug where B() with the " "B flag may return 0 even when not at end of file." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The following code sample demonstrates the use of B():" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "char *str0 = \"hello \";\n" "char *str1 = \"world\\[rs]n\";\n" "ssize_t nwritten;\n" "struct iovec iov[2];\n" "\\&\n" "iov[0].iov_base = str0;\n" "iov[0].iov_len = strlen(str0);\n" "iov[1].iov_base = str1;\n" "iov[1].iov_len = strlen(str1);\n" "\\&\n" "nwritten = writev(STDOUT_FILENO, iov, 2);\n" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(2), B(2), B(2)" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "" #. type: Plain text #: debian-trixie msgid "" "The vector count, I, is less than zero or greater than the permitted " "maximum." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "POSIX.1-2008." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "B(), B(): Linux 2.6.30, glibc 2.10." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "B(), B(): Linux 4.6, glibc 2.26." msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2025-01-04" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "" #. type: Plain text #: fedora-44 fedora-rawhide msgid "" "Requires that writes to regular files in block-based filesystems be issued " "with torn-write protection. Torn-write protection means that for a power or " "any other hardware failure, all or none of the data from the write will be " "stored, but never a mix of old and new data. This flag is meaningful only " "for B(), and its effect applies only to the data range written by " "the system call. The total write length must be power-of-2 and must be " "sized in the range [I, " "I]. The write must be at a naturally-aligned " "offset within the file with respect to the total write length. For example, " "a write of length 32KiB at a file offset of 32KiB is permitted, however a " "write of length 32KiB at a file offset of 48KiB is not permitted. The upper " "limit of I for B() is given by the value in " "I Torn-write protection only works with " "B flag, i.e. buffered writes are not supported. To guarantee " "consistency from the write between a file's in-core state with the storage " "device, B or B must be specified for B(2). The same " "synchronized I/O guarantees as described in B(2) are provided when " "these flags or their equivalent flags and system calls are used (e.g., if " "B is specified for B())." msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "2026-02-08" msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr ""