summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2010-02-24 14:51:10 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2010-02-24 14:51:10 (GMT)
commit3129cb2765aabbc1ba0dd678350e04f9dcda467f (patch)
tree2337a890bb647af8d23b4362f9bc69b24c385169
parent8a6d2e02be1d5c9dcf255271124d7aaaa66060b2 (diff)
downloadhdf5-3129cb2765aabbc1ba0dd678350e04f9dcda467f.zip
hdf5-3129cb2765aabbc1ba0dd678350e04f9dcda467f.tar.gz
hdf5-3129cb2765aabbc1ba0dd678350e04f9dcda467f.tar.bz2
[svn-r18328] 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 the same change for 1.8 on OpenVMS. ------------------------------------------------------------------------ #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> 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; }
-rw-r--r--vms/src/h5pubconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vms/src/h5pubconf.h b/vms/src/h5pubconf.h
index ab05452..c836808 100644
--- a/vms/src/h5pubconf.h
+++ b/vms/src/h5pubconf.h
@@ -323,7 +323,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