if (feof(Tinputfile)) Psyntax("eof at syscall reply");
}
+
+static void Pfgets(void *buf, int size) {
+ (void)fgets(buf,size,Tinputfile);
+ Pcheckinput();
+}
+
void T_gettimeofday_hook(void) {
static struct timeval previously;
struct timeval delta;
setvbuf(Tinputfile,0,_IONBF,0);
if (!adns__vbuf_ensure(&vb2,1000)) Tnomem();
- fgets(vb2.buf,vb2.avail,Tinputfile); Pcheckinput();
+ Pfgets(vb2.buf,vb2.avail);
chars= -1;
sscanf(vb2.buf," start %lu.%lu%n",&sec,&usec,&chars);
if (chars==-1) Psyntax("start time invalid");
long usec;
if (!adns__vbuf_ensure(&vb2,1000)) Tnomem();
- fgets(vb2.buf,vb2.avail,Tinputfile); Pcheckinput();
+ Pfgets(vb2.buf,vb2.avail);
chars= -1;
sscanf(vb2.buf," +%lu.%ld%n",&sec,&usec,&chars);
if (chars==-1) Psyntax("update time invalid");
m4_define(`hm_r_offset',`m4_len(` $1=')')
if (!adns__vbuf_ensure(&vb2,1000)) Tnomem();
- fgets(vb2.buf,vb2.avail,Tinputfile); Pcheckinput();
+ Pfgets(vb2.buf,vb2.avail);
Tensuresetup();
fprintf(Treportfile,"%s",vb2.buf);