1 /* 2 * $Id: signal.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $ 3 * 4 * ======================================================================== 5 * Copyright 2013-2021 Eduardo Chappa 6 * Copyright 2006 University of Washington 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * ======================================================================== 15 */ 16 17 #ifndef PINE_SIGNAL_INCLUDED 18 #define PINE_SIGNAL_INCLUDED 19 20 21 #include <general.h> 22 23 #include "../pith/osdep/pipe.h" /* for PIPE_S */ 24 25 #include "../pith/state.h" 26 #include "../pith/signal.h" 27 28 #define MAX_BM 150 /* max length of busy message */ 29 30 31 /* exported prototypes */ 32 RETSIGTYPE hup_signal(void); 33 RETSIGTYPE child_signal(int); 34 void user_input_timeout_exit(int); 35 void init_signals(void); 36 void init_sigwinch(void); 37 void end_signals(int); 38 int ttyfix(int); 39 UCS do_suspend(void); 40 void winch_cleanup(void); 41 void pipe_callback(PIPE_S *, int, void *); 42 void fix_windsize(struct pine *); 43 44 45 #endif /* PINE_SIGNAL_INCLUDED */ 46