[SCM] master: Make things private.

cagney@sourceware.org cagney@sourceware.org
Fri Dec 28 15:14:00 GMT 2007


The branch, master has been updated
       via  adefecf38be1a74c30c2323a5443196f56580341 (commit)
       via  b71179e3788b37e6c4b3208732ad6e2946528e0a (commit)
       via  4fbf637ec87dba04f29bbe1c830904f097d9beef (commit)
       via  c39b1b161af512bbd14ca3d2376269cc57cf6ce1 (commit)
      from  e68f1caacd4cd7353ae700ca964e3127f6512975 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit adefecf38be1a74c30c2323a5443196f56580341
Author: Andrew Cagney <cagney@redhat.com>
Date:   Fri Dec 28 10:13:51 2007 -0500

    Make things private.
    
    frysk-core/frysk/proc/ChangeLog
    2007-12-28  Andrew Cagney  <cagney@redhat.com>
    
    	* LinuxIa32Syscall.java: Privatize.
    	(getSyscallList()): Delete
    	* LinuxX8664Syscall.java: Ditto.
    	* LinuxPPC64Syscall.java: Ditto.
    	* LinuxPPC64Syscall.java: Ditto.

commit b71179e3788b37e6c4b3208732ad6e2946528e0a
Author: Andrew Cagney <cagney@redhat.com>
Date:   Fri Dec 28 10:06:53 2007 -0500

    Make SyscallTable implementation details private.
    
    frysk-core/frysk/proc/ChangeLog
    2007-12-28  Andrew Cagney  <cagney@redhat.com>
    
    	* SyscallTable.java (getSyscallList()): Delete.
    	(getSyscall(long)): New.
    	(findSubcall(Syscall[],long)): New.
    	(findSubcall(Syscall[],long,Syscall)): New.
    	* LinuxIa32Syscall.java (getSyscall(Task)): Update.
    	(getSyscall(long)): New.
    	* LinuxPPC32Syscall.java (getSyscall(Task)): Update.
    	(getSyscall(long)): New.
    	* LinuxPPC64Syscall.java (getSyscall(Task)): Update.
    	(getSyscall(long)): New.
    	* LinuxX8664Syscall.java (getSyscall(Task)): Update.
    	(getSyscall(long)): New.
    	* TestSyscallsWithAudit.java (syscallTest(int,ISA)): Update.

commit 4fbf637ec87dba04f29bbe1c830904f097d9beef
Author: Andrew Cagney <cagney@redhat.com>
Date:   Fri Dec 28 09:06:42 2007 -0500

    Make unknown syscall table 'weak'.
    
    frysk-core/frysk/proc/ChangeLog
    2007-12-28  Andrew Cagney  <cagney@redhat.com>
    
    	* SyscallTable.java (unknownSyscalls): Change to a static
    	WeakHashMap.
    	(unknownSyscall(long)): Make package private.

commit c39b1b161af512bbd14ca3d2376269cc57cf6ce1
Author: Andrew Cagney <cagney@redhat.com>
Date:   Fri Dec 28 09:02:26 2007 -0500

    Delete code made dead by SyscallTable.
    
    frysk-core/frysk/proc/ChangeLog
    2007-12-28  Andrew Cagney  <cagney@redhat.com>
    
    	* LinuxX8664.java (getSyscallEventInfo()): Delete.
    	(unknownSyscalls): Delete.
    	* LinuxX8664Syscall.java (syscallByNum(Task,int)): Delete.
    	* LinuxPPC64.java (getSyscallEventInfo()): Delete.
    	(unknownSyscalls): Delete.
    	* LinuxPPC32.java (getSyscallEventInfo()): Delete.
    	(unknownSyscalls): Delete.
    	* Isa.java (getSyscallEventInfo()): Delete.
    	* LinuxPPC64Syscall.java (syscallByNum(Task,int)): Delete.
    	* LinuxPPC32Syscall.java (syscallByNum(Task,int)): Delete.
    	* LinuxIa32.java (getSyscallEventInfo()): Delelete.
    	* LinuxIa32Syscall.java (syscallByNum(Task,int)): Delete.
    	* Syscall.java (syscallByNum(int,Task)): Delete.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/proc/ChangeLog                  |   40 +++++++++
 frysk-core/frysk/proc/Isa.java                   |    2 -
 frysk-core/frysk/proc/LinuxIa32.java             |   15 ----
 frysk-core/frysk/proc/LinuxIa32Syscall.java      |   74 ++++++-----------
 frysk-core/frysk/proc/LinuxPPC32.java            |   26 ------
 frysk-core/frysk/proc/LinuxPPC32Syscall.java     |   64 +++++++--------
 frysk-core/frysk/proc/LinuxPPC64.java            |   24 ------
 frysk-core/frysk/proc/LinuxPPC64Syscall.java     |   65 +++++++---------
 frysk-core/frysk/proc/LinuxX8664.java            |   20 -----
 frysk-core/frysk/proc/LinuxX8664Syscall.java     |   20 ++---
 frysk-core/frysk/proc/Syscall.java               |   27 ------
 frysk-core/frysk/proc/SyscallTable.java          |   39 ++++++----
 frysk-core/frysk/proc/TestSyscallsWithAudit.java |   95 +++++++++-------------
 13 files changed, 190 insertions(+), 321 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index f77d4f8..58b7492 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,3 +1,43 @@
