diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-08-07 11:11:40 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-01-04 09:45:59 -0500 |
commit | 52d95f50729b40628ae77d667d262c5235e50cb8 (patch) | |
tree | ef587b5834d13645b5997bd287f2acef66060f9f /libpod/lock/shm_lock.h | |
parent | b489feff717a9976ee177acd4b239acf2dc9c326 (diff) | |
download | podman-52d95f50729b40628ae77d667d262c5235e50cb8.tar.gz podman-52d95f50729b40628ae77d667d262c5235e50cb8.tar.bz2 podman-52d95f50729b40628ae77d667d262c5235e50cb8.zip |
Propogate error codes from SHM lock creation and open
Also add a few more unit tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/lock/shm_lock.h')
-rw-r--r-- | libpod/lock/shm_lock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/lock/shm_lock.h b/libpod/lock/shm_lock.h index 6988789dd..18bea47e9 100644 --- a/libpod/lock/shm_lock.h +++ b/libpod/lock/shm_lock.h @@ -32,8 +32,8 @@ typedef struct shm_struct { } shm_struct_t; size_t compute_shm_size(uint32_t num_bitmaps); -shm_struct_t *setup_lock_shm(uint32_t num_locks); -shm_struct_t *open_lock_shm(uint32_t num_locks); +shm_struct_t *setup_lock_shm(uint32_t num_locks, int *error_code); +shm_struct_t *open_lock_shm(uint32_t num_locks, int *error_code); int32_t close_lock_shm(shm_struct_t *shm); int64_t allocate_semaphore(shm_struct_t *shm); int32_t deallocate_semaphore(shm_struct_t *shm, uint32_t sem_index); |