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
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
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
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
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 "="
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