diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-07-03 15:33:23 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-08-21 15:37:45 -0300 |
commit | 19926de954bf89feb443aadd4db47a4e912b97b1 (patch) | |
tree | a9112ddb6db33274f5b609458695c9ce2723e8c1 /sysdeps/generic | |
parent | df1deda60050cc8a68156cf6c81ad42363647a29 (diff) | |
download | glibc-19926de954bf89feb443aadd4db47a4e912b97b1.tar glibc-19926de954bf89feb443aadd4db47a4e912b97b1.tar.gz glibc-19926de954bf89feb443aadd4db47a4e912b97b1.tar.bz2 glibc-19926de954bf89feb443aadd4db47a4e912b97b1.zip |
Consolidate non cancellable writev call
This patch consolidates all the non cancellable writev calls to use
the __writev_nocancel identifier. For non cancellable targets it will
be just a macro to call the default respective symbol while on Linux
will be a internal one.
Checked on x86_64-linux-gnu, x86_64-linux-gnu-x32, and i686-linux-gnu.
* gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
__writev_nocancel_nostatus.
(write_call_graph): Likewise.
(write_bb_counts): Likewise.
* resolv/herror.c (herror): Likewise.
* sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
macro.
(__writev_nocancel_nostatus): New macro.
* sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
Remove macro.
(__writev_nocancel_nostatus): New function.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/not-cancel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/not-cancel.h b/sysdeps/generic/not-cancel.h index ee9988a990..e3ed0e6e65 100644 --- a/sysdeps/generic/not-cancel.h +++ b/sysdeps/generic/not-cancel.h @@ -34,7 +34,7 @@ __read (fd, buf, n) #define __write_nocancel(fd, buf, n) \ __write (fd, buf, n) -#define writev_not_cancel_no_status(fd, iov, n) \ +#define __writev_nocancel_nostatus(fd, iov, n) \ (void) __writev (fd, iov, n) #define fcntl_not_cancel(fd, cmd, val) \ __fcntl (fd, cmd, val) |