[freebsd/kyua] 5d4df8: utils: address the deprecated `readdir_r` function...

0 views
Skip to first unread message

Enji Cooper

unread,
Dec 1, 2024, 12:19:15 AM12/1/24
to kyua...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/freebsd/kyua
Commit: 5d4df8e30bad13106c2ae58efad9bcb55659fc9e
https://github.com/freebsd/kyua/commit/5d4df8e30bad13106c2ae58efad9bcb55659fc9e
Author: Charles Hardin <charles...@storagecraft.com>
Date: 2024-11-30 (Sat, 30 Nov 2024)

Changed paths:
M utils/fs/directory.cpp

Log Message:
-----------
utils: address the deprecated `readdir_r` function usage

Replace `readdir_r` usage with `readdir` as multiple sources claim that
`readdir` must be threadsafe. In Linux (at least), this function has
been marked deprecated because of this reasoning. FreeBSD and NetBSD
have both had threadsafe implementations of `readdir` over the past
decade.

This fixes `-Wdeprecated-declarations` issues with gcc, etc, on Linux.

Co-authored-by: Enji Cooper <ng...@FreeBSD.org>


Commit: ff8e9703c58d80cd1c7655e9c7e30d3f974ac937
https://github.com/freebsd/kyua/commit/ff8e9703c58d80cd1c7655e9c7e30d3f974ac937
Author: Enji Cooper <ng...@FreeBSD.org>
Date: 2024-11-30 (Sat, 30 Nov 2024)

Changed paths:
M utils/fs/directory.cpp

Log Message:
-----------
Merge pull request #184 from ckhardin/fix/readdir_r-deprecated

utils: address the deprecated readdir_r function usage


Compare: https://github.com/freebsd/kyua/compare/66827515b0e5...ff8e9703c58d

To unsubscribe from these emails, change your notification settings at https://github.com/freebsd/kyua/settings/notifications
Reply all
Reply to author
Forward
0 new messages