summaryrefslogtreecommitdiffstats
path: root/src/H5FDsec2.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-12-07 03:27:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-12-07 03:27:19 (GMT)
commit1d8a1b22f1f7412b00739c38524fa4de2c3b8b4e (patch)
treeef4de18b79218d148c16472880c39846660142f0 /src/H5FDsec2.c
parent77a3cc2292f6021a306372284c20882b8dc8eeeb (diff)
downloadhdf5-1d8a1b22f1f7412b00739c38524fa4de2c3b8b4e.zip
hdf5-1d8a1b22f1f7412b00739c38524fa4de2c3b8b4e.tar.gz
hdf5-1d8a1b22f1f7412b00739c38524fa4de2c3b8b4e.tar.bz2
[svn-r17972] Description:
Bring r17971 from trunk to 1.8 branch: Allow the core VFD to properly support opening backing store files through symbolic links and have the external links in the file be treated in the same way as for the sec2 driver. Tested on: FreeBSD/32 6.3 (duty) in debug mode (h5committested on trunk)
Diffstat (limited to 'src/H5FDsec2.c')
-rw-r--r--src/H5FDsec2.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index 540c0b4..4102d53 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -328,19 +328,18 @@ done:
*
*-------------------------------------------------------------------------
*/
-/* ARGSUSED */
static H5FD_t *
H5FD_sec2_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
{
- int o_flags;
- int fd=(-1);
- H5FD_sec2_t *file=NULL;
+ H5FD_sec2_t *file = NULL; /* sec2 VFD info */
+ int fd = (-1); /* File descriptor */
+ int o_flags; /* Flags for open() call */
#ifdef _WIN32
HFILE filehandle;
struct _BY_HANDLE_FILE_INFORMATION fileinfo;
#endif
h5_stat_t sb;
- H5FD_t *ret_value;
+ H5FD_t *ret_value; /* Return value */
FUNC_ENTER_NOAPI(H5FD_sec2_open, NULL)