From 1c393d5f1c81ae8f32e8ec745a4cc6f4596333c2 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Wed, 24 Feb 2010 09:45:42 -0500 Subject: [svn-r18327] I commented out the macro H5_HAVE_SYMLINK because I ran the following C test under hdf5/test directory. OpenVMS couldn't open a file through symbolic link. This macro is mainly used in test/links.c for the function call external_symlink and in src/H5F.c. Tested on OpenVMS. ------------------------------------------------------------------------ #include #include #include #include #include #include int main(void) { int file1, file2; /* Create a symbolic link to the file 21b.c */ if(symlink("[LU.hdf5_1_8_2_5.test.tmp2]21b.c", "[LU.hdf5_1_8_2_5.test.tmp]sym1") < 0) printf("symlink failed\n"); /* Create the file 21b.c */ if((file1 = open("[LU.hdf5_1_8_2_5.test.tmp2]21b.c", O_CREAT | O_TRUNC | O_RDWR)) < 0) printf("1st open failed\n"); if(close(file1) < 0) printf("close failed\n"); /* Open the 21b.c through the symbolic link */ if((file2 = open("[LU.hdf5_1_8_2_5.test.tmp]sym1", O_RDWR)) < 0) { int errsv = errno; printf("2nd open failed, errno=%d\n", errsv); } if(close(file2) < 0) printf("close failed\n"); return 0; } --- vms/src/h5pubconf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vms/src/h5pubconf.h b/vms/src/h5pubconf.h index 7c10266..28f9ee9 100644 --- a/vms/src/h5pubconf.h +++ b/vms/src/h5pubconf.h @@ -309,7 +309,7 @@ /* #undef H5_HAVE_STRUCT_VIDEOCONFIG */ /* Define to 1 if you have the `symlink' function. */ -#define H5_HAVE_SYMLINK 1 +/* #define H5_HAVE_SYMLINK 1 */ /* Define to 1 if you have the `system' function. */ #define H5_HAVE_SYSTEM 1 -- cgit v0.12