diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-23 04:46:31 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-23 04:46:31 +0000 |
commit | b49ad7e58f438882a88a0cf338a3c040abc145bb (patch) | |
tree | 06d7a662e3d9acd8fe36691df1d95a399326961e /share | |
parent | abdc05c1628df7ad5f17e160e50cc51f0ee67a3c (diff) |
Document LIST_REPLACE()
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man3/queue.3 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/share/man/man3/queue.3 b/share/man/man3/queue.3 index 1457296b882..fe6290e76e0 100644 --- a/share/man/man3/queue.3 +++ b/share/man/man3/queue.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: queue.3,v 1.18 2001/05/24 19:08:21 aaron Exp $ +.\" $OpenBSD: queue.3,v 1.19 2001/06/23 04:46:30 angelos Exp $ .\" $NetBSD: queue.3,v 1.4 1995/07/03 00:25:36 mycroft Exp $ .\" .\" Copyright (c) 1993 The Regents of the University of California. @@ -63,6 +63,7 @@ .Nm LIST_INSERT_BEFORE , .Nm LIST_INSERT_HEAD , .Nm LIST_REMOVE , +.Nm LIST_REPLACE , .Nm SIMPLEQ_ENTRY , .Nm SIMPLEQ_HEAD , .Nm SIMPLEQ_HEAD_INITIALIZER , @@ -156,6 +157,8 @@ .Fn LIST_INSERT_HEAD "LIST_HEAD *head" "struct TYPE *elm" "LIST_ENTRY NAME" .Ft void .Fn LIST_REMOVE "struct TYPE *elm" "LIST_ENTRY NAME" +.Ft void +.Fn LIST_REPLACE "struct TYPE *elm" "struct TYPE *elm2" "LIST_ENTRY NAME" .Pp .Fn SIMPLEQ_ENTRY "TYPE" .Fn SIMPLEQ_HEAD "HEADNAME" "TYPE" @@ -540,6 +543,13 @@ macro removes the element from the list. .Pp The +.Fn LIST_REPLACE +macro replaces the list element +.Fa elm +with the new element +.Fa elm2 . +.Pp +The .Fn LIST_FIRST , and .Fn LIST_NEXT |