ia64/xen-unstable

changeset 18377:ac9e7df89a8e

stubdom: add dummy pthread_mutexattr*

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 27 09:45:09 2008 +0100 (2008-08-27)
parents 9818c7099e20
children 79d168323727
files extras/mini-os/include/posix/pthread.h
line diff
     1.1 --- a/extras/mini-os/include/posix/pthread.h	Wed Aug 27 09:44:51 2008 +0100
     1.2 +++ b/extras/mini-os/include/posix/pthread.h	Wed Aug 27 09:45:09 2008 +0100
     1.3 @@ -31,8 +31,15 @@ static inline int pthread_key_delete(pth
     1.4  
     1.5  
     1.6  
     1.7 +typedef struct {} pthread_mutexattr_t;
     1.8 +static inline int pthread_mutexattr_init(pthread_mutexattr_t *mattr) { return 0; }
     1.9 +#define PTHREAD_MUTEX_NORMAL 0
    1.10 +#define PTHREAD_MUTEX_RECURSIVE 1
    1.11 +static inline int pthread_mutexattr_settype(pthread_mutexattr_t *mattr, int kind) { return 0; }
    1.12 +static inline int pthread_mutexattr_destroy(pthread_mutexattr_t *mattr) { return 0; }
    1.13  typedef struct {} pthread_mutex_t;
    1.14  #define PTHREAD_MUTEX_INITIALIZER {}
    1.15 +static inline int pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *mattr) { return 0; }
    1.16  static inline int pthread_mutex_lock(pthread_mutex_t *mutex) { return 0; }
    1.17  static inline int pthread_mutex_unlock(pthread_mutex_t *mutex) { return 0; }
    1.18