From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 313B53858D20 for ; Mon, 30 Oct 2023 09:04:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 313B53858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 313B53858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:67c:2178:6::1c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698656695; cv=none; b=Gcis0frsrqHSOZA7IvbRTiXfoZsm+z15tvE5isS5W27j3SHc7bHeh35kvRt8XYk68f3eo2Xb2zAfMDGIul59+Vm4lGaL0HIq5BMtR7WZiJdW+/0bYNwwRcaALw7lOP+6fUjmqJPv08J5EP6fATJGNJIG/oMwhYjopwTFnOvHmVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698656695; c=relaxed/simple; bh=iIn+eLfIwMfHmJebjZ3Yq9jPKAVPH+4cOVC8sE2gP4c=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=ahftTz/qL1+asnNVWu4D4Wf35JKzwEdqKNr04UtwhK4J/z16zh5lb/19fSaKoXTceRF0WWN9PY7XZjPVhitBJIck4d6t5JXaSm5V4vR7d3QIRKsFylb9uEZn8vZWEbJmlOAv0HiCgZ626mXVPoEaLn0rqjRdmDe4g295dYCR7E0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 0968821D24; Mon, 30 Oct 2023 09:04:52 +0000 (UTC) Received: from hawking.nue2.suse.org (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id A87F72CAE7; Mon, 30 Oct 2023 09:04:51 +0000 (UTC) Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 9365B4A0396; Mon, 30 Oct 2023 10:04:51 +0100 (CET) From: Andreas Schwab To: Jonny Grant Cc: Paul Eggert , Adhemerval Zanella Netto , GNU C Library , Xi Ruoyao Subject: Re: glibc misc/sys/cdefs.h nonull - typo in comment In-Reply-To: <984eaee1-251f-4917-91f3-d19b5f8a95bc@jguk.org> (Jonny Grant's message of "Sun, 29 Oct 2023 22:43:48 +0000") References: <25d0b6fa-7b45-3f8e-946a-ad3256e211a4@jguk.org> <0d99df74-fb83-1647-ca19-17d2229f0ae0@linaro.org> <514c11a4-405b-f7f3-9a67-0b6c10ad7740@jguk.org> <21bc9125ab8ced26aa85f3f787f084c4af460a18.camel@xry111.site> <84e4081c-35ef-4f2d-89d0-0fea04732737@cs.ucla.edu> <984eaee1-251f-4917-91f3-d19b5f8a95bc@jguk.org> X-Yow: Yow! It's some people inside the wall! This is better than mopping! Date: Mon, 30 Oct 2023 10:04:51 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Level: Authentication-Results: smtp-out1.suse.de; dkim=none; dmarc=none; spf=softfail (smtp-out1.suse.de: 149.44.160.134 is neither permitted nor denied by domain of schwab@suse.de) smtp.mailfrom=schwab@suse.de X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [-2.46 / 50.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[149.44.160.134:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-3.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.20)[suse.de]; R_SPF_SOFTFAIL(0.60)[~all:c]; RCPT_COUNT_FIVE(0.00)[5]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; VIOLATED_DIRECT_SPF(3.50)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-2.95)[99.78%] X-Spam-Score: -2.46 X-Rspamd-Queue-Id: 0968821D24 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_SHORT,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Okt 29 2023, Jonny Grant wrote: > glibc does go beyond POSIX and set errno to EFAULT if a null pointer constant is passed. > https://man7.org/linux/man-pages/man2/olduname.2.html > > Although I looked at glibc/posix/uname.c and it has EINVAL there, couldn't spot where the EFAULT comes from, probably there is another file. glibc never generates EFAULT on its own, it always comes from the kernel. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."