Theo Buehler wrote: > CVSROOT: /cvs > Module name: src > Changes by: [email protected] 2016/01/04 03:59:23 > > Modified files: > usr.bin/make : main.c > > Log message: > Use err(3) instead of various handrolled combinations of perror(3) and > fprintf(stderr, ...) with strerror(3) and exit(3). Make sure the exit > status is 2 if an error occurred. Prompted by gsoares@'s and jsg@'s > audit of exit statuses after failure of pledge(2). > > ok gsoares@
Note that while most err.h functions are in glibc and even musl, they aren't standardized. Because of this, a few things in base such as LibreSSL and OpenSSH use perror/exit instead. I don't know whether this is relevant to make, but I thought it was worth mentioning.
