[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] New GNULIB glob module?
From: |
Derek Price |
Subject: |
Re: [bug-gnulib] New GNULIB glob module? |
Date: |
Wed, 11 May 2005 23:16:10 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
Most of this looks good, but one quick question as I get to this: I
assume from the following that I can expect _LIBC to be defined iff the
file is being compiled as part of glibc? I wasn't sure...
Cheers,
Derek
Paul Eggert wrote:
>>-#ifdef _LIBC
>>-# include <alloca.h>
>>-# undef strdup
>>-# define strdup(str) __strdup (str)
>>-# define sysconf(id) __sysconf (id)
>>-# define closedir(dir) __closedir (dir)
>>-# define opendir(name) __opendir (name)
>>-# define readdir(str) __readdir64 (str)
>>-# define getpwnam_r(name, bufp, buf, len, res) \
>>- __getpwnam_r (name, bufp, buf, len, res)
>>-# ifndef __stat64
>>-# define __stat64(fname, buf) __xstat64 (_STAT_VER, fname, buf)
>>-# endif
>>-# define HAVE_STAT64 1
>>-#endif
>>
>>
>
>Please leave this sort of code in, so that the source code can be
>identical in libc.
>
>
>
>>+#include "mempcpy.h"
>>+#include "stat-macros.h"
>>+#include "strdup.h"
>>
>>
>
>These includes need to be protected by #ifndef _LIBC.
>
>
- [bug-gnulib] New GNULIB glob module?, Derek Price, 2005/05/11
- Re: [bug-gnulib] New GNULIB glob module?, Karl Berry, 2005/05/11
- Re: [bug-gnulib] New GNULIB glob module?, Paul Eggert, 2005/05/11
- Re: [bug-gnulib] New GNULIB glob module?,
Derek Price <=
- Re: [bug-gnulib] New GNULIB glob module?, Derek Price, 2005/05/12
- Re: [bug-gnulib] New GNULIB glob module?, Paul Eggert, 2005/05/13
- Re: [bug-gnulib] New GNULIB glob module?, Derek Price, 2005/05/13
- Re: [bug-gnulib] New GNULIB glob module?, Paul Eggert, 2005/05/13
- Re: [bug-gnulib] New GNULIB glob module?, Paul Eggert, 2005/05/14
- Re: [bug-gnulib] New GNULIB glob module?, Derek Price, 2005/05/16
- Re: [bug-gnulib] New GNULIB glob module?, Paul Eggert, 2005/05/15
- Re: [bug-gnulib] New GNULIB glob module?, Derek Price, 2005/05/17
- Re: [bug-gnulib] New GNULIB glob module?, Derek Price, 2005/05/17