mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
linux: Remove INTERNAL_SYSCALL_DECL
With all Linux ABIs using the expected Linux kABI to indicate syscalls errors, the INTERNAL_SYSCALL_DECL is an empty declaration on all ports. This patch removes the 'err' argument on INTERNAL_SYSCALL* macro and remove the INTERNAL_SYSCALL_DECL usage. Checked with a build against all affected ABIs.
This commit is contained in:
@ -22,12 +22,11 @@
|
||||
static bool
|
||||
writev_for_fatal (int fd, const struct iovec *iov, size_t niov, size_t total)
|
||||
{
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
ssize_t cnt;
|
||||
do
|
||||
cnt = INTERNAL_SYSCALL (writev, err, 3, fd, iov, niov);
|
||||
while (INTERNAL_SYSCALL_ERROR_P (cnt, err)
|
||||
&& INTERNAL_SYSCALL_ERRNO (cnt, err) == EINTR);
|
||||
cnt = INTERNAL_SYSCALL_CALL (writev, fd, iov, niov);
|
||||
while (INTERNAL_SYSCALL_ERROR_P (cnt)
|
||||
&& INTERNAL_SYSCALL_ERRNO (cnt) == EINTR);
|
||||
return cnt == total;
|
||||
}
|
||||
#define WRITEV_FOR_FATAL writev_for_fatal
|
||||
|
Reference in New Issue
Block a user