summaryrefslogtreecommitdiff
path: root/filter.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-11 23:18:01 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-11 23:18:01 +0000
commit06ade0f4a6fc3f994fcf37615a96bd11e17dcc4c (patch)
tree04179cac0cf1a1cf57fcda54359c26e98f4391c3 /filter.c
parenta85ac8c0d182245d75eed1136503a57ac1c3a8fa (diff)
Fix build against libpthread
* Makefile.am (filter_LDADD): Use -lpthread instead of -lthreads. * filter.h: Include <pthread.h> instead of <cthreads.h> * filter.c: Use pthread functions instead of cthreads functions. * node.h: Likewise. * node.c: Likewise.
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/filter.c b/filter.c
index ccf512556..8a9089545 100644
--- a/filter.c
+++ b/filter.c
@@ -84,7 +84,7 @@ error_t
LOG_MSG ("netfs_attempt_create_file");
/*Unlock `dir` and say that we can do nothing else here */
- mutex_unlock (&dir->lock);
+ pthread_mutex_unlock (&dir->lock);
return EOPNOTSUPP;
} /*netfs_attempt_create_file */
@@ -230,7 +230,7 @@ error_t
LOG_MSG ("netfs_attempt_lookup: '%s'", name);
/*Unlock the mutexes in `dir` */
- mutex_unlock (&dir->lock);
+ pthread_mutex_unlock (&dir->lock);
return EOPNOTSUPP;
} /*netfs_attempt_lookup */
@@ -418,7 +418,7 @@ error_t
LOG_MSG ("netfs_attempt_mkfile");
/*Unlock the directory */
- mutex_unlock (&dir->lock);
+ pthread_mutex_unlock (&dir->lock);
/*Operation not supported */
return EOPNOTSUPP;
@@ -504,7 +504,7 @@ kern_return_t
node_t *np = user->po->np;
/*Lock the node */
- mutex_lock (&np->lock);
+ pthread_mutex_lock (&np->lock);
/*Check if the user is the owner of this node */
err = fshelp_isowner (&np->nn_stat, user->user);
@@ -525,7 +525,7 @@ kern_return_t
*cntltype = MACH_MSG_TYPE_MOVE_SEND;
/*Unlock the node */
- mutex_unlock (&np->lock);
+ pthread_mutex_unlock (&np->lock);
/*Return the result of operations */
return err;