Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@cygnus.com>
Subject: Re: libc6 and glob.h
Date: 1998/07/02	[thread overview]
Message-ID: <r2ogv8t2j2.fsf@happy.cygnus.com> (raw)
In-Reply-To: 5ju3505ag7.fsf@plato.lanl.gov


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   `------------------------



      reply	other threads:[~1998-07-02  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-02  4:00 libc6 and glob.h Alex Kent
1998-07-02  4:00 ` Ulrich Drepper [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox