summaryrefslogtreecommitdiff
path: root/ulfs.h
diff options
context:
space:
mode:
authorGianluca Guida <glguida@gmail.com>2005-05-29 16:37:07 +0000
committerGianluca Guida <glguida@gmail.com>2005-05-29 16:37:07 +0000
commit60e5cc0a61638f9ffd9be22f3fbecc66ae174e03 (patch)
tree167a30eb690aa42d83610679e679564f3f66cafa /ulfs.h
parenta3076a2b40ebe183769eb8c163f5ecda107d955f (diff)
stow major fixes
Diffstat (limited to 'ulfs.h')
-rw-r--r--ulfs.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/ulfs.h b/ulfs.h
index 61e5496..dbb59d3 100644
--- a/ulfs.h
+++ b/ulfs.h
@@ -1,5 +1,5 @@
/* Hurd unionfs
- Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc.
Written by Moritz Schulte <moritz@duesseldorf.ccc.de>.
This program is free software; you can redistribute it and/or
@@ -27,7 +27,7 @@ typedef struct ulfs
{
char *path;
int flags;
- struct ulfs *next, *prev, **prevp;
+ struct ulfs *next, *prev;
} ulfs_t;
/* Flags. */
@@ -60,15 +60,18 @@ error_t ulfs_get_num (int num, ulfs_t **ulfs);
/* Get an ulfs element by the associated path. */
error_t ulfs_get_path (char *path, ulfs_t **ulfs);
+/* Removes invalid ulfs entries. */
+void ulfs_check (void);
+
#define ulfs_iterate \
for (ulfs_t *ulfs = (mutex_lock (&ulfs_lock), \
- ulfs_chain_end); \
+ ulfs_chain_start); \
ulfs || (mutex_unlock (&ulfs_lock), 0); \
- ulfs = ulfs->prev)
+ ulfs = ulfs->next)
#define ulfs_iterate_unlocked \
- for (ulfs_t *ulfs = ulfs_chain_end; \
+ for (ulfs_t *ulfs = ulfs_chain_start; \
ulfs; \
- ulfs = ulfs->prev)
+ ulfs = ulfs->next)
#endif