#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
|
int | lock_reg (int fd, int cmd, int type, off_t offset, int whence, off_t len) |
|
pid_t | lock_test (int fd, int type, off_t offset, int whence, off_t len) |
|
int | main (int argc, char **argv) |
|
int lock_reg |
( |
int |
fd, |
|
|
int |
cmd, |
|
|
int |
type, |
|
|
off_t |
offset, |
|
|
int |
whence, |
|
|
off_t |
len |
|
) |
| |
pid_t lock_test |
( |
int |
fd, |
|
|
int |
type, |
|
|
off_t |
offset, |
|
|
int |
whence, |
|
|
off_t |
len |
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |