diff options
author | Fred Hornsey <hornseyf@objectcomputing.com> | 2020-12-05 19:40:08 -0600 |
---|---|---|
committer | Fred Hornsey <hornseyf@objectcomputing.com> | 2020-12-05 19:54:35 -0600 |
commit | cf1d8477fd0d0f49748f30939e999b8a94c527ad (patch) | |
tree | 8423a71e137ad327b38fbb2946c0e9f5caaa0811 /ACE/ace/Dirent.inl | |
parent | c62ecd5955c1350fa25f95deb9bce2c81bc70f1c (diff) | |
download | ATCD-cf1d8477fd0d0f49748f30939e999b8a94c527ad.tar.gz |
Remove ACE_OS::readdir_r
glibc (https://man7.org/linux/man-pages/man3/readdir_r.3.html) and
FreeBSD libc (https://www.freebsd.org/cgi/man.cgi?query=readdir&sektion=3)
have both marked `readdir_r` deprecated, mainly because it can't deal
with arbitrarily long path names, so we should probably remove it.
Also removed `ACE_Dirent::(ACE_DIRENT *, ACE_DIRENT **)` which used it.
`ACE_LACKS_READDIR_R` will now always be defined.
Diffstat (limited to 'ACE/ace/Dirent.inl')
-rw-r--r-- | ACE/ace/Dirent.inl | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ACE/ace/Dirent.inl b/ACE/ace/Dirent.inl index 3e420f1cc71..24befd9f975 100644 --- a/ACE/ace/Dirent.inl +++ b/ACE/ace/Dirent.inl @@ -52,15 +52,6 @@ ACE_Dirent::read (void) return this->dirp_ ? ACE_OS::readdir (this->dirp_) : 0; } -ACE_INLINE int -ACE_Dirent::read (struct ACE_DIRENT *entry, - struct ACE_DIRENT **result) -{ - return this->dirp_ - ? ACE_OS::readdir_r (this->dirp_, entry, result) - : 0; -} - ACE_INLINE void ACE_Dirent::close (void) { |