summaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-03-01 11:18:33 +0000
committerRon Yorston <rmy@pobox.com>2018-03-01 11:18:33 +0000
commit5f8dac68690e92f0be220f8f8d9f797a2aedc806 (patch)
tree28c1d611ace374f615cac23415b35b2ab54059f4 /include/mingw.h
parent701a8d6783f09597e1c9b386b1e6ba890807854c (diff)
downloadbusybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.tar.gz
busybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.tar.bz2
busybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.zip
Remove fake signal-handling code
Microsoft Windows has only limited support for signals. busybox-w32 initially papered over this fact by adding definitions for unsupported signals and signal-handling functions. Remove this fake code and deal with the consequences by excluding anything that fails to compile as a result.
Diffstat (limited to 'include/mingw.h')
-rw-r--r--include/mingw.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/mingw.h b/include/mingw.h
index c662f4baf..1bb2032cd 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -90,39 +90,11 @@ IMPL(getpwent,struct passwd *,NULL,void)
90/* 90/*
91 * signal.h 91 * signal.h
92 */ 92 */
93#define SIGHUP 1
94#define SIGQUIT 3
95#define SIGKILL 9 93#define SIGKILL 9
96#define SIGUSR1 10
97#define SIGUSR2 12
98#define SIGPIPE 13
99#define SIGALRM 14
100#define SIGCHLD 17
101#define SIGCONT 18
102#define SIGSTOP 19
103#define SIGTSTP 20
104#define SIGTTIN 21
105#define SIGTTOU 22
106#define SIGXCPU 24
107#define SIGXFSZ 25
108#define SIGVTALRM 26
109#define SIGWINCH 28
110 94
111#define SIG_UNBLOCK 1 95#define SIG_UNBLOCK 1
112 96
113typedef void (__cdecl *sighandler_t)(int);
114struct sigaction {
115 sighandler_t sa_handler;
116 unsigned sa_flags;
117 int sa_mask;
118};
119#define sigemptyset(x) (void)0
120#define SA_RESTART 0
121
122NOIMPL(sigaction,int sig UNUSED_PARAM, struct sigaction *in UNUSED_PARAM, struct sigaction *out UNUSED_PARAM);
123NOIMPL(sigfillset,int *mask UNUSED_PARAM);
124NOIMPL(FAST_FUNC sigprocmask_allsigs, int how UNUSED_PARAM); 97NOIMPL(FAST_FUNC sigprocmask_allsigs, int how UNUSED_PARAM);
125NOIMPL(FAST_FUNC sigaction_set,int signo UNUSED_PARAM, const struct sigaction *sa UNUSED_PARAM);
126 98
127/* 99/*
128 * stdio.h 100 * stdio.h