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

printf tests pass.
This commit is contained in:
Mark Johnston 2014-04-15 02:32:00 +00:00
parent 28af9281f7
commit 7df83e08ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264487
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