KS_VER_SIZE
if (readn_nointr(fd, (char *)&buf, KS_VER_SIZE) != KS_VER_SIZE) {
if (readn_nointr(fd, &version, KS_VER_SIZE) != KS_VER_SIZE) {
if (writen_nointr(tmp_ks_fd, (void *)&version, KS_VER_SIZE)
!= KS_VER_SIZE) {
if (readn_nointr(fd, &version, KS_VER_SIZE) != KS_VER_SIZE) {
KS_VER_SIZE) != KS_VER_SIZE) {
if (writen_nointr(fd, (void *)&buf, KS_VER_SIZE) != KS_VER_SIZE) {
if (readn_nointr(fd, &version, KS_VER_SIZE) != KS_VER_SIZE) {
if (writen_nointr(tmp_fd, (void *)&version, KS_VER_SIZE)
!= KS_VER_SIZE) {
#define KS_COUNTER_OFFSET (KS_VER_OFFSET + KS_VER_SIZE)