Re: shadowing libc



On Fri, 19 Aug 2005, Bruno Haible wrote:

> Behdad,
>
>   1) a set of include files stdio.h, stdlib.h, etc. that contain
>      redirections of the form
>
>        static inline size_t
>        strftime(char *s, size_t max, const char *format, const struct tm *tm)
>        {
>          return gl_strftime (s, max, format, tm, _gl_thread_locale ());
>        }
>
>   2) an autoconf macro that would add the appropriate -I option to the
>      CPPFLAGS.

A macro does the job as well in most cases.  But what I've been
thinking about was shadowing at run-time, i.e. LD_PRELOAD.  With
all the problems that such an approach has, at least it is an
step towards uniformity.

> Bruno
>

--behdad
http://behdad.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]