Ejemplo n.º 1
0
int locker_rdlock(int fd)
{   
    if (__do_lock(fd, F_RDLCK) < 0) {
        return -1;
    }
    return 0;
}
Ejemplo n.º 2
0
int locker_unlock(int fd)
{   
    if (__do_lock(fd, F_UNLCK) < 0) {
        return -1;
    }
    return 0;
}
Ejemplo n.º 3
0
int locker_wrlock(int fd)
{   
    if (__do_lock(fd, F_WRLCK) < 0) {
        return -1;
    }
    return 0;
}
Ejemplo n.º 4
0
int
__lockf (int fd, int cmd, long size)
{
	return __do_lock (fd, cmd, size, 1);
}