#ifndef SHARED_LOCK_H #define SHARED_LOCK_H int get_shared_lock(int fd, int report_error); int get_exclusive_lock(int fd, int report_error); void release_lock(int fd); #endif