"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libedit/sig.h" between
tnftp-20151004.tar.gz and tnftp-20200705.tar.gz

About: tnftp is an enhanced ftp client (prior name "lukemftp").

sig.h  (tnftp-20151004):sig.h  (tnftp-20200705)
/* $NetBSD: sig.h,v 1.2 2005/05/11 01:17:39 lukem Exp $ */ /* $NetBSD: sig.h,v 1.5 2020/07/04 13:43:21 lukem Exp $ */
/* from NetBSD: sig.h,v 1.5 2003/08/07 16:44:33 agc Exp */ /* from NetBSD: sig.h,v 1.11 2016/05/09 21:46:56 christos Exp */
/*- /*-
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
* This code is derived from software contributed to Berkeley by * This code is derived from software contributed to Berkeley by
* Christos Zoulas of Cornell University. * Christos Zoulas of Cornell University.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
skipping to change at line 44 skipping to change at line 44
* *
* @(#)sig.h 8.1 (Berkeley) 6/4/93 * @(#)sig.h 8.1 (Berkeley) 6/4/93
*/ */
/* /*
* el.sig.h: Signal handling functions * el.sig.h: Signal handling functions
*/ */
#ifndef _h_el_sig #ifndef _h_el_sig
#define _h_el_sig #define _h_el_sig
#if 0 /* tnftp */
#include <signal.h> #include <signal.h>
#endif /* tnftp */
#include "histedit.h"
/* /*
* Define here all the signals we are going to handle * Define here all the signals we are going to handle
* The _DO macro is used to iterate in the source code * The _DO macro is used to iterate in the source code
*/ */
#define ALLSIGS \ #define ALLSIGS \
_DO(SIGINT) \ _DO(SIGINT) \
_DO(SIGTSTP) \ _DO(SIGTSTP) \
_DO(SIGSTOP) \
_DO(SIGQUIT) \ _DO(SIGQUIT) \
_DO(SIGHUP) \ _DO(SIGHUP) \
_DO(SIGTERM) \ _DO(SIGTERM) \
_DO(SIGCONT) \ _DO(SIGCONT) \
_DO(SIGWINCH) _DO(SIGWINCH)
#define ALLSIGSNO 7
typedef void (*el_signalhandler_t)(int); typedef struct {
typedef el_signalhandler_t *el_signal_t; struct sigaction sig_action[ALLSIGSNO];
sigset_t sig_set;
protected void sig_end(EditLine*); volatile sig_atomic_t sig_no;
protected int sig_init(EditLine*); } *el_signal_t;
protected void sig_set(EditLine*);
protected void sig_clr(EditLine*); libedit_private void sig_end(EditLine*);
libedit_private int sig_init(EditLine*);
libedit_private void sig_set(EditLine*);
libedit_private void sig_clr(EditLine*);
#endif /* _h_el_sig */ #endif /* _h_el_sig */
 End of changes. 6 change blocks. 
12 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)