Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 1997 15:50:19 -0800 (PST)
From:      jmr@ugcs.caltech.edu
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   i386/5243: dlfcn.h has wrong prototype for dlopen()
Message-ID:  <199712062350.PAA25451@hub.freebsd.org>
Resent-Message-ID: <199712070000.QAA26051@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         5243
>Category:       i386
>Synopsis:       dlfcn.h has wrong prototype for dlopen()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec  6 16:00:01 PST 1997
>Last-Modified:
>Originator:     Jesse Rosenstock
>Organization:
California Institute of Technology
>Release:        2.2.5-STABLE
>Environment:
FreeBSD tla.caltech.edu 2.2.5-STABLE FreeBSD 2.2.5-STABLE #3: Thu Dec  4 03:26:23 PST 1997     jmr@tla.caltech.edu:/usr/src/sys/compile/TLA  i386

>Description:
The prototype for dlopen() should be void *dlopen(const char *, int)
(the man page gets it right), but dlfcn.h has the first arg as a
char *.
>How-To-Repeat:
look at dlfcn.h
>Fix:
--- /usr/src/lib/csu/i386/dlfcn.h       Fri Aug  8 18:03:58 1997
+++ /usr/include/dlfcn.h        Sat Dec  6 15:38:11 1997
@@ -51,7 +51,7 @@
 #define RTLD_NEXT      ((void *) -1)
 
 __BEGIN_DECLS
-void *dlopen __P((char *, int));
+void *dlopen __P((const char *, int));
 void *dlsym __P((void *, char *));
 char *dlerror __P((void));
 int dlclose __P((void *));

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712062350.PAA25451>