Replace a few Solarisisms with their corresponding FreeBSDisms to make a few

printf tests pass.
This commit is contained in:
markj 2014-04-15 02:32:00 +00:00
parent c45d8f95f1
commit 2004e1b1f2
6 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ BEGIN
printf("\n");
printf("%%a = %a\n", &`kmem_alloc);
printf("%%a = %a\n", &`malloc);
printf("%%c = %c\n", i);
printf("%%d = %d\n", i);
printf("%%hd = %hd\n", (short)i);

View File

@ -1,5 +1,5 @@
%a = genunix`kmem_alloc
%a = kernel`malloc
%c = a
%d = 97
%hd = 97

View File

@ -36,6 +36,6 @@
BEGIN
{
printf("sysname = %s", `utsname.sysname);
printf("sysname = %s", `ostype);
exit(0);
}

View File

@ -1 +1 @@
sysname = SunOS
sysname = FreeBSD

View File

@ -38,6 +38,6 @@
BEGIN
{
printf("symbol = %a", &`kmem_alloc);
printf("symbol = %a", &`malloc);
exit(0);
}

View File

@ -1 +1 @@
symbol = kernel`kmem_alloc
symbol = kernel`malloc