Date: Sun, 21 Jul 2013 09:30:01 GMT From: Petr Salinger <Petr.Salinger@seznam.cz> To: freebsd-threads@FreeBSD.org Subject: Re: threads/180652: compat32 problem in clock_getcpuclockid2 Message-ID: <201307210930.r6L9U1YF009432@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/180652; it has been noted by GNATS. From: Petr Salinger <Petr.Salinger@seznam.cz> To: Konstantin Belousov <kostikbel@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307210930.r6L9U1YF009432>