diff options
author | mike <mike@FreeBSD.org> | 2002-09-11 05:05:48 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-09-11 05:05:48 +0000 |
commit | 57d52b441f615390566afb0c89cf1ff438b87639 (patch) | |
tree | 26b60cad0772ec814f7c02ab55fdee79a91e2d5f /lib | |
parent | c19bfb71ea5c209e11bde572375f88248e34fb2a (diff) | |
download | FreeBSD-src-57d52b441f615390566afb0c89cf1ff438b87639.zip FreeBSD-src-57d52b441f615390566afb0c89cf1ff438b87639.tar.gz |
Add `restrict' type-qualifier.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/dlfcn.c | 4 | ||||
-rw-r--r-- | lib/libc/gen/dlfunc.c | 2 | ||||
-rw-r--r-- | lib/libc/gen/dlopen.3 | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index 74cdc8b..4a3500d 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -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; diff --git a/lib/libc/gen/dlfunc.c b/lib/libc/gen/dlfunc.c index 1467115..72a683a 100644 --- a/lib/libc/gen/dlfunc.c +++ b/lib/libc/gen/dlfunc.c @@ -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; diff --git a/lib/libc/gen/dlopen.3 b/lib/libc/gen/dlopen.3 index a60c7aa..c1c09e4 100644 --- a/lib/libc/gen/dlopen.3 +++ b/lib/libc/gen/dlopen.3 @@ -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 |