patch-2.1.115 linux/arch/sparc64/solaris/misc.c
Next file: linux/arch/sparc64/vmlinux.lds
Previous file: linux/arch/sparc64/solaris/ipc.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue Aug 4 16:03:35 1998
- Orig file:
v2.1.114/linux/arch/sparc64/solaris/misc.c
- Orig date:
Sun Jun 7 11:16:28 1998
diff -u --recursive --new-file v2.1.114/linux/arch/sparc64/solaris/misc.c linux/arch/sparc64/solaris/misc.c
@@ -1,4 +1,4 @@
-/* $Id: misc.c,v 1.10 1998/04/01 05:16:06 davem Exp $
+/* $Id: misc.c,v 1.12 1998/06/16 04:37:08 davem Exp $
* misc.c: Miscelaneous syscall emulation for Solaris
*
* Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
@@ -188,6 +188,7 @@
asmlinkage int solaris_utsname(u32 buf)
{
/* Why should we not lie a bit? */
+ down(&uts_sem);
set_utsfield(((struct sol_utsname *)A(buf))->sysname,
"SunOS", 0, 0);
set_utsfield(((struct sol_utsname *)A(buf))->nodename,
@@ -198,6 +199,7 @@
"Generic", 0, 0);
set_utsfield(((struct sol_utsname *)A(buf))->machine,
machine(), 0, 0);
+ up(&uts_sem);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov