Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 03 May 2014 18:20:40 -0600
From: "Anthony J. Bentley" <anthony@...het.us>
To: musl@...ts.openwall.com
Subject: Re: adding errc to support sed (FreeBSD)

"writeonce@...ipix.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.

-- 
Anthony J. Bentley

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.