diff options
| author | Andreas Schwab | 1998-04-14 12:25:56 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1998-04-14 12:25:56 +0000 |
| commit | dfcf069d565c347abf3cb7cec80e6ed8432037ba (patch) | |
| tree | cd9620f10084ffa69d7d6ae26284ffd69d4c07a5 /src/sysdep.c | |
| parent | 0f94f94657ad7a6a68e64c612285a5e06152def2 (diff) | |
| download | emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.tar.gz emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.zip | |
Fix -Wimplicit warnings.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 51 |
1 files changed, 48 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 6c1c0885e85..209b2715f3e 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -298,6 +298,7 @@ discard_tty_input () | |||
| 298 | /* Arrange for character C to be read as the next input from | 298 | /* Arrange for character C to be read as the next input from |
| 299 | the terminal. */ | 299 | the terminal. */ |
| 300 | 300 | ||
| 301 | void | ||
| 301 | stuff_char (c) | 302 | stuff_char (c) |
| 302 | char c; | 303 | char c; |
| 303 | { | 304 | { |
| @@ -377,6 +378,7 @@ init_baud_rate () | |||
| 377 | } | 378 | } |
| 378 | 379 | ||
| 379 | /*ARGSUSED*/ | 380 | /*ARGSUSED*/ |
| 381 | void | ||
| 380 | set_exclusive_use (fd) | 382 | set_exclusive_use (fd) |
| 381 | int fd; | 383 | int fd; |
| 382 | { | 384 | { |
| @@ -1028,6 +1030,7 @@ int inherited_pgroup; | |||
| 1028 | When we are in the foreground, but not started in our own process | 1030 | When we are in the foreground, but not started in our own process |
| 1029 | group, redirect the TTY to point to our own process group. We need | 1031 | group, redirect the TTY to point to our own process group. We need |
| 1030 | to be in our own process group to receive SIGIO properly. */ | 1032 | to be in our own process group to receive SIGIO properly. */ |
| 1033 | void | ||
| 1031 | narrow_foreground_group () | 1034 | narrow_foreground_group () |
| 1032 | { | 1035 | { |
| 1033 | int me = getpid (); | 1036 | int me = getpid (); |
| @@ -1039,6 +1042,7 @@ narrow_foreground_group () | |||
| 1039 | } | 1042 | } |
| 1040 | 1043 | ||
| 1041 | /* Set the tty to our original foreground group. */ | 1044 | /* Set the tty to our original foreground group. */ |
| 1045 | void | ||
| 1042 | widen_foreground_group () | 1046 | widen_foreground_group () |
| 1043 | { | 1047 | { |
| 1044 | if (inherited_pgroup != getpid ()) | 1048 | if (inherited_pgroup != getpid ()) |
| @@ -1595,6 +1599,7 @@ init_sys_modes () | |||
| 1595 | /* Return nonzero if safe to use tabs in output. | 1599 | /* Return nonzero if safe to use tabs in output. |
| 1596 | At the time this is called, init_sys_modes has not been done yet. */ | 1600 | At the time this is called, init_sys_modes has not been done yet. */ |
| 1597 | 1601 | ||
| 1602 | int | ||
| 1598 | tabs_safe_p () | 1603 | tabs_safe_p () |
| 1599 | { | 1604 | { |
| 1600 | struct emacs_tty tty; | 1605 | struct emacs_tty tty; |
| @@ -1848,6 +1853,7 @@ setup_pty (fd) | |||
| 1848 | This is called each time Emacs is resumed, also, but does nothing | 1853 | This is called each time Emacs is resumed, also, but does nothing |
| 1849 | because input_chain is no longer zero. */ | 1854 | because input_chain is no longer zero. */ |
| 1850 | 1855 | ||
| 1856 | void | ||
| 1851 | init_vms_input () | 1857 | init_vms_input () |
| 1852 | { | 1858 | { |
| 1853 | int status; | 1859 | int status; |
| @@ -1862,6 +1868,7 @@ init_vms_input () | |||
| 1862 | 1868 | ||
| 1863 | /* Deassigning the input channel is done before exiting. */ | 1869 | /* Deassigning the input channel is done before exiting. */ |
| 1864 | 1870 | ||
| 1871 | void | ||
| 1865 | stop_vms_input () | 1872 | stop_vms_input () |
| 1866 | { | 1873 | { |
| 1867 | return SYS$DASSGN (input_fd); | 1874 | return SYS$DASSGN (input_fd); |
| @@ -1872,6 +1879,7 @@ short input_buffer; | |||
| 1872 | /* Request reading one character into the keyboard buffer. | 1879 | /* Request reading one character into the keyboard buffer. |
| 1873 | This is done as soon as the buffer becomes empty. */ | 1880 | This is done as soon as the buffer becomes empty. */ |
| 1874 | 1881 | ||
| 1882 | void | ||
| 1875 | queue_kbd_input () | 1883 | queue_kbd_input () |
| 1876 | { | 1884 | { |
| 1877 | int status; | 1885 | int status; |
| @@ -1889,6 +1897,7 @@ int input_count; | |||
| 1889 | /* Ast routine that is called when keyboard input comes in | 1897 | /* Ast routine that is called when keyboard input comes in |
| 1890 | in accord with the SYS$QIO above. */ | 1898 | in accord with the SYS$QIO above. */ |
| 1891 | 1899 | ||
| 1900 | void | ||
| 1892 | kbd_input_ast () | 1901 | kbd_input_ast () |
| 1893 | { | 1902 | { |
| 1894 | register int c = -1; | 1903 | register int c = -1; |
| @@ -1936,6 +1945,7 @@ kbd_input_ast () | |||
| 1936 | 1945 | ||
| 1937 | /* Wait until there is something in kbd_buffer. */ | 1946 | /* Wait until there is something in kbd_buffer. */ |
| 1938 | 1947 | ||
| 1948 | void | ||
| 1939 | wait_for_kbd_input () | 1949 | wait_for_kbd_input () |
| 1940 | { | 1950 | { |
| 1941 | extern int have_process_input, process_exited; | 1951 | extern int have_process_input, process_exited; |
| @@ -1982,6 +1992,7 @@ wait_for_kbd_input () | |||
| 1982 | and therefore there is no I/O request queued when we return. | 1992 | and therefore there is no I/O request queued when we return. |
| 1983 | SYS$SETAST is used to avoid a timing error. */ | 1993 | SYS$SETAST is used to avoid a timing error. */ |
| 1984 | 1994 | ||
| 1995 | void | ||
| 1985 | end_kbd_input () | 1996 | end_kbd_input () |
| 1986 | { | 1997 | { |
| 1987 | #ifdef ASTDEBUG | 1998 | #ifdef ASTDEBUG |
| @@ -2008,6 +2019,7 @@ end_kbd_input () | |||
| 2008 | 2019 | ||
| 2009 | /* Wait for either input available or time interval expiry. */ | 2020 | /* Wait for either input available or time interval expiry. */ |
| 2010 | 2021 | ||
| 2022 | void | ||
| 2011 | input_wait_timeout (timeval) | 2023 | input_wait_timeout (timeval) |
| 2012 | int timeval; /* Time to wait, in seconds */ | 2024 | int timeval; /* Time to wait, in seconds */ |
| 2013 | { | 2025 | { |
| @@ -2564,6 +2576,7 @@ sys_select (nfds, rfds, wfds, efds, timeout) | |||
| 2564 | #define BUFFER_SIZE_FACTOR 1 | 2576 | #define BUFFER_SIZE_FACTOR 1 |
| 2565 | #endif | 2577 | #endif |
| 2566 | 2578 | ||
| 2579 | void | ||
| 2567 | read_input_waiting () | 2580 | read_input_waiting () |
| 2568 | { | 2581 | { |
| 2569 | struct input_event e; | 2582 | struct input_event e; |
| @@ -2657,6 +2670,7 @@ init_sigio (fd) | |||
| 2657 | ioctl (fd, TIOCLSET, &lmode); | 2670 | ioctl (fd, TIOCLSET, &lmode); |
| 2658 | } | 2671 | } |
| 2659 | 2672 | ||
| 2673 | void | ||
| 2660 | reset_sigio () | 2674 | reset_sigio () |
| 2661 | { | 2675 | { |
| 2662 | if (noninteractive) | 2676 | if (noninteractive) |
| @@ -2686,6 +2700,7 @@ unrequest_sigio () | |||
| 2686 | 2700 | ||
| 2687 | int sigheld; /* Mask of held signals */ | 2701 | int sigheld; /* Mask of held signals */ |
| 2688 | 2702 | ||
| 2703 | void | ||
| 2689 | sigholdx (signum) | 2704 | sigholdx (signum) |
| 2690 | int signum; | 2705 | int signum; |
| 2691 | { | 2706 | { |
| @@ -2693,12 +2708,14 @@ sigholdx (signum) | |||
| 2693 | sighold (signum); | 2708 | sighold (signum); |
| 2694 | } | 2709 | } |
| 2695 | 2710 | ||
| 2711 | void | ||
| 2696 | sigisheld (signum) | 2712 | sigisheld (signum) |
| 2697 | int signum; | 2713 | int signum; |
| 2698 | { | 2714 | { |
| 2699 | sigheld |= sigbit (signum); | 2715 | sigheld |= sigbit (signum); |
| 2700 | } | 2716 | } |
| 2701 | 2717 | ||
| 2718 | void | ||
| 2702 | sigunhold (signum) | 2719 | sigunhold (signum) |
| 2703 | int signum; | 2720 | int signum; |
| 2704 | { | 2721 | { |
| @@ -2706,6 +2723,7 @@ sigunhold (signum) | |||
| 2706 | sigrelse (signum); | 2723 | sigrelse (signum); |
| 2707 | } | 2724 | } |
| 2708 | 2725 | ||
| 2726 | void | ||
| 2709 | sigfree () /* Free all held signals */ | 2727 | sigfree () /* Free all held signals */ |
| 2710 | { | 2728 | { |
| 2711 | int i; | 2729 | int i; |
| @@ -2715,6 +2733,7 @@ sigfree () /* Free all held signals */ | |||
| 2715 | sigheld = 0; | 2733 | sigheld = 0; |
| 2716 | } | 2734 | } |
| 2717 | 2735 | ||
| 2736 | int | ||
| 2718 | sigbit (i) | 2737 | sigbit (i) |
| 2719 | { | 2738 | { |
| 2720 | return 1 << (i - 1); | 2739 | return 1 << (i - 1); |
| @@ -2729,6 +2748,7 @@ sigbit (i) | |||
| 2729 | 2748 | ||
| 2730 | sigset_t empty_mask, full_mask; | 2749 | sigset_t empty_mask, full_mask; |
| 2731 | 2750 | ||
| 2751 | void | ||
| 2732 | init_signals () | 2752 | init_signals () |
| 2733 | { | 2753 | { |
| 2734 | sigemptyset (&empty_mask); | 2754 | sigemptyset (&empty_mask); |
| @@ -3023,6 +3043,7 @@ sys_open (path, oflag, mode) | |||
| 3023 | 3043 | ||
| 3024 | #ifdef INTERRUPTIBLE_CLOSE | 3044 | #ifdef INTERRUPTIBLE_CLOSE |
| 3025 | 3045 | ||
| 3046 | int | ||
| 3026 | sys_close (fd) | 3047 | sys_close (fd) |
| 3027 | int fd; | 3048 | int fd; |
| 3028 | { | 3049 | { |
| @@ -3326,6 +3347,7 @@ dup2 (oldd, newd) | |||
| 3326 | #ifdef HAVE_TIMEVAL | 3347 | #ifdef HAVE_TIMEVAL |
| 3327 | 3348 | ||
| 3328 | /* ARGSUSED */ | 3349 | /* ARGSUSED */ |
| 3350 | int | ||
| 3329 | gettimeofday (tp, tzp) | 3351 | gettimeofday (tp, tzp) |
| 3330 | struct timeval *tp; | 3352 | struct timeval *tp; |
| 3331 | struct timezone *tzp; | 3353 | struct timezone *tzp; |
| @@ -3336,6 +3358,7 @@ gettimeofday (tp, tzp) | |||
| 3336 | tp->tv_usec = 0; | 3358 | tp->tv_usec = 0; |
| 3337 | if (tzp != 0) | 3359 | if (tzp != 0) |
| 3338 | tzp->tz_minuteswest = -1; | 3360 | tzp->tz_minuteswest = -1; |
| 3361 | return 0; | ||
| 3339 | } | 3362 | } |
| 3340 | 3363 | ||
| 3341 | #endif | 3364 | #endif |
| @@ -3347,6 +3370,7 @@ gettimeofday (tp, tzp) | |||
| 3347 | * This function will go away as soon as all the stubs fixed. (fnf) | 3370 | * This function will go away as soon as all the stubs fixed. (fnf) |
| 3348 | */ | 3371 | */ |
| 3349 | 3372 | ||
| 3373 | void | ||
| 3350 | croak (badfunc) | 3374 | croak (badfunc) |
| 3351 | char *badfunc; | 3375 | char *badfunc; |
| 3352 | { | 3376 | { |
| @@ -3871,6 +3895,7 @@ static unsigned int uic; | |||
| 3871 | 3895 | ||
| 3872 | /* Called from init_sys_modes, so it happens not very often | 3896 | /* Called from init_sys_modes, so it happens not very often |
| 3873 | but at least each time Emacs is loaded. */ | 3897 | but at least each time Emacs is loaded. */ |
| 3898 | void | ||
| 3874 | sys_access_reinit () | 3899 | sys_access_reinit () |
| 3875 | { | 3900 | { |
| 3876 | uic = 0; | 3901 | uic = 0; |
| @@ -4123,6 +4148,7 @@ getwd (pathname) | |||
| 4123 | return pathname; | 4148 | return pathname; |
| 4124 | } | 4149 | } |
| 4125 | 4150 | ||
| 4151 | int | ||
| 4126 | getppid () | 4152 | getppid () |
| 4127 | { | 4153 | { |
| 4128 | long item_code = JPI$_OWNER; | 4154 | long item_code = JPI$_OWNER; |
| @@ -4318,6 +4344,7 @@ creat_copy_attrs (old, new) | |||
| 4318 | #endif | 4344 | #endif |
| 4319 | #endif | 4345 | #endif |
| 4320 | 4346 | ||
| 4347 | int | ||
| 4321 | sys_creat (va_alist) | 4348 | sys_creat (va_alist) |
| 4322 | va_dcl | 4349 | va_dcl |
| 4323 | { | 4350 | { |
| @@ -4434,6 +4461,7 @@ sys_creat (va_alist) | |||
| 4434 | #endif /* creat */ | 4461 | #endif /* creat */ |
| 4435 | 4462 | ||
| 4436 | /* fwrite to stdout is S L O W. Speed it up by using fputc...*/ | 4463 | /* fwrite to stdout is S L O W. Speed it up by using fputc...*/ |
| 4464 | int | ||
| 4437 | sys_fwrite (ptr, size, num, fp) | 4465 | sys_fwrite (ptr, size, num, fp) |
| 4438 | register char * ptr; | 4466 | register char * ptr; |
| 4439 | FILE * fp; | 4467 | FILE * fp; |
| @@ -4442,6 +4470,7 @@ sys_fwrite (ptr, size, num, fp) | |||
| 4442 | 4470 | ||
| 4443 | while (tot--) | 4471 | while (tot--) |
| 4444 | fputc (*ptr++, fp); | 4472 | fputc (*ptr++, fp); |
| 4473 | return num; | ||
| 4445 | } | 4474 | } |
| 4446 | 4475 | ||
| 4447 | /* | 4476 | /* |
| @@ -4729,6 +4758,7 @@ getpwuid (uid) | |||
| 4729 | /* return total address space available to the current process. This is | 4758 | /* return total address space available to the current process. This is |
| 4730 | the sum of the current p0 size, p1 size and free page table entries | 4759 | the sum of the current p0 size, p1 size and free page table entries |
| 4731 | available. */ | 4760 | available. */ |
| 4761 | int | ||
| 4732 | vlimit () | 4762 | vlimit () |
| 4733 | { | 4763 | { |
| 4734 | int item_code; | 4764 | int item_code; |
| @@ -4764,6 +4794,7 @@ vlimit () | |||
| 4764 | return free_pages + frep0va + (0x7fffffff - frep1va); | 4794 | return free_pages + frep0va + (0x7fffffff - frep1va); |
| 4765 | } | 4795 | } |
| 4766 | 4796 | ||
| 4797 | int | ||
| 4767 | define_logical_name (varname, string) | 4798 | define_logical_name (varname, string) |
| 4768 | char *varname; | 4799 | char *varname; |
| 4769 | char *string; | 4800 | char *string; |
| @@ -4778,6 +4809,7 @@ define_logical_name (varname, string) | |||
| 4778 | return LIB$SET_LOGICAL (&envdsc, &strdsc, &lnmdsc, 0, 0); | 4809 | return LIB$SET_LOGICAL (&envdsc, &strdsc, &lnmdsc, 0, 0); |
| 4779 | } | 4810 | } |
| 4780 | 4811 | ||
| 4812 | int | ||
| 4781 | delete_logical_name (varname) | 4813 | delete_logical_name (varname) |
| 4782 | char *varname; | 4814 | char *varname; |
| 4783 | { | 4815 | { |
| @@ -4789,15 +4821,23 @@ delete_logical_name (varname) | |||
| 4789 | return LIB$DELETE_LOGICAL (&envdsc, &lnmdsc); | 4821 | return LIB$DELETE_LOGICAL (&envdsc, &lnmdsc); |
| 4790 | } | 4822 | } |
| 4791 | 4823 | ||
| 4824 | int | ||
| 4792 | ulimit () | 4825 | ulimit () |
| 4793 | {} | 4826 | { |
| 4827 | return 0; | ||
| 4828 | } | ||
| 4794 | 4829 | ||
| 4830 | int | ||
| 4795 | setpgrp () | 4831 | setpgrp () |
| 4796 | {} | 4832 | { |
| 4833 | return 0; | ||
| 4834 | } | ||
| 4797 | 4835 | ||
| 4836 | int | ||
| 4798 | execvp () | 4837 | execvp () |
| 4799 | { | 4838 | { |
| 4800 | error ("execvp system call not implemented"); | 4839 | error ("execvp system call not implemented"); |
| 4840 | return -1; | ||
| 4801 | } | 4841 | } |
| 4802 | 4842 | ||
| 4803 | int | 4843 | int |
| @@ -4920,6 +4960,7 @@ rename_sans_version (from,to) | |||
| 4920 | return 0; | 4960 | return 0; |
| 4921 | } | 4961 | } |
| 4922 | 4962 | ||
| 4963 | int | ||
| 4923 | link (file, new) | 4964 | link (file, new) |
| 4924 | char * file, * new; | 4965 | char * file, * new; |
| 4925 | { | 4966 | { |
| @@ -4987,6 +5028,7 @@ link (file, new) | |||
| 4987 | return 0; | 5028 | return 0; |
| 4988 | } | 5029 | } |
| 4989 | 5030 | ||
| 5031 | void | ||
| 4990 | croak (badfunc) | 5032 | croak (badfunc) |
| 4991 | char *badfunc; | 5033 | char *badfunc; |
| 4992 | { | 5034 | { |
| @@ -5002,6 +5044,7 @@ random () | |||
| 5002 | return rand () - (1 << 30); | 5044 | return rand () - (1 << 30); |
| 5003 | } | 5045 | } |
| 5004 | 5046 | ||
| 5047 | void | ||
| 5005 | srandom (seed) | 5048 | srandom (seed) |
| 5006 | { | 5049 | { |
| 5007 | srand (seed); | 5050 | srand (seed); |
| @@ -5011,6 +5054,7 @@ srandom (seed) | |||
| 5011 | #ifdef AIXHFT | 5054 | #ifdef AIXHFT |
| 5012 | 5055 | ||
| 5013 | /* Called from init_sys_modes. */ | 5056 | /* Called from init_sys_modes. */ |
| 5057 | void | ||
| 5014 | hft_init () | 5058 | hft_init () |
| 5015 | { | 5059 | { |
| 5016 | int junk; | 5060 | int junk; |
| @@ -5064,6 +5108,7 @@ hft_init () | |||
| 5064 | 5108 | ||
| 5065 | /* Reset the rubout key to backspace. */ | 5109 | /* Reset the rubout key to backspace. */ |
| 5066 | 5110 | ||
| 5111 | void | ||
| 5067 | hft_reset () | 5112 | hft_reset () |
| 5068 | { | 5113 | { |
| 5069 | struct hfbuf buf; | 5114 | struct hfbuf buf; |
| @@ -5183,7 +5228,7 @@ bcopy (b1, b2, length) | |||
| 5183 | *b2++ = *b1++; | 5228 | *b2++ = *b1++; |
| 5184 | #endif /* not VMS */ | 5229 | #endif /* not VMS */ |
| 5185 | } | 5230 | } |
| 5186 | #endif /* (defined (BSTRING) && !defined (bcopy)) || defined (NEED_BCOPY) */ | 5231 | #endif /* (!defined (BSTRING) && !defined (bcopy)) || defined (NEED_BCOPY) */ |
| 5187 | 5232 | ||
| 5188 | #ifndef BSTRING | 5233 | #ifndef BSTRING |
| 5189 | #ifndef bcmp | 5234 | #ifndef bcmp |