source: release/1.7/source/lisp-kernel/os-linux.h @ 15267

Last change on this file since 15267 was 14549, checked in by gb, 8 years ago

Android wants to pretend that Linux only supports 32 traditional
signals (and doesn't support RT signals.) Use traditional (non-RT)
signal numbers for CCL (so no #$SIGUSR2 for user code.)

That's bad enough, but they define #_pthread_sigmask in terms
of #_rt_sigprocmask, and get it wrong: #_pthread_sigmask always
fails. It's possible to waste lots of time tracking this down,
but it's been known for a long time:

<http://markmail.org/message/s657k4ogn7qtqghp#query:+page:1+mid:s657k4ogn7qtqghp+state:results>

Sadly, poor little Google can't afford to hire people who know
what they're doing.

File size: 823 bytes
Line 
1/*
2   Copyright (C) 2010 Clozure Associates
3   Copyright (C) 1994-2001 Digitool, Inc
4   This file is part of Clozure CL. 
5
6   Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
7   License , known as the LLGPL and distributed with Clozure CL as the
8   file "LICENSE".  The LLGPL consists of a preamble and the LGPL,
9   which is distributed with Clozure CL as the file "LGPL".  Where these
10   conflict, the preamble takes precedence. 
11
12   Clozure CL is referenced in the preamble as the "LIBRARY."
13
14   The LLGPL is also available online at
15   http://opensource.franz.com/preamble.html
16*/
17
18#define SIGNAL_FOR_PROCESS_INTERRUPT SIGPWR
19#ifdef ANDROID
20#define SIG_SUSPEND_THREAD SIGUSR2
21#define SIG_KILL_THREAD SIGXCPU
22#else
23#define SIG_SUSPEND_THREAD (SIGRTMIN+6)
24#define SIG_KILL_THREAD (SIGRTMIN+7)
25#endif
Note: See TracBrowser for help on using the repository browser.