Lines Matching refs:file_size
1182 constexpr off64_t file_size = 32*1024LL; in TEST() local
1185 ASSERT_EQ(0, ftruncate(tf.fd, file_size)); in TEST()
1189 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, file_size)); in TEST()
1193 ASSERT_EQ(0, lockf64(tf.fd, F_TLOCK, file_size)); in TEST()
1197 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, file_size)); in TEST()
1201 ASSERT_EQ(0, lockf64(tf.fd, F_ULOCK, file_size)); in TEST()
1205 constexpr off64_t file_size = 32*1024LL; in TEST() local
1208 ASSERT_EQ(0, ftruncate(tf.fd, file_size)); in TEST()
1216 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, file_size)); in TEST()
1219 ASSERT_EQ(0, ftruncate(tf.fd, 2*file_size)); in TEST()
1222 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET)); in TEST()
1223 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, 2*file_size)); in TEST()
1227 constexpr off64_t file_size = 32*1024LL; in TEST() local
1230 ASSERT_EQ(0, ftruncate(tf.fd, file_size)); in TEST()
1233 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET)); in TEST()
1234 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, -file_size)); in TEST()
1238 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, file_size)); in TEST()
1242 constexpr off64_t file_size = 32*1024LL; in TEST() local
1245 ASSERT_EQ(0, ftruncate(tf.fd, file_size)); in TEST()
1249 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, file_size)); in TEST()
1257 ASSERT_EQ(-1, lockf64(tf.fd, F_TLOCK, file_size)); in TEST()
1261 ASSERT_EQ(-1, lockf64(tf.fd, F_TEST, file_size)); in TEST()
1269 constexpr off64_t file_size = 32*1024LL; in TEST() local
1272 ASSERT_EQ(0, ftruncate(tf.fd, file_size)); in TEST()
1276 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, file_size/2)); in TEST()
1283 ASSERT_EQ(file_size/2, lseek64(tf.fd, file_size/2, SEEK_SET)); in TEST()
1284 ASSERT_EQ(0, lockf64(tf.fd, F_TLOCK, file_size/2)); in TEST()
1287 ASSERT_EQ(-1, lockf64(tf.fd, F_TEST, file_size/2)); in TEST()
1291 ASSERT_EQ(-1, lockf64(tf.fd, F_TEST, file_size/2)); in TEST()
1299 ASSERT_EQ(file_size/2, lseek64(tf.fd, file_size/2, SEEK_SET)); in TEST()
1300 ASSERT_EQ(0, lockf64(tf.fd, F_TLOCK, file_size/2)); in TEST()