diff options
Diffstat (limited to 'beos/beos_flock_server.h')
-rw-r--r-- | beos/beos_flock_server.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/beos/beos_flock_server.h b/beos/beos_flock_server.h new file mode 100644 index 0000000000..2fb47e3079 --- /dev/null +++ b/beos/beos_flock_server.h @@ -0,0 +1,24 @@ +#ifndef PERL_BEOS_FLOCK_SERVER_H +#define PERL_BEOS_FLOCK_SERVER_H + +#include <OS.h> + +#define FLOCK_SERVER_PORT_NAME "perl flock server" + +typedef struct flock_server_request { + port_id replyPort; + sem_id lockSem; + dev_t device; + ino_t node; + int fd; + int operation; + int blocking; +} flock_server_request; + +typedef struct flock_server_reply { + status_t error; + int semaphoreCount; + sem_id semaphores[1]; +} flock_server_reply; + +#endif |