aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorAndreas Schwab1998-04-14 12:25:56 +0000
committerAndreas Schwab1998-04-14 12:25:56 +0000
commitdfcf069d565c347abf3cb7cec80e6ed8432037ba (patch)
treecd9620f10084ffa69d7d6ae26284ffd69d4c07a5 /src/sysdep.c
parent0f94f94657ad7a6a68e64c612285a5e06152def2 (diff)
downloademacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.tar.gz
emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.zip
Fix -Wimplicit warnings.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c51
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
301void
301stuff_char (c) 302stuff_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*/
381void
380set_exclusive_use (fd) 382set_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. */
1033void
1031narrow_foreground_group () 1034narrow_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. */
1045void
1042widen_foreground_group () 1046widen_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
1602int
1598tabs_safe_p () 1603tabs_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
1856void
1851init_vms_input () 1857init_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
1871void
1865stop_vms_input () 1872stop_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
1882void
1875queue_kbd_input () 1883queue_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
1900void
1892kbd_input_ast () 1901kbd_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
1948void
1939wait_for_kbd_input () 1949wait_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
1995void
1985end_kbd_input () 1996end_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
2022void
2011input_wait_timeout (timeval) 2023input_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
2579void
2567read_input_waiting () 2580read_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
2673void
2660reset_sigio () 2674reset_sigio ()
2661{ 2675{
2662 if (noninteractive) 2676 if (noninteractive)
@@ -2686,6 +2700,7 @@ unrequest_sigio ()
2686 2700
2687int sigheld; /* Mask of held signals */ 2701int sigheld; /* Mask of held signals */
2688 2702
2703void
2689sigholdx (signum) 2704sigholdx (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
2711void
2696sigisheld (signum) 2712sigisheld (signum)
2697 int signum; 2713 int signum;
2698{ 2714{
2699 sigheld |= sigbit (signum); 2715 sigheld |= sigbit (signum);
2700} 2716}
2701 2717
2718void
2702sigunhold (signum) 2719sigunhold (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
2726void
2709sigfree () /* Free all held signals */ 2727sigfree () /* 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
2736int
2718sigbit (i) 2737sigbit (i)
2719{ 2738{
2720 return 1 << (i - 1); 2739 return 1 << (i - 1);
@@ -2729,6 +2748,7 @@ sigbit (i)
2729 2748
2730sigset_t empty_mask, full_mask; 2749sigset_t empty_mask, full_mask;
2731 2750
2751void
2732init_signals () 2752init_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
3046int
3026sys_close (fd) 3047sys_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 */
3350int
3329gettimeofday (tp, tzp) 3351gettimeofday (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
3373void
3350croak (badfunc) 3374croak (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. */
3898void
3874sys_access_reinit () 3899sys_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
4151int
4126getppid () 4152getppid ()
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
4347int
4321sys_creat (va_alist) 4348sys_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...*/
4464int
4437sys_fwrite (ptr, size, num, fp) 4465sys_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. */
4761int
4732vlimit () 4762vlimit ()
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
4797int
4767define_logical_name (varname, string) 4798define_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
4812int
4781delete_logical_name (varname) 4813delete_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
4824int
4792ulimit () 4825ulimit ()
4793{} 4826{
4827 return 0;
4828}
4794 4829
4830int
4795setpgrp () 4831setpgrp ()
4796{} 4832{
4833 return 0;
4834}
4797 4835
4836int
4798execvp () 4837execvp ()
4799{ 4838{
4800 error ("execvp system call not implemented"); 4839 error ("execvp system call not implemented");
4840 return -1;
4801} 4841}
4802 4842
4803int 4843int
@@ -4920,6 +4960,7 @@ rename_sans_version (from,to)
4920 return 0; 4960 return 0;
4921} 4961}
4922 4962
4963int
4923link (file, new) 4964link (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
5031void
4990croak (badfunc) 5032croak (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
5047void
5005srandom (seed) 5048srandom (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. */
5057void
5014hft_init () 5058hft_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
5111void
5067hft_reset () 5112hft_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