1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

- Use time.h not sys/time.h.

- Fix printf format errors.

Submitted by:	 bde
This commit is contained in:
Matthew N. Dodd 2002-08-06 12:46:14 +00:00
parent b74f2c1878
commit 37169f9446
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101423
9 changed files with 13 additions and 13 deletions

View File

@ -48,7 +48,6 @@ static const char rcsid[] =
#include <sys/ioctl.h>
#include <sys/pioctl.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <machine/reg.h>
@ -59,6 +58,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"

View File

@ -46,7 +46,6 @@ static const char rcsid[] =
#include <sys/ioctl.h>
#include <sys/pioctl.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <machine/reg.h>
#include <machine/psl.h>
@ -57,6 +56,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"

View File

@ -43,7 +43,6 @@ static const char rcsid[] =
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/pioctl.h>
#include <sys/time.h>
#include <machine/reg.h>
#include <machine/psl.h>
@ -54,6 +53,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"

View File

@ -46,7 +46,6 @@ static const char rcsid[] =
#include <sys/ioctl.h>
#include <sys/pioctl.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <machine/reg.h>
#include <machine/psl.h>
@ -57,6 +56,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"

View File

@ -43,7 +43,6 @@ static const char rcsid[] =
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/pioctl.h>
#include <sys/time.h>
#include <machine/reg.h>
#include <machine/psl.h>
@ -54,6 +53,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"

View File

@ -43,7 +43,6 @@ static const char rcsid[] =
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/pioctl.h>
#include <sys/time.h>
#include <err.h>
#include <errno.h>
@ -52,6 +51,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"

View File

@ -42,7 +42,6 @@ static const char rcsid[] =
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/pioctl.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <err.h>
@ -52,6 +51,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"

View File

@ -48,7 +48,6 @@ static const char rcsid[] =
#include <sys/ioctl.h>
#include <sys/pioctl.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <machine/frame.h>
#include <machine/reg.h>
@ -62,6 +61,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"

View File

@ -40,7 +40,6 @@ static const char rcsid[] =
*/
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
@ -52,6 +51,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "truss.h"
@ -417,14 +417,14 @@ print_syscall(struct trussinfo *trussinfo, const char *name, int nargs, char **s
if (trussinfo->flags & ABSOLUTETIMESTAMPS) {
timespecsubt(&trussinfo->after, &trussinfo->start_time, &timediff);
len += fprintf(trussinfo->outfile, "%d.%0.9d ",
timediff.tv_sec, timediff.tv_nsec);
len += fprintf(trussinfo->outfile, "%ld.%09ld ",
(long)timediff.tv_sec, (long)timediff.tv_nsec);
}
if (trussinfo->flags & RELATIVETIMESTAMPS) {
timespecsubt(&trussinfo->after, &trussinfo->before, &timediff);
len += fprintf(trussinfo->outfile, "%d.%0.9d ",
timediff.tv_sec, timediff.tv_nsec);
len += fprintf(trussinfo->outfile, "%ld.%09ld ",
(long)timediff.tv_sec, (long)timediff.tv_nsec);
}
len += fprintf(trussinfo->outfile, "%s(", name);