[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_HEADER_DIRENT
From: |
Derek R. Price |
Subject: |
Re: AC_HEADER_DIRENT |
Date: |
Tue, 11 Jul 2006 09:23:41 -0400 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Eggert wrote:
> Thanks. I found a few other instances of checking for dirent.h,
> and a couple of places we need to include <sys/types.h> before
> <dirent.h> (this is for POSIX before 2001). I installed this
> into gnulib, and will propagate it into coreutils shortly.
Thanks, Paul. I also missed a few references to NAMLEN in the first
patch, so I've installed the attached minor patch:
2006-07-11 Derek R. Price <address@hidden>
* glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
Cheers,
Derek
- --
Derek R. Price
CVS Solutions Architect
Get CVS support at Ximbiot <http://ximbiot.com>!
v: +1 248.835.1260
f: +1 248.835.1263
<mailto:address@hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEs6ZdLD1OTBfyMaQRAtNUAJ9HPfL4EiAsYO6p416PEHsGxXb2mQCgo4wx
Q+7P+ZIoblEHegVfT2h0WoY=
=Lps5
-----END PGP SIGNATURE-----
Index: lib/glob.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/glob.c,v
retrieving revision 1.8
diff -u -p -r1.8 glob.c
--- lib/glob.c 11 Jul 2006 06:02:51 -0000 1.8
+++ lib/glob.c 11 Jul 2006 13:17:19 -0000
@@ -93,7 +93,7 @@
# endif
# define CONVERT_DIRENT_DIRENT64(d64, d32) \
- memcpy ((d64)->d_name, (d32)->d_name, NAMLEN (d32) + 1); \
+ memcpy ((d64)->d_name, (d32)->d_name, _D_EXACT_NAMLEN (d32) + 1); \
CONVERT_D_INO (d64, d32) \
CONVERT_D_TYPE (d64, d32)
#endif
@@ -1176,7 +1176,7 @@ glob_in_dir (const char *pattern, const
struct globlink *new =
__alloca (sizeof (struct globlink));
char *p;
- len = NAMLEN (d);
+ len = _D_EXACT_NAMLEN (d);
new->name =
malloc (len + 1 + ((flags & GLOB_MARK) && isdir));
if (new->name == NULL)
- Re: AC_HEADER_DIRENT, (continued)
- Re: AC_HEADER_DIRENT, Derek R. Price, 2006/07/07
- Re: AC_HEADER_DIRENT, Derek R. Price, 2006/07/07
- Re: AC_HEADER_DIRENT, Jim Hyslop, 2006/07/07
- Re: AC_HEADER_DIRENT, Paul Eggert, 2006/07/07
- Re: AC_HEADER_DIRENT, Jim Hyslop, 2006/07/07
- Re: AC_HEADER_DIRENT, Derek R. Price, 2006/07/07
- Re: AC_HEADER_DIRENT, Jim Hyslop, 2006/07/10
- Re: AC_HEADER_DIRENT, Paul Eggert, 2006/07/10
- Re: AC_HEADER_DIRENT, Derek R. Price, 2006/07/10
- Re: AC_HEADER_DIRENT, Paul Eggert, 2006/07/11
- Re: AC_HEADER_DIRENT,
Derek R. Price <=
- Re: [bug-gnulib] AC_HEADER_DIRENT, Bruno Haible, 2006/07/11
- Re: [Cvs-dev] Re: [bug-gnulib] AC_HEADER_DIRENT, Derek R. Price, 2006/07/11
- Re: [Cvs-dev] Re: [bug-gnulib] AC_HEADER_DIRENT, Jim Hyslop, 2006/07/11
- Re: [Cvs-dev] Re: [bug-gnulib] AC_HEADER_DIRENT, Paul Eggert, 2006/07/11
- Re: [Cvs-dev] Re: [bug-gnulib] AC_HEADER_DIRENT, Derek R. Price, 2006/07/11
- Re: [Cvs-dev] Re: [bug-gnulib] AC_HEADER_DIRENT, Paul Eggert, 2006/07/11
- new dirent module (was Re: [Cvs-dev] Re: [bug-gnulib] AC_HEADER_DIRENT), Derek R. Price, 2006/07/12
- Re: new dirent module, Paul Eggert, 2006/07/12
- Re: new dirent module, Derek R. Price, 2006/07/12
- Re: new dirent module (was Re: [Cvs-dev] Re: [bug-gnulib] AC_HEADER_DIRENT), Bruno Haible, 2006/07/13