Project

General

Profile

Bug #6409

glob(3C) missed the memo on LF64

Added by Robert Mustacchi about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
2015-10-29
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

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.

History

#1

Updated by Electric Monk about 4 years ago

  • Status changed from New to Closed

git commit 33e8313d921ed710d7c5957cea98e220a663a1d5

commit  33e8313d921ed710d7c5957cea98e220a663a1d5
Author: Robert Mustacchi <rm@joyent.com>
Date:   2015-11-03T01:39:43.000Z

    6409 glob(3C) missed the memo on LF64
    Reviewed by: Albert Lee <trisk@omniti.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Reviewed by: Alex Wilson <alex.wilson@joyent.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF