HardenedBSD/usr.bin/doscmd/callback.h
John Dyson 90c38ed200 Add our doscmd to the tree. This is a result of work from BSDI, and
a group of dos emulator developers.
Submitted by:	Jonathan Lemon <jlemon@americantv.com>
Obtained from:	BSDI
1997-08-09 01:43:15 +00:00

14 lines
458 B
C

/*
** No copyright?!
**
** $Id: callback.h,v 1.4 1996/09/22 15:42:48 miff Exp $
*/
typedef void (*callback_t)(regcontext_t *REGS);
extern void register_callback(u_long vec, callback_t func, char *name);
extern callback_t find_callback(u_long vec);
extern u_long insert_generic_trampoline(size_t len, u_char *p);
extern u_long insert_softint_trampoline(void);
extern u_long insert_hardint_trampoline(void);
extern u_long insert_null_trampoline(void);