aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-15 00:48:51 -0700
committerPaul Eggert2011-04-15 00:48:51 -0700
commit4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9 (patch)
treee993b231bb5555c9c961f5d0b20d90ac76f77bbd /src/sysdep.c
parent1963a2e0bb07cc8dee6d27f972f93d9cfd7c6b2d (diff)
parent49093f601b69d91126aefd328ee8f6bfeb797407 (diff)
downloademacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.tar.gz
emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.zip
Merge from mainline.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 8d0bd3df9cc..06fbd2b7d0f 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -118,6 +118,12 @@ struct utimbuf {
118#endif 118#endif
119#endif 119#endif
120 120
121static int emacs_get_tty (int, struct emacs_tty *);
122static int emacs_set_tty (int, struct emacs_tty *, int);
123#if defined TIOCNOTTY || defined USG5 || defined CYGWIN
124static void croak (char *) NO_RETURN;
125#endif
126
121/* Declare here, including term.h is problematic on some systems. */ 127/* Declare here, including term.h is problematic on some systems. */
122extern void tputs (const char *, int, int (*)(int)); 128extern void tputs (const char *, int, int (*)(int));
123 129
@@ -127,12 +133,6 @@ static const int baud_convert[] =
127 1800, 2400, 4800, 9600, 19200, 38400 133 1800, 2400, 4800, 9600, 19200, 38400
128 }; 134 };
129 135
130void croak (char *) NO_RETURN;
131
132/* Temporary used by `sigblock' when defined in terms of signprocmask. */
133
134SIGMASKTYPE sigprocmask_set;
135
136 136
137#if !defined (HAVE_GET_CURRENT_DIR_NAME) || defined (BROKEN_GET_CURRENT_DIR_NAME) 137#if !defined (HAVE_GET_CURRENT_DIR_NAME) || defined (BROKEN_GET_CURRENT_DIR_NAME)
138 138
@@ -291,8 +291,9 @@ init_baud_rate (int fd)
291 291
292 292
293 293
294int wait_debugging; /* Set nonzero to make following function work under dbx 294/* Set nonzero to make following function work under dbx
295 (at least for bsd). */ 295 (at least for bsd). */
296int wait_debugging EXTERNALLY_VISIBLE;
296 297
297#ifndef MSDOS 298#ifndef MSDOS
298/* Wait for subprocess with process id `pid' to terminate and 299/* Wait for subprocess with process id `pid' to terminate and
@@ -650,7 +651,7 @@ unrequest_sigio (void)
650#else 651#else
651#ifdef F_SETFL 652#ifdef F_SETFL
652 653
653int old_fcntl_flags[MAXDESC]; 654static int old_fcntl_flags[MAXDESC];
654 655
655void 656void
656init_sigio (int fd) 657init_sigio (int fd)
@@ -809,7 +810,7 @@ emacs_set_tty (int fd, struct emacs_tty *settings, int flushp)
809 810
810 811
811#ifdef F_SETOWN 812#ifdef F_SETOWN
812int old_fcntl_owner[MAXDESC]; 813static int old_fcntl_owner[MAXDESC];
813#endif /* F_SETOWN */ 814#endif /* F_SETOWN */
814 815
815/* This may also be defined in stdio, 816/* This may also be defined in stdio,
@@ -1451,7 +1452,7 @@ init_system_name (void)
1451/* POSIX signals support - DJB */ 1452/* POSIX signals support - DJB */
1452/* Anyone with POSIX signals should have ANSI C declarations */ 1453/* Anyone with POSIX signals should have ANSI C declarations */
1453 1454
1454sigset_t empty_mask, full_mask; 1455sigset_t empty_mask;
1455 1456
1456#ifndef WINDOWSNT 1457#ifndef WINDOWSNT
1457 1458
@@ -1540,7 +1541,6 @@ void
1540init_signals (void) 1541init_signals (void)
1541{ 1542{
1542 sigemptyset (&empty_mask); 1543 sigemptyset (&empty_mask);
1543 sigfillset (&full_mask);
1544 1544
1545#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST 1545#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST
1546 if (! initialized) 1546 if (! initialized)