diff options
| author | Bryan Ward <bcw@cs.unc.edu> | 2012-08-06 23:41:06 -0400 |
|---|---|---|
| committer | Bryan Ward <bcw@cs.unc.edu> | 2012-08-06 23:41:06 -0400 |
| commit | ce2d8178b87891f49c3bf2def3d49aa7dad68ef2 (patch) | |
| tree | 85a12329d7a882b4f022bf7f0b593c5d521589db /include | |
| parent | e906a17d957e9197c9e41520308baa295b827a54 (diff) | |
DGL system calls.
Diffstat (limited to 'include')
| -rw-r--r-- | include/litmus.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/litmus.h b/include/litmus.h index 3fa2a57..1943146 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
| @@ -66,7 +66,8 @@ typedef enum { | |||
| 66 | MPCP_SEM = 2, | 66 | MPCP_SEM = 2, |
| 67 | MPCP_VS_SEM = 3, | 67 | MPCP_VS_SEM = 3, |
| 68 | DPCP_SEM = 4, | 68 | DPCP_SEM = 4, |
| 69 | PCP_SEM = 5, | 69 | PCP_SEM = 5, |
| 70 | DGL_SEM = 6, | ||
| 70 | } obj_type_t; | 71 | } obj_type_t; |
| 71 | 72 | ||
| 72 | int lock_protocol_for_name(const char* name); | 73 | int lock_protocol_for_name(const char* name); |
| @@ -141,6 +142,11 @@ static inline int open_fmlp_sem(int fd, int name) | |||
| 141 | return od_open(fd, FMLP_SEM, name); | 142 | return od_open(fd, FMLP_SEM, name); |
| 142 | } | 143 | } |
| 143 | 144 | ||
| 145 | static inline int open_dgl_sem(int fd, int name) | ||
| 146 | { | ||
| 147 | return od_open(fd, DGL_SEM, name); | ||
| 148 | } | ||
| 149 | |||
| 144 | static inline int open_srp_sem(int fd, int name) | 150 | static inline int open_srp_sem(int fd, int name) |
| 145 | { | 151 | { |
| 146 | return od_open(fd, SRP_SEM, name); | 152 | return od_open(fd, SRP_SEM, name); |
