1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

25 Commits

Author SHA1 Message Date
David J. MacKenzie
340ff9deae Eliminate some -Wall warnings. 1994-10-12 20:21:51 +00:00
Richard M. Stallman
5afc7fb0ba Don't declare malloc. 1994-09-17 05:50:17 +00:00
Richard M. Stallman
20e15dfd12 (xmalloc): New function. 1994-07-13 19:10:27 +00:00
Richard M. Stallman
f8998fa90c Include errno.h; don't include fasync.h.
(schedule): Don't return a value.
(sigcatch): Reestablish the handler first.
(getevent): Always call notify at the end.
(notify): Defer alarms around the whole body of function.

(main): Don't request SIGIO, and don't handle it.
Loop calling getevent.
(sigcatch): Delete code to handle SIGIO.
If defer_alarms is set, don't call notify, just set alarm_deferred.
(getevent): Use read, not getchar.  Handle EINTR and EAGAIN.
Set defer_alarms around realloc and schedule.
If alarm_deferred gets set, call notify.
Likewise if this event is the only pending event.
Make buf and buf_size global variables.
Don't malloc buf if it is already non-zero.
(schedule): Just exit if run out of memory.
Return the number of events.
(signal) [_CX_UX]: Add #undef.
1994-01-19 15:12:34 +00:00
Richard M. Stallman
817b371ce0 [USG] (SIGIO): Define as SIGPOLL.
(main) [USG]: Do ioctl to enable SIGPOLL.
1994-01-12 04:48:56 +00:00
Roland McGrath
2771160004 [! HAVE_STRERROR] (strerror): Define the function. 1994-01-08 22:27:30 +00:00
Roland McGrath
dbc52c10f4 Don't declare sys_errlist; declare strerror instead.
(schedule, main): Call strerror instead of using sys_errlist.
1994-01-08 21:52:28 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
4d09905307 (main): Generate a SIGIO as soon as we've initialized. 1993-08-01 07:45:35 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
2c02935314 [LINUX]: #undef signal. 1993-06-01 08:08:11 +00:00
Jim Blandy
9b5283804a * timer.c (notify): Don't call sighold or sigrelse; they're USG
only.  We should really fix this later, but let's just make it
	compile for now.
1993-05-16 00:53:57 +00:00
Jim Blandy
ad2e78fb7c * timer.c: Fix mispellings of get_date function's name. 1993-05-15 23:05:46 +00:00
Eric S. Raymond
ee6b9d1928 (notify): Bug fix. Treat the body of this function as a critical region. 1993-04-27 21:59:39 +00:00
Jim Blandy
b183949171 * timer.c (main): Set the ownership of the stdin file descriptor
to the current process.  Print error messages if either of the
	fcntl's fails.

	* timer.c (sigcatch): Declare this to return SIGTYPE (defined in
	../src/config.h), not void.
1993-03-11 07:00:12 +00:00
Jim Blandy
ca5b61ea67 * timer.c (notify): Initialize waitfor properly. 1993-03-02 08:25:47 +00:00
Michael I. Bushnell
c193197b50 Also, write a newline after the token. 1993-01-08 21:12:58 +00:00
Michael I. Bushnell
07941899b3 Also, write a newline after the token. 1993-01-08 20:36:35 +00:00
Michael I. Bushnell
5319c7c1b9 timer.c (notify): Flush stdout after writing message to avoid lossage
on terminals.
1993-01-08 20:36:14 +00:00
Michael I. Bushnell
507876f3c7 timer.c (notify): Flush stdout after writing message to avoid lossage
on terminals.
1993-01-08 20:26:54 +00:00
Jim Blandy
fbfed6f05f entered into RCS 1992-08-19 03:54:46 +00:00
Jim Blandy
9e2b097b26 *** empty log message *** 1992-08-12 12:57:12 +00:00
Jim Blandy
4746118aca *** empty log message *** 1992-04-24 08:11:54 +00:00
Jim Blandy
92c30eb0b7 *** empty log message *** 1991-12-04 20:24:50 +00:00
root
5cc564a68d Initial revision 1990-01-20 04:04:04 +00:00