mailing list of musl libc
 help / color / mirror / code / Atom feed
* adding errc to support sed (FreeBSD)
@ 2014-05-03 23:58 writeonce
  2014-05-04  0:04 ` Rich Felker
  2014-05-04  0:20 ` Anthony J. Bentley
  0 siblings, 2 replies; 11+ messages in thread
From: writeonce @ 2014-05-03 23:58 UTC (permalink / raw)
  To: musl

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-05-04  3:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-03 23:58 adding errc to support sed (FreeBSD) writeonce
2014-05-04  0:04 ` Rich Felker
2014-05-04  1:34   ` writeonce
2014-05-04  1:54     ` Rich Felker
2014-05-04  2:38       ` writeonce
2014-05-04  3:20         ` M Farkas-Dyck
2014-05-04  3:49           ` writeonce
2014-05-04  1:38   ` Isaac Dunham
2014-05-04  1:50     ` Rich Felker
2014-05-04  0:20 ` Anthony J. Bentley
2014-05-04  0:23   ` Anthony J. Bentley

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).