From owner-freebsd-threads@FreeBSD.ORG Sat Jul 20 16:50:01 2013 Return-Path: Delivered-To: freebsd-threads@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A70ACBAE for ; Sat, 20 Jul 2013 16:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 97A77B27 for ; Sat, 20 Jul 2013 16:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6KGo03F082592 for ; Sat, 20 Jul 2013 16:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6KGo0xa082591; Sat, 20 Jul 2013 16:50:00 GMT (envelope-from gnats) Date: Sat, 20 Jul 2013 16:50:00 GMT Message-Id: <201307201650.r6KGo0xa082591@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org Cc: From: Petr Salinger Subject: Re: threads/180652: compat32 problem in clock_getcpuclockid2 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Petr Salinger List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2013 16:50:01 -0000 The following reply was made to PR threads/180652; it has been noted by GNATS. From: Petr Salinger To: Konstantin Belousov Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: threads/180652: compat32 problem in clock_getcpuclockid2 Date: Sat, 20 Jul 2013 18:46:58 +0200 (CEST) >> It looks like the only remaining missing part of compat32 interfaces >> (covered by our eglibc testsuite) is ktimer_*() family, used for >> http://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_gettime.html > > Try this. The sizeof(struct sigevent) used in int ktimer_create(clockid_t clock_id, struct sigevent *evp, int *timerid); is not the same in 32-bit and 64-bit arch. I doubt it will work correctly. > Could you provide me with the isolated test case for timer_* > functions ? They can be derived from http://sourceware.org/git/?p=glibc.git;a=blob_plain;f=nptl/sysdeps/pthread/tst-timer.c;hb=HEAD and tst-timer[2-5].c from http://sourceware.org/git/?p=glibc.git;a=tree;f=rt Thanks for you work Petr