From patchwork Mon Dec 19 12:03:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 62141 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CD5033852A46 for ; Mon, 19 Dec 2022 12:04:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD5033852A46 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671451441; bh=ils7Kua6PhfBv5PeNs1S1kYqLsa/6zIzXSYFt4UjNUg=; h=To:Cc:Subject:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=TnevgutxUN5BFN6Og5A+CisJfy0O7sGH9PeAkhhBesgT9lMp2a3Eo9GkmBsFFwK4z x7Uz5bt1GJ4XGcqGnTdf1wo+RIDcJkHZBExou7/cZGexqN/69L4yTSSjJ4ecmuARLU Q1hUnSz7ejNMlzKKtQlaux7nusNCn1u3G0LlnQtE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 6C9A43858C60 for ; Mon, 19 Dec 2022 12:03:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6C9A43858C60 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-172-ZycxT3zYNsmXRIRIuY2t8g-1; Mon, 19 Dec 2022 07:03:23 -0500 X-MC-Unique: ZycxT3zYNsmXRIRIuY2t8g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 900332A59557; Mon, 19 Dec 2022 12:03:23 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9BE35492C18; Mon, 19 Dec 2022 12:03:22 +0000 (UTC) To: libc-alpha@sourceware.org Cc: Adhemerval Zanella , Carlos O'Donell Subject: [PATCH 1/2] Linux: Reflow and sort some Makefile variables In-Reply-To: References: X-From-Line: b84e119429a0a4b9f4c5bf6abbe84d97680edb28 Mon Sep 17 00:00:00 2001 Message-Id: Date: Mon, 19 Dec 2022 13:03:21 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" --- sysdeps/unix/sysv/linux/Makefile | 218 ++++++++++++++++++++++--------- 1 file changed, 155 insertions(+), 63 deletions(-) Reviewed-by: Adhemerval Zanella diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 60e4cb1521..42e51625ab 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -54,21 +54,57 @@ CFLAGS-malloc.c += -DMORECORE_CLEARS=2 endif ifeq ($(subdir),misc) -sysdep_routines += adjtimex clone umount umount2 readahead sysctl \ - setfsuid setfsgid epoll_pwait epoll_pwait2 signalfd \ - eventfd eventfd_read eventfd_write prlimit prlimit64 \ - personality epoll_wait tee vmsplice splice \ - open_by_handle_at mlock2 pkey_mprotect pkey_set pkey_get \ - timerfd_gettime timerfd_settime prctl \ - process_vm_readv process_vm_writev clock_adjtime \ - pselect32 \ - xstat fxstat lxstat xstat64 fxstat64 lxstat64 \ - fxstatat fxstatat64 \ - xmknod xmknodat convert_scm_timestamps \ - closefrom_fallback \ - clone3 clone-internal \ - fanotify_mark \ - mremap \ +sysdep_routines += \ + adjtimex \ + clock_adjtime \ + clone \ + clone-internal \ + clone3 \ + closefrom_fallback \ + convert_scm_timestamps \ + epoll_pwait \ + epoll_pwait2 \ + epoll_wait \ + eventfd \ + eventfd_read \ + eventfd_write \ + fanotify_mark \ + fxstat \ + fxstat64 \ + fxstatat \ + fxstatat64 \ + lxstat \ + lxstat64 \ + mlock2 \ + mremap \ + open_by_handle_at \ + personality \ + pkey_get \ + pkey_mprotect \ + pkey_set \ + prctl \ + prlimit \ + prlimit64 \ + process_vm_readv \ + process_vm_writev \ + pselect32 \ + readahead \ + setfsgid \ + setfsuid \ + signalfd \ + splice \ + sysctl \ + tee \ + timerfd_gettime \ + timerfd_settime \ + umount \ + umount2 \ + vmsplice \ + xmknod \ + xmknodat \ + xstat \ + xstat64 \ + # sysdeps-routines CFLAGS-gethostid.c = -fexceptions CFLAGS-tee.c = -fexceptions -fasynchronous-unwind-tables @@ -79,58 +115,114 @@ CFLAGS-sync_file_range.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-pselect32.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-tst-writev.c += "-DARTIFICIAL_LIMIT=(0x80000000-sysconf(_SC_PAGESIZE))" -sysdep_headers += sys/mount.h sys/acct.h \ - sys/klog.h \ - sys/user.h sys/prctl.h \ - sys/kd.h sys/soundcard.h sys/vt.h \ - sys/quota.h sys/fsuid.h \ - scsi/sg.h scsi/scsi.h scsi/scsi_ioctl.h sys/pci.h \ - sys/raw.h sys/personality.h sys/epoll.h \ - bits/a.out.h sys/inotify.h sys/signalfd.h sys/eventfd.h \ - sys/timerfd.h sys/fanotify.h bits/eventfd.h bits/inotify.h \ - bits/signalfd.h bits/timerfd.h bits/epoll.h \ - bits/socket_type.h bits/syscall.h \ - bits/mman-linux.h bits/mman-shared.h bits/ptrace-shared.h \ - bits/siginfo-arch.h bits/siginfo-consts-arch.h \ - bits/procfs.h bits/procfs-id.h bits/procfs-extra.h \ - bits/procfs-prregset.h bits/mman-map-flags-generic.h \ - bits/shmlba.h \ - bits/termios-struct.h bits/termios-c_cc.h \ - bits/termios-c_iflag.h bits/termios-c_oflag.h \ - bits/termios-baud.h bits/termios-c_cflag.h \ - bits/termios-c_lflag.h bits/termios-tcflow.h \ - bits/termios-misc.h \ - bits/types/struct_semid_ds.h \ - bits/types/struct_msqid_ds.h \ - bits/types/struct_shmid_ds.h \ - bits/ipc-perm.h \ - bits/struct_stat.h \ - bits/struct_stat_time64_helper.h \ - bits/types/struct_msqid64_ds.h \ - bits/types/struct_msqid64_ds_helper.h \ - bits/types/struct_semid64_ds.h \ - bits/types/struct_semid64_ds_helper.h \ - bits/types/struct_shmid64_ds.h \ - bits/types/struct_shmid64_ds_helper.h \ - bits/pthread_stack_min.h bits/pthread_stack_min-dynamic.h \ - sys/rseq.h bits/rseq.h \ - sys/pidfd.h - -tests += tst-clone tst-clone2 tst-clone3 tst-fanotify tst-personality \ - tst-quota tst-sync_file_range tst-sysconf-iov_max tst-ttyname \ - test-errno-linux tst-memfd_create tst-mlock2 tst-pkey \ - tst-rlimit-infinity tst-ofdlocks tst-gettid tst-gettid-kill \ - tst-tgkill tst-sysvsem-linux tst-sysvmsg-linux tst-sysvshm-linux \ - tst-timerfd tst-ppoll \ - tst-clock_adjtime tst-adjtimex tst-ntp_adjtime tst-ntp_gettime \ - tst-ntp_gettimex tst-sigtimedwait tst-misalign-clone \ - tst-prctl \ - tst-scm_rights \ +sysdep_headers += \ + bits/a.out.h \ + bits/epoll.h \ + bits/eventfd.h \ + bits/inotify.h \ + bits/ipc-perm.h \ + bits/mman-linux.h \ + bits/mman-map-flags-generic.h \ + bits/mman-shared.h \ + bits/procfs-extra.h \ + bits/procfs-id.h \ + bits/procfs-prregset.h \ + bits/procfs.h \ + bits/pthread_stack_min-dynamic.h \ + bits/pthread_stack_min.h \ + bits/ptrace-shared.h \ + bits/rseq.h \ + bits/shmlba.h \ + bits/siginfo-arch.h \ + bits/siginfo-consts-arch.h \ + bits/signalfd.h \ + bits/socket_type.h \ + bits/struct_stat.h \ + bits/struct_stat_time64_helper.h \ + bits/syscall.h \ + bits/termios-baud.h \ + bits/termios-c_cc.h \ + bits/termios-c_cflag.h \ + bits/termios-c_iflag.h \ + bits/termios-c_lflag.h \ + bits/termios-c_oflag.h \ + bits/termios-misc.h \ + bits/termios-struct.h \ + bits/termios-tcflow.h \ + bits/timerfd.h \ + bits/types/struct_msqid64_ds.h \ + bits/types/struct_msqid64_ds_helper.h \ + bits/types/struct_msqid_ds.h \ + bits/types/struct_semid64_ds.h \ + bits/types/struct_semid64_ds_helper.h \ + bits/types/struct_semid_ds.h \ + bits/types/struct_shmid64_ds.h \ + bits/types/struct_shmid64_ds_helper.h \ + bits/types/struct_shmid_ds.h \ + scsi/scsi.h \ + scsi/scsi_ioctl.h \ + scsi/sg.h \ + sys/acct.h \ + sys/epoll.h \ + sys/eventfd.h \ + sys/fanotify.h \ + sys/fsuid.h \ + sys/inotify.h \ + sys/kd.h \ + sys/klog.h \ + sys/mount.h \ + sys/pci.h \ + sys/personality.h \ + sys/pidfd.h \ + sys/prctl.h \ + sys/quota.h \ + sys/raw.h \ + sys/rseq.h \ + sys/signalfd.h \ + sys/soundcard.h \ + sys/timerfd.h \ + sys/user.h \ + sys/vt.h \ + # sysdep-headers + +tests += \ + test-errno-linux \ + tst-adjtimex \ + tst-clock_adjtime \ + tst-clone \ + tst-clone2 \ + tst-clone3 \ tst-epoll \ + tst-fanotify \ tst-getauxval \ + tst-gettid \ + tst-gettid-kill \ + tst-memfd_create \ + tst-misalign-clone \ + tst-mlock2 \ + tst-mount \ + tst-ntp_adjtime \ + tst-ntp_gettime \ + tst-ntp_gettimex \ + tst-ofdlocks \ + tst-personality \ tst-pidfd \ + tst-pkey \ + tst-ppoll \ + tst-prctl \ tst-process_mrelease \ - tst-mount \ + tst-quota \ + tst-rlimit-infinity \ + tst-scm_rights \ + tst-sigtimedwait \ + tst-sync_file_range \ + tst-sysconf-iov_max \ + tst-sysvmsg-linux \ + tst-sysvsem-linux \ + tst-sysvshm-linux \ + tst-tgkill \ + tst-timerfd \ + tst-ttyname \ # tests # process_madvise requires CAP_SYS_ADMIN.