Port getprogname module to SCO OpenServer

2020-10-01 Thread Benji Wiebe
I ported the getprogname module to SCO OpenServer 6 (should also work on OSR5 and UnixWare). It prevents several OSS packages from building. I just made it read from /proc//cmdline to get the command name. The patch is below. Comments are welcome. Thanks! -Benji diff --git a/lib/getprognam

Re: hard-locale.c: SETLOCALE_NULL_MAX

2020-10-01 Thread Marc Nieper-Wißkirchen
Hi Bruno, thank you for your reply. I could finally track down the error. It was in my build configuration. Somehow, the wrong "-I ..." flags were set up during the compilation of the Gnulib modules. It's working now. So, everything is alright with Gnulib and I can retract my bug report. Please ex

Re: Port getprogname module to SCO OpenServer

2020-10-01 Thread Bruno Haible
Hi Benji, > I just made it read from /proc//cmdline to get the command name. > The patch is below. Comments are welcome. Thanks! Thanks for the patch. I have a couple of improvement suggestions, though: > + char buf[50]; > + char *ret; > + int fd; > + int pathlen; Can you try to minimize t

Re: Port getprogname module to SCO OpenServer

2020-10-01 Thread Tim Rice
Hi Benji, On Wed, 30 Sep 2020, Benji Wiebe wrote: > I ported the getprogname module to SCO OpenServer 6 (should also work on OSR5 > and UnixWare). It prevents several OSS packages from building. No proc filesystem on Openserver 5 so it will not work there. Would need a different "#ifdef" for 5

Re: Port getprogname module to SCO OpenServer

2020-10-01 Thread Benji Wiebe
Oh and I forgot to mention, the cast from strrchr is needed to silence a warning from SCO's CC: UX:acomp: WARNING: "gpn_test.c", line 16: improper pointer/integer combination: op "="

another stdio patch for UnixWare

2020-10-01 Thread Tim Rice
I have attached an additional patch for the stdio parts 2020-09-30 Tim Rice * lib/stdio-impl.h: Add support for UnixWare * lib/freadahead.c: Use __fpending on UnixWare * lib/fflush.c: Update comments for UnixWare * lib/fpending.c: Likewise. * lib/freadab