2 * Copyright (C) 1995 Advanced RISC Machines Limited. All rights reserved.
4 * This software may be freely used, copied, modified, and distributed
5 * provided that the above copyright notice is preserved in all copies of the
10 * Host C library support header file.
20 #define HSYS_FOPEN_MAX 256
22 #define UNIQUETEMPS 256
28 FILE *FileTable
[HSYS_FOPEN_MAX
] ;
29 char FileFlags
[HSYS_FOPEN_MAX
] ;
30 char *TempNames
[UNIQUETEMPS
];
39 const struct Dbg_HostosInterface
*hostif
; /* Interface to debug toolkit. */
40 int last_errno
; /* Number of the last error. */
42 char **CommandLine
; /* Ptr to cmd line d`string held by ardi.c */
46 * Function: HostSysInit
47 * Purpose: Set up the state block, filetable and register the and C lib
51 * Input: hostif, the host interface from the debug toolbox
52 * cmdline, the command line used to call the image
53 * state, the status block for the C lib
56 * OK: an RDIError_* valuee
58 extern int HostSysInit(
59 const struct Dbg_HostosInterface
*hostif
, char **cmdline
, hsys_state
**state
63 * Function: HostSysExit
64 * Purpose: Close down the host side C library support
67 * Input: hstate, the status block for the C lib
69 * Returns: an RDIError_* valuee
71 extern int HostSysExit(hsys_state
*hstate
);
74 * Function: HandleSysMessage
75 * Purpose: Handle an incoming C library message as a callback
78 * Input: packet is the incoming data packet as described in devsw.h
79 * hstate, the status block for the C lib
81 * Returns: an RDIError_* valuee
83 extern int HandleSysMessage(Packet
*packet
, hsys_state
* stateptr
);
87 * Purpose: Print a fatal error message
90 * Input: format printf() style message describing the problem
91 * ... extra arguments for printf().
93 * Returns: This routine does not return
95 * Post-conditions: Will have called exit(1);
97 extern void panic(const char *format
, ...);
99 #endif /* ndef angsd_hsys_h */
This page took 0.049735 seconds and 4 git commands to generate.