From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward502b.mail.yandex.net (forward502b.mail.yandex.net [178.154.239.146]) by sourceware.org (Postfix) with ESMTPS id 173663857737 for ; Wed, 14 Feb 2024 07:53:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 173663857737 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 173663857737 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=178.154.239.146 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707897238; cv=none; b=lbQa1Gwu4JDlxby1fA6lN6a+hkXBu0ozP4anwth8pnYLssAzeHljGvVzZMRs/D53eCDE0ZslhbW8ChqnbCFO6W/Fes+1Zp9cv5UCJAZB98hZsVyPH84/cYcqov0rjDzLQCliQIyun8o2D9OuoboP3N/j2MjedzfU3xd4PHoFjIw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707897238; c=relaxed/simple; bh=igrGt1JpFHK3fxmgETqyxcXq1Kt/KCwDI3G8xJtIPsY=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=DBx++ZcrTtGCnMbNHr8IxjitEN6skJc6t5IGzb62o1ii3R5kLCPYeeqNiFeSTXQ9uo+kgqvd9Iad5illrwvaM4Kpvzk8wYqOEpQikq1dk3lY7XaKWeYtf/gZObKd1wWBk12ucNDiK5Zx9MTlW1ZjI/HgTM0zclLThhfb11OtBd4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail-nwsmtp-smtp-production-main-60.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-60.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:a088:0:640:6c7c:0]) by forward502b.mail.yandex.net (Yandex) with ESMTPS id 93CDE5F151; Wed, 14 Feb 2024 10:53:53 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-60.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id qriMSaj8RW20-xgfDDmQK; Wed, 14 Feb 2024 10:53:53 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1707897233; bh=WoAh7tgG3G6SU+zWy6n85JNDxqwSsgXYen/i2JISZFU=; h=In-Reply-To:Date:References:To:From:Subject:Message-ID; b=G86AEICqycMjhn7ss3aZ8KqWMak3ErWwfIMxOabp0Wp/Cb18Qd49wiK4O4HEcjPLJ 756jqsagkjPmAOi8zCs0l1AIPi268d11Dzoe+MDo881qkA4N0GBowj/mMV1AGrRekn CQyZMB0Pb1r7iTirgfkCbOxu620Dh2RfT43Md3+E= Authentication-Results: mail-nwsmtp-smtp-production-main-60.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <42e51cf234525f651706d3f3157f7394d7d301b7.camel@yandex.ru> Subject: Re: errnos.h usage From: Konstantin Kharlamov To: Lucas Augusto Valentim Dantas , "libc-help@sourceware.org" Date: Wed, 14 Feb 2024 10:53:52 +0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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 Wed, 2024-02-14 at 04:59 +0000, Lucas Augusto Valentim Dantas via Libc-help wrote: > Hello, I have been playing around with Doom's source code, the 90s > one, and I have noticed that it has a header included named errnos.h > that I have recently learned that it was actually present in glibc > beginning from 2.0.0 (I think) until 2.0.7. Could anyone shed light > on why it was added to glibc and later removed? > > https://sources.debian.org/src/glibc/2.0.7t-1/sysdeps/unix/sysv/linux/err= nos.h/ > https://github.com/id-Software/DOOM/blob/master/linuxdoom-1.10/i_video.c#= L49 Judging by the commit 5107cf1d7d27f17c6de68ec15a8e8d9dd5b471c1 description = from 1997: > * sysdeps/mach/hurd/errnos.h: -> .../bits/errno.h > * sysdeps/standalone/arm/errnos.h: Likewise. > * sysdeps/stub/errnos.h: Likewise. > * sysdeps/unix/bsd/bsd4.4/errnos.h: Likewise. > * sysdeps/unix/sysv/linux/errnos.h: Likewise. all platform-specific `errnos.h` were merged into a single file `errno.h`.