From owner-freebsd-arch@freebsd.org Tue Jul 3 09:33:50 2018 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2BF18102EE37 for ; Tue, 3 Jul 2018 09:33:50 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B380176E84 for ; Tue, 3 Jul 2018 09:33:49 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 72BFF102EE36; Tue, 3 Jul 2018 09:33:49 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DEBF102EE35 for ; Tue, 3 Jul 2018 09:33:49 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x236.google.com (mail-wr0-x236.google.com [IPv6:2a00:1450:400c:c0c::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B6B6876E83 for ; Tue, 3 Jul 2018 09:33:48 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x236.google.com with SMTP id h10-v6so1218800wrq.8 for ; Tue, 03 Jul 2018 02:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=3eplkpB/vxMoBZVcl9AkIbk2y1OSejhciyavlj0Zl24=; b=az8/c9f/MpMVAkniacsQA7KwFyW7Xlpiy1KJHaszQCKN5qVBG5u8Lx5XlfW/Eq9LGQ ENhFrFLGFfhrhbzXuiJ2lsglbGuofZysT67pGbZPF/H2TNraMr31a23Ex/wxYFDePJrA /gJVsOT7Y8cOkX+PrRr9FxWe4WdbnpqcD6Zny8ZOOwrM5MwaBX7JrdvZ2gkXGD0pQKqi jvlEIW4KKkyfU9x3vrZrFZxxOyLah29aIEzwnMC9L0TYAP/Fp94hgJwFaSXMFELaBY/A hY0o1kCeRO8p2m0Pf0QMx4ZX//5mrDmZPxzUTX9xbslQEImOCMF2nNBa3DWiuPUuZMxe h4jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=3eplkpB/vxMoBZVcl9AkIbk2y1OSejhciyavlj0Zl24=; b=OnyP+FFWXfemTAxPDnrgAT2SNidbx/N//Ip0G3jB+3T7EKZsN4uw19SIk8I/snRw4O 0GCeeDg3NpMllwegpEYcatvnUGF5CKl66vAoXG+NS++eUq0i8uELtprzO7JVvRcqaPYy NjGW0CuN2oGtPOKQYZfptC7qlwO7YJDJU+k+TGl9qYJSNA951EGuyVMMtWmWB0Ule4sK ZBhealbSoo341P67wDQzXW2k7w/ukxs/8cjJd1w5MZ12quVVve5PZEXa+ySDIfICFU3c ARx2fQ08GGY4GjbkOs0URswI9Q02e6RvQupok52xw3znGFHTAlHHvtwRgY37fkr00M3z 9Q/w== X-Gm-Message-State: APt69E2xDSsLxWsZ9ETxbjOPR6fZ5JA2e7n+/Jk+PpwgDgl5oFYnArJX L09PhKikNRnwJvDlguwCVtoc3g== X-Google-Smtp-Source: AAOMgpcpqdprTk6bM1fbyKsAWOJ9FpHcIjvFoUWo8rHyMBj2SIz7bjM0BkUWSM2JnlIim8qm0Ar+3A== X-Received: by 2002:adf:9a0b:: with SMTP id z11-v6mr21494638wrb.47.1530610427743; Tue, 03 Jul 2018 02:33:47 -0700 (PDT) Received: from ernst.home (pD9E239C2.dip0.t-ipconnect.de. [217.226.57.194]) by smtp.gmail.com with ESMTPSA id j131-v6sm1160190wmb.25.2018.07.03.02.33.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 02:33:46 -0700 (PDT) Date: Tue, 3 Jul 2018 11:33:45 +0200 From: Gary Jennejohn To: Eitan Adler Cc: "freebsd-arch@freebsd.org" Subject: Re: xstr, mkstr Message-ID: <20180703113345.4db68896@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2018 09:33:50 -0000 On Mon, 2 Jul 2018 21:58:43 -0700 Eitan Adler wrote: > On 24 June 2018 at 02:51, Eitan Adler wrote: > > Why are these tools in base? As far as I could tell these tools are > > un-used in the build process and otherwise specialized tools. Is there > > any reason we still have them in the toolchain or in base? > > Anyone? They don't cause acute problems, but having specialized and > specific tools like this don't seem like they belong. > Reading the man pages it appears that these are old baggage left over from the PDP/VAX legacy of BSD. Their whole prupose was to reduce the memory consumed by strings in binaries on machines with little RAM. In fact, the BUGS section of mkstr(1) makes this very clear. xstr is actually used in /usr/src/contrib/bmake/mk/prog.mk. I can't tell whether this file is ever invoked. It's commented out in some other makefiles. There's a test for mkstr in /usr/src/contrib/netbsd-tests/lib/libc/regex/t_exhaust.c. Both are in /usr/src/usr.sbin/crunch/examples/really-big.conf. -- Gary Jennejohn