diff options
author | Nirbhay Choubey <nirbhay.choubey@oracle.com> | 2011-10-14 01:03:25 +0530 |
---|---|---|
committer | Nirbhay Choubey <nirbhay.choubey@oracle.com> | 2011-10-14 01:03:25 +0530 |
commit | d96c25a79013eae662d1c0f5f43782126b24e696 (patch) | |
tree | be857526f550dbcca504a8e08be25977a493842f /cmd-line-utils/libedit/sig.h | |
parent | 6d59064948fa916667a7cc885ecdc4df3b8fb871 (diff) | |
download | mariadb-git-d96c25a79013eae662d1c0f5f43782126b24e696.tar.gz |
WL#5945 : Improve libedit library
Updated libedit library.
Diffstat (limited to 'cmd-line-utils/libedit/sig.h')
-rw-r--r-- | cmd-line-utils/libedit/sig.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cmd-line-utils/libedit/sig.h b/cmd-line-utils/libedit/sig.h index 2bd3c516d46..c957cfdf5a7 100644 --- a/cmd-line-utils/libedit/sig.h +++ b/cmd-line-utils/libedit/sig.h @@ -1,4 +1,4 @@ -/* $NetBSD: sig.h,v 1.6 2008/07/12 15:27:14 christos Exp $ */ +/* $NetBSD: sig.h,v 1.8 2009/02/19 15:20:22 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -56,9 +56,13 @@ _DO(SIGTERM) \ _DO(SIGCONT) \ _DO(SIGWINCH) +#define ALLSIGSNO 7 -typedef void (*el_signalhandler_t)(int); -typedef el_signalhandler_t *el_signal_t; +typedef struct { + struct sigaction sig_action[ALLSIGSNO]; + sigset_t sig_set; + volatile sig_atomic_t sig_no; +} *el_signal_t; protected void sig_end(EditLine*); protected int sig_init(EditLine*); |