Remove __restrict qualifiers from syscalls.master.

The restruct qualifier is intended to aid code generation in the
compiler, but the only access to storage through these pointers is via
structs using copyin/copyout and the like which can not be written in C
or C++ and thus the compiler gains nothing from the qualifiers.

As such, the qualifiers add no value in current usage.

Reviewed by:	kib
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D17574
This commit is contained in:
Brooks Davis 2018-10-22 21:50:43 +00:00
parent 4403657034
commit 22c0c9a481
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339622
2 changed files with 12 additions and 12 deletions

View File

@ -1051,8 +1051,8 @@
540 AUE_CHFLAGSAT NOPROTO { int chflagsat(int fd, const char *path, \
u_long flags, int atflag); }
541 AUE_ACCEPT NOPROTO { int accept4(int s, \
struct sockaddr * __restrict name, \
__socklen_t * __restrict anamelen, \
struct sockaddr *name, \
__socklen_t *anamelen, \
int flags); }
542 AUE_PIPE NOPROTO { int pipe2(int *fildes, int flags); }
543 AUE_AIO_MLOCK STD { int freebsd32_aio_mlock( \

View File

@ -144,23 +144,23 @@
_Out_writes_bytes_(len) caddr_t buf, \
size_t len, int flags, \
_Out_writes_bytes_opt_(*fromlenaddr) \
struct sockaddr * __restrict from, \
struct sockaddr *from, \
_Inout_opt_ \
__socklen_t * __restrict fromlenaddr); }
__socklen_t *fromlenaddr); }
30 AUE_ACCEPT STD { int accept(int s, \
_Out_writes_bytes_opt_(*anamelen) \
struct sockaddr * __restrict name, \
struct sockaddr *name, \
_Inout_opt_ \
__socklen_t * __restrict anamelen); }
__socklen_t *anamelen); }
31 AUE_GETPEERNAME STD { int getpeername(int fdes, \
_Out_writes_bytes_(*alen) \
struct sockaddr * __restrict asa, \
struct sockaddr *asa, \
_Inout_opt_ \
__socklen_t * __restrict alen); }
__socklen_t *alen); }
32 AUE_GETSOCKNAME STD { int getsockname(int fdes, \
_Out_writes_bytes_(*alen) \
struct sockaddr * __restrict asa, \
_Inout_ __socklen_t * __restrict alen); }
struct sockaddr *asa, \
_Inout_ __socklen_t *alen); }
33 AUE_ACCESS STD { int access(_In_z_ char *path, int amode); }
34 AUE_CHFLAGS STD { int chflags(_In_z_ const char *path, \
u_long flags); }
@ -1273,9 +1273,9 @@
u_long flags, int atflag); }
541 AUE_ACCEPT STD { int accept4(int s, \
_Out_writes_bytes_opt_(*anamelen) \
struct sockaddr * __restrict name, \
struct sockaddr *name, \
_Inout_opt_ \
__socklen_t * __restrict anamelen, \
__socklen_t *anamelen, \
int flags); }
542 AUE_PIPE STD { int pipe2(_Out_writes_(2) int *fildes, \
int flags); }