From owner-freebsd-arch@FreeBSD.ORG Fri Apr 17 13:08:05 2015 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C406220A; Fri, 17 Apr 2015 13:08:05 +0000 (UTC) Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82E66DDF; Fri, 17 Apr 2015 13:08:05 +0000 (UTC) Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de [172.20.27.149]) by mailout06.t-online.de (Postfix) with SMTP id E6F5445E78A; Fri, 17 Apr 2015 15:07:56 +0200 (CEST) Received: from [192.168.119.11] (ZG0T-kZVrh01ZzjxVUKyQTnVRSk8Rjhi0KUNSazwe93zt-AsJPUTc3yZOMxvce2w-G@[84.154.96.188]) by fwd05.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1Yj5zv-1wMTFQ0; Fri, 17 Apr 2015 15:07:55 +0200 Message-ID: <5531059F.4060500@freebsd.org> Date: Fri, 17 Apr 2015 15:07:43 +0200 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Konstantin Belousov , "freebsd-arch@freebsd.org" CC: Oliver Pinter , peter@freebsd.org Subject: Re: Removal of the 6.x kernel compat code from libc References: <20150417075942.GI2390@kib.kiev.ua> <20150417121034.GN2390@kib.kiev.ua> In-Reply-To: <20150417121034.GN2390@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-ID: ZG0T-kZVrh01ZzjxVUKyQTnVRSk8Rjhi0KUNSazwe93zt-AsJPUTc3yZOMxvce2w-G X-TOI-MSGID: b3979033-b9bc-41f6-9947-ab4b692d4eb8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2015 13:08:05 -0000 Am 17.04.2015 um 14:10 schrieb Konstantin Belousov: > On Fri, Apr 17, 2015 at 01:39:04PM +0200, Oliver Pinter wrote: >> >> Is there any chanche to get ride of the very old (FreeBSD 2.x) compat >> hacks like these: >> https://github.com/freebsd/freebsd/blob/master/lib/libc/gen/setproctitle.c#L40 ? > > I will clean up setproctitle.c after the posted pieces of libc changes are > committed. > > Apparently, there is no other direct uses of getosreldate() in libc, > besides ones from the patch posted and futimens()/utimensat(). The later > must stay for quite a time. > >> >> I like the idea, to purge out the old stuffs/hacks from the FreeBSD. Could we get rid of check_utility_compat(3) on that occasion? It is only used (AFAIK) to select FreeBSD-4 compatible behaviour of expr(1), which can also be selected with option "-e" and env variable COMPAT_EXPR. I doubt that anybody relies on non-POSIX behaviour that has been deprecated for some 15 years ... We'll need to preserve a stub function for check_utility_compat(3), I'm afraid, but I think we can remove the environment variable and the actual checking for a sym-link named "/etc/compat-FreeBSD-4-util" at startup of expr. (I bet, nobody even knew that the behaviour of expr could be changed with above sym-link ...) If there is consensus, I could prepare a patch to remove the check and to update the man-page for expr (just for -CURRENT, no MFC). Regards, STefan