HLOCK
if((fd = open(HLOCK, O_RDONLY | O_CREAT, FMASK)) == -1) {
printf("Warning: cannot read %s/%s", dir, HLOCK);
if (link(HLOCK, LLOCK) == -1) {
perror(HLOCK);
printf("Cannot link %s to %s\n", LLOCK, HLOCK);
printf("Perhaps there is no (empty) file %s ?\n", HLOCK);