From patchwork Sun Oct 25 09:36:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 40861 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B60CB3836C73; Sun, 25 Oct 2020 09:37:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B60CB3836C73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1603618641; bh=GmFsaFA25us30rWI60UZvjBk6riGs2muZRmRsoyHlBk=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=lugSsrLrQJwJTiVKJ7jUdJ4xs6G2JVL29wrxQNnTugheng40REkTtUp3EG3gn2YqC zqyxOEV/Z4YIAu/oKtdQYL3GzvCG6VF1ZvBe1jNXHeYy1f2y0apAqU7oNRBgX6arys 7Qo+yJf+yEmYlDlGAR/zAVQ3eONoXyFWaMZOULQA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by sourceware.org (Postfix) with ESMTPS id 568F6383F876 for ; Sun, 25 Oct 2020 09:37:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 568F6383F876 Received: by mail-wm1-x341.google.com with SMTP id k18so9050947wmj.5 for ; Sun, 25 Oct 2020 02:37:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GmFsaFA25us30rWI60UZvjBk6riGs2muZRmRsoyHlBk=; b=uLoluCLy8AD7wIU/i2e91Co82Ojiht/FU2HHVSGoaJqxRxg2x9EczEkjIUDbeqxwmo Cjcf/15eSqnjeK1Mi+4pJwKn4XpqG6yZrtzhTjsWK2m7z0dqpjyDz9OY2M1jwuemlfrL eqtNDP/X9u46wqgtGKn6KYxuM/2bZSldvBx8FBfpzWd8baxfnp/sSCZFT0QAKXrYFNzt uesqTnpzlF42uH6n7MF1asJfs4UWzBaU6GJkseZdDbSSzYzlN48pcYoj6V/py9XCw1oK cVDo/Yd8fiWY7X/TheIhh0uFliOhz1b0aCMhHTgc632ZYe03NFII0HdLdRW9XlshbWlg nsYA== X-Gm-Message-State: AOAM5310wskZzb96Z3nGnGM+e0bD7WV1SPonNa0HDLCGAmK5IlcvC70d 8INt31Pb3yWQ/kcQvwxjCFBUCBK1Stc= X-Google-Smtp-Source: ABdhPJzXdFa+8LsvPnO0LIDvKt3NFzKOsdoFtj2Z6N/tFvWaiVv4ixwj2fr9ognpX8grmat298FdXQ== X-Received: by 2002:a1c:f417:: with SMTP id z23mr10319916wma.57.1603618638473; Sun, 25 Oct 2020 02:37:18 -0700 (PDT) Received: from localhost.localdomain ([170.253.60.68]) by smtp.googlemail.com with ESMTPSA id m8sm15776446wrw.17.2020.10.25.02.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 02:37:17 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 06/10] tailq.3: Copy and adapt code from queue.3 Date: Sun, 25 Oct 2020 10:36:48 +0100 Message-Id: <20201025093651.4616-7-colomar.6.4.3@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201025093651.4616-1-colomar.6.4.3@gmail.com> References: <20201025093651.4616-1-colomar.6.4.3@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Signed-off-by: Alejandro Colomar --- man3/tailq.3 | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/man3/tailq.3 b/man3/tailq.3 index 28a7ac509..6f2466cbf 100644 --- a/man3/tailq.3 +++ b/man3/tailq.3 @@ -89,26 +89,14 @@ In the macro definitions, .Fa TYPE is the name of a user defined structure, that must contain a field of type -.Li SLIST_ENTRY , -.Li STAILQ_ENTRY , -.Li LIST_ENTRY , .Li TAILQ_ENTRY , -or -.Li CIRCLEQ_ENTRY , named .Fa NAME . The argument .Fa HEADNAME is the name of a user defined structure that must be declared -using the macros -.Li SLIST_HEAD , -.Li STAILQ_HEAD , -.Li LIST_HEAD , -.Li TAILQ_HEAD , -or -.Li CIRCLEQ_HEAD . -See the examples below for further explanation of how these -macros are used. +using the macro +.Li TAILQ_HEAD . .Ss Tail queues A tail queue is headed by a structure defined by the .Nm TAILQ_HEAD @@ -317,10 +305,12 @@ from the tail queue. .\" .Fa head1 .\" and .\" .Fa head2 . -.Pp -See the EXAMPLES section below for an example program using a tail queue. .SH RETURN VALUE .SH CONFORMING TO +Not in POSIX.1, POSIX.1-2001 or POSIX.1-2008. +Present on the BSDs. +(TAILQ functions first appeared in +.Bx 4.4 ). .SH BUGS .SH EXAMPLES .Ss Tail queue example @@ -340,9 +330,9 @@ TAILQ_HEAD(tailhead, entry); int main(void) { - struct entry *n1, *n2, *n3, *np; + struct entry *n1, *n2, *n3, *np; struct tailhead head; /* Tail queue head. */ - int i; + int i; TAILQ_INIT(&head); /* Initialize the queue. */