-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libast: cleanup: remove unused/obsolete get* functions
src/lib/libast/comp/{getlogin.c,getpgrp.c}: - Removed. These functions have been in POSIX for decades so their fallbacks are never used on non-museum systems. src/lib/libast/comp/getdate.c: - Removed. These unconditionally overrode the OS implementations, but they are unused in the AT&T AST code base (2016) and in ours. src/lib/libast/comp/{getopt.{c,h},getsubopt.c,getoptl.c}, src/lib/libast/include/ast_getopt.h: - Removed. These reimplementations of POSIX getopt(3) and GNU getopt_long(3) were unused in the AT&T AST code base and in ours. src/lib/libast/comp/getwd.c: - Removed. Unused and obsoleted by getcwd(3) a long time ago. src/lib/libast/comp/getgroups.c, src/lib/libast/features/botch.c: - Removed. getgroups(2) did not have a full AST fallback, but some tests for system-specific getgroups bugs (in botch.c, results installed in ast_botch.h) with workarounds (in getgroups.c), which has been present since 1995 and unchanged since 1998. The systems where these bugs were present are not documented, but it's a quarter century later, and I've never seen these bugs detected on any system I've tested, so it seems safe to assume we don't need this any more.
- Loading branch information
Showing
19 changed files
with
5 additions
and
857 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.