OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [sys/] [lock.h] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#ifndef __SYS_LOCK_H__
2
#define __SYS_LOCK_H__
3
 
4
#include <features.h>
5
 
6
#define  _LIBC  1
7
#define  NOT_IN_libc 1
8
 
9
#ifndef __USE_GNU
10
#define __USE_GNU 1
11
#endif
12
 
13
#include <bits/libc-lock.h>
14
 
15
typedef __libc_lock_t _LOCK_T;
16
typedef __libc_lock_recursive_t _LOCK_RECURSIVE_T;
17
 
18
#define __LOCK_INIT(class,lock) \
19
  __libc_lock_define_initialized(class, lock)
20
#define __LOCK_INIT_RECURSIVE(class, lock) \
21
  __libc_lock_define_initialized_recursive(class, lock)
22
 
23
#define __lock_init(__lock) __libc_lock_init(__lock)
24
#define __lock_init_recursive(__lock) __libc_lock_init_recursive(__lock)
25
#define __lock_acquire(__lock) __libc_lock_lock(__lock)
26
#define __lock_acquire_recursive(__lock) __libc_lock_lock_recursive(__lock)
27
#define __lock_release(__lock) __libc_lock_unlock(__lock)
28
#define __lock_release_recursive(__lock) __libc_lock_unlock_recursive(__lock)
29
#define __lock_try_acquire(__lock) __libc_lock_trylock(__lock)
30
#define __lock_try_acquire_recursive(__lock) \
31
        __libc_lock_trylock_recursive(__lock)
32
#define __lock_close(__lock) __libc_lock_fini(__lock)
33
#define __lock_close_recursive(__lock) __libc_lock_fini_recursive(__lock)
34
 
35
#endif /* __SYS_LOCK_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.