From mboxrd@z Thu Jan 1 00:00:00 1970 From: lm@mcvoy.com (Larry McVoy) Date: Tue, 19 Sep 2017 06:22:50 -0700 Subject: [TUHS] Happy birthday, Dennis Ritchie! [ really sun vs dec/apollo --> X and NeWS ] In-Reply-To: <20170919072214.xcoxucuznd7q3eak@matica.foolinux.mooo.com> References: <1505782328.3172479.1110519744.63D53ACC@webmail.messagingengine.com> <20170919025031.GA25650@mcvoy.com> <20170919072214.xcoxucuznd7q3eak@matica.foolinux.mooo.com> Message-ID: <20170919132250.GK25650@mcvoy.com> On Tue, Sep 19, 2017 at 12:22:14AM -0700, Ian Zimmerman wrote: > On 2017-09-18 19:50, Larry McVoy wrote: > > > So in the BitKeeper source, perror is redifined to my_perror which is > > this: > > > > void > > my_perror(char *file, int line, char *msg) > > That is a different signature from perror, so I presume you mean you did > something along the lines of > > #define perror(s) (my_perror(__FILE__, __LINE__, (s))) Yep. It's much nicer knowing where in the source the error is coming from. Personally, I think this should be the libc version but I'm weird :)