aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-11-27 12:00:42 +0000
committerKenichi Handa1997-11-27 12:00:42 +0000
commit0863319442ae5fd638593ebabc0399f2cd715599 (patch)
tree47e30d59b7d83d147ab648f91f11e2307232d85e
parent9c3a25140571c3e9b8e1cbef7d58f955ea46ba7b (diff)
downloademacs-0863319442ae5fd638593ebabc0399f2cd715599.tar.gz
emacs-0863319442ae5fd638593ebabc0399f2cd715599.zip
(discard_tty_input, init_baud_rate,
wait_for_termination, flush_pending_output, child_setup_tty, sys_suspend, sys_subshell, init_sigio, request_sigio, unrequest_sigio, init_sys_modes, get_frame_size, reset_sys_modes, setup_pty): Declare them as void.
-rw-r--r--src/sysdep.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 4349a75dcc0..2cf7123018c 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -255,6 +255,7 @@ change_input_fd (fd)
255 255
256/* Discard pending input on descriptor input_fd. */ 256/* Discard pending input on descriptor input_fd. */
257 257
258void
258discard_tty_input () 259discard_tty_input ()
259{ 260{
260#ifndef WINDOWSNT 261#ifndef WINDOWSNT
@@ -313,6 +314,7 @@ stuff_char (c)
313 314
314#endif /* SIGTSTP */ 315#endif /* SIGTSTP */
315 316
317void
316init_baud_rate () 318init_baud_rate ()
317{ 319{
318 if (noninteractive) 320 if (noninteractive)
@@ -408,6 +410,7 @@ wait_for_termination_signal ()
408/* Wait for subprocess with process id `pid' to terminate and 410/* Wait for subprocess with process id `pid' to terminate and
409 make sure it will get eliminated (not remain forever as a zombie) */ 411 make sure it will get eliminated (not remain forever as a zombie) */
410 412
413void
411wait_for_termination (pid) 414wait_for_termination (pid)
412 int pid; 415 int pid;
413{ 416{
@@ -505,6 +508,7 @@ wait_for_termination (pid)
505 * (may flush input as well; it does not matter the way we use it) 508 * (may flush input as well; it does not matter the way we use it)
506 */ 509 */
507 510
511void
508flush_pending_output (channel) 512flush_pending_output (channel)
509 int channel; 513 int channel;
510{ 514{
@@ -532,6 +536,7 @@ flush_pending_output (channel)
532 It should not echo or do line-editing, since that is done 536 It should not echo or do line-editing, since that is done
533 in Emacs. No padding needed for insertion into an Emacs buffer. */ 537 in Emacs. No padding needed for insertion into an Emacs buffer. */
534 538
539void
535child_setup_tty (out) 540child_setup_tty (out)
536 int out; 541 int out;
537{ 542{
@@ -645,6 +650,7 @@ static void restore_signal_handlers P_ ((struct save_signal *));
645 650
646/* Suspend the Emacs process; give terminal to its superior. */ 651/* Suspend the Emacs process; give terminal to its superior. */
647 652
653void
648sys_suspend () 654sys_suspend ()
649{ 655{
650#ifdef VMS 656#ifdef VMS
@@ -714,6 +720,7 @@ sys_suspend ()
714 720
715/* Fork a subshell. */ 721/* Fork a subshell. */
716 722
723void
717sys_subshell () 724sys_subshell ()
718{ 725{
719#ifndef VMS 726#ifndef VMS
@@ -861,6 +868,7 @@ restore_signal_handlers (saved_handlers)
861 868
862int old_fcntl_flags; 869int old_fcntl_flags;
863 870
871void
864init_sigio (fd) 872init_sigio (fd)
865 int fd; 873 int fd;
866{ 874{
@@ -878,6 +886,7 @@ reset_sigio ()
878 886
879#ifdef FASYNC /* F_SETFL does not imply existence of FASYNC */ 887#ifdef FASYNC /* F_SETFL does not imply existence of FASYNC */
880 888
889void
881request_sigio () 890request_sigio ()
882{ 891{
883 if (read_socket_hook) 892 if (read_socket_hook)
@@ -891,6 +900,7 @@ request_sigio ()
891 interrupts_deferred = 0; 900 interrupts_deferred = 0;
892} 901}
893 902
903void
894unrequest_sigio () 904unrequest_sigio ()
895{ 905{
896 if (read_socket_hook) 906 if (read_socket_hook)
@@ -906,6 +916,7 @@ unrequest_sigio ()
906#else /* no FASYNC */ 916#else /* no FASYNC */
907#ifdef STRIDE /* Stride doesn't have FASYNC - use FIOASYNC */ 917#ifdef STRIDE /* Stride doesn't have FASYNC - use FIOASYNC */
908 918
919void
909request_sigio () 920request_sigio ()
910{ 921{
911 int on = 1; 922 int on = 1;
@@ -917,6 +928,7 @@ request_sigio ()
917 interrupts_deferred = 0; 928 interrupts_deferred = 0;
918} 929}
919 930
931void
920unrequest_sigio () 932unrequest_sigio ()
921{ 933{
922 int off = 0; 934 int off = 0;
@@ -934,6 +946,7 @@ unrequest_sigio ()
934 946
935#include <termios.h> 947#include <termios.h>
936 948
949void
937request_sigio () 950request_sigio ()
938{ 951{
939 int on = 1; 952 int on = 1;
@@ -949,6 +962,7 @@ request_sigio ()
949 sigprocmask(SIG_UNBLOCK, &st, (sigset_t *)0); 962 sigprocmask(SIG_UNBLOCK, &st, (sigset_t *)0);
950} 963}
951 964
965void
952unrequest_sigio () 966unrequest_sigio ()
953{ 967{
954 int off = 0; 968 int off = 0;
@@ -962,6 +976,7 @@ unrequest_sigio ()
962 976
963#else /* ! _CX_UX */ 977#else /* ! _CX_UX */
964 978
979void
965request_sigio () 980request_sigio ()
966{ 981{
967 if (read_socket_hook) 982 if (read_socket_hook)
@@ -970,6 +985,7 @@ request_sigio ()
970 croak ("request_sigio"); 985 croak ("request_sigio");
971} 986}
972 987
988void
973unrequest_sigio () 989unrequest_sigio ()
974{ 990{
975 if (read_socket_hook) 991 if (read_socket_hook)
@@ -1219,6 +1235,7 @@ static struct ltchars new_ltchars = {-1,-1,-1,-1,-1,-1};
1219static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1}; 1235static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1};
1220#endif 1236#endif
1221 1237
1238void
1222init_sys_modes () 1239init_sys_modes ()
1223{ 1240{
1224 struct emacs_tty tty; 1241 struct emacs_tty tty;
@@ -1589,6 +1606,7 @@ tabs_safe_p ()
1589 Store number of lines into *HEIGHTP and width into *WIDTHP. 1606 Store number of lines into *HEIGHTP and width into *WIDTHP.
1590 We store 0 if there's no valid information. */ 1607 We store 0 if there's no valid information. */
1591 1608
1609void
1592get_frame_size (widthp, heightp) 1610get_frame_size (widthp, heightp)
1593 int *widthp, *heightp; 1611 int *widthp, *heightp;
1594{ 1612{
@@ -1684,6 +1702,7 @@ set_window_size (fd, height, width)
1684 1702
1685/* Prepare the terminal for exiting Emacs; move the cursor to the 1703/* Prepare the terminal for exiting Emacs; move the cursor to the
1686 bottom of the frame, turn off interrupt-driven I/O, etc. */ 1704 bottom of the frame, turn off interrupt-driven I/O, etc. */
1705void
1687reset_sys_modes () 1706reset_sys_modes ()
1688{ 1707{
1689 if (noninteractive) 1708 if (noninteractive)
@@ -1776,6 +1795,7 @@ reset_sys_modes ()
1776 1795
1777/* Set up the proper status flags for use of a pty. */ 1796/* Set up the proper status flags for use of a pty. */
1778 1797
1798void
1779setup_pty (fd) 1799setup_pty (fd)
1780 int fd; 1800 int fd;
1781{ 1801{
@@ -2033,6 +2053,7 @@ sys_sleep (timeval)
2033 SYS$WAITFR (timer_ef); /* Wait for timer expiry only */ 2053 SYS$WAITFR (timer_ef); /* Wait for timer expiry only */
2034} 2054}
2035 2055
2056void
2036init_sigio (fd) 2057init_sigio (fd)
2037 int fd; 2058 int fd;
2038{ 2059{
@@ -2044,11 +2065,13 @@ reset_sigio ()
2044 unrequest_sigio (); 2065 unrequest_sigio ();
2045} 2066}
2046 2067
2068void
2047request_sigio () 2069request_sigio ()
2048{ 2070{
2049 croak ("request sigio"); 2071 croak ("request sigio");
2050} 2072}
2051 2073
2074void
2052unrequest_sigio () 2075unrequest_sigio ()
2053{ 2076{
2054 croak ("unrequest sigio"); 2077 croak ("unrequest sigio");
@@ -2623,6 +2646,7 @@ sys_open (path, oflag, mode)
2623 return open (path, oflag); 2646 return open (path, oflag);
2624} 2647}
2625 2648
2649void
2626init_sigio (fd) 2650init_sigio (fd)
2627 int fd; 2651 int fd;
2628{ 2652{
@@ -2640,6 +2664,7 @@ reset_sigio ()
2640 ioctl (0, TIOCLSET, &lmode); 2664 ioctl (0, TIOCLSET, &lmode);
2641} 2665}
2642 2666
2667void
2643request_sigio () 2668request_sigio ()
2644{ 2669{
2645 sigrelse (SIGTINT); 2670 sigrelse (SIGTINT);
@@ -2647,6 +2672,7 @@ request_sigio ()
2647 interrupts_deferred = 0; 2672 interrupts_deferred = 0;
2648} 2673}
2649 2674
2675void
2650unrequest_sigio () 2676unrequest_sigio ()
2651{ 2677{
2652 sighold (SIGTINT); 2678 sighold (SIGTINT);