14 result
= fd
= open("../trace.dat", O_RDONLY
);
21 unsigned long timestamp
;
26 result
= read(fd
, ×tamp
, 4);
34 result
= read(fd
, &id
, 2);
40 result
= read(fd
, &arglen
, 1);
46 args
= malloc(arglen
);
48 result
= read(fd
, args
, arglen
);
57 arg1
= *(unsigned short *)args
;
60 printf("timestamp %u id %hu args=(arg1=%hu arg2=\"%s\")\n", timestamp
, id
, arg1
, arg2
);
This page took 0.030346 seconds and 4 git commands to generate.