Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src Pull up revision 1.18 of include/dlfcn.h (requested by kl...



details:   https://anonhg.NetBSD.org/src/rev/e25956c4ccc0
branches:  netbsd-3
changeset: 574964:e25956c4ccc0
user:      jwise <jwise%NetBSD.org@localhost>
date:      Mon Mar 21 21:25:37 2005 +0000

description:
Pull up revision 1.18 of include/dlfcn.h (requested by kleink in [pullup-3 #39])
Pull up revision 1.19 of share/man/man3/dlfcn.3) (requested by kleink in same)

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 42a9d750e8a8 -r e25956c4ccc0 include/dlfcn.h
--- a/include/dlfcn.h   Mon Mar 21 21:21:34 2005 +0000
+++ b/include/dlfcn.h   Mon Mar 21 21:25:37 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.17.2.1 2005/03/21 21:25:37 jwise 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 42a9d750e8a8 -r e25956c4ccc0 share/man/man3/dlfcn.3
--- a/share/man/man3/dlfcn.3    Mon Mar 21 21:21:34 2005 +0000
+++ b/share/man/man3/dlfcn.3    Mon Mar 21 21:25:37 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.18.2.1 2005/03/21 21:25:37 jwise 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