daily CVS update output

2024-01-16 Thread NetBSD source update
Updating src tree: P src/bin/sh/sh.1 P src/doc/3RDPARTY P src/sys/arch/amiga/amiga/locore.s P src/sys/arch/atari/atari/locore.s P src/sys/arch/cesfic/cesfic/locore.s P src/sys/arch/hp300/conf/files.hp300 P src/sys/arch/hp300/dev/arcofi_dio.c P src/sys/arch/hp300/dev/com_dio.c P

Re: mktemp POSIX (and Linux) divergence

2024-01-16 Thread Lloyd Parkes
Kia ora, In one out of one samples I checked, the result of mktemp was only checked for != NULL rather than a more robust check. That same sample (xsrc/external/mit/smproxy/dist/save.c) also preferred to use mkstemp. mktemp() got removed from POSIX because using it is just wrong. Given how much

mktemp POSIX (and Linux) divergence

2024-01-16 Thread Thomas Klausner
Hi! Our mktemp man page says: RETURN VALUES The mktemp() and mkdtemp() functions return a pointer to the template on success and NULL on failure. But POSIX[1] (and Linux) say: The mktemp() function shall return the pointer template. If a unique name cannot be created, template