+2007-12-28  Andrew Cagney  <cagney@redhat.com>
+
+	* LinuxIa32Syscall.java: Privatize.
+	(getSyscallList()): Delete
+	* LinuxX8664Syscall.java: Ditto.
+	* LinuxPPC64Syscall.java: Ditto.
+	* LinuxPPC64Syscall.java: Ditto.
+	
+	* SyscallTable.java (getSyscallList()): Delete.	
+	(getSyscall(long)): New.
+	(findSubcall(Syscall[],long)): New.
+	(findSubcall(Syscall[],long,Syscall)): New.
+	* LinuxIa32Syscall.java (getSyscall(Task)): Update.
+	(getSyscall(long)): New.
+	* LinuxPPC32Syscall.java (getSyscall(Task)): Update.
+	(getSyscall(long)): New.
+	* LinuxPPC64Syscall.java (getSyscall(Task)): Update.
+	(getSyscall(long)): New.
+	* LinuxX8664Syscall.java (getSyscall(Task)): Update.
+	(getSyscall(long)): New.
+	* TestSyscallsWithAudit.java (syscallTest(int,ISA)): Update.
+
+	* SyscallTable.java (unknownSyscalls): Change to a static
+	WeakHashMap.
+	(unknownSyscall(long)): Make package private.
+
+	* LinuxX8664.java (getSyscallEventInfo()): Delete.
+	(unknownSyscalls): Delete.
+	* LinuxX8664Syscall.java (syscallByNum(Task,int)): Delete.
+	* LinuxPPC64.java (getSyscallEventInfo()): Delete.
+	(unknownSyscalls): Delete.
+	* LinuxPPC32.java (getSyscallEventInfo()): Delete.
+	(unknownSyscalls): Delete.
+	* Isa.java (getSyscallEventInfo()): Delete.
+	* LinuxPPC64Syscall.java (syscallByNum(Task,int)): Delete.
+	* LinuxPPC32Syscall.java (syscallByNum(Task,int)): Delete.
+	* LinuxIa32.java (getSyscallEventInfo()): Delelete.
+	* LinuxIa32Syscall.java (syscallByNum(Task,int)): Delete.
+	* Syscall.java (syscallByNum(int,Task)): Delete.
+
 2007-12-27  Andrew Cagney  <cagney@redhat.com>
 
 	* Task.java (getSyscallTable()): New.
diff --git a/frysk-core/frysk/proc/Isa.java b/frysk-core/frysk/proc/Isa.java
index a22f9f9..814a4bf 100644
--- a/frysk-core/frysk/proc/Isa.java
+++ b/frysk-core/frysk/proc/Isa.java
@@ -117,6 +117,4 @@ public interface Isa
    * the sig return system call.
    */
   boolean isAtSyscallSigReturn(Task task);
-
-    SyscallEventInfo getSyscallEventInfo ();
 }
diff --git a/frysk-core/frysk/proc/LinuxIa32.java b/frysk-core/frysk/proc/LinuxIa32.java
index c069c10..eb74bd1 100644
--- a/frysk-core/frysk/proc/LinuxIa32.java
+++ b/frysk-core/frysk/proc/LinuxIa32.java
@@ -165,19 +165,4 @@ class LinuxIa32 implements Isa {
 	    isa = new LinuxIa32 ();
 	return isa;
     }
-
-    private SyscallEventInfo info;
-    public SyscallEventInfo getSyscallEventInfo() {
-	if (info == null)
-	    info = new SyscallEventInfo() {
-		    private int number(Task task) {
-			return (int)task.getRegister(IA32Registers.ORIG_EAX);
-		    }
-		    public Syscall getSyscall(Task task) {
-			int number = this.number(task);
-			return LinuxIa32Syscall.syscallByNum (task, number);
-		    }
-		};
-	return info;
-    }
 }
