Skip to content

Commit

Permalink
Define __rtld_lock_recursive_* for Hurd.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Thibault authored and Roland McGrath committed Jan 18, 2010
1 parent d6ac932 commit d924beb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>

* sysdeps/mach/hurd/bits/libc-lock.h
(__rtld_lock_recursive_t): New type.
(__rtld_lock_initialize): New macro.

2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>

* sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
Expand Down
3 changes: 3 additions & 0 deletions sysdeps/mach/hurd/bits/libc-lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ typedef struct
void *owner;
int count;
} __libc_lock_recursive_t;
typedef __libc_lock_recursive_t __rtld_lock_recursive_t;

#define __libc_lock_owner_self() ((void *) __hurd_threadvar_location (0))

Expand Down Expand Up @@ -121,6 +122,8 @@ typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t;

#define __rtld_lock_init_recursive(NAME) \
__libc_lock_init_recursive (NAME)
#define __rtld_lock_initialize(NAME) \
(void) ((NAME) = (__rtld_lock_recursive_t) _RTLD_LOCK_RECURSIVE_INITIALIZER)
#define __rtld_lock_trylock_recursive(NAME) \
__libc_lock_trylock_recursive (NAME)
#define __rtld_lock_lock_recursive(NAME) \
Expand Down

0 comments on commit d924beb

Please sign in to comment.