DECC$POSIX_COMPLIANT_PATHNAMES break fopen of "/dev/null"
Defined DECC$POSIX_COMPLIANT_PATHNAMES to 2 break rename runtime functions.
Reproducer: Create the following procedure pb_pcp_null.com
$ create baz.c
#include <stat.h>
#include <stdio.h>
#include <errno.h>
main() {
FILE* fo;
errno = 0;
fo = fopen("/dev/null", "w");
printf("fo=%X", fo);
}
$
$ cc baz
$ link baz
$
$ write sys$output "without DECC$POSIX_COMPLIANT_PATHNAMES defined"
$ write sys$output ""
$ run baz
$
$ write sys$output ""
$ write sys$output ""
$ write sys$output "with DECC$POSIX_COMPLIANT_PATHNAMES defines to 2"
$ write sys$output ""
$ define DECC$POSIX_COMPLIANT_PATHNAMES 2
$ run baz
$ deass DECC$POSIX_COMPLIANT_PATHNAMES
$
$ delete baz.c;*
$ delete baz.obj;*
$ delete baz.exe;*
$
Then running this file gives:
without DECC$POSIX_COMPLIANT_PATHNAMES defined
fo=7B855E5C
with DECC$POSIX_COMPLIANT_PATHNAMES defines to 2
fo=0