Add `restrict' type-qualifier.
This commit is contained in:
parent
24c502cbc7
commit
a4a96c8166
@ -102,7 +102,7 @@ dlopen(const char *name, int mode)
|
||||
|
||||
#pragma weak dlsym
|
||||
void *
|
||||
dlsym(void *handle, const char *name)
|
||||
dlsym(void * __restrict handle, const char * __restrict name)
|
||||
{
|
||||
_rtld_error(sorry);
|
||||
return NULL;
|
||||
@ -168,7 +168,7 @@ dlopen(const char *name, int mode)
|
||||
}
|
||||
|
||||
void *
|
||||
dlsym(void *handle, const char *name)
|
||||
dlsym(void * __restrict handle, const char * __restrict name)
|
||||
{
|
||||
if (__ldso_entry == NULL)
|
||||
return NULL;
|
||||
|
@ -17,7 +17,7 @@
|
||||
* runs on, but is not guaranteed by the C standard.
|
||||
*/
|
||||
dlfunc_t
|
||||
dlfunc(void *handle, const char *symbol)
|
||||
dlfunc(void * __restrict handle, const char * __restrict symbol)
|
||||
{
|
||||
union {
|
||||
void *d;
|
||||
|
@ -32,7 +32,7 @@
|
||||
.\" @(#) dlopen.3 1.6 90/01/31 SMI
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd May 28, 2002
|
||||
.Dd September 10, 2002
|
||||
.Os
|
||||
.Dt DLOPEN 3
|
||||
.Sh NAME
|
||||
@ -45,9 +45,9 @@
|
||||
.Ft void *
|
||||
.Fn dlopen "const char *path" "int mode"
|
||||
.Ft void *
|
||||
.Fn dlsym "void *handle" "const char *symbol"
|
||||
.Fn dlsym "void * restrict handle" "const char * restrict symbol"
|
||||
.Ft dlfunc_t
|
||||
.Fn dlfunc "void *handle" "const char *symbol"
|
||||
.Fn dlfunc "void * restrict handle" "const char * restrict symbol"
|
||||
.Ft const char *
|
||||
.Fn dlerror "void"
|
||||
.Ft int
|
||||
|
Loading…
x
Reference in New Issue
Block a user