X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Furcu%2Fstatic%2Furcu-signal-nr.h;fp=include%2Furcu%2Fstatic%2Furcu-signal-nr.h;h=a488f3ab162cf7b0ba4ec05b8d3f36174c805014;hb=1a990de3addad89fc397f57bb359175d307e6960;hp=0000000000000000000000000000000000000000;hpb=4104b71fb1810c7a61ab76e3fbaec0ea88f6fd75;p=userspace-rcu.git diff --git a/include/urcu/static/urcu-signal-nr.h b/include/urcu/static/urcu-signal-nr.h new file mode 100644 index 0000000..a488f3a --- /dev/null +++ b/include/urcu/static/urcu-signal-nr.h @@ -0,0 +1,42 @@ +#ifndef _STATIC_URCU_SIGNAL_NR_H +#define _STATIC_URCU_SIGNAL_NR_H + +/* + * static/urcu-signal-nr.h + * + * Userspace RCU header. + * + * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * IBM's contributions to this file may be relicensed under LGPLv2 or later. + */ + +/* + * The signal number used by the RCU library can be overridden with + * -DSIGRCU= when compiling the library. + * Provide backward compatibility for liburcu 0.3.x SIGURCU. + */ +#ifdef SIGURCU +#define SIGRCU SIGURCU +#endif + +#ifndef SIGRCU +#define SIGRCU SIGUSR1 +#endif + +#endif /* _STATIC_URCU_SIGNAL_NR_H */