Project

General

Profile

Feature #2832

libsocket should go the way of libpthread

Added by Keith Wesolowski over 8 years ago. Updated over 3 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2012-06-04
Due date:
% Done:

30%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Like libw, libpthread, and others before it, libsocket and libnsl should move into libc and enter retirement as filters.

While most software written with portability in mind at all knows about these two problem children, this remains a persistent source of complaints and frustration for no apparent reason. Over 2/3 of the processes on randomly sampled systems already have these libraries in their address spaces, and for those that do not, the cost is 3 pages (2 for libnsl's data and 1 for libsocket's). Even on a large system with thousands of processes, the cost will be less than 20MB total, well below 0.1% of DRAM on such systems. Systems with fewer processes, or a larger share of processes that need these libraries anyway, will pay a proportionately lower price.

Also available in: Atom PDF