Home
last modified time | relevance | path

Searched refs:flocks (Results 1 - 5 of 5) sorted by relevance

/third_party/ltp/testcases/kernel/fs/doio/
H A Dfile_lock.c64 struct flock flocks; in file_lock() local
66 memset(&flocks, 0, sizeof(struct flock)); in file_lock()
73 flocks.l_whence = 0; in file_lock()
74 flocks.l_start = 0; in file_lock()
75 flocks.l_len = 0; in file_lock()
78 flocks.l_type = F_UNLCK; in file_lock()
80 flocks.l_type = F_WRLCK; in file_lock()
82 flocks.l_type = F_RDLCK; in file_lock()
94 "fcntl(%d, %d, &flocks): type:%d whence:%d, start:%lld len:%lld\n", in file_lock()
95 fd, cmd, flocks in file_lock()
136 struct flock flocks; record_lock() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl05.c35 static struct flock flocks; variable
40 flocks.l_type = F_RDLCK; in verify_fcntl()
42 TST_EXP_PASS(fcntl(fd, F_GETLK, &flocks), "fcntl(%d, F_GETLK, &flocks)", fd); in verify_fcntl()
43 TST_EXP_EQ_LI(flocks.l_type, F_UNLCK); in verify_fcntl()
44 TST_EXP_EQ_LI(flocks.l_whence, SEEK_CUR); in verify_fcntl()
45 TST_EXP_EQ_LI(flocks.l_start, 0); in verify_fcntl()
46 TST_EXP_EQ_LI(flocks.l_len, 0); in verify_fcntl()
47 TST_EXP_EQ_LI(flocks.l_pid, pid); in verify_fcntl()
55 flocks in setup()
[all...]
H A Dfcntl10.c129 struct flock flocks; variable
154 flocks.l_type = type ? F_RDLCK : F_WRLCK; in main()
157 * Call fcntl(2) with F_SETLKW flocks.l_type = F_UNLCK argument on fname in main()
159 TEST(fcntl(fd, F_SETLKW, &flocks)); in main()
164 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = %s Failed, errno=%d : %s", in main()
169 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = %s returned %ld", in main()
174 flocks.l_type = F_UNLCK; in main()
176 * Call fcntl(2) with F_SETLKW flocks in main()
[all...]
H A Dfcntl09.c129 struct flock flocks; variable
154 flocks.l_type = type ? F_RDLCK : F_WRLCK; in main()
159 TEST(fcntl(fd, F_SETLK, &flocks)); in main()
164 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = %s Failed, errno=%d : %s", in main()
170 "fcntl(%s, F_SETLK, &flocks) flocks.l_type = %s returned %ld", in main()
176 flocks.l_type = F_UNLCK; in main()
180 TEST(fcntl(fd, F_SETLK, &flocks)); in main()
185 "fcntl(%s, F_SETLK, &flocks) flock in main()
[all...]
/third_party/ltp/testcases/kernel/syscalls/ftruncate/
H A Dftruncate04.c112 struct flock flocks; in dochild() local
118 flocks.l_type = F_WRLCK; in dochild()
119 flocks.l_whence = SEEK_CUR; in dochild()
120 flocks.l_start = recstart; in dochild()
121 flocks.l_len = reclen; in dochild()
123 SAFE_FCNTL(fd, F_SETLKW, &flocks); in dochild()

Completed in 2 milliseconds