threads/180652: compat32 problem in clock_getcpuclockid2

Petr Salinger Petr.Salinger at seznam.cz
Sun Jul 21 09:30:02 UTC 2013


The following reply was made to PR threads/180652; it has been noted by GNATS.

From: Petr Salinger <Petr.Salinger at seznam.cz>
To: Konstantin Belousov <kostikbel at gmail.com>
Cc: freebsd-gnats-submit at 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


More information about the freebsd-threads mailing list