Sender: chensong_2000@189.cn Subject: Re: [florian/y2038][PATCH v3 0/3] y2038:mutex_timedlock for timespec64 References: <1622721916-1824-1-git-send-email-chensong_2000@189.cn> <049086bd-62ee-70f0-6bb0-9f2906ff19f6@siemens.com> <7106d860-c9c5-2eea-2332-fb90fc1e0a0d@189.cn> From: "chensong_2000@189.cn" Message-ID: Date: Tue, 8 Jun 2021 15:51:33 +0800 MIME-Version: 1.0 In-Reply-To: <7106d860-c9c5-2eea-2332-fb90fc1e0a0d@189.cn> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org 在 2021/6/8 下午3:37, chensong_2000--- via Xenomai 写道: > > > 在 2021/6/8 下午2:39, Florian Bezdeka 写道: >> Hi Song, >> >> On 03.06.21 14:05, Song Chen wrote: >>> This patch serial is aimed to introduce a new syscall mutex_timedlock64 >>> which is specific for 64-bit time_t. >>> >>> --- >>> v2: >>> 1, new revision regarding review comments >>> >>> v3: >>> 1, return -errno >>> 2, throw a warning if timeout is NULL >> >> Will you take care of the POSIX violation as well, or should I try to >> find a timeslot and do it? > > I will take care of it. > > POSIX violation, do you mean: > > +    /* Timeout is never read by the kernel, so NULL should be OK */ > +    ret = XENOMAI_SYSCALL2(sr_nc, &lock, NULL); > +    if (!smokey_assert(!ret)) > +        smokey_warning("POSIX mutex_timedlock64 violation detected"); > + > > what else should i do to take care of it, sorry if i missed some > information in the past emails. > > /Song to find out the reason it returns 0 even if timeout is NULL? > >> >>> >>> Song Chen (3): >>>    y2038: cobalt/posix/mutex: Adding mutex_timedlock64 >>>    y2038: lib/cobalt/mutex: dispatch mutex_timedlock >>>    y2038: testsuite/smokey/y2038: testcase for mutex_timedlock64 >>> >>>   include/cobalt/uapi/syscall.h          |   1 + >>>   kernel/cobalt/posix/mutex.c            |  22 +++++- >>>   kernel/cobalt/posix/mutex.h            |   7 ++ >>>   kernel/cobalt/posix/syscall32.c        |   7 ++ >>>   kernel/cobalt/posix/syscall32.h        |   4 + >>>   lib/cobalt/mutex.c                     |   4 + >>>   testsuite/smokey/y2038/syscall-tests.c | 136 >>> +++++++++++++++++++++++++++++++++ >>>   7 files changed, 180 insertions(+), 1 deletion(-) >>> >> >> > >