[v5,0/2] Fix 64-bit time_t ancillary socket conversion
Message ID | 20220124122821.1265965-1-adhemerval.zanella@linaro.org |
---|---|
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> 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 A4930385800B for <patchwork@sourceware.org>; Mon, 24 Jan 2022 12:28:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4930385800B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1643027326; bh=ecUwBAfmIDcgxpcqCsxWidQIwXanNcZfwW814HeYuDg=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=QWAvOp1ThicuaaaRC3E09E1y8eVTQHTiIK3+8m4VBTIp+ust5FDHEtCadwmCDSETT hRFiiFRSomO7VPe4oFQCs5dYLl+diSuqfVD9bmpn6DrYzNTcxqlGEn/0gSWxYEWMNF 0vnm1olnk5FCaaSkVH+kXNALQppoPrOFgCVryOoY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by sourceware.org (Postfix) with ESMTPS id 89EE93858D3C for <libc-alpha@sourceware.org>; Mon, 24 Jan 2022 12:28:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 89EE93858D3C Received: by mail-oi1-x230.google.com with SMTP id y23so6906661oia.13 for <libc-alpha@sourceware.org>; Mon, 24 Jan 2022 04:28:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ecUwBAfmIDcgxpcqCsxWidQIwXanNcZfwW814HeYuDg=; b=YDZ/XMsrtnk9euuwIizBqXKLDBCq4dBlBMQM7Ic7ZTdipODX9sRo4qjWEq2jv4EyXt 526oqPSgaVQfBms+oFE9xjoUvYwHBquJqZrSA8WIP4sCjCQYAbGKvrdBSJJfkp+fIoJ0 ghzfHXV23KQ0aP96qK8lruWYNQZbU7sJsBuwbgMQ0qfOJe5yUsaa52e8iOC2ioEnXd3R TChVRK59edWlJIZO4QGB20CJPsi9KcoX0Ava6ajunRpUX30Rgg50OY+XHrQ3e7v2KaLA BZmE80W68gXq3QKqLeX9kMJK6eU/h8wkLEBy7dEq8mgq9k9ApF9NtmIF4R4vfx9QSK2R 8hug== X-Gm-Message-State: AOAM533iFapbw6hapDeTXSAPaYaOrowsrNnpnsn050NFcGTdqW3xd50U JkuY9W8qKuFIzpMMibHlIXRnOKsuguJUvA== X-Google-Smtp-Source: ABdhPJwYu1HRLgpY3gzcFWVXhSUFd79MWABVwNyOcg1tmDFF2jz0eLV0G4f+7JbEV4eI3zxGE8+Omg== X-Received: by 2002:aca:b103:: with SMTP id a3mr1164852oif.14.1643027304767; Mon, 24 Jan 2022 04:28:24 -0800 (PST) Received: from birita.. ([2804:431:c7cb:27f8:c505:63c0:de61:b716]) by smtp.gmail.com with ESMTPSA id k17sm5133289otk.80.2022.01.24.04.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 04:28:24 -0800 (PST) To: libc-alpha@sourceware.org, Florian Weimer <fweimer@redhat.com> Subject: [PATCH v5 0/2] Fix 64-bit time_t ancillary socket conversion Date: Mon, 24 Jan 2022 09:28:19 -0300 Message-Id: <20220124122821.1265965-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Adhemerval Zanella <adhemerval.zanella@linaro.org> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> |
Message
Adhemerval Zanella Netto
Jan. 24, 2022, 12:28 p.m. UTC
v5: Remove socketcall from support_socket_so_timestamp_time64, fix typos, and minor issues. v4: Rebase agasint master. v3: Move the assignment in the loop header to make the patch more readable. v2: Fix some typos and use support_socket_time64_timestamp. Adhemerval Zanella (2): support: Add support_socket_so_timestamp_time64 linux: Fix ancillary 64-bit time timestamp conversion (BZ #28349, BZ#28350) support/Makefile | 1 + support/support.h | 4 + support/support_socket_so_timestamp_time64.c | 48 +++ sysdeps/unix/sysv/linux/Makefile | 3 + .../unix/sysv/linux/convert_scm_timestamps.c | 12 +- .../sysv/linux/tst-socket-timestamp-time64.c | 1 + .../unix/sysv/linux/tst-socket-timestamp.c | 340 ++++++++++++++++++ 7 files changed, 404 insertions(+), 5 deletions(-) create mode 100644 support/support_socket_so_timestamp_time64.c create mode 100644 sysdeps/unix/sysv/linux/tst-socket-timestamp-time64.c create mode 100644 sysdeps/unix/sysv/linux/tst-socket-timestamp.c