annotate src/s/sol2-6.h @ 109770:30994c3466ad

Fix compilation of xmenu.c and unexcoff.c, clean up MSDOS source files. unexcoff.c: Remove the parts used when "emacs" is not defined. (report_error, report_error_1): Ditto. (write_segment): Remove "#if 0" unused code. (make_hdr): Remove code that was "#ifndef NO_REMAP" before NO_REMAP was removed (in revno 100928). (start_of_text): Remove unused function (was used only if NO_REMAP was NOT defined). msdos.c (IT_set_face): Fix format string to match argument types. (IT_write_glyphs, IT_note_mode_line_highlight) (IT_set_frame_parameters): Remove unused variables. (x_set_menu_bar_lines): Declare set_menu_bar_lines. (IT_set_terminal_modes): Disambiguate expression in if clause. (Fmsdos_remember_default_colors): Return Qnil. (IT_set_frame_parameters): Add parens to disambiguate boolean expression for logging the cursor type to termscript. (keyboard_layout_list, keypad_translate_map) (grey_key_translate_map): Add braces in inner initializers. (dos_rawgetc): Add parens in condition for mouse-3 button-press. (dos_rawgetc): Remove unused label. (XMenuActivate): Add braces to remove ambiguous `else'. (dos_ttraw): Always return a value. (spawnve): Declare. (run_msdos_command): Cast 3rd arg of spawnve to "char **". dosfns.h (x_set_title): Declare. w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data): Remove unused variables. dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused variables. (init_dosfns): Declare get_lim_data. (system_process_attributes): Declare Fget_internal_run_time. xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument list to be consistent with menu.h.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 13 Aug 2010 14:09:51 +0300
parents 63e95c4f28f0
children 6378d1b57038
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
107439
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
1 /* Definitions file for GNU Emacs running on Solaris 2.6.
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
2
108310
17d73312ed65 Move TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents: 108234
diff changeset
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
17d73312ed65 Move TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents: 108234
diff changeset
4 2008, 2009, 2010 Free Software Foundation, Inc.
107439
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
5
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
6 This file is part of GNU Emacs.
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
7
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
8 GNU Emacs is free software: you can redistribute it and/or modify
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
9 it under the terms of the GNU General Public License as published by
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
10 the Free Software Foundation, either version 3 of the License, or
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
11 (at your option) any later version.
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
12
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
16 GNU General Public License for more details.
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
17
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
18 You should have received a copy of the GNU General Public License
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
20
109584
63e95c4f28f0 Rename s/usg5-4.h -> s/usg5-4-common.h.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 109075
diff changeset
21 #include "usg5-4-common.h"
107439
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
22
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
23 #define SOLARIS2
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
24
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
25 /* This triggers a conditional in xfaces.c. */
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
26 #define XOS_NEEDS_TIME_H
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
27
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
28 #define POSIX
47342
5bdc7af4b905 Fix typo. Add comment.
Markus Rost <rost@math.uni-bielefeld.de>
parents: 47336
diff changeset
29
107439
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
30 /* Prefer kstat over kvm in getloadavg.c, kstat doesn't require root.
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
31 ghazi@caip.rutgers.edu, 7/21/97. Don't redefine if already defined
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
32 (e.g., by config.h). */
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
33 #ifndef HAVE_LIBKSTAT
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
34 #define HAVE_LIBKSTAT
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
35 #endif
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
36
109584
63e95c4f28f0 Rename s/usg5-4.h -> s/usg5-4-common.h.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 109075
diff changeset
37 /* This is the same definition as in usg5-4-common.h, but with sigblock/sigunblock
108234
06c34f190db1 Remove POSIX_SIGNALS.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 108073
diff changeset
38 rather than sighold/sigrelse, which appear to be BSD4.1 specific.
06c34f190db1 Remove POSIX_SIGNALS.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 108073
diff changeset
39 It may also be appropriate for SVR4.x
107439
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
40 (x<2) but I'm not sure. fnf@cygnus.com */
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
41 /* This sets the name of the slave side of the PTY. On SysVr4,
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
42 grantpt(3) forks a subprocess, so keep sigchld_handler() from
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
43 intercepting that death. If any child but grantpt's should die
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
44 within, it should be caught after sigrelse(2). */
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
45
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
46 #define PTY_TTY_NAME_SPRINTF \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
47 { \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
48 char *ptsname (), *ptyname; \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
49 \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
50 sigblock (sigmask (SIGCLD)); \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
51 if (grantpt (fd) == -1) \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
52 { emacs_close (fd); return -1; } \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
53 sigunblock (sigmask (SIGCLD)); \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
54 if (unlockpt (fd) == -1) \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
55 { emacs_close (fd); return -1; } \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
56 if (!(ptyname = ptsname (fd))) \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
57 { emacs_close (fd); return -1; } \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
58 strncpy (pty_name, ptyname, sizeof (pty_name)); \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
59 pty_name[sizeof (pty_name) - 1] = 0; \
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
60 }
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
61
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
62 #define GC_SETJMP_WORKS 1
ed20cbe62401 Remove support for Solaris on PPC and for old versions.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 54449
diff changeset
63 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 47473
diff changeset
64
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 47473
diff changeset
65 /* arch-tag: 71ea3857-89dc-4395-9623-77964e6ed3ca
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 47473
diff changeset
66 (do not change this comment) */