writelks
if (!writelks(lockcount)) noerr = FALSE;
noerr = writelks(lksintbl);
noerr = writelks(lockcount);