Lines Matching refs:fl
18 struct flock fl;
21 memset((void *)&fl, 0, sizeof(fl));
23 fl.l_type = F_WRLCK;
24 fl.l_whence = fl.l_start = 0;
25 fl.l_len = 0; /* 0 means "to end of file" */
27 res = fcntl(fd, F_SETLK, &fl);
37 struct flock fl;
39 memset((void *)&fl, 0, sizeof(fl));
41 fl.l_type = F_UNLCK;
42 fl.l_whence = fl.l_start = 0;
43 fl.l_len = 0; /* 0 means "to end of file" */
45 return fcntl(fd, F_SETLK, &fl);