From patchwork Mon Oct 14 20:56:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 176357 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5014926ill; Mon, 14 Oct 2019 14:01:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyw8b5C4QgtQtErXdYWPfwr3bxFUSdM68VBGgO6SQy1ZP2FlMuapDqkOvq/7b5oznQPcFth X-Received: by 2002:a17:906:6ad7:: with SMTP id q23mr29738456ejs.214.1571086872330; Mon, 14 Oct 2019 14:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571086872; cv=none; d=google.com; s=arc-20160816; b=PrqzEK7C1mHkL5FiWVUUlIWJbcsLuhLBwyLm2/KHnueKLX/4kMCe1ylW+WDEchM2Gh ZdYJ0H25KcuK8JogPW/D7mjIh6Lc9HVT6r0IK6IvZ/r+iAcWbGiTj6qjsrcpaua6tkyF OvGyESpx6e5sW7pjbQqAicwIpXIG/jz+R1LZWlTWvHKp2WlWwSd3I+Lldg+EPkPI1Ccc +kaW9f5luSGLP1j4q/XF+axRq1nZrAL0bdrccp9ZHOGzlOLk0uafNYVs/KT5ydLkbgyO /9m1heKHfCg30zSB8qduGyZMU5y+phIfdFqKACQqTIMJkA2f43MoVakS4jlLNXupV43Y xHbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature; bh=YdTL973BcQ6w73Gw6eb5G26lOlTYR2SWBwFYEf73zjQ=; b=ui+QkP+Yjsn4cKVUn6LENoz2cmz52FtrLNxWtOaRpZk+fF14CQsqmOo/FFXc64XA/M KSzm1uWWPa3GFr5Wl76k3BoQ+QRtUJF+cs4osEAevJXZTEg2ebkWoIfqDV0/tXRYoa7D OV1QNeNDK0tb33cBfSKww9exWsru3Dd81ffd0XwxW0SLpyjL0JHMM5r50VOWcJQcxJh/ stdoBCYLGlZLQuEuJ1fs4fuep2NgZwTdPP0kvGpkM5pVrFzujTBIHXRqlCSTTj49DSyc Xx34nw/R+o9dKLc/znWFgH+A+z0aH9OhalqTO6K9qvSMjIZzHtcHQsasbsisALp0wgOh CCFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=t9eKNJEs; dkim=pass header.i=@linaro.org header.s=google header.b=OEYlK+qV; spf=pass (google.com: domain of libc-alpha-return-105948-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-105948-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id y6si11977977ejj.113.2019.10.14.14.01.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Oct 2019 14:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-105948-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=t9eKNJEs; dkim=pass header.i=@linaro.org header.s=google header.b=OEYlK+qV; spf=pass (google.com: domain of libc-alpha-return-105948-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-105948-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=qdxhwz2pjL6hl/8ApU18pkZTnq8iEsh Rr+9C9og0ccboFSrEoHA8YcF0LJJd3K5W85c1OHi5TYMj9sfg2FjNemJZv6gfyYq NbzyK/O+eLEOKecPUocdFYnReENR95xFBhYJkd3rOdMsIQCwK2x0PpSS+ymwDT6a UI56L4b9jG1s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=DOpyJEA1z71k6+TPF2gfR8eEVRE=; b=t9eKN JEsbUF/oNTGNM8HdZzDKDs6ZMvOAYhwmRF25LFhP4sOshKPBFo1/DxPSVxHXkzJk 71Sr0ZcZfla2hMFnA3X4GZXVx4Y9hKmRhBjy8rMzDWBIVT4NcR3Pbme4ryPYXUP/ wgMPbRJqAeq4R4lXT98fHWL7RsUx+/+SrKcHE0= Received: (qmail 119590 invoked by alias); 14 Oct 2019 20:58:00 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 117950 invoked by uid 89); 14 Oct 2019 20:57:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=param.h, paramh, Receive, UD:param.h X-HELO: mail-qk1-f170.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=YdTL973BcQ6w73Gw6eb5G26lOlTYR2SWBwFYEf73zjQ=; b=OEYlK+qVgs4lKUbsuwKf95WfO9g4+BBrlUGLmOdpMyWmrReX80xY2pWzBdGD+Aqfiw RUnioof7jwAWnn1jpjyWqoCOKFae66M/JiQPEIzI7m7nHDmJeDMScVKangCxMxvzc0P7 wDndJre9kltk9DzX/G3cXFhSVKlrZR2X9YeIFoiw1uC4NWWzc49uwZEGyf5EvsDctASi gaupUOj9+CbEmWjmTml9OQNBcFfmrWKI9wYFz4MhPDMNVB4R4GiWK9UNePUh0HHz1FXU 48zp7Rn0/Z0RvVyUi91B9VJW4d74S2aQVHM+iH8jF++lbo1IXK5Wi/kSuSTHOOZX8uo/ 7ORQ== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v3 21/21] Remove sysdep-cancel header Date: Mon, 14 Oct 2019 17:56:56 -0300 Message-Id: <20191014205656.29834-22-adhemerval.zanella@linaro.org> In-Reply-To: <20191014205656.29834-1-adhemerval.zanella@linaro.org> References: <20191014205656.29834-1-adhemerval.zanella@linaro.org> Now that single-thread optimization is provided by single-thread.h header and the enable/disable asynchronous cancellation functions are no longer used on cancellable syscalls, the header can be removed. Checked with a build for all major Linux architectures and for hurd. --- elf/dl-close.c | 1 - elf/dl-lookup.c | 1 - elf/dl-open.c | 1 - elf/dl-runtime.c | 1 - elf/dl-scope.c | 1 - elf/dl-sym.c | 1 - io/creat.c | 1 - io/ppoll.c | 1 - malloc/malloc.c | 3 - misc/pselect.c | 1 - nptl/thrd_sleep.c | 1 - sysdeps/generic/sysdep-cancel.h | 5 -- sysdeps/mach/hurd/sysdep-cancel.h | 8 --- sysdeps/mips/dl-trampoline.c | 1 - sysdeps/posix/open64.c | 1 - sysdeps/posix/pause.c | 1 - sysdeps/posix/sigpause.c | 1 - sysdeps/posix/sigwait.c | 1 - sysdeps/posix/waitid.c | 1 - sysdeps/unix/clock_nanosleep.c | 1 - sysdeps/unix/sysv/linux/accept.c | 1 - sysdeps/unix/sysv/linux/accept4.c | 1 - sysdeps/unix/sysv/linux/access.c | 2 +- sysdeps/unix/sysv/linux/alpha/select.c | 1 - sysdeps/unix/sysv/linux/clock_nanosleep.c | 1 - sysdeps/unix/sysv/linux/close.c | 1 - sysdeps/unix/sysv/linux/close_nocancel.c | 1 - sysdeps/unix/sysv/linux/connect.c | 1 - sysdeps/unix/sysv/linux/copy_file_range.c | 1 - sysdeps/unix/sysv/linux/creat.c | 1 - sysdeps/unix/sysv/linux/creat64.c | 1 - sysdeps/unix/sysv/linux/epoll_pwait.c | 1 - sysdeps/unix/sysv/linux/epoll_wait.c | 1 - sysdeps/unix/sysv/linux/fallocate.c | 1 - sysdeps/unix/sysv/linux/fallocate64.c | 1 - sysdeps/unix/sysv/linux/fcntl.c | 1 - sysdeps/unix/sysv/linux/fcntl64.c | 1 - sysdeps/unix/sysv/linux/fcntl_nocancel.c | 1 - sysdeps/unix/sysv/linux/fdatasync.c | 2 +- sysdeps/unix/sysv/linux/fsync.c | 2 +- sysdeps/unix/sysv/linux/futex-internal.h | 1 - sysdeps/unix/sysv/linux/getrandom.c | 1 - sysdeps/unix/sysv/linux/lowlevellock-futex.h | 1 - sysdeps/unix/sysv/linux/mq_timedreceive.c | 2 +- sysdeps/unix/sysv/linux/mq_timedsend.c | 2 +- sysdeps/unix/sysv/linux/msgrcv.c | 2 +- sysdeps/unix/sysv/linux/msgsnd.c | 2 +- sysdeps/unix/sysv/linux/msync.c | 2 +- sysdeps/unix/sysv/linux/nanosleep.c | 3 +- sysdeps/unix/sysv/linux/nanosleep_nocancel.c | 1 - sysdeps/unix/sysv/linux/open.c | 3 +- sysdeps/unix/sysv/linux/open64.c | 4 +- sysdeps/unix/sysv/linux/open_by_handle_at.c | 2 +- sysdeps/unix/sysv/linux/open_nocancel.c | 1 - sysdeps/unix/sysv/linux/openat.c | 3 +- sysdeps/unix/sysv/linux/openat64.c | 3 +- sysdeps/unix/sysv/linux/openat64_nocancel.c | 1 - sysdeps/unix/sysv/linux/openat_nocancel.c | 1 - sysdeps/unix/sysv/linux/pause.c | 2 +- sysdeps/unix/sysv/linux/pause_nocancel.c | 1 - sysdeps/unix/sysv/linux/poll.c | 1 - sysdeps/unix/sysv/linux/ppoll.c | 2 - sysdeps/unix/sysv/linux/pread.c | 2 +- sysdeps/unix/sysv/linux/pread64.c | 2 +- sysdeps/unix/sysv/linux/preadv.c | 2 +- sysdeps/unix/sysv/linux/preadv2.c | 2 +- sysdeps/unix/sysv/linux/preadv64.c | 2 +- sysdeps/unix/sysv/linux/preadv64v2.c | 2 +- sysdeps/unix/sysv/linux/pselect.c | 2 - sysdeps/unix/sysv/linux/pwrite.c | 2 +- sysdeps/unix/sysv/linux/pwrite64.c | 2 +- sysdeps/unix/sysv/linux/pwritev.c | 2 +- sysdeps/unix/sysv/linux/pwritev2.c | 2 +- sysdeps/unix/sysv/linux/pwritev64.c | 2 +- sysdeps/unix/sysv/linux/pwritev64v2.c | 2 +- sysdeps/unix/sysv/linux/read.c | 2 +- sysdeps/unix/sysv/linux/read_nocancel.c | 1 - sysdeps/unix/sysv/linux/readv.c | 2 +- sysdeps/unix/sysv/linux/recv.c | 1 - sysdeps/unix/sysv/linux/recvfrom.c | 1 - sysdeps/unix/sysv/linux/recvmmsg.c | 1 - sysdeps/unix/sysv/linux/recvmsg.c | 1 - sysdeps/unix/sysv/linux/select.c | 1 - sysdeps/unix/sysv/linux/send.c | 1 - sysdeps/unix/sysv/linux/sendmmsg.c | 1 - sysdeps/unix/sysv/linux/sendmsg.c | 1 - sysdeps/unix/sysv/linux/sendto.c | 1 - sysdeps/unix/sysv/linux/sigsuspend.c | 2 +- sysdeps/unix/sysv/linux/sigtimedwait.c | 1 - sysdeps/unix/sysv/linux/sigwait.c | 1 - sysdeps/unix/sysv/linux/sigwaitinfo.c | 1 - sysdeps/unix/sysv/linux/socketcall.h | 2 + sysdeps/unix/sysv/linux/splice.c | 2 +- sysdeps/unix/sysv/linux/sync_file_range.c | 2 +- sysdeps/unix/sysv/linux/sysdep-cancel.h | 67 -------------------- sysdeps/unix/sysv/linux/tcdrain.c | 1 - sysdeps/unix/sysv/linux/tee.c | 2 +- sysdeps/unix/sysv/linux/timer_routines.c | 1 - sysdeps/unix/sysv/linux/vmsplice.c | 2 +- sysdeps/unix/sysv/linux/wait.c | 1 - sysdeps/unix/sysv/linux/waitid.c | 1 - sysdeps/unix/sysv/linux/waitpid.c | 1 - sysdeps/unix/sysv/linux/waitpid_nocancel.c | 1 - sysdeps/unix/sysv/linux/write.c | 2 +- sysdeps/unix/sysv/linux/write_nocancel.c | 1 - sysdeps/unix/sysv/linux/writev.c | 2 +- 106 files changed, 38 insertions(+), 192 deletions(-) delete mode 100644 sysdeps/generic/sysdep-cancel.h delete mode 100644 sysdeps/mach/hurd/sysdep-cancel.h delete mode 100644 sysdeps/unix/sysv/linux/sysdep-cancel.h -- 2.17.1 diff --git a/elf/dl-close.c b/elf/dl-close.c index de91c28f72..dfe2bc9be4 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c index fd44cd4101..ff5c811550 100644 --- a/elf/dl-lookup.c +++ b/elf/dl-lookup.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include diff --git a/elf/dl-open.c b/elf/dl-open.c index a9fd4cbced..2b35209dfd 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c index 342b794f54..9dedd193de 100644 --- a/elf/dl-runtime.c +++ b/elf/dl-runtime.c @@ -23,7 +23,6 @@ #include #include #include -#include #include "dynamic-link.h" #include #include diff --git a/elf/dl-scope.c b/elf/dl-scope.c index f4ba0898df..dff4b1b51b 100644 --- a/elf/dl-scope.c +++ b/elf/dl-scope.c @@ -18,7 +18,6 @@ #include #include -#include int diff --git a/elf/dl-sym.c b/elf/dl-sym.c index 8209342b13..af1f8549a3 100644 --- a/elf/dl-sym.c +++ b/elf/dl-sym.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include diff --git a/io/creat.c b/io/creat.c index 8e4f0cf2c4..3a93b0947f 100644 --- a/io/creat.c +++ b/io/creat.c @@ -17,7 +17,6 @@ #include #include -#include #undef creat diff --git a/io/ppoll.c b/io/ppoll.c index a387924eeb..f66913f7c7 100644 --- a/io/ppoll.c +++ b/io/ppoll.c @@ -21,7 +21,6 @@ #include #include /* For NULL. */ #include -#include int diff --git a/malloc/malloc.c b/malloc/malloc.c index 5d3e82a8f6..69dac97f28 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -244,9 +244,6 @@ #include -/* For SINGLE_THREAD_P. */ -#include - /* Debugging: diff --git a/misc/pselect.c b/misc/pselect.c index 76ded850a5..f3939c91a2 100644 --- a/misc/pselect.c +++ b/misc/pselect.c @@ -21,7 +21,6 @@ #include /* For NULL. */ #include #include -#include /* Check the first NFDS descriptors each in READFDS (if not NULL) for read diff --git a/nptl/thrd_sleep.c b/nptl/thrd_sleep.c index 75c0d53f3e..cfae149bf5 100644 --- a/nptl/thrd_sleep.c +++ b/nptl/thrd_sleep.c @@ -17,7 +17,6 @@ . */ #include -#include #include "thrd_priv.h" diff --git a/sysdeps/generic/sysdep-cancel.h b/sysdeps/generic/sysdep-cancel.h deleted file mode 100644 index 5c84b4499a..0000000000 --- a/sysdeps/generic/sysdep-cancel.h +++ /dev/null @@ -1,5 +0,0 @@ -#include - -/* No multi-thread handling enabled. */ -#define SINGLE_THREAD_P (1) -#define RTLD_SINGLE_THREAD_P (1) diff --git a/sysdeps/mach/hurd/sysdep-cancel.h b/sysdeps/mach/hurd/sysdep-cancel.h deleted file mode 100644 index f686a39024..0000000000 --- a/sysdeps/mach/hurd/sysdep-cancel.h +++ /dev/null @@ -1,8 +0,0 @@ -#include - -/* Always multi-thread (since there's at least the sig handler), but no - handling enabled. */ -#define SINGLE_THREAD_P (0) -#define RTLD_SINGLE_THREAD_P (0) -#define LIBC_CANCEL_ASYNC() 0 /* Just a dummy value. */ -#define LIBC_CANCEL_RESET(val) ((void)(val)) /* Nothing, but evaluate it. */ diff --git a/sysdeps/mips/dl-trampoline.c b/sysdeps/mips/dl-trampoline.c index 74a2bffdc3..9655ec6de1 100644 --- a/sysdeps/mips/dl-trampoline.c +++ b/sysdeps/mips/dl-trampoline.c @@ -24,7 +24,6 @@ #include #include #include -#include /* Get link map for callers object containing STUB_PC. */ static inline struct link_map * diff --git a/sysdeps/posix/open64.c b/sysdeps/posix/open64.c index d163b590bc..34b78a65ae 100644 --- a/sysdeps/posix/open64.c +++ b/sysdeps/posix/open64.c @@ -17,7 +17,6 @@ #include #include -#include /* Open FILE with access OFLAG. If O_CREAT or O_TMPFILE is in OFLAG, a third argument is the file protection. */ diff --git a/sysdeps/posix/pause.c b/sysdeps/posix/pause.c index a3c050dc77..601a596b79 100644 --- a/sysdeps/posix/pause.c +++ b/sysdeps/posix/pause.c @@ -18,7 +18,6 @@ #include #include -#include #include /* Suspend the process until a signal arrives. diff --git a/sysdeps/posix/sigpause.c b/sysdeps/posix/sigpause.c index 2d11e011fa..a9e1576c46 100644 --- a/sysdeps/posix/sigpause.c +++ b/sysdeps/posix/sigpause.c @@ -22,7 +22,6 @@ #undef sigpause #include -#include int __sigpause (int sig_or_mask, int is_sig) diff --git a/sysdeps/posix/sigwait.c b/sysdeps/posix/sigwait.c index 675e59fd7a..886fbab66f 100644 --- a/sysdeps/posix/sigwait.c +++ b/sysdeps/posix/sigwait.c @@ -20,7 +20,6 @@ #include #include #include /* For NULL. */ -#include /* This is our dummy signal handler we use here. */ static void ignore_signal (int sig); diff --git a/sysdeps/posix/waitid.c b/sysdeps/posix/waitid.c index 0942623553..3dc0a7cb57 100644 --- a/sysdeps/posix/waitid.c +++ b/sysdeps/posix/waitid.c @@ -24,7 +24,6 @@ #include #include #include -#include #ifdef DO_WAITID diff --git a/sysdeps/unix/clock_nanosleep.c b/sysdeps/unix/clock_nanosleep.c index 95b4956b12..014a24ab14 100644 --- a/sysdeps/unix/clock_nanosleep.c +++ b/sysdeps/unix/clock_nanosleep.c @@ -19,7 +19,6 @@ #include #include #include -#include #include /* This implementation assumes that these is only a `nanosleep' system diff --git a/sysdeps/unix/sysv/linux/accept.c b/sysdeps/unix/sysv/linux/accept.c index 9fb6966dff..6dc00deb97 100644 --- a/sysdeps/unix/sysv/linux/accept.c +++ b/sysdeps/unix/sysv/linux/accept.c @@ -16,7 +16,6 @@ . */ #include -#include #include int diff --git a/sysdeps/unix/sysv/linux/accept4.c b/sysdeps/unix/sysv/linux/accept4.c index 963be98d43..e305ef42ad 100644 --- a/sysdeps/unix/sysv/linux/accept4.c +++ b/sysdeps/unix/sysv/linux/accept4.c @@ -20,7 +20,6 @@ #include #include -#include #include #include #include diff --git a/sysdeps/unix/sysv/linux/access.c b/sysdeps/unix/sysv/linux/access.c index 690c99a856..ef34824fb1 100644 --- a/sysdeps/unix/sysv/linux/access.c +++ b/sysdeps/unix/sysv/linux/access.c @@ -18,7 +18,7 @@ #include #include -#include +#include int __access (const char *file, int type) diff --git a/sysdeps/unix/sysv/linux/alpha/select.c b/sysdeps/unix/sysv/linux/alpha/select.c index 2c4fc4c160..e4ed853df9 100644 --- a/sysdeps/unix/sysv/linux/alpha/select.c +++ b/sysdeps/unix/sysv/linux/alpha/select.c @@ -20,7 +20,6 @@ #include #include #include -#include #include int diff --git a/sysdeps/unix/sysv/linux/clock_nanosleep.c b/sysdeps/unix/sysv/linux/clock_nanosleep.c index ddcdddcd5d..0146bc6a37 100644 --- a/sysdeps/unix/sysv/linux/clock_nanosleep.c +++ b/sysdeps/unix/sysv/linux/clock_nanosleep.c @@ -18,7 +18,6 @@ #include #include -#include #include "kernel-posix-cpu-timers.h" #include diff --git a/sysdeps/unix/sysv/linux/close.c b/sysdeps/unix/sysv/linux/close.c index 0e387a340a..58818eadfd 100644 --- a/sysdeps/unix/sysv/linux/close.c +++ b/sysdeps/unix/sysv/linux/close.c @@ -17,7 +17,6 @@ . */ #include -#include #include /* Close the file descriptor FD. */ diff --git a/sysdeps/unix/sysv/linux/close_nocancel.c b/sysdeps/unix/sysv/linux/close_nocancel.c index bb288199e6..171dfc315a 100644 --- a/sysdeps/unix/sysv/linux/close_nocancel.c +++ b/sysdeps/unix/sysv/linux/close_nocancel.c @@ -17,7 +17,6 @@ . */ #include -#include #include int diff --git a/sysdeps/unix/sysv/linux/connect.c b/sysdeps/unix/sysv/linux/connect.c index 4ada43037d..ec95e4a444 100644 --- a/sysdeps/unix/sysv/linux/connect.c +++ b/sysdeps/unix/sysv/linux/connect.c @@ -16,7 +16,6 @@ . */ #include -#include #include int diff --git a/sysdeps/unix/sysv/linux/copy_file_range.c b/sysdeps/unix/sysv/linux/copy_file_range.c index 9bbed6bd9e..9361b8e8e3 100644 --- a/sysdeps/unix/sysv/linux/copy_file_range.c +++ b/sysdeps/unix/sysv/linux/copy_file_range.c @@ -17,7 +17,6 @@ . */ #include -#include #include ssize_t diff --git a/sysdeps/unix/sysv/linux/creat.c b/sysdeps/unix/sysv/linux/creat.c index e55514999e..35ad07594d 100644 --- a/sysdeps/unix/sysv/linux/creat.c +++ b/sysdeps/unix/sysv/linux/creat.c @@ -19,7 +19,6 @@ #include #include -#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/creat64.c b/sysdeps/unix/sysv/linux/creat64.c index 6b95e7e6de..721ae13632 100644 --- a/sysdeps/unix/sysv/linux/creat64.c +++ b/sysdeps/unix/sysv/linux/creat64.c @@ -18,7 +18,6 @@ #include #include -#include /* Create FILE with protections MODE. */ int diff --git a/sysdeps/unix/sysv/linux/epoll_pwait.c b/sysdeps/unix/sysv/linux/epoll_pwait.c index 74d845f436..ab7edb4b69 100644 --- a/sysdeps/unix/sysv/linux/epoll_pwait.c +++ b/sysdeps/unix/sysv/linux/epoll_pwait.c @@ -20,7 +20,6 @@ #include #include -#include #include #ifdef __NR_epoll_pwait diff --git a/sysdeps/unix/sysv/linux/epoll_wait.c b/sysdeps/unix/sysv/linux/epoll_wait.c index 32406d4c3d..59729904e2 100644 --- a/sysdeps/unix/sysv/linux/epoll_wait.c +++ b/sysdeps/unix/sysv/linux/epoll_wait.c @@ -21,7 +21,6 @@ #include #include -#include int epoll_wait (int epfd, struct epoll_event *events, int maxevents, int timeout) diff --git a/sysdeps/unix/sysv/linux/fallocate.c b/sysdeps/unix/sysv/linux/fallocate.c index bf1eefbd53..784fb09d62 100644 --- a/sysdeps/unix/sysv/linux/fallocate.c +++ b/sysdeps/unix/sysv/linux/fallocate.c @@ -17,7 +17,6 @@ #include #include -#include #ifndef __OFF_T_MATCHES_OFF64_T /* Reserve storage for the data of the file associated with FD. */ diff --git a/sysdeps/unix/sysv/linux/fallocate64.c b/sysdeps/unix/sysv/linux/fallocate64.c index 3ffc4bcdda..b803b28508 100644 --- a/sysdeps/unix/sysv/linux/fallocate64.c +++ b/sysdeps/unix/sysv/linux/fallocate64.c @@ -17,7 +17,6 @@ #include #include -#include /* Reserve storage for the data of the file associated with FD. */ diff --git a/sysdeps/unix/sysv/linux/fcntl.c b/sysdeps/unix/sysv/linux/fcntl.c index 48bda0db4e..19d688bed7 100644 --- a/sysdeps/unix/sysv/linux/fcntl.c +++ b/sysdeps/unix/sysv/linux/fcntl.c @@ -19,7 +19,6 @@ #include #include #include -#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/fcntl64.c b/sysdeps/unix/sysv/linux/fcntl64.c index c66f1c4ca1..42f0379308 100644 --- a/sysdeps/unix/sysv/linux/fcntl64.c +++ b/sysdeps/unix/sysv/linux/fcntl64.c @@ -23,7 +23,6 @@ #undef __fcntl #include #include -#include #ifndef __NR_fcntl64 # define __NR_fcntl64 __NR_fcntl diff --git a/sysdeps/unix/sysv/linux/fcntl_nocancel.c b/sysdeps/unix/sysv/linux/fcntl_nocancel.c index d2f5c4fe93..187d27fdb1 100644 --- a/sysdeps/unix/sysv/linux/fcntl_nocancel.c +++ b/sysdeps/unix/sysv/linux/fcntl_nocancel.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #ifndef __NR_fcntl64 diff --git a/sysdeps/unix/sysv/linux/fdatasync.c b/sysdeps/unix/sysv/linux/fdatasync.c index c6a02f24e9..afd45005d1 100644 --- a/sysdeps/unix/sysv/linux/fdatasync.c +++ b/sysdeps/unix/sysv/linux/fdatasync.c @@ -18,7 +18,7 @@ . */ #include -#include +#include /* Synchronize at least the data part of a file with the underlying media. */ diff --git a/sysdeps/unix/sysv/linux/fsync.c b/sysdeps/unix/sysv/linux/fsync.c index e4b6ee72ee..24789e2c24 100644 --- a/sysdeps/unix/sysv/linux/fsync.c +++ b/sysdeps/unix/sysv/linux/fsync.c @@ -18,7 +18,7 @@ . */ #include -#include +#include /* Make all changes done to FD actually appear on disk. */ int diff --git a/sysdeps/unix/sysv/linux/futex-internal.h b/sysdeps/unix/sysv/linux/futex-internal.h index b41a4d9919..8b7ad1f0df 100644 --- a/sysdeps/unix/sysv/linux/futex-internal.h +++ b/sysdeps/unix/sysv/linux/futex-internal.h @@ -22,7 +22,6 @@ #include #include #include -#include /* See sysdeps/nptl/futex-internal.h for documentation; this file only contains Linux-specific comments. diff --git a/sysdeps/unix/sysv/linux/getrandom.c b/sysdeps/unix/sysv/linux/getrandom.c index 122c695a3e..c69a4c190f 100644 --- a/sysdeps/unix/sysv/linux/getrandom.c +++ b/sysdeps/unix/sysv/linux/getrandom.c @@ -19,7 +19,6 @@ #include #include #include -#include #ifdef __NR_getrandom /* Write up to LENGTH bytes of randomness starting at BUFFER. diff --git a/sysdeps/unix/sysv/linux/lowlevellock-futex.h b/sysdeps/unix/sysv/linux/lowlevellock-futex.h index bd6d3b7cf7..e43400d070 100644 --- a/sysdeps/unix/sysv/linux/lowlevellock-futex.h +++ b/sysdeps/unix/sysv/linux/lowlevellock-futex.h @@ -21,7 +21,6 @@ #ifndef __ASSEMBLER__ #include -#include #include #endif diff --git a/sysdeps/unix/sysv/linux/mq_timedreceive.c b/sysdeps/unix/sysv/linux/mq_timedreceive.c index 9957de44f7..4417d36ced 100644 --- a/sysdeps/unix/sysv/linux/mq_timedreceive.c +++ b/sysdeps/unix/sysv/linux/mq_timedreceive.c @@ -17,7 +17,7 @@ . */ #include -#include +#include /* Receive the oldest from highest priority messages in message queue MQDES, stop waiting if ABS_TIMEOUT expires. */ diff --git a/sysdeps/unix/sysv/linux/mq_timedsend.c b/sysdeps/unix/sysv/linux/mq_timedsend.c index cd8f77d03f..1befb6b99e 100644 --- a/sysdeps/unix/sysv/linux/mq_timedsend.c +++ b/sysdeps/unix/sysv/linux/mq_timedsend.c @@ -17,7 +17,7 @@ . */ #include -#include +#include /* Add message pointed by MSG_PTR to message queue MQDES, stop blocking on full message queue if ABS_TIMEOUT expires. */ diff --git a/sysdeps/unix/sysv/linux/msgrcv.c b/sysdeps/unix/sysv/linux/msgrcv.c index 1b06bd6d60..277c26d2d1 100644 --- a/sysdeps/unix/sysv/linux/msgrcv.c +++ b/sysdeps/unix/sysv/linux/msgrcv.c @@ -18,7 +18,7 @@ #include #include -#include +#include ssize_t __libc_msgrcv (int msqid, void *msgp, size_t msgsz, long int msgtyp, diff --git a/sysdeps/unix/sysv/linux/msgsnd.c b/sysdeps/unix/sysv/linux/msgsnd.c index 28d46bda25..2a4603ff1e 100644 --- a/sysdeps/unix/sysv/linux/msgsnd.c +++ b/sysdeps/unix/sysv/linux/msgsnd.c @@ -18,7 +18,7 @@ #include #include -#include +#include int __libc_msgsnd (int msqid, const void *msgp, size_t msgsz, int msgflg) diff --git a/sysdeps/unix/sysv/linux/msync.c b/sysdeps/unix/sysv/linux/msync.c index 7a597b1fd9..33a007a64b 100644 --- a/sysdeps/unix/sysv/linux/msync.c +++ b/sysdeps/unix/sysv/linux/msync.c @@ -17,7 +17,7 @@ . */ #include -#include +#include int msync (void *addr, size_t length, int flags) diff --git a/sysdeps/unix/sysv/linux/nanosleep.c b/sysdeps/unix/sysv/linux/nanosleep.c index 6787909248..4e08c675f8 100644 --- a/sysdeps/unix/sysv/linux/nanosleep.c +++ b/sysdeps/unix/sysv/linux/nanosleep.c @@ -17,8 +17,7 @@ . */ #include -#include -#include +#include /* Pause execution for a number of nanoseconds. */ int diff --git a/sysdeps/unix/sysv/linux/nanosleep_nocancel.c b/sysdeps/unix/sysv/linux/nanosleep_nocancel.c index d6442bf4f7..74c999281a 100644 --- a/sysdeps/unix/sysv/linux/nanosleep_nocancel.c +++ b/sysdeps/unix/sysv/linux/nanosleep_nocancel.c @@ -17,7 +17,6 @@ . */ #include -#include #include int diff --git a/sysdeps/unix/sysv/linux/open.c b/sysdeps/unix/sysv/linux/open.c index a65aec457d..0e14aa0abe 100644 --- a/sysdeps/unix/sysv/linux/open.c +++ b/sysdeps/unix/sysv/linux/open.c @@ -21,8 +21,7 @@ #include #include #include - -#include +#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/open64.c b/sysdeps/unix/sysv/linux/open64.c index d6cefb09d1..d10609d3c0 100644 --- a/sysdeps/unix/sysv/linux/open64.c +++ b/sysdeps/unix/sysv/linux/open64.c @@ -20,9 +20,7 @@ #include #include #include - -#include - +#include #ifdef __OFF_T_MATCHES_OFF64_T # define EXTRA_OPEN_FLAGS 0 diff --git a/sysdeps/unix/sysv/linux/open_by_handle_at.c b/sysdeps/unix/sysv/linux/open_by_handle_at.c index 0888157a33..cfb57737b5 100644 --- a/sysdeps/unix/sysv/linux/open_by_handle_at.c +++ b/sysdeps/unix/sysv/linux/open_by_handle_at.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include int open_by_handle_at (int mount_fd, struct file_handle *handle, int flags) diff --git a/sysdeps/unix/sysv/linux/open_nocancel.c b/sysdeps/unix/sysv/linux/open_nocancel.c index 9926218cca..232423bf0d 100644 --- a/sysdeps/unix/sysv/linux/open_nocancel.c +++ b/sysdeps/unix/sysv/linux/open_nocancel.c @@ -21,7 +21,6 @@ #include #include -#include #include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/openat.c b/sysdeps/unix/sysv/linux/openat.c index a4450445da..0983ed9de2 100644 --- a/sysdeps/unix/sysv/linux/openat.c +++ b/sysdeps/unix/sysv/linux/openat.c @@ -18,8 +18,7 @@ #include #include - -#include +#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/openat64.c b/sysdeps/unix/sysv/linux/openat64.c index dbd893ea9d..96d96080f4 100644 --- a/sysdeps/unix/sysv/linux/openat64.c +++ b/sysdeps/unix/sysv/linux/openat64.c @@ -18,8 +18,7 @@ #include #include - -#include +#include #ifdef __OFF_T_MATCHES_OFF64_T # define EXTRA_OPEN_FLAGS 0 diff --git a/sysdeps/unix/sysv/linux/openat64_nocancel.c b/sysdeps/unix/sysv/linux/openat64_nocancel.c index cd077f28cd..97f4af4c23 100644 --- a/sysdeps/unix/sysv/linux/openat64_nocancel.c +++ b/sysdeps/unix/sysv/linux/openat64_nocancel.c @@ -19,7 +19,6 @@ #include #include -#include #include #ifdef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/openat_nocancel.c b/sysdeps/unix/sysv/linux/openat_nocancel.c index 25db90ce8e..17c8d29084 100644 --- a/sysdeps/unix/sysv/linux/openat_nocancel.c +++ b/sysdeps/unix/sysv/linux/openat_nocancel.c @@ -19,7 +19,6 @@ #include #include -#include #include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/pause.c b/sysdeps/unix/sysv/linux/pause.c index c2b9f4fb66..2f5861fbab 100644 --- a/sysdeps/unix/sysv/linux/pause.c +++ b/sysdeps/unix/sysv/linux/pause.c @@ -18,7 +18,7 @@ #include #include -#include +#include /* Suspend the process until a signal arrives. This always returns -1 and sets errno to EINTR. */ diff --git a/sysdeps/unix/sysv/linux/pause_nocancel.c b/sysdeps/unix/sysv/linux/pause_nocancel.c index 04f6fcf5e3..dffb07500f 100644 --- a/sysdeps/unix/sysv/linux/pause_nocancel.c +++ b/sysdeps/unix/sysv/linux/pause_nocancel.c @@ -18,7 +18,6 @@ #include #include -#include #include int diff --git a/sysdeps/unix/sysv/linux/poll.c b/sysdeps/unix/sysv/linux/poll.c index 8ea00563a4..8f66655cf1 100644 --- a/sysdeps/unix/sysv/linux/poll.c +++ b/sysdeps/unix/sysv/linux/poll.c @@ -19,7 +19,6 @@ #include #include -#include #include int diff --git a/sysdeps/unix/sysv/linux/ppoll.c b/sysdeps/unix/sysv/linux/ppoll.c index 8a6ccd1dcc..e9ffd51636 100644 --- a/sysdeps/unix/sysv/linux/ppoll.c +++ b/sysdeps/unix/sysv/linux/ppoll.c @@ -20,8 +20,6 @@ #include #include #include -#include - int ppoll (struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, diff --git a/sysdeps/unix/sysv/linux/pread.c b/sysdeps/unix/sysv/linux/pread.c index d9faf3cee2..cfc6859892 100644 --- a/sysdeps/unix/sysv/linux/pread.c +++ b/sysdeps/unix/sysv/linux/pread.c @@ -17,7 +17,7 @@ . */ #include -#include +#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/pread64.c b/sysdeps/unix/sysv/linux/pread64.c index 36410292ee..db452ba3e5 100644 --- a/sysdeps/unix/sysv/linux/pread64.c +++ b/sysdeps/unix/sysv/linux/pread64.c @@ -17,7 +17,7 @@ . */ #include -#include +#include #ifndef __NR_pread64 # define __NR_pread64 __NR_pread diff --git a/sysdeps/unix/sysv/linux/preadv.c b/sysdeps/unix/sysv/linux/preadv.c index 61007df357..8794c2b677 100644 --- a/sysdeps/unix/sysv/linux/preadv.c +++ b/sysdeps/unix/sysv/linux/preadv.c @@ -16,7 +16,7 @@ . */ #include -#include +#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/preadv2.c b/sysdeps/unix/sysv/linux/preadv2.c index 9e3205b8ef..5c2c3752ca 100644 --- a/sysdeps/unix/sysv/linux/preadv2.c +++ b/sysdeps/unix/sysv/linux/preadv2.c @@ -17,7 +17,7 @@ . */ #include -#include +#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/preadv64.c b/sysdeps/unix/sysv/linux/preadv64.c index 4b0a66f583..3f99ed2203 100644 --- a/sysdeps/unix/sysv/linux/preadv64.c +++ b/sysdeps/unix/sysv/linux/preadv64.c @@ -16,7 +16,7 @@ . */ #include -#include +#include #ifdef __ASSUME_PREADV diff --git a/sysdeps/unix/sysv/linux/preadv64v2.c b/sysdeps/unix/sysv/linux/preadv64v2.c index 724f03d0ef..44cd74e177 100644 --- a/sysdeps/unix/sysv/linux/preadv64v2.c +++ b/sysdeps/unix/sysv/linux/preadv64v2.c @@ -17,7 +17,7 @@ . */ #include -#include +#include #if !defined(__NR_preadv64v2) && defined(__NR_preadv2) # define __NR_preadv64v2 __NR_preadv2 diff --git a/sysdeps/unix/sysv/linux/pselect.c b/sysdeps/unix/sysv/linux/pselect.c index d07d64114d..f929ff23a8 100644 --- a/sysdeps/unix/sysv/linux/pselect.c +++ b/sysdeps/unix/sysv/linux/pselect.c @@ -21,8 +21,6 @@ #include #include #include -#include - #ifdef __NR_pselect6 # ifndef __ASSUME_PSELECT diff --git a/sysdeps/unix/sysv/linux/pwrite.c b/sysdeps/unix/sysv/linux/pwrite.c index ddfbdef9c1..c59290d12d 100644 --- a/sysdeps/unix/sysv/linux/pwrite.c +++ b/sysdeps/unix/sysv/linux/pwrite.c @@ -17,7 +17,7 @@ . */ #include -#include +#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/pwrite64.c b/sysdeps/unix/sysv/linux/pwrite64.c index db8661c054..d5ba7786c6 100644 --- a/sysdeps/unix/sysv/linux/pwrite64.c +++ b/sysdeps/unix/sysv/linux/pwrite64.c @@ -17,7 +17,7 @@ . */ #include -#include +#include #ifndef __NR_pwrite64 # define __NR_pwrite64 __NR_pwrite diff --git a/sysdeps/unix/sysv/linux/pwritev.c b/sysdeps/unix/sysv/linux/pwritev.c index ed25289984..45a801806c 100644 --- a/sysdeps/unix/sysv/linux/pwritev.c +++ b/sysdeps/unix/sysv/linux/pwritev.c @@ -16,7 +16,7 @@ . */ #include -#include +#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/pwritev2.c b/sysdeps/unix/sysv/linux/pwritev2.c index a415b2fa89..ccd099a021 100644 --- a/sysdeps/unix/sysv/linux/pwritev2.c +++ b/sysdeps/unix/sysv/linux/pwritev2.c @@ -17,7 +17,7 @@ . */ #include -#include +#include #ifndef __OFF_T_MATCHES_OFF64_T diff --git a/sysdeps/unix/sysv/linux/pwritev64.c b/sysdeps/unix/sysv/linux/pwritev64.c index ec9987fefc..50f7774e3c 100644 --- a/sysdeps/unix/sysv/linux/pwritev64.c +++ b/sysdeps/unix/sysv/linux/pwritev64.c @@ -16,7 +16,7 @@ . */ #include -#include +#include #ifdef __ASSUME_PWRITEV diff --git a/sysdeps/unix/sysv/linux/pwritev64v2.c b/sysdeps/unix/sysv/linux/pwritev64v2.c index 5683220466..329bb820f4 100644 --- a/sysdeps/unix/sysv/linux/pwritev64v2.c +++ b/sysdeps/unix/sysv/linux/pwritev64v2.c @@ -17,7 +17,7 @@ . */ #include -#include +#include #if !defined(__NR_pwritev64v2) && defined(__NR_pwritev2) # define __NR_pwritev64v2 __NR_pwritev2 diff --git a/sysdeps/unix/sysv/linux/read.c b/sysdeps/unix/sysv/linux/read.c index 147d45f242..4d49efa439 100644 --- a/sysdeps/unix/sysv/linux/read.c +++ b/sysdeps/unix/sysv/linux/read.c @@ -17,7 +17,7 @@ . */ #include -#include +#include /* Read NBYTES into BUF from FD. Return the number read or -1. */ ssize_t diff --git a/sysdeps/unix/sysv/linux/read_nocancel.c b/sysdeps/unix/sysv/linux/read_nocancel.c index 9d2a5eedb6..71f7b8776d 100644 --- a/sysdeps/unix/sysv/linux/read_nocancel.c +++ b/sysdeps/unix/sysv/linux/read_nocancel.c @@ -17,7 +17,6 @@ . */ #include -#include #include ssize_t diff --git a/sysdeps/unix/sysv/linux/readv.c b/sysdeps/unix/sysv/linux/readv.c index c0bd1ed6d8..0ed6d91e9a 100644 --- a/sysdeps/unix/sysv/linux/readv.c +++ b/sysdeps/unix/sysv/linux/readv.c @@ -18,7 +18,7 @@ #include #include -#include +#include ssize_t __readv (int fd, const struct iovec *iov, int iovcnt) diff --git a/sysdeps/unix/sysv/linux/recv.c b/sysdeps/unix/sysv/linux/recv.c index 5b28449299..de4dbc4f08 100644 --- a/sysdeps/unix/sysv/linux/recv.c +++ b/sysdeps/unix/sysv/linux/recv.c @@ -16,7 +16,6 @@ . */ #include -#include #include ssize_t diff --git a/sysdeps/unix/sysv/linux/recvfrom.c b/sysdeps/unix/sysv/linux/recvfrom.c index 59115ecea7..6fabaea9c0 100644 --- a/sysdeps/unix/sysv/linux/recvfrom.c +++ b/sysdeps/unix/sysv/linux/recvfrom.c @@ -16,7 +16,6 @@ . */ #include -#include #include ssize_t diff --git a/sysdeps/unix/sysv/linux/recvmmsg.c b/sysdeps/unix/sysv/linux/recvmmsg.c index bcb5a97f06..157899cfba 100644 --- a/sysdeps/unix/sysv/linux/recvmmsg.c +++ b/sysdeps/unix/sysv/linux/recvmmsg.c @@ -19,7 +19,6 @@ #include #include -#include #include #include #include diff --git a/sysdeps/unix/sysv/linux/recvmsg.c b/sysdeps/unix/sysv/linux/recvmsg.c index f7ae2b9599..a0c17b5468 100644 --- a/sysdeps/unix/sysv/linux/recvmsg.c +++ b/sysdeps/unix/sysv/linux/recvmsg.c @@ -17,7 +17,6 @@ . */ #include -#include #include #include diff --git a/sysdeps/unix/sysv/linux/select.c b/sysdeps/unix/sysv/linux/select.c index 0498970c47..ef1928871b 100644 --- a/sysdeps/unix/sysv/linux/select.c +++ b/sysdeps/unix/sysv/linux/select.c @@ -20,7 +20,6 @@ #include #include #include -#include /* Check the first NFDS descriptors each in READFDS (if not NULL) for read readiness, in WRITEFDS (if not NULL) for write readiness, and in EXCEPTFDS diff --git a/sysdeps/unix/sysv/linux/send.c b/sysdeps/unix/sysv/linux/send.c index 0eaca763c3..bee607dbc8 100644 --- a/sysdeps/unix/sysv/linux/send.c +++ b/sysdeps/unix/sysv/linux/send.c @@ -16,7 +16,6 @@ . */ #include -#include #include ssize_t diff --git a/sysdeps/unix/sysv/linux/sendmmsg.c b/sysdeps/unix/sysv/linux/sendmmsg.c index c53c1b280f..94d78501ac 100644 --- a/sysdeps/unix/sysv/linux/sendmmsg.c +++ b/sysdeps/unix/sysv/linux/sendmmsg.c @@ -19,7 +19,6 @@ #include #include -#include #include #include #include diff --git a/sysdeps/unix/sysv/linux/sendmsg.c b/sysdeps/unix/sysv/linux/sendmsg.c index 42c4250749..827418ab37 100644 --- a/sysdeps/unix/sysv/linux/sendmsg.c +++ b/sysdeps/unix/sysv/linux/sendmsg.c @@ -17,7 +17,6 @@ . */ #include -#include #include #include diff --git a/sysdeps/unix/sysv/linux/sendto.c b/sysdeps/unix/sysv/linux/sendto.c index 78e3b6b2a6..8e91187739 100644 --- a/sysdeps/unix/sysv/linux/sendto.c +++ b/sysdeps/unix/sysv/linux/sendto.c @@ -16,7 +16,6 @@ . */ #include -#include #include ssize_t diff --git a/sysdeps/unix/sysv/linux/sigsuspend.c b/sysdeps/unix/sysv/linux/sigsuspend.c index 40e1e25f75..e707099ef2 100644 --- a/sysdeps/unix/sysv/linux/sigsuspend.c +++ b/sysdeps/unix/sysv/linux/sigsuspend.c @@ -16,7 +16,7 @@ . */ #include -#include +#include /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ diff --git a/sysdeps/unix/sysv/linux/sigtimedwait.c b/sysdeps/unix/sysv/linux/sigtimedwait.c index 30fc82a249..b69705e354 100644 --- a/sysdeps/unix/sysv/linux/sigtimedwait.c +++ b/sysdeps/unix/sysv/linux/sigtimedwait.c @@ -18,7 +18,6 @@ #include #include #include -#include int __sigtimedwait (const sigset_t *set, siginfo_t *info, diff --git a/sysdeps/unix/sysv/linux/sigwait.c b/sysdeps/unix/sysv/linux/sigwait.c index 360a4d0f5b..420642a550 100644 --- a/sysdeps/unix/sysv/linux/sigwait.c +++ b/sysdeps/unix/sysv/linux/sigwait.c @@ -16,7 +16,6 @@ . */ #include -#include #include int diff --git a/sysdeps/unix/sysv/linux/sigwaitinfo.c b/sysdeps/unix/sysv/linux/sigwaitinfo.c index 64735e4a03..8a95b205d5 100644 --- a/sysdeps/unix/sysv/linux/sigwaitinfo.c +++ b/sysdeps/unix/sysv/linux/sigwaitinfo.c @@ -16,7 +16,6 @@ . */ #include -#include /* Return any pending signal or wait for one for the given time. */ int diff --git a/sysdeps/unix/sysv/linux/socketcall.h b/sysdeps/unix/sysv/linux/socketcall.h index 38af55feb4..5d345b654c 100644 --- a/sysdeps/unix/sysv/linux/socketcall.h +++ b/sysdeps/unix/sysv/linux/socketcall.h @@ -19,6 +19,8 @@ #ifndef _SYS_SOCKETCALL_H #define _SYS_SOCKETCALL_H 1 +#include + /* Define unique numbers for the operations permitted on socket. Linux uses a single system call for all these functions. The relevant code file is /usr/include/linux/net.h. diff --git a/sysdeps/unix/sysv/linux/splice.c b/sysdeps/unix/sysv/linux/splice.c index d9be756718..804e91d1ca 100644 --- a/sysdeps/unix/sysv/linux/splice.c +++ b/sysdeps/unix/sysv/linux/splice.c @@ -17,7 +17,7 @@ . */ #include -#include +#include ssize_t splice (int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, size_t len, diff --git a/sysdeps/unix/sysv/linux/sync_file_range.c b/sysdeps/unix/sysv/linux/sync_file_range.c index 48ef674746..4649afe6b3 100644 --- a/sysdeps/unix/sysv/linux/sync_file_range.c +++ b/sysdeps/unix/sysv/linux/sync_file_range.c @@ -17,7 +17,7 @@ . */ #include -#include +#include int sync_file_range (int fd, __off64_t offset, __off64_t len, unsigned int flags) diff --git a/sysdeps/unix/sysv/linux/sysdep-cancel.h b/sysdeps/unix/sysv/linux/sysdep-cancel.h deleted file mode 100644 index c861303d36..0000000000 --- a/sysdeps/unix/sysv/linux/sysdep-cancel.h +++ /dev/null @@ -1,67 +0,0 @@ -/* Single-thread optimization definitions. Linux version. - Copyright (C) 2017-2019 Free Software Foundation, Inc. - - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SYSDEP_CANCEL_H -#define _SYSDEP_CANCEL_H - -#include -#include -#include - -/* The two functions are in libc.so and not exported. */ -extern int __libc_enable_asynccancel (void) attribute_hidden; -extern void __libc_disable_asynccancel (int oldtype) attribute_hidden; - -/* The two functions are in librt.so and not exported. */ -extern int __librt_enable_asynccancel (void) attribute_hidden; -extern void __librt_disable_asynccancel (int oldtype) attribute_hidden; - -/* The two functions are in libpthread.so and not exported. */ -extern int __pthread_enable_asynccancel (void) attribute_hidden; -extern void __pthread_disable_asynccancel (int oldtype) attribute_hidden; - -/* Set cancellation mode to asynchronous. */ -#define CANCEL_ASYNC() \ - __pthread_enable_asynccancel () -/* Reset to previous cancellation mode. */ -#define CANCEL_RESET(oldtype) \ - __pthread_disable_asynccancel (oldtype) - -#if IS_IN (libc) -/* Same as CANCEL_ASYNC, but for use in libc.so. */ -# define LIBC_CANCEL_ASYNC() \ - __libc_enable_asynccancel () -/* Same as CANCEL_RESET, but for use in libc.so. */ -# define LIBC_CANCEL_RESET(oldtype) \ - __libc_disable_asynccancel (oldtype) -#elif IS_IN (libpthread) -# define LIBC_CANCEL_ASYNC() CANCEL_ASYNC () -# define LIBC_CANCEL_RESET(val) CANCEL_RESET (val) -#elif IS_IN (librt) -# define LIBC_CANCEL_ASYNC() \ - __librt_enable_asynccancel () -# define LIBC_CANCEL_RESET(val) \ - __librt_disable_asynccancel (val) -#else -# define LIBC_CANCEL_ASYNC() 0 /* Just a dummy value. */ -# define LIBC_CANCEL_RESET(val) ((void)(val)) /* Nothing, but evaluate it. */ -#endif - - -#endif diff --git a/sysdeps/unix/sysv/linux/tcdrain.c b/sysdeps/unix/sysv/linux/tcdrain.c index b3691d0b12..70519f2fc0 100644 --- a/sysdeps/unix/sysv/linux/tcdrain.c +++ b/sysdeps/unix/sysv/linux/tcdrain.c @@ -18,7 +18,6 @@ #include #include #include -#include /* Wait for pending output to be written on FD. */ int diff --git a/sysdeps/unix/sysv/linux/tee.c b/sysdeps/unix/sysv/linux/tee.c index 97228e344e..4eba39cfc3 100644 --- a/sysdeps/unix/sysv/linux/tee.c +++ b/sysdeps/unix/sysv/linux/tee.c @@ -17,7 +17,7 @@ . */ #include -#include +#include ssize_t tee (int src, int dest, size_t len, unsigned int flags) diff --git a/sysdeps/unix/sysv/linux/timer_routines.c b/sysdeps/unix/sysv/linux/timer_routines.c index d96d963177..40e3460e43 100644 --- a/sysdeps/unix/sysv/linux/timer_routines.c +++ b/sysdeps/unix/sysv/linux/timer_routines.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include "kernel-posix-timers.h" diff --git a/sysdeps/unix/sysv/linux/vmsplice.c b/sysdeps/unix/sysv/linux/vmsplice.c index 706b933807..cff5afff89 100644 --- a/sysdeps/unix/sysv/linux/vmsplice.c +++ b/sysdeps/unix/sysv/linux/vmsplice.c @@ -18,7 +18,7 @@ #include #include -#include +#include ssize_t vmsplice (int fd, const struct iovec *iov, size_t count, unsigned int flags) diff --git a/sysdeps/unix/sysv/linux/wait.c b/sysdeps/unix/sysv/linux/wait.c index c2385c752e..36deddfdcb 100644 --- a/sysdeps/unix/sysv/linux/wait.c +++ b/sysdeps/unix/sysv/linux/wait.c @@ -19,7 +19,6 @@ #include #include #include -#include /* Wait for a child to die. When one does, put its status in *STAT_LOC and return its process ID. For errors, return (pid_t) -1. */ diff --git a/sysdeps/unix/sysv/linux/waitid.c b/sysdeps/unix/sysv/linux/waitid.c index e563d3e264..45b7baf40b 100644 --- a/sysdeps/unix/sysv/linux/waitid.c +++ b/sysdeps/unix/sysv/linux/waitid.c @@ -19,7 +19,6 @@ #include #include #include -#include int __waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options) diff --git a/sysdeps/unix/sysv/linux/waitpid.c b/sysdeps/unix/sysv/linux/waitpid.c index d35aac01bc..dbd816dbbd 100644 --- a/sysdeps/unix/sysv/linux/waitpid.c +++ b/sysdeps/unix/sysv/linux/waitpid.c @@ -17,7 +17,6 @@ . */ #include -#include #include #include diff --git a/sysdeps/unix/sysv/linux/waitpid_nocancel.c b/sysdeps/unix/sysv/linux/waitpid_nocancel.c index 3697c6b938..82e4fc6e1e 100644 --- a/sysdeps/unix/sysv/linux/waitpid_nocancel.c +++ b/sysdeps/unix/sysv/linux/waitpid_nocancel.c @@ -17,7 +17,6 @@ . */ #include -#include #include #include #include diff --git a/sysdeps/unix/sysv/linux/write.c b/sysdeps/unix/sysv/linux/write.c index 1dfb5de8ee..15dc0fd8e2 100644 --- a/sysdeps/unix/sysv/linux/write.c +++ b/sysdeps/unix/sysv/linux/write.c @@ -17,7 +17,7 @@ . */ #include -#include +#include /* Write NBYTES of BUF to FD. Return the number written, or -1. */ ssize_t diff --git a/sysdeps/unix/sysv/linux/write_nocancel.c b/sysdeps/unix/sysv/linux/write_nocancel.c index f57b53e9c9..589ec6d612 100644 --- a/sysdeps/unix/sysv/linux/write_nocancel.c +++ b/sysdeps/unix/sysv/linux/write_nocancel.c @@ -17,7 +17,6 @@ . */ #include -#include #include ssize_t diff --git a/sysdeps/unix/sysv/linux/writev.c b/sysdeps/unix/sysv/linux/writev.c index 77fc9c92e9..e0621c8546 100644 --- a/sysdeps/unix/sysv/linux/writev.c +++ b/sysdeps/unix/sysv/linux/writev.c @@ -18,7 +18,7 @@ #include #include -#include +#include ssize_t __writev (int fd, const struct iovec *iov, int iovcnt)