mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-15 19:33:59 +03:00
6496d04506
This version of menuetlibc was taken from revision 4743, right before I made any changes git-svn-id: svn://kolibrios.org@4973 a494cfbc-eb01-0410-851d-a64ba20cac60
78 lines
2.3 KiB
C
78 lines
2.3 KiB
C
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
|
|
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
|
|
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
|
#ifndef __dj_include_sys_exceptn_h__
|
|
#define __dj_include_sys_exceptn_h__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
#ifndef _POSIX_SOURCE
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
#ifndef _POSIX_SOURCE
|
|
|
|
#ifdef __dj_include_setjmp_h_
|
|
extern jmp_buf *__djgpp_exception_state_ptr; /* Must include setjmp.h first */
|
|
#define __djgpp_exception_state (*__djgpp_exception_state_ptr)
|
|
#endif
|
|
|
|
extern unsigned short __djgpp_our_DS;
|
|
extern unsigned short __djgpp_app_DS; /* Data selector invalidated by HW ints */
|
|
extern unsigned short __djgpp_ds_alias; /* Data selector always valid */
|
|
extern unsigned short __djgpp_dos_sel; /* Linear mem selector copy in locked mem */
|
|
/* Hardware Interrupt Flags:
|
|
|
|
1 = Disable INTR and QUIT keys (Ctrl-C and Ctrl-\);
|
|
2 = Count Ctrl-Break (don't kill);
|
|
4 = IRET from our timer interrupt handler, don't chain */
|
|
extern unsigned short __djgpp_hwint_flags;
|
|
extern unsigned __djgpp_cbrk_count; /* Count of CTRL-BREAK hits */
|
|
extern int __djgpp_exception_inprog; /* Nested exception count */
|
|
|
|
extern unsigned short __djgpp_sigint_key; /* key that raises SIGINT */
|
|
extern unsigned short __djgpp_sigquit_key; /* key that raises SIGQUIT */
|
|
extern unsigned short __djgpp_sigint_mask; /* kb mask for SIGINT key */
|
|
extern unsigned short __djgpp_sigquit_mask;/* kb mask for SIGQUIT key */
|
|
|
|
void __djgpp_exception_toggle(void);
|
|
int __djgpp_set_ctrl_c(int __enable); /* On by default */
|
|
int __djgpp_set_sigint_key(int new_key); /* Set key which raises SIGINT */
|
|
int __djgpp_set_sigquit_key(int new_key); /* Set key which raises SIGQUIT */
|
|
|
|
#endif /* !_POSIX_SOURCE */
|
|
#endif /* !__STRICT_ANSI__ */
|
|
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
|
|
|
|
#ifndef __dj_ENFORCE_FUNCTION_CALLS
|
|
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* !_POSIX_SOURCE */
|
|
#endif /* !__STRICT_ANSI__ */
|
|
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
|
|
|
|
#ifndef __dj_ENFORCE_FUNCTION_CALLS
|
|
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* !__dj_include_sys_exceptn_h__ */
|