From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5032 Path: news.gmane.org!not-for-mail From: "writeonce@midipix.org" Newsgroups: gmane.linux.lib.musl.general Subject: adding errc to support sed (FreeBSD) Date: Sat, 03 May 2014 19:58:48 -0400 Message-ID: <536582B8.5030304@midipix.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1399161556 11759 80.91.229.3 (3 May 2014 23:59:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 23:59:16 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5036-gllmg-musl=m.gmane.org@lists.openwall.com Sun May 04 01:59:09 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Wgjpk-0005CB-GL for gllmg-musl@plane.gmane.org; Sun, 04 May 2014 01:59:08 +0200 Original-Received: (qmail 30125 invoked by uid 550); 3 May 2014 23:59:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30114 invoked from network); 3 May 2014 23:59:06 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 Xref: news.gmane.org gmane.linux.lib.musl.general:5032 Archived-At: Greetings, The FreeBSD implementation of sed uses errc; its implementation should probably be as simple as: _Noreturn void errc(int eval, int status, const char *fmt, ...) { va_list ap; va_start(ap, fmt); vwarnx(status, fmt, ap); va_end(ap); exit(eval); } The FreeBSD sed also needs a couple of macros that are currently not defined, specifically ALLPERMS, DEFFILEMODE and REG_STARTEND. Any reason not to add them when _BSD_SOURCE is defined? Kind regards, zg