summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-07 20:59:28 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-07 20:59:28 +0000
commit421d342d4db902e888af9ac7a81368af47bc308c (patch)
tree3283606dd7e0a78baf9128ea19410e64cd557f94 /libfshelp
parent2826c15e4954b519276b7b0f5e63d5d868781680 (diff)
Formerly fshelp.h.~6~
Diffstat (limited to 'libfshelp')
-rw-r--r--libfshelp/fshelp.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h
index 6837e708..5b39877c 100644
--- a/libfshelp/fshelp.h
+++ b/libfshelp/fshelp.h
@@ -118,5 +118,27 @@ void fshelp_translator_iterate (void (*func)(struct trans_link *, void *),
we need to. */
void fshelp_kill_translator (struct trans_link *link);
+
+
+/* Flock handling. */
+struct lock_box
+{
+ int type;
+ struct condition wait;
+ int waiting;
+ int shcount;
+};
+
+/* Call when a user makes a request to acquire an lock via file_lock.
+ There should be one lock box per object and one int per open; these
+ are passed as arguments BOX and USER respectively. FLAGS are as
+ per file_lock. MUT is a mutex which will be held whenever this
+ routine is called, to lock BOX->wait. */
+error_t fshelp_acquire_lock (struct lock_box *box, int *user,
+ struct mutex *mut, int flags);
+
+
+
+
#endif