diff --git a/frysk-core/frysk/proc/LinuxIa32Syscall.java b/frysk-core/frysk/proc/LinuxIa32Syscall.java
index b0087e3..b2ad684 100644
--- a/frysk-core/frysk/proc/LinuxIa32Syscall.java
+++ b/frysk-core/frysk/proc/LinuxIa32Syscall.java
@@ -1,6 +1,6 @@
 // This file is part of the program FRYSK.
 //
-// Copyright 2006 Red Hat Inc.
+// Copyright 2006, 2007 Red Hat Inc.
 //
 // FRYSK is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by
@@ -42,10 +42,10 @@ package frysk.proc;
 import frysk.isa.IA32Registers;
 
 public class LinuxIa32Syscall extends SyscallTable {
-    static final int SOCKET_NUM = 102;
-    static final int IPC_NUM = 117;
+    private static final int SOCKET_NUM = 102;
+    private static final int IPC_NUM = 117;
 
-    static class Ia32Syscall extends Syscall {
+    private static class Ia32Syscall extends Syscall {
 	Ia32Syscall(String name, int number, int numArgs, 
 		    String argList, boolean noreturn) {
 	    super(name, number, numArgs, argList, noreturn);
@@ -88,7 +88,7 @@ public class LinuxIa32Syscall extends SyscallTable {
 	}
     }
   
-    static Syscall[] syscallList = {
+    private static Syscall[] syscallList = {
 	new Ia32Syscall("restart_syscall", 0),
 	new Ia32Syscall("exit", 1, 1),
 	new Ia32Syscall("fork", 2, 0, "i: "),
@@ -417,7 +417,7 @@ public class LinuxIa32Syscall extends SyscallTable {
     };
 
 
-    static class SocketSubSyscall extends Ia32Syscall {
+    private static class SocketSubSyscall extends Ia32Syscall {
 	SocketSubSyscall(String name, int number) {
 	    super(name, number);
 	}
@@ -433,11 +433,8 @@ public class LinuxIa32Syscall extends SyscallTable {
 	    return task.getMemory().getInt(base + (n-1) * 4);
 	}
     }
-    public Syscall[] getSyscallList() {
-	return syscallList;
-    }
 
-    static Syscall[] socketSubcallList = {
+    private static Syscall[] socketSubcallList = {
 	new SocketSubSyscall("", SOCKET_NUM),
 	new SocketSubSyscall("socket",     SOCKET_NUM, 3, "i:iii"),
 	new SocketSubSyscall("bind",       SOCKET_NUM, 3, "i:ipi "),
@@ -461,7 +458,7 @@ public class LinuxIa32Syscall extends SyscallTable {
     private static final SocketSubSyscall unknownSocketSubSyscall =
 	new SocketSubSyscall("<unknown>", SOCKET_NUM);
 
-    static class IpcSubSyscall extends Ia32Syscall {
+    private static class IpcSubSyscall extends Ia32Syscall {
 	IpcSubSyscall(String name, int number) {
 	    super(name, number);
 	}
@@ -478,7 +475,7 @@ public class LinuxIa32Syscall extends SyscallTable {
     }
 
     /**FIXME: No argument list here.*/
-    static Syscall[] ipcSubcallList = {
+    private static Syscall[] ipcSubcallList = {
 	new IpcSubSyscall("<unknown0>",  IPC_NUM),
 	new IpcSubSyscall("semop",  IPC_NUM),
 	new IpcSubSyscall("semget", IPC_NUM),
@@ -509,47 +506,20 @@ public class LinuxIa32Syscall extends SyscallTable {
     private static final IpcSubSyscall unknownIpcSubSyscall =
 	new IpcSubSyscall("<unknown>", IPC_NUM);
 
-    public static Syscall syscallByNum(Task task, int number) {
-	if (number != SOCKET_NUM && number != IPC_NUM)
-	    return Syscall.syscallByNum(number, task);
-	else {
-	    /** sub syscall number is in %ebx.  */
-	    int subSyscallNumber = (int) task.getRegister(IA32Registers.EBX);
-	
-	    if (number == SOCKET_NUM) {
-		if (subSyscallNumber < socketSubcallList.length)
-		    return socketSubcallList[subSyscallNumber];
-		else
-		    return unknownSocketSubSyscall;
-	    } else {
-		if (subSyscallNumber < ipcSubcallList.length)
-		    return ipcSubcallList[subSyscallNumber];
-		else
-		    return unknownIpcSubSyscall;
-	    }
-	}
+    private long subcall(Task task) {
+	return task.getRegister(IA32Registers.EBX);
     }
 
     public Syscall getSyscall(Task task) {
-	long number = task.getRegister(IA32Registers.ORIG_EAX);
-	if (number != SOCKET_NUM && number != IPC_NUM)
-	    return getSyscall(number);
-	else {
-	    /** sub syscall number is in %ebx.  */
-	    int subSyscallNumber = (int) task.getRegister(IA32Registers.EBX);
-	
-	    if (number == SOCKET_NUM) {
-		if (subSyscallNumber < socketSubcallList.length)
-		    return socketSubcallList[subSyscallNumber];
-		else
-		    return unknownSocketSubSyscall;
-	    } else {
-		if (subSyscallNumber < ipcSubcallList.length)
-		    return ipcSubcallList[subSyscallNumber];
-		else
-		    return unknownIpcSubSyscall;
-	    }
-	}
+	long syscall = task.getRegister(IA32Registers.ORIG_EAX);
+	if (syscall == SOCKET_NUM)
+	    return findSubcall(socketSubcallList, subcall(task),
+			       unknownSocketSubSyscall);
+	else if (syscall != IPC_NUM)
+	    return findSubcall(ipcSubcallList, subcall(task),
+			       unknownIpcSubSyscall);
+	else
+	    return getSyscall(syscall);
     }
 
     public Syscall getSyscall(String name) {
@@ -568,4 +538,8 @@ public class LinuxIa32Syscall extends SyscallTable {
 	return null;
     }
 
+    Syscall getSyscall(long num) {
+	return findSyscall(syscallList, num);
+    }
+
 }
diff --git a/frysk-core/frysk/proc/LinuxPPC32.java b/frysk-core/frysk/proc/LinuxPPC32.java
index 212c8e7..a4806d6 100644
--- a/frysk-core/frysk/proc/LinuxPPC32.java
+++ b/frysk-core/frysk/proc/LinuxPPC32.java
@@ -39,10 +39,6 @@
 
 package frysk.proc;
 
-import java.util.HashMap;
-
-import java.util.logging.Level;
-import java.util.logging.Logger;
 import frysk.isa.PPC32Registers;
 
 class LinuxPPC32 extends IsaPowerPC {
@@ -52,32 +48,10 @@ class LinuxPPC32 extends IsaPowerPC {
 	super(PPC32Registers.LR);
     }
 
-    private static Logger logger = Logger.getLogger(ProcLogger.LOGGER_ID);
     private static LinuxPPC32 isa;
     static LinuxPPC32 isaSingleton () {
 	if (isa == null)
 	    isa = new LinuxPPC32 ();
 	return isa;
     }
-
-  // This is used to keep track of syscalls whose number we do not
-  // know.
-  static HashMap unknownSyscalls = new HashMap();
-
-    private SyscallEventInfo info;
-    public SyscallEventInfo getSyscallEventInfo () {
-	if (info == null)
-	    info = new SyscallEventInfo () {
-		    private int number(Task task) {
-			logger.log (Level.FINE, "Get GPR0\n");
-			return (int)task.getRegister(PPC32Registers.GPR0);
-		    }
-		    public Syscall getSyscall(Task task) {
-			int number = this.number(task);
-			return LinuxPPC32Syscall.syscallByNum (task, number);
-		    }
-		};
-	return info;
-    }
-
 }
diff --git a/frysk-core/frysk/proc/LinuxPPC32Syscall.java b/frysk-core/frysk/proc/LinuxPPC32Syscall.java
index 81610eb..670f281 100644
--- a/frysk-core/frysk/proc/LinuxPPC32Syscall.java
+++ b/frysk-core/frysk/proc/LinuxPPC32Syscall.java
@@ -101,7 +101,7 @@ public class LinuxPPC32Syscall extends SyscallTable {
 	}
     }
 
-    static Syscall[] syscallList = {
+    static private Syscall[] syscallList = {
 	new PowerPCSyscall(0),
 	new PowerPCSyscall("exit", 1, 1),
 	new PowerPCSyscall("fork", 2, 0, "i: "),
@@ -413,11 +413,8 @@ public class LinuxPPC32Syscall extends SyscallTable {
 	new PowerPCSyscall("sync_file_range2", 308),
 	new PowerPCSyscall("fallocate", 309)
     };
-    public Syscall[] getSyscallList() {
-	return syscallList;
-    }
 
-    static class SocketSubSyscall extends PowerPCSyscall {
+    static private class SocketSubSyscall extends PowerPCSyscall {
 	SocketSubSyscall(String name, int number) {
 	    super(name, number);
 	}
@@ -432,7 +429,7 @@ public class LinuxPPC32Syscall extends SyscallTable {
 	}
     }
 
-    static Syscall[] socketSubcallList = {
+    private static Syscall[] socketSubcallList = {
 	new SocketSubSyscall("", SOCKET_NUM),
 	new SocketSubSyscall("socket",     SOCKET_NUM, 3, "i:iii"),
 	new SocketSubSyscall("bind",       SOCKET_NUM, 3, "i:ipi "),
@@ -454,7 +451,7 @@ public class LinuxPPC32Syscall extends SyscallTable {
     };
 
 
-    static class IpcSubSyscall
+    private static class IpcSubSyscall
 	extends PowerPCSyscall
     {
 	IpcSubSyscall(String name, int number)
@@ -476,7 +473,7 @@ public class LinuxPPC32Syscall extends SyscallTable {
 	}
  
     }
-    static Syscall[] ipcSubcallList = {
+    private static Syscall[] ipcSubcallList = {
 	new IpcSubSyscall("semop",  IPC_NUM),
 	new IpcSubSyscall("semget", IPC_NUM),
 	new IpcSubSyscall("semctl",  IPC_NUM),
@@ -503,21 +500,6 @@ public class LinuxPPC32Syscall extends SyscallTable {
 	new IpcSubSyscall("shmctl", IPC_NUM)
     };
 
-    public static Syscall syscallByNum(Task task, int number) {
-	if (number != SOCKET_NUM && number != IPC_NUM)
-	    return Syscall.syscallByNum(number, task);
-	else {
-	    /** sub syscall number is in .  */
-	    int subSyscallNumber = 0;
-	    subSyscallNumber = (int) task.getRegister(PPC32Registers.ORIGR3);
-	    if (number == SOCKET_NUM) {
-		return socketSubcallList[subSyscallNumber];
-	    } else {
-		return ipcSubcallList[subSyscallNumber];
-	    }
-	}
-    }
-
     public Syscall getSyscall(String name) {
 	Syscall syscall;
 	syscall = iterateSyscallByName(name, LinuxPPC32Syscall.syscallList);
@@ -532,20 +514,30 @@ public class LinuxPPC32Syscall extends SyscallTable {
 	return null;
     }
 
+    private static final SocketSubSyscall unknownSocketSubSyscall =
+	new SocketSubSyscall("<unknown>", SOCKET_NUM);
+
+    private static final IpcSubSyscall unknownIpcSubSyscall =
+	new IpcSubSyscall("<unknown>", IPC_NUM);
+
+    private long subcall(Task task) {
+	return task.getRegister(PPC32Registers.ORIGR3);
+    }
+
     public Syscall getSyscall(Task task) {
-	long number = task.getRegister(PPC32Registers.GPR0);
-	if (number != SOCKET_NUM && number != IPC_NUM)
-	    return getSyscall(number);
-	else {
-	    /** sub syscall number is in .  */
-	    int subSyscallNumber = 0;
-	    subSyscallNumber = (int) task.getRegister(PPC32Registers.ORIGR3);
-	    if (number == SOCKET_NUM) {
-		return socketSubcallList[subSyscallNumber];
-	    } else {
-		return ipcSubcallList[subSyscallNumber];
-	    }
-	}
+	long syscall = task.getRegister(PPC32Registers.GPR0);
+	if (syscall == SOCKET_NUM)
+	    return findSubcall(socketSubcallList, subcall(task),
+			       unknownSocketSubSyscall);
+	else if (syscall != IPC_NUM)
+	    return findSubcall(ipcSubcallList, subcall(task),
+			       unknownIpcSubSyscall);
+	else
+	    return getSyscall(syscall);
+    }
+
+    Syscall getSyscall(long num) {
+	return findSyscall(syscallList, num);
     }
 
 }
diff --git a/frysk-core/frysk/proc/LinuxPPC64.java b/frysk-core/frysk/proc/LinuxPPC64.java
index f082ea6..444ebb0 100644
--- a/frysk-core/frysk/proc/LinuxPPC64.java
+++ b/frysk-core/frysk/proc/LinuxPPC64.java
@@ -39,9 +39,6 @@
 
 package frysk.proc;
 
-import java.util.HashMap;
-import java.util.logging.Level;
-import java.util.logging.Logger;
 import frysk.isa.PPC64Registers;
 
 class LinuxPPC64 extends IsaPowerPC {
@@ -49,7 +46,6 @@ class LinuxPPC64 extends IsaPowerPC {
 	super(PPC64Registers.NIP);
     }
 
-  private static Logger logger = Logger.getLogger(ProcLogger.LOGGER_ID);
   private static LinuxPPC64 isa;
 
   static LinuxPPC64 isaSingleton ()
@@ -58,24 +54,4 @@ class LinuxPPC64 extends IsaPowerPC {
       isa = new LinuxPPC64 ();
     return isa;
   }
-
-  // This is used to keep track of syscalls whose number we do not
-  // know.
-  static HashMap unknownSyscalls = new HashMap();
-
-    private SyscallEventInfo info;
-    public SyscallEventInfo getSyscallEventInfo () {
-	if (info == null)
-	    info = new SyscallEventInfo () {
-		    private int number(Task task) {
-			logger.log (Level.FINE, "Get GPR0\n");
-			return (int)task.getRegister(PPC64Registers.GPR0);
-		    }
-		    public Syscall getSyscall(Task task) {
-			int number = this.number(task);
-			return LinuxPPC64Syscall.syscallByNum (task, number);
-		    }
-		};
-	return info;
-    }
 }
diff --git a/frysk-core/frysk/proc/LinuxPPC64Syscall.java b/frysk-core/frysk/proc/LinuxPPC64Syscall.java
index 76072c8..f4ed89f 100644
--- a/frysk-core/frysk/proc/LinuxPPC64Syscall.java
+++ b/frysk-core/frysk/proc/LinuxPPC64Syscall.java
@@ -107,7 +107,7 @@ public class LinuxPPC64Syscall extends SyscallTable {
 	}
     }
 
-    static Syscall[] syscallList = {
+    private static Syscall[] syscallList = {
 	new PowerPCSyscall (0),
 	new PowerPCSyscall ("exit", 1, 1),
 	new PowerPCSyscall ("fork", 2, 0, "i: "),
@@ -419,11 +419,8 @@ public class LinuxPPC64Syscall extends SyscallTable {
 	new PowerPCSyscall ("sync_file_range2", 308),
 	new PowerPCSyscall ("fallocate", 309)
     };
-    public Syscall[] getSyscallList() {
-	return syscallList;
-    }
 
-    static class SocketSubSyscall extends PowerPCSyscall {
+    private static class SocketSubSyscall extends PowerPCSyscall {
 	SocketSubSyscall (String name, int number) {
 	    super (name, number);
 	}
@@ -438,7 +435,7 @@ public class LinuxPPC64Syscall extends SyscallTable {
 	}
     }
 
-    static Syscall[] socketSubcallList = {
+    private static Syscall[] socketSubcallList = {
 	new SocketSubSyscall ("", SOCKET_NUM),
 	new SocketSubSyscall ("socket",     SOCKET_NUM, 3, "i:iii"),
 	new SocketSubSyscall ("bind",       SOCKET_NUM, 3, "i:ipi "),
@@ -459,8 +456,7 @@ public class LinuxPPC64Syscall extends SyscallTable {
 	new SocketSubSyscall ("recvmsg",    SOCKET_NUM, 5, "i:iiipp ")
     };
 
-
-    static class IpcSubSyscall
+    private static class IpcSubSyscall
 	extends PowerPCSyscall
     {
 	IpcSubSyscall (String name, int number)
@@ -482,7 +478,7 @@ public class LinuxPPC64Syscall extends SyscallTable {
 	}
  
     }
-    static Syscall[] ipcSubcallList = {
+    private static Syscall[] ipcSubcallList = {
 	new IpcSubSyscall ("semop",  IPC_NUM),
 	new IpcSubSyscall("semget", IPC_NUM),
 	new IpcSubSyscall("semctl",  IPC_NUM),
@@ -509,21 +505,6 @@ public class LinuxPPC64Syscall extends SyscallTable {
 	new IpcSubSyscall("shmctl", IPC_NUM)
     };
 
-    public static Syscall syscallByNum (Task task, int number) {
-	if (number != SOCKET_NUM && number != IPC_NUM)


hooks/post-receive
--
frysk system monitor/debugger



More information about the Frysk-cvs mailing list