haiku/headers/posix/sys
Niels Sascha Reedijk fc03b45a71 POSIX: make readv() and writev() conform to IEEE Std 1003.1-2001
The standardized version of readv() and writev() take an int as the third
parameter. Arguably a size_t makes more sense, but the standardization bodies
decided otherwise.

The non-standard functions of readv_pos() and writev_pos() have been updated
for consistency. The corresponding _kern_readv() and _kern_writev() internal
functions continue to take the size_t parameter.

The ABI will not change, even though on 64 bit machines the size of the count
parameter will change from 8 to 4 bytes.

The actual use will be slightly different. Like with the size_t argument type,
it will not be possible to give a count lower than 0. If the value is less than
0, then the B_BAD_VALUE/EINVAL error will be set.

Change-Id: I949c8ed67dbc0b4e209768cbdee554c929fc242e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3770
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-03-16 12:03:02 +00:00
..
cdefs.h x86_64: fenv.c needs __weak_reference() 2015-03-27 20:16:57 +01:00
file.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
ioctl.h POSIX: lseek: support SEEK_DATA and SEEK_HOLE constants 2020-11-12 10:42:11 +00:00
ipc.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
mman.h implement mlock(), munlock() 2020-12-03 07:58:05 +00:00
msg.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
param.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
poll.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
resource.h libroot: add [gs]etpriority implementation 2019-01-19 18:31:58 +00:00
select.h <langinfo.h>/<select.h>: don't use C++ comments 2013-06-12 14:55:16 +02:00
sem.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
socket.h Implement MSG_NOSIGNAL 2015-06-10 17:39:53 +02:00
sockio.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
stat.h mknod[at](): moves from unistd.h to sys/stat.h 2014-08-04 19:03:08 +02:00
statvfs.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
time.h libbsd: Move lutimes to bsd compat 2017-11-17 14:27:26 -06:00
timeb.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
times.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
types.h build fixes. 2019-08-27 20:51:51 +02:00
uio.h POSIX: make readv() and writev() conform to IEEE Std 1003.1-2001 2021-03-16 12:03:02 +00:00
un.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
utsname.h Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
wait.h