home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ixemul-45.0-inc-bin.lha / include / ix_amiga.h < prev    next >
C/C++ Source or Header  |  1996-10-12  |  2KB  |  69 lines

  1. #ifndef __IX_AMIGA_H
  2. #define __IX_AMIGA_H
  3.  
  4. /* This header provides prototypes for Amiga specific functions available
  5.  * in ixemul.library or libc.a.
  6.  *
  7.  * Each function is also documented in this header (or will be). Sometimes an Amiga
  8.  * extension is described here, but for ease of use the original prototype
  9.  * or macro is defined elsewhere.
  10.  *
  11.  */
  12.  
  13. /* Like vfork(), but the memory that the child allocates will be owned by
  14.    the child. vfork() uses the parent's memory list, but since vfork2() is
  15.    used as a fork() emulation, this would be undesirable, not in the least
  16.    because that memory wouldn't be released until the parent exits. Causing
  17.    a huge memory leak. */
  18.  
  19. int vfork2(void);
  20.  
  21. /* Obsolete function to pass pointers to the _ctype_ array and the sys_nerr
  22.    variable from ixemul to the program. Do not use, use ix_get_vars2()
  23.    instead. */
  24.  
  25. /* void ix_get_vars(char **ctype, int *_sys_nerr); */
  26.  
  27. void ix_get_vars2 (int argc, char **ctype, int *_sys_nerr, 
  28.                struct Library **sysbase, struct Library **dosbase,
  29.                FILE ***fpp, char ***environ_out, char ***environ_in,
  30.                int *real_errno, int *real_h_errno, struct __res_state *_res,
  31.                int *_res_socket);
  32.  
  33. #if 0
  34. /* TODO */
  35. use geta4 in callbacks installed using funopen() when -resident
  36. SYSTEM_CALL (CreateExtIO, 27)
  37. SYSTEM_CALL (CreatePort, 28)
  38. SYSTEM_CALL (CreateStdIO, 29)
  39. SYSTEM_CALL (CreateTask, 30)
  40. SYSTEM_CALL (DeleteExtIO, 31)
  41. SYSTEM_CALL (DeletePort, 32)
  42. SYSTEM_CALL (DeleteStdIO, 33)
  43. SYSTEM_CALL (DeleteTask, 34)
  44. O_CASE
  45. achmod
  46. vfork_resume
  47. __amiga_filehandle
  48. ix_resident
  49. ix_geta4
  50. ix_check_cpu
  51. tracecntl
  52. SYSTEM_CALL (ix_get_gmt_offset, 473)
  53. SYSTEM_CALL (ix_set_gmt_offset, 474)
  54. SYSTEM_CALL (ix_get_default_settings, 475)
  55. SYSTEM_CALL (ix_get_settings, 476)
  56. SYSTEM_CALL (ix_set_settings, 477)
  57. SYSTEM_CALL (__init_stk_limit, 480)
  58. SYSTEM_CALL (__stkovf, 481)
  59. SYSTEM_CALL (__stkext, 482)
  60. SYSTEM_CALL (__stkext_f, 483)
  61. SYSTEM_CALL (__stkrst, 484)
  62. aselect
  63. ix_get_variables
  64. vfork_setup_child
  65.  
  66. #endif
  67.  
  68. #endif
  69.