Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add restrict qualifiers to dlsym() (XSI) and dladdr() argume...
details: https://anonhg.NetBSD.org/src/rev/8b35870306a9
branches: trunk
changeset: 579675:8b35870306a9
user: kleink <kleink%NetBSD.org@localhost>
date: Mon Mar 21 13:25:22 2005 +0000
description:
Add restrict qualifiers to dlsym() (XSI) and dladdr() arguments.
diffstat:
include/dlfcn.h | 6 +++---
share/man/man3/dlfcn.3 | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r cea42829396e -r 8b35870306a9 include/dlfcn.h
--- a/include/dlfcn.h Mon Mar 21 13:16:34 2005 +0000
+++ b/include/dlfcn.h Mon Mar 21 13:25:22 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dlfcn.h,v 1.17 2005/02/03 04:39:32 perry Exp $ */
+/* $NetBSD: dlfcn.h,v 1.18 2005/03/21 13:25:22 kleink Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -57,9 +57,9 @@
__BEGIN_DECLS
void *dlopen(const char *, int);
int dlclose(void *);
-void *dlsym(void *, const char *);
+void *dlsym(void * __restrict, const char * __restrict);
#if defined(_NETBSD_SOURCE)
-int dladdr(const void *, Dl_info *);
+int dladdr(const void * __restrict, Dl_info * __restrict);
int dlctl(void *, int, void *);
#endif
__aconst char *dlerror(void);
diff -r cea42829396e -r 8b35870306a9 share/man/man3/dlfcn.3
--- a/share/man/man3/dlfcn.3 Mon Mar 21 13:16:34 2005 +0000
+++ b/share/man/man3/dlfcn.3 Mon Mar 21 13:25:22 2005 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: dlfcn.3,v 1.18 2004/11/11 14:47:02 jmmv Exp $
+.\" $NetBSD: dlfcn.3,v 1.19 2005/03/21 13:25:22 kleink Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -55,9 +55,9 @@
.Ft "int"
.Fn dlclose "void *handle"
.Ft "void *"
-.Fn dlsym "void *handle" "const char *symbol"
+.Fn dlsym "void * restrict handle" "const char * restrict symbol"
.Ft "int"
-.Fn dladdr "void *addr" "Dl_info *dli"
+.Fn dladdr "void * restrict addr" "Dl_info * restrict dli"
.Ft "int"
.Fn dlctl "void *handle" "int cmd" "void *data"
.Ft "char *"
Home |
Main Index |
Thread Index |
Old Index