* libc6 and glob.h
@ 1998-07-02 4:00 Alex Kent
1998-07-02 4:00 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: Alex Kent @ 1998-07-02 4:00 UTC (permalink / raw)
Having some trouble compiling some software that requires some
functionality that used to be present in libc5 but now seems to be gone
in libc6, specifically on under Linux-AXP. (I checked on a libc6 intel
box and it was missing there as well)
The following existed in glob.h under a libc5 system but is gone under
libc6:
#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
/* If they are not NULL, `glob' uses these functions to read directories. */
extern __ptr_t (*__glob_opendir_hook) __P ((__const char *__directory));
extern __const char *(*__glob_readdir_hook) __P ((__ptr_t __stream));
extern void (*__glob_closedir_hook) __P ((__ptr_t __stream));
#endif
Does anyone know what happened here and how I can get similar
functionality under libc6?
--
Alex Kent <alex@lanl.gov> Contact information in headers
Network Engineering Group (CIC-5) Los Alamos National Laboratory
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libc6 and glob.h
1998-07-02 4:00 libc6 and glob.h Alex Kent
@ 1998-07-02 4:00 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 1998-07-02 4:00 UTC (permalink / raw)
Alex Kent <alex@lanl.gov> writes:
> Having some trouble compiling some software that requires some
> functionality that used to be present in libc5 but now seems to be gone
> in libc6, specifically on under Linux-AXP. (I checked on a libc6 intel
> box and it was missing there as well)
>
> The following existed in glob.h under a libc5 system but is gone under
> libc6:
> #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
> /* If they are not NULL, `glob' uses these functions to read directories. */
> extern __ptr_t (*__glob_opendir_hook) __P ((__const char *__directory));
> extern __const char *(*__glob_readdir_hook) __P ((__ptr_t __stream));
> extern void (*__glob_closedir_hook) __P ((__ptr_t __stream));
> #endif
>
>
> Does anyone know what happened here and how I can get similar
> functionality under libc6?
The glob.h used in libc5 was very old and the interface to this
extended functionality was bad. It isn't thread safe.
See the definition of glob_t in the glibc glob.h header and you'll see
that there are similar elements to these variables and this interface
is thread-safe.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-07-02 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-02 4:00 libc6 and glob.h Alex Kent
1998-07-02 4:00 ` Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox