diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-14 17:44:57 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-14 17:45:04 +0000 |
commit | c1dcc541131bb090ddc792139545ffcd2511a1dc (patch) | |
tree | f062f6c64a1acf12c1ddda32bbd197083c424c0d /sysdeps/posix | |
parent | 0c46891442c0b4ca593691f62ad1213e022ff00b (diff) | |
download | glibc-c1dcc541131bb090ddc792139545ffcd2511a1dc.zip glibc-c1dcc541131bb090ddc792139545ffcd2511a1dc.tar.gz glibc-c1dcc541131bb090ddc792139545ffcd2511a1dc.tar.bz2 |
hurd: Fix __writev_nocancel_nostatus
* sysdeps/mach/hurd/Makefile [subdir=misc] (sysdep_routines): Add
writev_nocancel writev_nocancel_nostatus.
* sysdeps/mach/hurd/not-cancel.h (__writev_nocancel_nostatus): Replace
macro with function declaration (with hidden prototype in libc).
(__writev_nocancel): New function declaration (with hidden prototype in libc).
* sysdeps/mach/hurd/writev_nocancel_nostatus.c: New file.
* sysdeps/posix/writev_nocancel.c: New file, includes writev.c to make a
nocancel variant that calls __write_nocancel.
* sysdeps/posix/writev.c (writev): Do not define alias if __writev is
renamed.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/writev.c | 2 | ||||
-rw-r--r-- | sysdeps/posix/writev_nocancel.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/posix/writev.c b/sysdeps/posix/writev.c index a9942e4..1a45779 100644 --- a/sysdeps/posix/writev.c +++ b/sysdeps/posix/writev.c @@ -89,4 +89,6 @@ __writev (int fd, const struct iovec *vector, int count) return bytes_written; } libc_hidden_def (__writev) +#ifndef __writev weak_alias (__writev, writev) +#endif diff --git a/sysdeps/posix/writev_nocancel.c b/sysdeps/posix/writev_nocancel.c new file mode 100644 index 0000000..5379e9e --- /dev/null +++ b/sysdeps/posix/writev_nocancel.c @@ -0,0 +1,4 @@ +#include <not-cancel.h> +#define __writev __writev_nocancel +#define __write __write_nocancel +#include <sysdeps/posix/writev.c> |