[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Cvs-dev] Re: AC_HEADER_DIRENT
From: |
Derek R. Price |
Subject: |
Re: [Cvs-dev] Re: AC_HEADER_DIRENT |
Date: |
Tue, 11 Jul 2006 08:54:47 -0400 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim Hyslop wrote:
> Sorry about the delay responding. I have committed the patch, with some
> trivial fine-tuning, to the CVS source. CVS's ndir.* are now dead.
Hi Jim,
I did a little more tweaking, to remove (struct dirent)->d_ino and add
_D_EXACT_NAMLEN, mostly. I also replaced the BSD MAXNAMLEN macro with
the POSIX.1 NAME_MAX.
You might want to verify that it still works.
2006-07-11 Derek Price <derek@ximbiot.com>
* dirent.h: Remove #include <config.h>.
(struct dirent): Remove unimplemented d_ino since POSIX declares
it an extension. Add d_namlen.
(struct dircontents): Add length field.
[_D_EXACT_NAMLEN]: Define.
[MAXNAMLEN]: Replace with...
[NAME_MAX]: ...this macro, for POSIX.
* dirent.c: #include <config.h>.
(opendir): Don't check return from xmalloc. Store length of dir
name.
(readdir_r): Remove d_ino. Store d_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:derek@ximbiot.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEs5+XLD1OTBfyMaQRAoO/AJ99v35kmndLcK+C0F/F7aK+NZy8iQCfWI1C
7OkKeQLvzxiP8UwuJ8AYuQ8=
=UZcf
-----END PGP SIGNATURE-----
- Re: AC_HEADER_DIRENT, (continued)
- 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
- Re: [Cvs-dev] Re: [bug-gnulib] AC_HEADER_DIRENT, Karl Berry, 2006/07/11
- Re: [Cvs-dev] Re: AC_HEADER_DIRENT,
Derek R. Price <=
- Re: [Cvs-dev] Re: AC_HEADER_DIRENT, Jim Hyslop, 2006/07/11
- Re: [Cvs-dev] Re: AC_HEADER_DIRENT, Derek R. Price, 2006/07/11