Lines Matching refs:file_size
1042 file_size = 32*1024LL;
1045 ASSERT_EQ(0, ftruncate(tf.fd, file_size));
1049 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, file_size));
1053 ASSERT_EQ(0, lockf64(tf.fd, F_TLOCK, file_size));
1057 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, file_size));
1061 ASSERT_EQ(0, lockf64(tf.fd, F_ULOCK, file_size));
1065 constexpr off64_t file_size = 32*1024LL;
1068 ASSERT_EQ(0, ftruncate(tf.fd, file_size));
1076 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, file_size));
1079 ASSERT_EQ(0, ftruncate(tf.fd, 2*file_size));
1082 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET));
1083 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, 2*file_size));
1087 constexpr off64_t file_size = 32*1024LL;
1090 ASSERT_EQ(0, ftruncate(tf.fd, file_size));
1093 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET));
1094 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, -file_size));
1098 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, file_size));
1102 constexpr off64_t file_size = 32*1024LL;
1105 ASSERT_EQ(0, ftruncate(tf.fd, file_size));
1109 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, file_size));
1117 ASSERT_EQ(-1, lockf64(tf.fd, F_TLOCK, file_size));
1121 ASSERT_EQ(-1, lockf64(tf.fd, F_TEST, file_size));
1129 constexpr off64_t file_size = 32*1024LL;
1132 ASSERT_EQ(0, ftruncate(tf.fd, file_size));
1136 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, file_size/2));
1143 ASSERT_EQ(file_size/2, lseek64(tf.fd, file_size/2, SEEK_SET));
1144 ASSERT_EQ(0, lockf64(tf.fd, F_TLOCK, file_size/2));
1147 ASSERT_EQ(-1, lockf64(tf.fd, F_TEST, file_size/2));
1151 ASSERT_EQ(-1, lockf64(tf.fd, F_TEST, file_size/2));
1159 ASSERT_EQ(file_size/2, lseek64(tf.fd, file_size/2, SEEK_SET));
1160 ASSERT_EQ(0, lockf64(tf.fd, F_TLOCK, file_size/2));