From owner-freebsd-threads@FreeBSD.ORG Sun Jul 21 09:30:02 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 AD8553F6 for ; Sun, 21 Jul 2013 09:30:02 +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 9FD74E2F for ; Sun, 21 Jul 2013 09:30:02 +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 r6L9U2Tf009433 for ; Sun, 21 Jul 2013 09:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6L9U1YF009432; Sun, 21 Jul 2013 09:30:01 GMT (envelope-from gnats) Date: Sun, 21 Jul 2013 09:30:01 GMT Message-Id: <201307210930.r6L9U1YF009432@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: Sun, 21 Jul 2013 09:30:02 -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: Sun, 21 Jul 2013 11:20:36 +0200 (CEST) > The bugfix for NULL sigev is applied to both timers and mqueue. > I intend to commit the patch below later today. As mentioned previously, new sys_kmq_notify() also needs ev/evp handling of NULL uap->sigev: > +int > +sys_kmq_notify(struct thread *td, struct kmq_notify_args *uap) > +{ > + struct sigevent ev; > + int error; > + > + if (uap->sigev != NULL) { > + error = copyin(uap->sigev, &ev, sizeof(ev)); > + if (error != 0) > + return (error); > + } > + return (kern_kmq_notify(td, uap->mqd, &ev)); > +} > + Thanks for very quick reactions. Petr