From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5035 Path: news.gmane.org!not-for-mail From: "Anthony J. Bentley" Newsgroups: gmane.linux.lib.musl.general Subject: Re: adding errc to support sed (FreeBSD) Date: Sat, 03 May 2014 18:23:15 -0600 Message-ID: <24736.1399162995@cathet.us> References: <536582B8.5030304@midipix.org> <4315.1399162840@cathet.us> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1399163018 26456 80.91.229.3 (4 May 2014 00:23:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2014 00:23:38 +0000 (UTC) Cc: musl@lists.openwall.com Original-X-From: musl-return-5039-gllmg-musl=m.gmane.org@lists.openwall.com Sun May 04 02:23:31 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 1WgkDK-0003Ly-V8 for gllmg-musl@plane.gmane.org; Sun, 04 May 2014 02:23:31 +0200 Original-Received: (qmail 11458 invoked by uid 550); 4 May 2014 00:23:30 -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 11447 invoked from network); 4 May 2014 00:23:30 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:cc:subject:in-reply-to:references:comments :mime-version:content-type:content-id:date:message-id; bh=+8He3cqibPwoAzHhdk/YdknAFgiYgxP35sOjx8uH9gs=; b=JHTqBlRv/hNPemhOAXwgPmQKuN6w4Z7zfmMXC4DaUNT5PFxoojfxDTO6EiX4MwWAxm ztBNgX8VS0BJv0GYJ2hyJH2BibDBHPZ6ZojpBS/qyAYZc+s6X4+mBsgANCvzQalvJ5LQ 6YYenYBIJxZ7dw56yIIobiN9WOXCsbxK/THJBq80t1IR75al9ziMKSgSKbMcEsn2PAPz suNWEGw0qHZT5kLg9JyMhhz5070G6WROf/0OwIyGLVaXj8h/FZdJOZA4e72z5HoKnlnH FDqXdzXokyCRhSA3GIc1aH9UxaAKnkKDx/P3urTUitBPvp3ZuqyF9qKfanBRVftUXEdz I42Q== X-Gm-Message-State: ALoCoQnskLeEQ+cVNeYwJURkmRcFBT4hvH16z/XzkO3G2vK2qqJs9LZE7unrwccHtXMDqiaaQNxp X-Received: by 10.50.79.161 with SMTP id k1mr14472447igx.31.1399162998172; Sat, 03 May 2014 17:23:18 -0700 (PDT) In-reply-to: <4315.1399162840@cathet.us> Comments: In-reply-to "Anthony J. Bentley" message dated "Sat, 03 May 2014 18:20:40 -0600." Content-ID: <27893.1399162995.1@cathet.us> Xref: news.gmane.org gmane.linux.lib.musl.general:5035 Archived-At: "Anthony J. Bentley" writes: > "writeonce@midipix.org" writes: > > 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); > > } > > If you add this then you should probably implement verrc, warnc, and > vwarnc as well. > > These functions exist in FreeBSD, NetBSD, and OS X and are probably > going to be added to OpenBSD soon. Actually they are already in OpenBSD too. -- Anthony J. Bentley