FreeBSD Bugzilla – Attachment 36265 Details for
Bug 58214
[patch] Align smallbits properly in poll()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
poll.diff
poll.diff (text/plain), 845 bytes, created by
Stefan Farfeleder
on 2003-10-18 17:20:17 UTC
(
hide
)
Description:
poll.diff
Filename:
MIME Type:
Creator:
Stefan Farfeleder
Created:
2003-10-18 17:20:17 UTC
Size:
845 bytes
patch
obsolete
>Index: src/sys/kern/sys_generic.c >=================================================================== >RCS file: /usr/home/ncvs/src/sys/kern/sys_generic.c,v >retrieving revision 1.125 >diff -u -p -r1.125 sys_generic.c >--- src/sys/kern/sys_generic.c 27 Sep 2003 12:53:33 -0000 1.125 >+++ src/sys/kern/sys_generic.c 18 Oct 2003 15:10:19 -0000 >@@ -938,8 +938,8 @@ poll(td, uap) > struct thread *td; > struct poll_args *uap; > { >- caddr_t bits; >- char smallbits[32 * sizeof(struct pollfd)]; >+ void *bits; >+ struct pollfd smallbits[32]; > struct timeval atv, rtv, ttv; > int error = 0, timo; > u_int ncoll, nfds; >@@ -991,7 +991,7 @@ retry: > mtx_unlock_spin(&sched_lock); > mtx_unlock(&sellock); > >- error = pollscan(td, (struct pollfd *)bits, nfds); >+ error = pollscan(td, bits, nfds); > mtx_lock(&sellock); > if (error || td->td_retval[0]) > goto done;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58214
: 36265