home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / kaffe-0.5p4-src.tgz / tar.out / contrib / kaffe / lib / external_wrappers.h next >
C/C++ Source or Header  |  1996-09-28  |  19KB  |  465 lines

  1. /*
  2.  * external_wrappers.h
  3.  * Wrap up the calls between Kaffe and native method calls for systems
  4.  *  which don't support shared libraries.
  5.  *
  6.  * Copyright (c) 1996 Systems Architecture Research Centre,
  7.  *                 City University, London, UK.
  8.  *
  9.  * See the file "license.terms" for information on usage and redistribution
  10.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  11.  *
  12.  * Written by Attila Molnar <gusthy@hu.bonus.com>, July 1996.
  13.  * Modified by Tim Wilkinson <tim@sarc.city.ac.uk>, August 1996.
  14.  */
  15.  
  16. #ifndef __external_wrappers_h
  17. #define __external_wrappers_h
  18.  
  19. #if defined(TRANSLATOR)
  20. #define    KAFFEFUNC(_f_)    _f_
  21. #elif defined(INTERPRETER)
  22. #define    KAFFEFUNC(_f_)    Kaffe_##_f_##_stub
  23. #endif
  24.  
  25. extern KAFFEFUNC(java_net_DatagramSocket_datagramSocketCreate)();
  26. extern KAFFEFUNC(java_net_DatagramSocket_datagramSocketBind)();
  27. extern KAFFEFUNC(java_net_DatagramSocket_datagramSocketSend)();
  28. extern KAFFEFUNC(java_net_DatagramSocket_datagramSocketPeek)();
  29. extern KAFFEFUNC(java_net_DatagramSocket_datagramSocketReceive)();
  30. extern KAFFEFUNC(java_net_DatagramSocket_datagramSocketClose)();
  31. extern KAFFEFUNC(java_net_InetAddress_getLocalHostName)();
  32. extern KAFFEFUNC(java_net_InetAddress_makeAnyLocalAddress)();
  33. extern KAFFEFUNC(java_net_InetAddress_lookupHostAddr)();
  34. extern KAFFEFUNC(java_net_InetAddress_lookupAllHostAddr)();
  35. extern KAFFEFUNC(java_net_InetAddress_getHostByAddr)();
  36. extern KAFFEFUNC(java_net_InetAddress_getInetFamily)();
  37. extern KAFFEFUNC(java_net_PlainSocketImpl_socketCreate)();
  38. extern KAFFEFUNC(java_net_PlainSocketImpl_socketConnect)();
  39. extern KAFFEFUNC(java_net_PlainSocketImpl_socketBind)();
  40. extern KAFFEFUNC(java_net_PlainSocketImpl_socketListen)();
  41. extern KAFFEFUNC(java_net_PlainSocketImpl_socketAccept)();
  42. extern KAFFEFUNC(java_net_PlainSocketImpl_socketAvailable)();
  43. extern KAFFEFUNC(java_net_PlainSocketImpl_socketClose)();
  44. extern KAFFEFUNC(java_net_SocketInputStream_socketRead)();
  45. extern KAFFEFUNC(java_net_SocketOutputStream_socketWrite)();
  46. extern KAFFEFUNC(java_util_Date_toString)();
  47. extern KAFFEFUNC(java_util_Date_toLocaleString)();
  48. extern KAFFEFUNC(java_util_Date_toGMTString)();
  49. extern KAFFEFUNC(java_util_Date_expand)();
  50. extern KAFFEFUNC(java_util_Date_computeValue)();
  51. extern KAFFEFUNC(java_lang_ClassLoader_init)();
  52. extern KAFFEFUNC(java_lang_ClassLoader_defineClass0)();
  53. extern KAFFEFUNC(java_lang_ClassLoader_resolveClass0)();
  54. extern KAFFEFUNC(java_lang_ClassLoader_findSystemClass0)();
  55. extern KAFFEFUNC(java_lang_Class_forName)();
  56. extern KAFFEFUNC(java_lang_Class_newInstance)();
  57. extern KAFFEFUNC(java_lang_Class_getName)();
  58. extern KAFFEFUNC(java_lang_Class_getSuperclass)();
  59. extern KAFFEFUNC(java_lang_Class_getInterfaces)();
  60. extern KAFFEFUNC(java_lang_Class_getClassLoader)();
  61. extern KAFFEFUNC(java_lang_Class_isInterface)();
  62. extern KAFFEFUNC(java_lang_Compiler_initialize)();
  63. extern KAFFEFUNC(java_lang_Compiler_compileClass)();
  64. extern KAFFEFUNC(java_lang_Compiler_compileClasses)();
  65. extern KAFFEFUNC(java_lang_Compiler_command)();
  66. extern KAFFEFUNC(java_lang_Compiler_enable)();
  67. extern KAFFEFUNC(java_lang_Compiler_disable)();
  68. extern KAFFEFUNC(java_lang_Double_toString)();
  69. extern KAFFEFUNC(java_lang_Double_valueOf)();
  70. extern KAFFEFUNC(java_lang_Double_doubleToLongBits)();
  71. extern KAFFEFUNC(java_lang_Double_longBitsToDouble)();
  72. extern KAFFEFUNC(java_lang_Float_toString)();
  73. extern KAFFEFUNC(java_lang_Float_valueOf)();
  74. extern KAFFEFUNC(java_lang_Float_floatToIntBits)();
  75. extern KAFFEFUNC(java_lang_Float_intBitsToFloat)();
  76. extern KAFFEFUNC(java_lang_Math_sin)();
  77. extern KAFFEFUNC(java_lang_Math_cos)();
  78. extern KAFFEFUNC(java_lang_Math_tan)();
  79. extern KAFFEFUNC(java_lang_Math_asin)();
  80. extern KAFFEFUNC(java_lang_Math_acos)();
  81. extern KAFFEFUNC(java_lang_Math_atan)();
  82. extern KAFFEFUNC(java_lang_Math_exp)();
  83. extern KAFFEFUNC(java_lang_Math_log)();
  84. extern KAFFEFUNC(java_lang_Math_sqrt)();
  85. extern KAFFEFUNC(java_lang_Math_IEEEremainder)();
  86. extern KAFFEFUNC(java_lang_Math_ceil)();
  87. extern KAFFEFUNC(java_lang_Math_floor)();
  88. extern KAFFEFUNC(java_lang_Math_rint)();
  89. extern KAFFEFUNC(java_lang_Math_atan2)();
  90. extern KAFFEFUNC(java_lang_Math_pow)();
  91. extern KAFFEFUNC(java_lang_Object_getClass)();
  92. extern KAFFEFUNC(java_lang_Object_hashCode)();
  93. extern KAFFEFUNC(java_lang_Object_clone)();
  94. extern KAFFEFUNC(java_lang_Object_notify)();
  95. extern KAFFEFUNC(java_lang_Object_notifyAll)();
  96. extern KAFFEFUNC(java_lang_Object_wait)();
  97. extern KAFFEFUNC(java_lang_ProcessReaper_waitForDeath)();
  98. extern KAFFEFUNC(java_lang_Runtime_exitInternal)();
  99. extern KAFFEFUNC(java_lang_Runtime_execInternal)();
  100. extern KAFFEFUNC(java_lang_Runtime_freeMemory)();
  101. extern KAFFEFUNC(java_lang_Runtime_totalMemory)();
  102. extern KAFFEFUNC(java_lang_Runtime_gc)();
  103. extern KAFFEFUNC(java_lang_Runtime_runFinalization)();
  104. extern KAFFEFUNC(java_lang_Runtime_traceInstructions)();
  105. extern KAFFEFUNC(java_lang_Runtime_traceMethodCalls)();
  106. extern KAFFEFUNC(java_lang_Runtime_initializeLinkerInternal)();
  107. extern KAFFEFUNC(java_lang_Runtime_buildLibName)();
  108. extern KAFFEFUNC(java_lang_Runtime_loadFileInternal)();
  109. extern KAFFEFUNC(java_lang_SecurityManager_getClassContext)();
  110. extern KAFFEFUNC(java_lang_SecurityManager_currentClassLoader)();
  111. extern KAFFEFUNC(java_lang_SecurityManager_classDepth)();
  112. extern KAFFEFUNC(java_lang_SecurityManager_classLoaderDepth)();
  113. extern KAFFEFUNC(java_lang_System_currentTimeMillis)();
  114. extern KAFFEFUNC(java_lang_System_arraycopy)();
  115. extern KAFFEFUNC(java_lang_System_initProperties)();
  116. extern KAFFEFUNC(java_lang_Thread_currentThread)();
  117. extern KAFFEFUNC(java_lang_Thread_yield)();
  118. extern KAFFEFUNC(java_lang_Thread_sleep)();
  119. extern KAFFEFUNC(java_lang_Thread_start)();
  120. extern KAFFEFUNC(java_lang_Thread_isAlive)();
  121. extern KAFFEFUNC(java_lang_Thread_countStackFrames)();
  122. extern KAFFEFUNC(java_lang_Thread_setPriority0)();
  123. extern KAFFEFUNC(java_lang_Thread_stop0)();
  124. extern KAFFEFUNC(java_lang_Thread_suspend0)();
  125. extern KAFFEFUNC(java_lang_Thread_resume0)();
  126. extern KAFFEFUNC(java_lang_Throwable_printStackTrace0)();
  127. extern KAFFEFUNC(java_lang_Throwable_fillInStackTrace)();
  128. extern KAFFEFUNC(java_lang_UNIXProcess_exec)();
  129. extern KAFFEFUNC(java_lang_UNIXProcess_fork)();
  130. extern KAFFEFUNC(java_lang_UNIXProcess_waitForUNIXProcess)();
  131. extern KAFFEFUNC(java_lang_UNIXProcess_destroy)();
  132. extern KAFFEFUNC(java_io_FileDescriptor_valid)();
  133. extern KAFFEFUNC(java_io_FileDescriptor_initSystemFD)();
  134. extern KAFFEFUNC(java_io_FileInputStream_open)();
  135. extern KAFFEFUNC(java_io_FileInputStream_read)();
  136. extern KAFFEFUNC(java_io_FileInputStream_readBytes)();
  137. extern KAFFEFUNC(java_io_FileInputStream_skip)();
  138. extern KAFFEFUNC(java_io_FileInputStream_available)();
  139. extern KAFFEFUNC(java_io_FileInputStream_close)();
  140. extern KAFFEFUNC(java_io_FileOutputStream_open)();
  141. extern KAFFEFUNC(java_io_FileOutputStream_write)();
  142. extern KAFFEFUNC(java_io_FileOutputStream_writeBytes)();
  143. extern KAFFEFUNC(java_io_FileOutputStream_close)();
  144. extern KAFFEFUNC(java_io_File_exists0)();
  145. extern KAFFEFUNC(java_io_File_canWrite0)();
  146. extern KAFFEFUNC(java_io_File_canRead0)();
  147. extern KAFFEFUNC(java_io_File_isFile0)();
  148. extern KAFFEFUNC(java_io_File_isDirectory0)();
  149. extern KAFFEFUNC(java_io_File_lastModified0)();
  150. extern KAFFEFUNC(java_io_File_length0)();
  151. extern KAFFEFUNC(java_io_File_mkdir0)();
  152. extern KAFFEFUNC(java_io_File_renameTo0)();
  153. extern KAFFEFUNC(java_io_File_delete0)();
  154. extern KAFFEFUNC(java_io_File_list0)();
  155. extern KAFFEFUNC(java_io_File_isAbsolute)();
  156. extern KAFFEFUNC(java_io_RandomAccessFile_open)();
  157. extern KAFFEFUNC(java_io_RandomAccessFile_read)();
  158. extern KAFFEFUNC(java_io_RandomAccessFile_readBytes)();
  159. extern KAFFEFUNC(java_io_RandomAccessFile_write)();
  160. extern KAFFEFUNC(java_io_RandomAccessFile_writeBytes)();
  161. extern KAFFEFUNC(java_io_RandomAccessFile_getFilePointer)();
  162. extern KAFFEFUNC(java_io_RandomAccessFile_seek)();
  163. extern KAFFEFUNC(java_io_RandomAccessFile_length)();
  164. extern KAFFEFUNC(java_io_RandomAccessFile_close)();
  165.  
  166. /*
  167.  * Name each method.
  168.  */
  169. char *native_name[] = {
  170.  
  171.     "java_net_DatagramSocket_datagramSocketCreate",
  172.     "java_net_DatagramSocket_datagramSocketBind",
  173.     "java_net_DatagramSocket_datagramSocketSend",
  174.     "java_net_DatagramSocket_datagramSocketPeek",
  175.     "java_net_DatagramSocket_datagramSocketReceive",
  176.     "java_net_DatagramSocket_datagramSocketClose",
  177.     "java_net_InetAddress_getLocalHostName",
  178.     "java_net_InetAddress_makeAnyLocalAddress",
  179.     "java_net_InetAddress_lookupHostAddr",
  180.     "java_net_InetAddress_lookupAllHostAddr",
  181.     "java_net_InetAddress_getHostByAddr",
  182.     "java_net_InetAddress_getInetFamily",
  183.     "java_net_PlainSocketImpl_socketCreate",
  184.     "java_net_PlainSocketImpl_socketConnect",
  185.     "java_net_PlainSocketImpl_socketBind",
  186.     "java_net_PlainSocketImpl_socketListen",
  187.     "java_net_PlainSocketImpl_socketAccept",
  188.     "java_net_PlainSocketImpl_socketAvailable",
  189.     "java_net_PlainSocketImpl_socketClose",
  190.     "java_net_SocketInputStream_socketRead",
  191.     "java_net_SocketOutputStream_socketWrite",
  192.     "java_util_Date_toString",
  193.     "java_util_Date_toLocaleString",
  194.     "java_util_Date_toGMTString",
  195.     "java_util_Date_expand",
  196.     "java_util_Date_computeValue",
  197.     "java_lang_ClassLoader_init",
  198.     "java_lang_ClassLoader_defineClass0",
  199.     "java_lang_ClassLoader_resolveClass0",
  200.     "java_lang_ClassLoader_findSystemClass0",
  201.     "java_lang_Class_forName",
  202.     "java_lang_Class_newInstance",
  203.     "java_lang_Class_getName",
  204.     "java_lang_Class_getSuperclass",
  205.     "java_lang_Class_getInterfaces",
  206.     "java_lang_Class_getClassLoader",
  207.     "java_lang_Class_isInterface",
  208.     "java_lang_Compiler_initialize",
  209.     "java_lang_Compiler_compileClass",
  210.     "java_lang_Compiler_compileClasses",
  211.     "java_lang_Compiler_command",
  212.     "java_lang_Compiler_enable",
  213.     "java_lang_Compiler_disable",
  214.     "java_lang_Double_toString",
  215.     "java_lang_Double_valueOf",
  216.     "java_lang_Double_doubleToLongBits",
  217.     "java_lang_Double_longBitsToDouble",
  218.     "java_lang_Float_toString",
  219.     "java_lang_Float_valueOf",
  220.     "java_lang_Float_floatToIntBits",
  221.     "java_lang_Float_intBitsToFloat",
  222.     "java_lang_Math_sin",
  223.     "java_lang_Math_cos",
  224.     "java_lang_Math_tan",
  225.     "java_lang_Math_asin",
  226.     "java_lang_Math_acos",
  227.     "java_lang_Math_atan",
  228.     "java_lang_Math_exp",
  229.     "java_lang_Math_log",
  230.     "java_lang_Math_sqrt",
  231.     "java_lang_Math_IEEEremainder",
  232.     "java_lang_Math_ceil",
  233.     "java_lang_Math_floor",
  234.     "java_lang_Math_rint",
  235.     "java_lang_Math_atan2",
  236.     "java_lang_Math_pow",
  237.     "java_lang_Object_getClass",
  238.     "java_lang_Object_hashCode",
  239.     "java_lang_Object_clone",
  240.     "java_lang_Object_notify",
  241.     "java_lang_Object_notifyAll",
  242.     "java_lang_Object_wait",
  243.     "java_lang_ProcessReaper_waitForDeath",
  244.     "java_lang_Runtime_exitInternal",
  245.     "java_lang_Runtime_execInternal",
  246.     "java_lang_Runtime_freeMemory",
  247.     "java_lang_Runtime_totalMemory",
  248.     "java_lang_Runtime_gc",
  249.     "java_lang_Runtime_runFinalization",
  250.     "java_lang_Runtime_traceInstructions",
  251.     "java_lang_Runtime_traceMethodCalls",
  252.     "java_lang_Runtime_initializeLinkerInternal",
  253.     "java_lang_Runtime_buildLibName",
  254.     "java_lang_Runtime_loadFileInternal",
  255.     "java_lang_SecurityManager_getClassContext",
  256.     "java_lang_SecurityManager_currentClassLoader",
  257.     "java_lang_SecurityManager_classDepth",
  258.     "java_lang_SecurityManager_classLoaderDepth",
  259.     "java_lang_System_currentTimeMillis",
  260.     "java_lang_System_arraycopy",
  261.     "java_lang_System_initProperties",
  262.     "java_lang_Thread_currentThread",
  263.     "java_lang_Thread_yield",
  264.     "java_lang_Thread_sleep",
  265.     "java_lang_Thread_start",
  266.     "java_lang_Thread_isAlive",
  267.     "java_lang_Thread_countStackFrames",
  268.     "java_lang_Thread_setPriority0",
  269.     "java_lang_Thread_stop0",
  270.     "java_lang_Thread_suspend0",
  271.     "java_lang_Thread_resume0",
  272.     "java_lang_Throwable_printStackTrace0",
  273.     "java_lang_Throwable_fillInStackTrace",
  274.     "java_lang_UNIXProcess_exec",
  275.     "java_lang_UNIXProcess_fork",
  276.     "java_lang_UNIXProcess_waitForUNIXProcess",
  277.     "java_lang_UNIXProcess_destroy",
  278.     "java_io_FileDescriptor_valid",
  279.     "java_io_FileDescriptor_initSystemFD",
  280.     "java_io_FileInputStream_open",
  281.     "java_io_FileInputStream_read",
  282.     "java_io_FileInputStream_readBytes",
  283.     "java_io_FileInputStream_skip",
  284.     "java_io_FileInputStream_available",
  285.     "java_io_FileInputStream_close",
  286.     "java_io_FileOutputStream_open",
  287.     "java_io_FileOutputStream_write",
  288.     "java_io_FileOutputStream_writeBytes",
  289.     "java_io_FileOutputStream_close",
  290.     "java_io_File_exists0",
  291.     "java_io_File_canWrite0",
  292.     "java_io_File_canRead0",
  293.     "java_io_File_isFile0",
  294.     "java_io_File_isDirectory0",
  295.     "java_io_File_lastModified0",
  296.     "java_io_File_length0",
  297.     "java_io_File_mkdir0",
  298.     "java_io_File_renameTo0",
  299.     "java_io_File_delete0",
  300.     "java_io_File_list0",
  301.     "java_io_File_isAbsolute",
  302.     "java_io_RandomAccessFile_open",
  303.     "java_io_RandomAccessFile_read",
  304.     "java_io_RandomAccessFile_readBytes",
  305.     "java_io_RandomAccessFile_write",
  306.     "java_io_RandomAccessFile_writeBytes",
  307.     "java_io_RandomAccessFile_getFilePointer",
  308.     "java_io_RandomAccessFile_seek",
  309.     "java_io_RandomAccessFile_length",
  310.     "java_io_RandomAccessFile_close",
  311.  
  312.     0
  313. };
  314.  
  315. /*
  316.  * Define the corresponding functions.
  317.  */
  318. void *native_func[] = {
  319.  
  320.     KAFFEFUNC(java_net_DatagramSocket_datagramSocketCreate),
  321.     KAFFEFUNC(java_net_DatagramSocket_datagramSocketBind),
  322.     KAFFEFUNC(java_net_DatagramSocket_datagramSocketSend),
  323.     KAFFEFUNC(java_net_DatagramSocket_datagramSocketPeek),
  324.     KAFFEFUNC(java_net_DatagramSocket_datagramSocketReceive),
  325.     KAFFEFUNC(java_net_DatagramSocket_datagramSocketClose),
  326.     KAFFEFUNC(java_net_InetAddress_getLocalHostName),
  327.     KAFFEFUNC(java_net_InetAddress_makeAnyLocalAddress),
  328.     KAFFEFUNC(java_net_InetAddress_lookupHostAddr),
  329.     KAFFEFUNC(java_net_InetAddress_lookupAllHostAddr),
  330.     KAFFEFUNC(java_net_InetAddress_getHostByAddr),
  331.     KAFFEFUNC(java_net_InetAddress_getInetFamily),
  332.     KAFFEFUNC(java_net_PlainSocketImpl_socketCreate),
  333.     KAFFEFUNC(java_net_PlainSocketImpl_socketConnect),
  334.     KAFFEFUNC(java_net_PlainSocketImpl_socketBind),
  335.     KAFFEFUNC(java_net_PlainSocketImpl_socketListen),
  336.     KAFFEFUNC(java_net_PlainSocketImpl_socketAccept),
  337.     KAFFEFUNC(java_net_PlainSocketImpl_socketAvailable),
  338.     KAFFEFUNC(java_net_PlainSocketImpl_socketClose),
  339.     KAFFEFUNC(java_net_SocketInputStream_socketRead),
  340.     KAFFEFUNC(java_net_SocketOutputStream_socketWrite),
  341.     KAFFEFUNC(java_util_Date_toString),
  342.     KAFFEFUNC(java_util_Date_toLocaleString),
  343.     KAFFEFUNC(java_util_Date_toGMTString),
  344.     KAFFEFUNC(java_util_Date_expand),
  345.     KAFFEFUNC(java_util_Date_computeValue),
  346.     KAFFEFUNC(java_lang_ClassLoader_init),
  347.     KAFFEFUNC(java_lang_ClassLoader_defineClass0),
  348.     KAFFEFUNC(java_lang_ClassLoader_resolveClass0),
  349.     KAFFEFUNC(java_lang_ClassLoader_findSystemClass0),
  350.     KAFFEFUNC(java_lang_Class_forName),
  351.     KAFFEFUNC(java_lang_Class_newInstance),
  352.     KAFFEFUNC(java_lang_Class_getName),
  353.     KAFFEFUNC(java_lang_Class_getSuperclass),
  354.     KAFFEFUNC(java_lang_Class_getInterfaces),
  355.     KAFFEFUNC(java_lang_Class_getClassLoader),
  356.     KAFFEFUNC(java_lang_Class_isInterface),
  357.     KAFFEFUNC(java_lang_Compiler_initialize),
  358.     KAFFEFUNC(java_lang_Compiler_compileClass),
  359.     KAFFEFUNC(java_lang_Compiler_compileClasses),
  360.     KAFFEFUNC(java_lang_Compiler_command),
  361.     KAFFEFUNC(java_lang_Compiler_enable),
  362.     KAFFEFUNC(java_lang_Compiler_disable),
  363.     KAFFEFUNC(java_lang_Double_toString),
  364.     KAFFEFUNC(java_lang_Double_valueOf),
  365.     KAFFEFUNC(java_lang_Double_doubleToLongBits),
  366.     KAFFEFUNC(java_lang_Double_longBitsToDouble),
  367.     KAFFEFUNC(java_lang_Float_toString),
  368.     KAFFEFUNC(java_lang_Float_valueOf),
  369.     KAFFEFUNC(java_lang_Float_floatToIntBits),
  370.     KAFFEFUNC(java_lang_Float_intBitsToFloat),
  371.     KAFFEFUNC(java_lang_Math_sin),
  372.     KAFFEFUNC(java_lang_Math_cos),
  373.     KAFFEFUNC(java_lang_Math_tan),
  374.     KAFFEFUNC(java_lang_Math_asin),
  375.     KAFFEFUNC(java_lang_Math_acos),
  376.     KAFFEFUNC(java_lang_Math_atan),
  377.     KAFFEFUNC(java_lang_Math_exp),
  378.     KAFFEFUNC(java_lang_Math_log),
  379.     KAFFEFUNC(java_lang_Math_sqrt),
  380.     KAFFEFUNC(java_lang_Math_IEEEremainder),
  381.     KAFFEFUNC(java_lang_Math_ceil),
  382.     KAFFEFUNC(java_lang_Math_floor),
  383.     KAFFEFUNC(java_lang_Math_rint),
  384.     KAFFEFUNC(java_lang_Math_atan2),
  385.     KAFFEFUNC(java_lang_Math_pow),
  386.     KAFFEFUNC(java_lang_Object_getClass),
  387.     KAFFEFUNC(java_lang_Object_hashCode),
  388.     KAFFEFUNC(java_lang_Object_clone),
  389.     KAFFEFUNC(java_lang_Object_notify),
  390.     KAFFEFUNC(java_lang_Object_notifyAll),
  391.     KAFFEFUNC(java_lang_Object_wait),
  392.     KAFFEFUNC(java_lang_ProcessReaper_waitForDeath),
  393.     KAFFEFUNC(java_lang_Runtime_exitInternal),
  394.     KAFFEFUNC(java_lang_Runtime_execInternal),
  395.     KAFFEFUNC(java_lang_Runtime_freeMemory),
  396.     KAFFEFUNC(java_lang_Runtime_totalMemory),
  397.     KAFFEFUNC(java_lang_Runtime_gc),
  398.     KAFFEFUNC(java_lang_Runtime_runFinalization),
  399.     KAFFEFUNC(java_lang_Runtime_traceInstructions),
  400.     KAFFEFUNC(java_lang_Runtime_traceMethodCalls),
  401.     KAFFEFUNC(java_lang_Runtime_initializeLinkerInternal),
  402.     KAFFEFUNC(java_lang_Runtime_buildLibName),
  403.     KAFFEFUNC(java_lang_Runtime_loadFileInternal),
  404.     KAFFEFUNC(java_lang_SecurityManager_getClassContext),
  405.     KAFFEFUNC(java_lang_SecurityManager_currentClassLoader),
  406.     KAFFEFUNC(java_lang_SecurityManager_classDepth),
  407.     KAFFEFUNC(java_lang_SecurityManager_classLoaderDepth),
  408.     KAFFEFUNC(java_lang_System_currentTimeMillis),
  409.     KAFFEFUNC(java_lang_System_arraycopy),
  410.     KAFFEFUNC(java_lang_System_initProperties),
  411.     KAFFEFUNC(java_lang_Thread_currentThread),
  412.     KAFFEFUNC(java_lang_Thread_yield),
  413.     KAFFEFUNC(java_lang_Thread_sleep),
  414.     KAFFEFUNC(java_lang_Thread_start),
  415.     KAFFEFUNC(java_lang_Thread_isAlive),
  416.     KAFFEFUNC(java_lang_Thread_countStackFrames),
  417.     KAFFEFUNC(java_lang_Thread_setPriority0),
  418.     KAFFEFUNC(java_lang_Thread_stop0),
  419.     KAFFEFUNC(java_lang_Thread_suspend0),
  420.     KAFFEFUNC(java_lang_Thread_resume0),
  421.     KAFFEFUNC(java_lang_Throwable_printStackTrace0),
  422.     KAFFEFUNC(java_lang_Throwable_fillInStackTrace),
  423.     KAFFEFUNC(java_lang_UNIXProcess_exec),
  424.     KAFFEFUNC(java_lang_UNIXProcess_fork),
  425.     KAFFEFUNC(java_lang_UNIXProcess_waitForUNIXProcess),
  426.     KAFFEFUNC(java_lang_UNIXProcess_destroy),
  427.     KAFFEFUNC(java_io_FileDescriptor_valid),
  428.     KAFFEFUNC(java_io_FileDescriptor_initSystemFD),
  429.     KAFFEFUNC(java_io_FileInputStream_open),
  430.     KAFFEFUNC(java_io_FileInputStream_read),
  431.     KAFFEFUNC(java_io_FileInputStream_readBytes),
  432.     KAFFEFUNC(java_io_FileInputStream_skip),
  433.     KAFFEFUNC(java_io_FileInputStream_available),
  434.     KAFFEFUNC(java_io_FileInputStream_close),
  435.     KAFFEFUNC(java_io_FileOutputStream_open),
  436.     KAFFEFUNC(java_io_FileOutputStream_write),
  437.     KAFFEFUNC(java_io_FileOutputStream_writeBytes),
  438.     KAFFEFUNC(java_io_FileOutputStream_close),
  439.     KAFFEFUNC(java_io_File_exists0),
  440.     KAFFEFUNC(java_io_File_canWrite0),
  441.     KAFFEFUNC(java_io_File_canRead0),
  442.     KAFFEFUNC(java_io_File_isFile0),
  443.     KAFFEFUNC(java_io_File_isDirectory0),
  444.     KAFFEFUNC(java_io_File_lastModified0),
  445.     KAFFEFUNC(java_io_File_length0),
  446.     KAFFEFUNC(java_io_File_mkdir0),
  447.     KAFFEFUNC(java_io_File_renameTo0),
  448.     KAFFEFUNC(java_io_File_delete0),
  449.     KAFFEFUNC(java_io_File_list0),
  450.     KAFFEFUNC(java_io_File_isAbsolute),
  451.     KAFFEFUNC(java_io_RandomAccessFile_open),
  452.     KAFFEFUNC(java_io_RandomAccessFile_read),
  453.     KAFFEFUNC(java_io_RandomAccessFile_readBytes),
  454.     KAFFEFUNC(java_io_RandomAccessFile_write),
  455.     KAFFEFUNC(java_io_RandomAccessFile_writeBytes),
  456.     KAFFEFUNC(java_io_RandomAccessFile_getFilePointer),
  457.     KAFFEFUNC(java_io_RandomAccessFile_seek),
  458.     KAFFEFUNC(java_io_RandomAccessFile_length),
  459.     KAFFEFUNC(java_io_RandomAccessFile_close),
  460.  
  461.     0
  462. };
  463.  
  464. #endif
  465.