FreeBSD Bugzilla – Attachment 190726 Details for
Bug 225981
[exp-run] Request for marking select(2) as restrict
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mark select(2) as restrict
select-diff.diff (text/plain), 1.55 KB, created by
Eitan Adler
on 2018-02-17 10:44:55 UTC
(
hide
)
Description:
mark select(2) as restrict
Filename:
MIME Type:
Creator:
Eitan Adler
Created:
2018-02-17 10:44:55 UTC
Size:
1.55 KB
patch
obsolete
>Index: lib/libc/sys/select.2 >=================================================================== >--- lib/libc/sys/select.2 (revision 329296) >+++ lib/libc/sys/select.2 (working copy) >@@ -39,7 +39,7 @@ > .Sh SYNOPSIS > .In sys/select.h > .Ft int >-.Fn select "int nfds" "fd_set *readfds" "fd_set *writefds" "fd_set *exceptfds" "struct timeval *timeout" >+.Fn select "int nfds" "fd_set * restrict readfds" "fd_set * restrict writefds" "fd_set * restrict exceptfds" "struct timeval *timeout" > .Fn FD_SET fd &fdset > .Fn FD_CLR fd &fdset > .Fn FD_ISSET fd &fdset >Index: lib/libc/sys/select.c >=================================================================== >--- lib/libc/sys/select.c (revision 329296) >+++ lib/libc/sys/select.c (working copy) >@@ -41,7 +41,7 @@ > > #pragma weak select > int >-select(int n, fd_set *rs, fd_set *ws, fd_set *es, struct timeval *t) >+select(int n, fd_set * __restrict rs, fd_set * __restrict ws, fd_set * __restrict es, struct timeval *t) > { > > return (((int (*)(int, fd_set *, fd_set *, fd_set *, struct timeval *)) >Index: sys/sys/select.h >=================================================================== >--- sys/sys/select.h (revision 329296) >+++ sys/sys/select.h (working copy) >@@ -101,8 +101,7 @@ > const struct timespec *__restrict, const sigset_t *__restrict); > #ifndef _SELECT_DECLARED > #define _SELECT_DECLARED >-/* XXX missing restrict type-qualifier */ >-int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); >+int select(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, struct timeval *); > #endif > __END_DECLS > #endif /* !_KERNEL */
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 225981
: 190726