From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by sourceware.org (Postfix) with ESMTPS id E51EC3857C52 for ; Sat, 10 Oct 2020 09:06:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E51EC3857C52 Received: by mail-wr1-x441.google.com with SMTP id n15so12678006wrq.2 for ; Sat, 10 Oct 2020 02:06:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hDbDy67tiWMfBjfP8adkxWeMajXqSwhr9+jOAsA7kY0=; b=iMi0BSHRe9FlwMSdNsj+lPmYFQnIpS5IEXsUt1/AFaVLLR3FM8PRMoKA5LhM4nfd+R XhqJ4jcf9mmTPB1CCw8QwjeJqFU14xCs7QRI3pppU42QSXVlnQ6LrAAtaGJh5bp1zm6b 7nF6WxZxRfOBftVs4NZYjEIBNw93Sne7QefrJKsqbmLXwzWJJtlruuYGSDjJM+AADs93 U4c+wcuTQz//crm5rc3W/yANVNP7CstHrbxOpUoqmr5OOI22mMrzdBKCDjKiW/9zqnb9 pNzr2BBmjSOZPUyMx3tWrO2L8o4bBK+Ft1svU9jZstP/7AWJ4XIp4CxgGgg8O+oXsT+c zg/A== X-Gm-Message-State: AOAM532JqsBpbdPhQBu/v5lgAzJ3OusasRUxeSIgLrPU33nS9JgqXKp5 GjNytpAga/4lNa06a6I3OHjC2UjYMh0Yxw== X-Google-Smtp-Source: ABdhPJwKygodNniH7dtJGwZIjKVDZ+gB1zQ9nu3/BkwlReWwhZv0ICo6s1HoIMvY2mj6i6xSS1B6nA== X-Received: by 2002:a5d:4010:: with SMTP id n16mr18281630wrp.97.1602320766830; Sat, 10 Oct 2020 02:06:06 -0700 (PDT) Received: from [192.168.1.10] (static-176-175-73-29.ftth.abo.bbox.fr. [176.175.73.29]) by smtp.gmail.com with ESMTPSA id v83sm14937661wmb.22.2020.10.10.02.06.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Oct 2020 02:06:06 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: Re: [PATCH] system_data_types.7: Add 'fd_set' To: Alejandro Colomar References: <20201009084243.8153-1-colomar.6.4.3@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: Date: Sat, 10 Oct 2020 11:06:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20201009084243.8153-1-colomar.6.4.3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_ASCII_DIVIDERS, KAM_SHORT, NICE_REPLY_A, 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-List-Received-Date: Sat, 10 Oct 2020 09:06:09 -0000 On 10/9/20 10:42 AM, Alejandro Colomar wrote: > Signed-off-by: Alejandro Colomar > --- > > Hi Michael, > > I found that POSIX defines the limit in a macro, so I used that. > > Thanks, > > Alex Thanks, Alex. Patch applied. Cheers, Michael > man7/system_data_types.7 | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 > index b0e0d2b48..a4a2e0ab8 100644 > --- a/man7/system_data_types.7 > +++ b/man7/system_data_types.7 > @@ -151,6 +151,28 @@ See also the > .I float_t > type in this page. > .RE > +.\"------------------------------------- fd_set -----------------------/ > +.TP > +.I fd_set > +.RS > +Include: > +.IR . > +Alternatively, > +.IR . > +.PP > +A structure type that can represent a set of file descriptors. > +According to POSIX, > +the maximum number of file descriptors in an > +.I fd_set > +structure is the value of the macro > +.BR FD_SETSIZE . > +.PP > +Conforming to: > +POSIX.1-2001 and later. > +.PP > +See also: > +.BR select (2) > +.RE > .\"------------------------------------- fenv_t -----------------------/ > .TP > .I fenv_t > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/