int
readw_lock( int fd )
{
return lock_reg( fd, F_SETLKW, F_RDLCK, 0, SEEK_SET, 0 );
}
int
writew_lock( int fd )
{
return lock_reg( fd, F_SETLKW, F_WRLCK, 0, SEEK_SET, 0 );
}
int
un_lock( int fd )
{
return lock_reg( fd, F_SETLK, F_UNLCK, 0, SEEK_SET, 0 );
}
阅读(1927) | 评论(0) | 转发(0) |