glob(3C) missed the memo on LF64
With the introduction of various glob extensions, glob(3C) grew functionality that uses the stat and dirent structures. Those structures contain members of type off_t and thus are subject to change depending on whether or not large file support is being specified in the environment. Unfortunately, glob(3C) does not take the fact that callers may have different sized stat and dirent structures than it expects. With most callers a discrepancy here will cause the proverbial wheels to fall off the truck. The solution is simple, we need to build a set of entry points for glob(3C) that are LF64 aware and when we're compiling in that manner, use #pragma redefine_extname to redirect us in the proper manner.
Updated by Electric Monk about 4 years ago
- Status changed from New to Closed
commit 33e8313d921ed710d7c5957cea98e220a663a1d5 Author: Robert Mustacchi <email@example.com> Date: 2015-11-03T01:39:43.000Z 6409 glob(3C) missed the memo on LF64 Reviewed by: Albert Lee <firstname.lastname@example.org> Reviewed by: Gary Mills <email@example.com> Reviewed by: Alex Wilson <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>