2011-04-14 Paul Eggert <eggert@cs.ucla.edu>
+ * sysdep.c: Make symbols static if they're not exported.
+ (emacs_get_tty, emacs_set_tty, old_fcntl_flags, old_fcntl_owner):
+ Now static.
+ (sigprocmask_set, full_mask): Remove; unused.
+ (wait_debugging): Mark as visible.
+ * syssignal.h (SIGFULLMASK, full_mask): Remove decls.
+ * systty.h (emacs_get_tty, emacs_set_tty): Remove decls.
+
* syntax.c (syntax_temp): Define only if !__GNUC__.
* sound.c (current_sound_device, current_sound): Now static.
#endif
#endif
+static int emacs_get_tty (int, struct emacs_tty *);
+static int emacs_set_tty (int, struct emacs_tty *, int);
+
/* Declare here, including term.h is problematic on some systems. */
extern void tputs (const char *, int, int (*)(int));
1800, 2400, 4800, 9600, 19200, 38400
};
-/* Temporary used by `sigblock' when defined in terms of signprocmask. */
-
-SIGMASKTYPE sigprocmask_set;
-
#if !defined (HAVE_GET_CURRENT_DIR_NAME) || defined (BROKEN_GET_CURRENT_DIR_NAME)
\f
-int wait_debugging; /* Set nonzero to make following function work under dbx
- (at least for bsd). */
+/* Set nonzero to make following function work under dbx
+ (at least for bsd). */
+int wait_debugging EXTERNALLY_VISIBLE;
#ifndef MSDOS
/* Wait for subprocess with process id `pid' to terminate and
#else
#ifdef F_SETFL
-int old_fcntl_flags[MAXDESC];
+static int old_fcntl_flags[MAXDESC];
void
init_sigio (int fd)
\f
#ifdef F_SETOWN
-int old_fcntl_owner[MAXDESC];
+static int old_fcntl_owner[MAXDESC];
#endif /* F_SETOWN */
/* This may also be defined in stdio,
/* POSIX signals support - DJB */
/* Anyone with POSIX signals should have ANSI C declarations */
-sigset_t empty_mask, full_mask;
+sigset_t empty_mask;
#ifndef WINDOWSNT
init_signals (void)
{
sigemptyset (&empty_mask);
- sigfillset (&full_mask);
#if !defined HAVE_STRSIGNAL && !HAVE_DECL_SYS_SIGLIST
if (! initialized)
#define SIGMASKTYPE sigset_t
#define SIGEMPTYMASK (empty_mask)
-#define SIGFULLMASK (full_mask)
-extern sigset_t empty_mask, full_mask;
+extern sigset_t empty_mask;
/* POSIX pretty much destroys any possibility of writing sigmask as a
macro in standard C. We always define our own version because the
#endif /* DOS_NT */
};
\f
-extern int emacs_get_tty (int, struct emacs_tty *);
-extern int emacs_set_tty (int, struct emacs_tty *, int);
-
/* From sysdep.c or w32.c */
extern int serial_open (char *);
extern void serial_configure (struct Lisp_Process *, Lisp_Object);