Mercurial > emacs
annotate msdos/sigaction.c @ 62943:11d53dd5abd9
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-345
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 77-78)
- Update from CVS
2005-05-31 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-art.el (article-display-x-face): Replace
process-kill-without-query by gnus-set-process-query-on-exit-flag.
* lisp/gnus/gnus-group.el: Bind gnus-cache-active-hashtb when compiling.
* lisp/gnus/gnus-util.el (gnus-set-process-query-on-exit-flag): Alias to
set-process-query-on-exit-flag or process-kill-without-query.
* lisp/gnus/html2text.el (html2text-fix-paragraphs): Use `while - re-search'
loop instead of replace-regexp.
* lisp/gnus/imap.el (imap-ssl-open): Use set-process-query-on-exit-flag
instead of process-kill-without-query if it is available.
* lisp/gnus/mm-util.el (mm-insert-file-contents): Bind find-file-hook
instead of find-file-hooks if it is available.
* lisp/gnus/mml1991.el: Bind pgg-default-user-id when compiling.
* lisp/gnus/mml2015.el: Bind pgg-default-user-id when compiling.
* lisp/gnus/nndraft.el (nndraft-request-associate-buffer): Use
write-contents-functions instead of write-contents-hooks if it is
available.
* lisp/gnus/nnheader.el (nnheader-find-file-noselect): Bind find-file-hook
instead of find-file-hooks if it is available.
* lisp/gnus/nntp.el (nntp-open-connection): Replace
process-kill-without-query by gnus-set-process-query-on-exit-flag.
(nntp-open-ssl-stream): Ditto.
(nntp-open-tls-stream): Ditto.
* lisp/gnus/pgg.el: Don't bind itimer vars; don't autoload itimer functions.
(pgg-run-at-time-1): New macro.
(pgg-run-at-time): Use it.
* lisp/gnus/starttls.el (starttls-set-process-query-on-exit-flag): Alias to
set-process-query-on-exit-flag or process-kill-without-query.
(starttls-open-stream-gnutls): Use it instead of
process-kill-without-query.
(starttls-open-stream): Ditto.
2005-05-31 Simon Josefsson <jas@extundo.com>
* lisp/gnus/imap.el (imap-ssl-open): Use imap-process-connection-type,
instead of hard coding to nil.
2005-05-31 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/gnus-group.el (): Require gnus-sum and autoload functions to
resolve warnings when gnus-group.el compiled alone.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 01 Jun 2005 05:07:06 +0000 |
parents | 695cf19ef79e |
children | 60ed74508594 375f2633d815 |
rev | line source |
---|---|
25856 | 1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
2 #include <signal.h> | |
3 #include <errno.h> | |
4 | |
5 int | |
6 sigaction(int _sig, const struct sigaction *_act, struct sigaction *_oact) | |
7 { | |
8 int retval = 0; | |
9 | |
10 if (_oact) | |
11 { | |
12 void (*installed_sig)(int) = signal (_sig, SIG_IGN); | |
13 | |
14 /* FIXME */ | |
15 if (installed_sig == SIG_ERR) | |
16 { | |
17 retval = -1; | |
18 errno = EINVAL; | |
19 } | |
20 else | |
21 signal (_sig, installed_sig); | |
22 _oact->sa_handler = installed_sig; | |
23 retval = sigemptyset (&_oact->sa_mask); | |
24 _oact->sa_flags = 0; | |
25 } | |
26 if (_act) | |
27 { | |
28 if (signal (_sig, _act->sa_handler) == SIG_ERR) | |
29 { | |
30 retval = -1; | |
31 errno = EINVAL; | |
32 } | |
33 } | |
34 return 0; | |
35 } | |
36 | |
37 | |
38 | |
52401 | 39 /* arch-tag: 39526405-3d3a-44fe-af28-82a515e0c8e8 |
40 (do not change this comment) */ |