2 * Copyright (C) 2024 Mikulas Patocka
4 * This file is part of Ajla.
6 * Ajla is free software: you can redistribute it and/or modify it under the
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, either version 3 of the License, or (at your option) any later
11 * Ajla is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along with
16 * Ajla. If not, see <https://www.gnu.org/licenses/>.
26 fn signal_handle(w : world, sig : bytes) : (world, shandle, stoken);
27 fn signal_unhandle(w : world, s : shandle) : world;
28 fn signal_prepare(w : world, s : shandle) : (world, stoken);
29 fn signal_wait(w : world, s : shandle, t : stoken) : world;
33 type shandle := internal_type;
36 fn signal_handle(w : world, sig : bytes) : (world, shandle, stoken)
41 pcode IO IO_Signal_Handle 3 2 0 =w2 =s =t w sig;
45 fn signal_unhandle(w : world, s : shandle) : world
48 pcode IO IO_Consume_Parameters 1 2 0 =w2 w s;
52 fn signal_prepare(w : world, s : shandle) : (world, stoken)
56 pcode IO IO_Signal_Prepare 2 2 0 =w2 =t w s;
60 fn signal_wait(w : world, s : shandle, t : stoken) : world
63 pcode IO IO_Signal_Wait 1 3 0 =w2 w s t;