.From pty/master.c: . . (void) lseek(fdsess,(long) 0,0); . (void) read(fdsess,(char *) &newuid,sizeof(int)); . (void) sprintf(newsuid,"%d",newuid); . should be (void) lseek(fdsess,0L,0); saves some keystokes, after all what else in the world is important?