/external/ltp/testcases/kernel/fs/doio/ |
file_lock.c | 64 struct flock flocks; local 66 memset(&flocks, 0, sizeof(struct flock)); 73 flocks.l_whence = 0; 74 flocks.l_start = 0; 75 flocks.l_len = 0; 78 flocks.l_type = F_UNLCK; 80 flocks.l_type = F_WRLCK; 82 flocks.l_type = F_RDLCK; 94 "fcntl(%d, %d, &flocks): type:%d whence:%d, start:%lld len:%lld\n", 95 fd, cmd, flocks.l_type, flocks.l_whence 136 struct flock flocks; local [all...] |
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl05.c | 129 struct flock flocks; variable in typeref:struct:flock 143 flocks.l_type = F_RDLCK; 144 TEST(fcntl(fd, F_GETLK, &flocks)); 172 /* set needed flags in the flocks structure */ 173 flocks.l_whence = 1; 174 flocks.l_start = 0; 175 flocks.l_len = 0; 176 flocks.l_pid = getpid();
|
fcntl09.c | 129 struct flock flocks; variable in typeref:struct:flock 154 flocks.l_type = type ? F_RDLCK : F_WRLCK; 159 TEST(fcntl(fd, F_SETLK, &flocks)); 164 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = %s Failed, errno=%d : %s", 170 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = %s returned %ld", 176 flocks.l_type = F_UNLCK; 180 TEST(fcntl(fd, F_SETLK, &flocks)); 185 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = F_UNLCK Failed, errno=%d : %s" [all...] |
fcntl10.c | 129 struct flock flocks; variable in typeref:struct:flock 154 flocks.l_type = type ? F_RDLCK : F_WRLCK; 157 * Call fcntl(2) with F_SETLKW flocks.l_type = F_UNLCK argument on fname 159 TEST(fcntl(fd, F_SETLKW, &flocks)); 164 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = %s Failed, errno=%d : %s", 169 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = %s returned %ld", 174 flocks.l_type = F_UNLCK; 176 * Call fcntl(2) with F_SETLKW flocks.l_type = F_UNLCK argument on fnam [all...] |
/external/ltp/testcases/kernel/syscalls/ftruncate/ |
ftruncate04.c | 192 struct flock flocks; local 202 flocks.l_type = F_WRLCK; 203 flocks.l_whence = SEEK_CUR; 204 flocks.l_start = recstart; 205 flocks.l_len = reclen; 207 if (fcntl(fd, F_SETLKW, &flocks) < 0)
|