public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* vm86 system call update
@ 2003-12-02 23:49 Roland McGrath
  2003-12-03  0:05 ` Ulrich Drepper
  0 siblings, 1 reply; 8+ messages in thread
From: Roland McGrath @ 2003-12-02 23:49 UTC (permalink / raw)
  To: GNU libc hackers

Linux/i386 deprecated the old vm86 system call number and added a new one
that takes different parameters, a good while ago now I gather.  This adds
a new stub for it with the right prototype, while preserving binary
compatibility with the old stub.

Ok?


2003-12-02  Roland McGrath  <roland@redhat.com>

	* sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old
	for vm86@GLIBC_2.0 version.  Add new vm86@GLIBC_2.3.3.
	* sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.3): Add vm86.
	* sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype.

Index: sysdeps/unix/sysv/linux/i386/Versions
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/i386/Versions,v
retrieving revision 1.15
diff -b -p -u -r1.15 Versions
--- sysdeps/unix/sysv/linux/i386/Versions	22 Aug 2003 18:10:45 -0000	1.15
+++ sysdeps/unix/sysv/linux/i386/Versions	2 Dec 2003 23:48:05 -0000
@@ -34,7 +34,11 @@ libc {
     versionsort64;
   }
   GLIBC_2.3.3 {
+    # p*
     posix_fadvise64; posix_fallocate64;
+
+    # v*
+    vm86;
   }
   GLIBC_PRIVATE {
     __modify_ldt;
Index: sysdeps/unix/sysv/linux/i386/syscalls.list
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/i386/syscalls.list,v
retrieving revision 1.17
diff -b -p -u -r1.17 syscalls.list
--- sysdeps/unix/sysv/linux/i386/syscalls.list	2 Sep 2003 08:41:12 -0000	1.17
+++ sysdeps/unix/sysv/linux/i386/syscalls.list	2 Dec 2003 23:48:05 -0000
@@ -1,7 +1,8 @@
 # File name	Caller	Syscall name	Args	Strong name	Weak names
 
 modify_ldt	EXTRA	modify_ldt	i:ipi	__modify_ldt	modify_ldt
-vm86		-	vm86		i:p	__vm86		vm86
+vm86old		EXTRA	vm86old		i:p	__vm86old	vm86@GLIBC_2.0
+vm86		-	vm86		i:ip	__vm86		vm86@GLIBC_2.3.3
 oldgetrlimit	EXTRA	getrlimit	i:ip	__old_getrlimit	getrlimit@GLIBC_2.0
 oldsetrlimit	EXTRA	setrlimit	i:ip	__old_setrlimit	setrlimit@GLIBC_2.0
 time		-	time		Ei:p	time
Index: sysdeps/unix/sysv/linux/i386/sys/vm86.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/i386/sys/vm86.h,v
retrieving revision 1.5
diff -b -p -u -r1.5 vm86.h
--- sysdeps/unix/sysv/linux/i386/sys/vm86.h	6 Jul 2001 04:56:17 -0000	1.5
+++ sysdeps/unix/sysv/linux/i386/sys/vm86.h	2 Dec 2003 23:48:05 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1999, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,7 +27,8 @@
 __BEGIN_DECLS
 
 /* Enter virtual 8086 mode.  */
-extern int vm86 (struct vm86_struct *__info) __THROW;
+extern int vm86 (unsigned long int __subfunction,
+		 struct vm86plus_struct *__info) __THROW;
 
 __END_DECLS
 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: vm86 system call update
@ 2003-12-03 15:49 Steven Munroe
  0 siblings, 0 replies; 8+ messages in thread
From: Steven Munroe @ 2003-12-03 15:49 UTC (permalink / raw)
  To: libc-hacker

Ulrich Drepper writes:

 > Roland McGrath wrote:
 >
 > > No, there has been no GNU C Library 2.3.3 release yet.
 >
 > There has.  Face it.

So which is it? To add VMX support to powerpc64 I need to version 
setjmp/longjmp and [get | make | set | swap]context. More specifically I 
need to be backward compatible to what shipped in RHEL 3. On my resently 
  installed RHEL 3 GA system I see /lib64/libc-2.3.2.so. But when I run:

readelf -a /lib64/libc-2.3.2.so | grep 'GLIBC_2\.3\.'

I see a significant number of *@@GLIBC_2.3.3 symbols. For example:

     74: 0000000000127484    60 FUNC    GLOBAL DEFAULT   10 
.gnu_dev_makedev@@GLIBC_2.3.3
     94: 000000000014b7e4    64 FUNC    GLOBAL DEFAULT   10 
.inet6_option_init@@GLIBC_2.3.3

So is GLIBC_2.3.3 (effectively) released? And any ABI changes need to be 
  targeted for GLIBC_2.3.4?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-12-03 15:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-02 23:49 vm86 system call update Roland McGrath
2003-12-03  0:05 ` Ulrich Drepper
2003-12-03  0:09   ` Jakub Jelinek
2003-12-03  0:27     ` Ulrich Drepper
2003-12-03  0:12   ` Roland McGrath
2003-12-03  0:24     ` Ulrich Drepper
2003-12-03  0:13   ` Roland McGrath
2003-12-03 15:49 Steven Munroe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).