Project

General

Profile

Feature #2832

libsocket should go the way of libpthread

Added by Keith Wesolowski almost 8 years ago. Updated over 2 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:

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.

History

#1

Updated by Keith Wesolowski almost 8 years ago

Apparently libsocket is already there, so this applies to libnsl only.

#2

Updated by Yuri Pankov about 7 years ago

Keith Wesolowski wrote:

Apparently libsocket is already there, so this applies to libnsl only.

Sadly, it doesn't seem to be the case.

#3

Updated by Rich Lowe almost 7 years ago

  • Assignee changed from Keith Wesolowski to Rich Lowe
  • % Done changed from 0 to 60
#4

Updated by Yuri Pankov over 2 years ago

  • Subject changed from libsocket and libnsl should go the way of libpthread to libsocket should go the way of libpthread
  • Status changed from New to In Progress
  • Assignee changed from Rich Lowe to Yuri Pankov
  • % Done changed from 60 to 30

libnsl should stay as it has a lot of other code that simply doesn't belong to libc, though some of its citizens can move.

Also available in: Atom PDF