diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-11 23:34:42 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-02-11 23:34:42 +0000 |
commit | fe232371db049d3bd990f78474f2381057c50be3 (patch) | |
tree | a63644b62200a10eebe2e3946d3ecea0d24614d0 /netfs.c | |
parent | 9333d21abe61d66bd8cb800ec9f8b13a58060fe7 (diff) |
Fix build against libpthreadnetio/master
* Makefile (netio): Link against libpthread instead of libthreads.
* netfs.c: Use libpthread functions instead of libthreads functions.
Diffstat (limited to 'netfs.c')
-rw-r--r-- | netfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -89,11 +89,11 @@ netfs_attempt_lookup (struct iouser *user, struct node *dir, out: fshelp_touch (&dir->nn_stat, TOUCH_ATIME, netio_maptime); - mutex_unlock (&dir->lock); + pthread_mutex_unlock (&dir->lock); if (err) *node = 0; else - mutex_lock (&(*node)->lock); + pthread_mutex_lock (&(*node)->lock); return err; } @@ -335,7 +335,7 @@ netfs_attempt_create_file (struct iouser *user, struct node *dir, char *name, mode_t mode, struct node **np) { *np = 0; - mutex_unlock (&dir->lock); + pthread_mutex_unlock (&dir->lock); return EOPNOTSUPP; } @@ -628,11 +628,11 @@ netfs_S_io_read (struct protid *user, return err; } - mutex_lock (&user->po->np->lock); + pthread_mutex_lock (&user->po->np->lock); if ((user->po->openstat & O_READ) == 0) { - mutex_unlock (&node->lock); + pthread_mutex_unlock (&node->lock); return EBADF; } @@ -680,7 +680,7 @@ netfs_S_io_read (struct protid *user, if (offset == -1 && !err) user->po->filepointer += *datalen; - mutex_unlock (&node->lock); + pthread_mutex_unlock (&node->lock); if (err && alloced) munmap (*data, amount); |