Date: Tue, 17 Jul 2007 11:24:15 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 123638 for review Message-ID: <200707171124.l6HBOFab093130@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123638 Change 123638 by rdivacky@rdivacky_witten on 2007/07/17 11:23:53 make copyout work. epoll_wait still does not work properly ;( Affected files ... .. //depot/projects/soc2007/rdivacky/linux_epoll/sys/compat/linux/linux_epoll.c#5 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_epoll/sys/compat/linux/linux_epoll.c#5 (text+ko) ==== @@ -103,9 +103,9 @@ linux_kevent_to_epoll(&kevp[i], &eep[i]); } - error = copyout(eep, uap->changelist, count * sizeof(*eep)); + error = copyout(eep, uap->eventlist, count * sizeof(*eep)); if (error) - uap->eventlist += count; + uap->eventlist = (struct kevent *)((char *)uap->eventlist + count * sizeof(*eep)); free(eep, M_TEMP); return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707171124.l6HBOFab093130>