Project

General

Profile

Bug #9520

list_link_replace(9f): Documentation does not match reality

Added by Marcel Telka about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
manpage - manual pages
Start date:
2018-05-03
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

The list_link_replace(9f) man page says:

       The list_link_replace() function swaps two items on a list.  Note that
       the items need not be on the same list, but extreme care must be used
       to ensure that both lists are protected from concurrent accesses and
       that the lists were initialized with identical size and offset
       parameters.

But the actual implementation just replaces node1 on a list by an inactive (not yet on any list) node2 leaving node1 out of the list.

History

#2

Updated by Marcel Telka about 1 year ago

  • Status changed from In Progress to Pending RTI
#3

Updated by Electric Monk about 1 year ago

  • Status changed from Pending RTI to Closed
  • % Done changed from 0 to 100

git commit 2c6e2b378f8445b330094f0316685e546585f44d

commit  2c6e2b378f8445b330094f0316685e546585f44d
Author: Marcel Telka <marcel@telka.sk>
Date:   2018-05-14T12:13:57.000Z

    9520 list_link_replace(9f): Documentation does not match reality
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Yuri Pankov <yuripv@yuripv.net>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF