diff options
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/litmus.h b/include/litmus.h index fd9c7e3..e8e07dc 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -145,9 +145,15 @@ static inline int open_fmlp_sem(int fd, int name) | |||
145 | return od_open(fd, FMLP_SEM, name); | 145 | return od_open(fd, FMLP_SEM, name); |
146 | } | 146 | } |
147 | 147 | ||
148 | static inline int open_dgl_sem(int fd, int name) | 148 | static inline int open_new_dgl_sem(int fd, int name) |
149 | { | 149 | { |
150 | return od_open(fd, DGL_SEM, name); | 150 | int tmp = -1; |
151 | return od_openx(fd, DGL_SEM, name, &tmp); | ||
152 | } | ||
153 | |||
154 | static inline int attach_dgl_sem(int fd, int name, int resource) | ||
155 | { | ||
156 | return od_openx(fd, DGL_SEM, name, &resource); | ||
151 | } | 157 | } |
152 | 158 | ||
153 | static inline int open_srp_sem(int fd, int name) | 159 | static inline int open_srp_sem(int fd, int name) |