summaryrefslogtreecommitdiffstats
path: root/src/H5Fmount.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
commit6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch)
tree5a7a112fe7a8a98c6fecb45b513789d15962eb3d /src/H5Fmount.c
parent6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff)
downloadhdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2
[svn-r11245] Purpose:
Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5Fmount.c')
-rw-r--r--src/H5Fmount.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/H5Fmount.c b/src/H5Fmount.c
index 18feb9c..0bff83b 100644
--- a/src/H5Fmount.c
+++ b/src/H5Fmount.c
@@ -35,7 +35,7 @@ NAME
H5F_init_mount_interface -- Initialize interface-specific information
USAGE
herr_t H5F_init_mount_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -71,7 +71,7 @@ H5F_close_mounts(H5F_t *f)
{
unsigned u; /* Local index */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_close_mounts, FAIL)
HDassert(f);
@@ -132,7 +132,7 @@ H5F_mount(H5G_entry_t *loc, const char *name, H5F_t *child,
H5G_entry_t mp_open_ent; /* entry of moint point to be opened */
H5RS_str_t *name_r; /* Ref-counted version of name */
herr_t ret_value = SUCCEED; /*return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_mount)
assert(loc);
@@ -161,7 +161,7 @@ H5F_mount(H5G_entry_t *loc, const char *name, H5F_t *child,
if(parent->shared->fc_degree != child->shared->fc_degree)
HGOTO_ERROR(H5E_FILE, H5E_MOUNT, FAIL, "mounted file has different file close degree than parent")
-
+
/*
* Use a binary search to locate the position that the child should be
* inserted into the parent mount table. At the end of this paragraph
@@ -184,7 +184,7 @@ H5F_mount(H5G_entry_t *loc, const char *name, H5F_t *child,
md++;
if (!cmp)
HGOTO_ERROR(H5E_FILE, H5E_MOUNT, FAIL, "mount point is already in use")
-
+
/* Make room in the table */
if (parent->mtab.nmounts>=parent->mtab.nalloc) {
unsigned n = MAX(16, 2*parent->mtab.nalloc);
@@ -249,7 +249,7 @@ done:
*
* Pedro Vicente, <pvn@ncsa.uiuc.edu> 22 Aug 2002
* Added `id to name' support.
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -265,7 +265,7 @@ H5F_unmount(H5G_entry_t *loc, const char *name, hid_t dxpl_id)
H5G_entry_t mnt_open_ent; /* entry used to open mount point*/
int child_idx; /* Index of child in parent's mtab */
herr_t ret_value = SUCCEED; /*return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_unmount)
assert(loc);
@@ -391,7 +391,7 @@ H5F_mountpoint(H5G_entry_t *find/*in,out*/)
int cmp;
H5G_entry_t *ent = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_mountpoint, FAIL)
assert(find);
@@ -432,7 +432,7 @@ H5F_mountpoint(H5G_entry_t *find/*in,out*/)
parent = ent->file;
}
} while (!cmp);
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -457,7 +457,7 @@ htri_t
H5F_has_mount(const H5F_t *file)
{
htri_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_has_mount, FAIL)
assert(file);
@@ -466,7 +466,7 @@ H5F_has_mount(const H5F_t *file)
ret_value=TRUE;
else
ret_value=FALSE;
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_has_mount() */
@@ -491,7 +491,7 @@ htri_t
H5F_is_mount(const H5F_t *file)
{
htri_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_is_mount, FAIL)
assert(file);
@@ -500,7 +500,7 @@ H5F_is_mount(const H5F_t *file)
ret_value=TRUE;
else
ret_value=FALSE;
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_is_mount() */
@@ -527,7 +527,7 @@ H5Fmount(hid_t loc_id, const char *name, hid_t child_id, hid_t plist_id)
H5G_entry_t *loc = NULL;
H5F_t *child = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Fmount, FAIL)
H5TRACE4("e","isii",loc_id,name,child_id,plist_id);
@@ -579,7 +579,7 @@ H5Funmount(hid_t loc_id, const char *name)
{
H5G_entry_t *loc = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Funmount, FAIL)
H5TRACE2("e","is",loc_id,name);
@@ -629,7 +629,7 @@ H5F_mount_count_ids_recurse(H5F_t *f, unsigned *nopen_files, unsigned *nopen_obj
if(f->file_id > 0)
*nopen_files += 1;
- /* Increment number of open objects in file
+ /* Increment number of open objects in file
* (Reduced by number of mounted files, we'll add back in the mount point's
* groups later, if they are open)
*/
@@ -666,7 +666,7 @@ herr_t
H5F_mount_count_ids(H5F_t *f, unsigned *nopen_files, unsigned *nopen_objs)
{
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_mount_count_ids, FAIL)
/* Sanity check */