From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 509DA1F463 for ; Sat, 14 Sep 2019 04:33:19 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; q=dns; s=default; b=nxo4u GReCgKB23DHRz/TPIi/CzmfclA3iR5pYoSeqpPyg1ZJRItwyJOZeIGr1DNfNJ5cj dVNggAcEtADfSksbEz9tjauZgQb/ZiEIvk6Sc7akdO5K72+OStimykDvRINSUFSr IIfctfUcyAJuPGIjGa9DvbCJiX1p8urSAqU5zo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; s=default; bh=TbjfOvOECfG gN2gLAVCKeRDqJtY=; b=NnTAxGoXXIFU2Csda4FJ9r2hKeBTEIMwmHqio8ZwEqY kAN0rSzjDIVmG8FbdqnI1rXe9hbYY/5AytbdsKnjihEjcdyr3yJg8gCWDHUdYj0i rkJwQ1Po0z1jinWHfC93J/8oBBi4/qOhq5rkV4lZaxq0H4ST4mnjOwEuj5fB0rDY = Received: (qmail 23119 invoked by alias); 14 Sep 2019 04:33:16 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 23108 invoked by uid 89); 14 Sep 2019 04:33:16 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: esa4.hgst.iphmx.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1568435596; x=1599971596; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=apN1RnsxNYdOOZNxSh5De1CDo8ukgVxxWGuD3Z1RURk=; b=X90940lEpPwdGKGeuF0M38QjzRvvxORU03ZQ8CwljZNeyOZoXUxyyoci yET+W1UvuXux7LsKtzdkL6hMf0CYypk2MSWM9X2jvrdekS+zcP9qhnrWL vBbqApkwgoS1bXODlM6hlxAIq9FpmsmLALfWbXH8xJRsmRPe022uLqiA8 zy60axkoAGUVICWoO3GI4jZLGrZ7gspQDdfR0VWN9PgRM0OZ4jYC0jBhY kUtsWNfpiQKdZt6L/NtEy/EUK/TQnzFziyr0yE1c6hyT0yHhql7WsipBI xRfT4CJ3ZWKTZGmSOdwmZWj4I6EdGlC+CjNoNt9fyEmyOrOOX485V2xGB Q==; IronPort-SDR: cLyQy1k8XQ9K3kZCACGwaDi6CQAgOcwI6Da15UlslksWVJ/c4gozXeJg2Ek3bPyGqsywjnOdmu w5DVjNg77UOszjWxOF4HjsGa9AUoqUFxVFZd+2S3a46xGCvcw1RwJFK1Cop9GVW5T8h8rcVzM0 gVK+NnUOr6dX1HvxlWbMO2ZIyafOWio4WmUonIu4Dz8nl8z4hsi4+pF7j13upfcR+Su1HkSK5y sVVQjehxpqGwp7HqQOTR+9XhxRTVV4qlVx7QgC0yuvX/HfdZUEYrx95jpzUEOy+BTeReYfFWRF VvY= IronPort-SDR: /k22XJC2SPGbxx6yXvodlu+q1K4OLCxiQnKQ0je3+SdZBY0nZOABIPoERvGg4jQGB8506E3ItU Bv1dXC9NlIMMFUF7n7acdnL0a3+AlI4dkDqQa126wZoSPKx8R0o0anDzaBCcRj8vU47ULQQs8J 58oQ9CxJ3tvofC/CHMH/c859uFJsweG1sZAIyAJjcHcp8xa1NZeSYY2Tqfly78HYt6wIsWDz/5 jxV6i+WAJ1ryEoWbyXLIYSrvqnM3DbxbyTgFEOMbC9ZzrfYgGP3TyVsXUz+zKvv0DQY1njSCu4 3yFiCn8ah8kW9wn503zdu1vm IronPort-SDR: 1rpleP0Xj8CtIe5k3iiNsSlcyP8YUCEF0+yMcUf9gmtORRFESyyI7KJ7umRfTS10s3VAXInT9I sRrsWAaQ1zGYzyejsph2SU2V1iU1b9WaH2p0xAwzrkxIIOFhYmc0OaxuyVqEEKfbk7CpwP0+bw RGu+76l+PZGb4PlRSRBf3i8JD1QRgwhYBrl+B6QrZVbgQvqG0ObOpMxdD1vFZBRX24QDDviHFB Mm0KA8Yg4U3Q+62S6pvXMOTwTMBNJ40CmIX574Gor2MJrrkIKRgLMbd0wNjNYZGBC40OymkcOd VPk= WDCIronportException: Internal Date: Sat, 14 Sep 2019 05:33:03 +0100 (BST) From: "Maciej W. Rozycki" To: Florian Weimer cc: Paul Eggert , GNU C Library Subject: Re: glibc at the Toolchains microconference at LPC 2019 In-Reply-To: <87lfwukzw9.fsf@oldenburg2.str.redhat.com> Message-ID: References: <87o92kibdz.fsf@oldenburg2.str.redhat.com> <87y318r8eb.fsf@oldenburg2.str.redhat.com> <87lfwukzw9.fsf@oldenburg2.str.redhat.com> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Fri, 19 Jul 2019, Florian Weimer wrote: > > I suggest using "ssize_t or size_t" to keep the text parallel with > > "int or unsigned int". We shouldn't insist on size_t for buffer sizes > > when the natural interpretation of the value is signed (as in the > > return value for 'read' etc.) or is too large for malloc etc. > > Right. Incoming buffer sizes should be size_t (no in-band signaling). > Return values tend to have in-band signaling for errors and thus need to > be ssize_t. FYI, the response was positive and a rough transcript of the session is available from . I'll be there at the glibc BoF available to comment. Maciej