From owner-freebsd-arch@FreeBSD.ORG Fri Apr 17 12:08:53 2015 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2A744E0A; Fri, 17 Apr 2015 12:08:53 +0000 (UTC) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D562A779; Fri, 17 Apr 2015 12:08:52 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Yj54d-0004TD-Lf; Fri, 17 Apr 2015 15:08:43 +0300 Date: Fri, 17 Apr 2015 15:08:43 +0300 From: Slawa Olhovchenkov To: Konstantin Belousov Cc: arch@freebsd.org, peter@freebsd.org Subject: Re: Removal of the 6.x kernel compat code from libc Message-ID: <20150417120843.GQ1394@zxy.spb.ru> References: <20150417075942.GI2390@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150417075942.GI2390@kib.kiev.ua> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false 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 12:08:53 -0000 On Fri, Apr 17, 2015 at 10:59:42AM +0300, Konstantin Belousov wrote: > Our libc changes in sync with the kernel, but switching of libc to use > new interfaces means that upgrade of the userspace becomes the flag day. > People usually add backward-compatible shims for libc to use older > interfaces on old kernels. > > There is no reason to keep the compat shims after many years of the > transition. Patch below purges the compat code for pre-r171219, which > added pad-less versions of syscalls taking off_t, and for r177911, which > handles the struct flock/oflock transition. This is 6.x/7.x compat, > we absolutely not support running HEAD libc on such old kernels. In general, what purpose for leaving conditional compilation for different versions in kernel/base sources? subversion repo already store different version in correlation.