diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2010-02-24 14:45:42 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2010-02-24 14:45:42 (GMT) |
commit | 1c393d5f1c81ae8f32e8ec745a4cc6f4596333c2 (patch) | |
tree | 667e0357734d66488b3a34f4346b32b7e8795678 /vms | |
parent | 510ee78c0fa36e603c4812c23c3290fae82c2a23 (diff) | |
download | hdf5-1c393d5f1c81ae8f32e8ec745a4cc6f4596333c2.zip hdf5-1c393d5f1c81ae8f32e8ec745a4cc6f4596333c2.tar.gz hdf5-1c393d5f1c81ae8f32e8ec745a4cc6f4596333c2.tar.bz2 |
[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 <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;
}
Diffstat (limited to 'vms')
-rw-r--r-- | vms/src/h5pubconf.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |