author | Jerry Cao <jerry.cao@amlogic.com> | 2011-04-08 19:21:48 (GMT) |
---|---|---|
committer | Jerry Cao <jerry.cao@amlogic.com> | 2011-04-08 19:21:48 (GMT) |
commit | c282afbf742f91ebd8b243c65017a5e33c6cb31d (patch) | |
tree | 792119d9dbec202379490795d1164934326affb2 | |
parent | 12e50da036b07984132692748afb68b9c95cec0c (diff) | |
download | ntfs-3g-c282afbf742f91ebd8b243c65017a5e33c6cb31d.zip ntfs-3g-c282afbf742f91ebd8b243c65017a5e33c6cb31d.tar.gz ntfs-3g-c282afbf742f91ebd8b243c65017a5e33c6cb31d.tar.bz2 |
Use system pthread library
-rwxr-xr-x | libfuse-lite/fuse_misc.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/libfuse-lite/fuse_misc.h b/libfuse-lite/fuse_misc.h index 5f02165..8630989 100755 --- a/libfuse-lite/fuse_misc.h +++ b/libfuse-lite/fuse_misc.h @@ -22,61 +22,6 @@ static inline void fuse_mutex_init(pthread_mutex_t *mut) } #endif -typedef struct _pthread_rwlock_t -{ -// struct _pthread_fastlock __rw_lock; /* Lock to guarantee mutual exclusion */ - int __rw_readers; /* Number of readers */ -// _pthread_descr __rw_writer; /* Identity of writer, or NULL if none */ -// _pthread_descr __rw_read_waiting; /* Threads waiting for reading */ -// _pthread_descr __rw_write_waiting; /* Threads waiting for writing */ - int __rw_kind; /* Reader/Writer preference selection */ - int __rw_pshared; /* Shared between processes or not */ -} pthread_rwlock_t; - -typedef struct -{ - int __lockkind; - int __pshared; -} pthread_rwlockattr_t; - - -static inline int pthread_rwlock_init (pthread_rwlock_t * __rwlock, - pthread_rwlockattr_t *__attr) -{ - return 1; -} - -static inline int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) -{ - return 1; -} - - - -/* Acquire read lock for RWLOCK. */ -static inline int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) -{ - return 1; -} - - -/* Acquire write lock for RWLOCK. */ -static inline int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) -{ - return 1; -} - - - - -/* Unlock RWLOCK. */ -static inline int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) -{ - return 1; -} - - - #ifdef HAVE_STRUCT_STAT_ST_ATIM /* Linux */ #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec) |