annotate src/s/ptx4.h @ 80456:04e1df7268f0

(FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): Move to mactoolbox.c. (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15. (Fx_selection_owner_p): Add EXFUN. (install_window_handler, remove_window_handler, XSetWindowBackground): Remove externs. (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise. (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise. (x_raise_frame, x_lower_frame, mac_alert_sound_play) (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse) (mac_convert_frame_point_to_global, mac_set_frame_window_background) (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush) (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip) (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar) (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar) (create_and_show_popup_menu, mac_get_selection_from_symbol) (mac_valid_selection_target_p, mac_clear_selection) (mac_get_selection_ownership_info, mac_valid_selection_value_p) (mac_put_selection_value, mac_selection_has_target_p) (mac_get_selection_value, mac_get_selection_target_list): Add externs. (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass) (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog) (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise. (mac_run_loop_run_once) [MAC_OSX]: Likewise. (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise. (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise. (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise. (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sun, 06 Apr 2008 01:59:20 +0000
parents 68df465b9550
children 606f2d163a64
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75963
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
1 /* s/ file for Sequent "ptx 4", which is a modified SVR5.4.
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
2
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
79756
68df465b9550 Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78259
diff changeset
4 2007, 2008 Free Software Foundation, Inc.
75963
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
5
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
6 This file is part of GNU Emacs.
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
7
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
8 GNU Emacs is free software; you can redistribute it and/or modify
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
9 it under the terms of the GNU General Public License as published by
78259
f06998349cfc Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75963
diff changeset
10 the Free Software Foundation; either version 3, or (at your option)
75963
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
11 any later version.
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
12
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
16 GNU General Public License for more details.
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
17
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
18 You should have received a copy of the GNU General Public License
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
19 along with GNU Emacs; see the file COPYING. If not, write to
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
21 Boston, MA 02110-1301, USA. */
d1ea3bc6c40d Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents: 52401
diff changeset
22
15845
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23
15860
bad765e6a8d9 Fix include file name.
Richard M. Stallman <rms@gnu.org>
parents: 15845
diff changeset
24 /* Tell usg5-4.h not to include filio.h. */
bad765e6a8d9 Fix include file name.
Richard M. Stallman <rms@gnu.org>
parents: 15845
diff changeset
25 #define NO_FILIO_H
bad765e6a8d9 Fix include file name.
Richard M. Stallman <rms@gnu.org>
parents: 15845
diff changeset
26
bad765e6a8d9 Fix include file name.
Richard M. Stallman <rms@gnu.org>
parents: 15845
diff changeset
27 #include "usg5-4.h"
15845
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 /* Marcus Daniels <marcus@sysc.pdx.edu> says that SIGINFO is defined
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 on ptx4 but it is not a signal. Prevent process.c from doing the
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 wrong thing. */
26090
63fd40a97a75 s/usg5-4.h:
Paul Eggert <eggert@twinsun.com>
parents: 24210
diff changeset
32 #define BROKEN_SIGINFO
15845
574a328ee4b2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33
21145
469c3de61eb1 (SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 15860
diff changeset
34 /* pae@dim.com (Phil Ernhardt) says this correction to
469c3de61eb1 (SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 15860
diff changeset
35 the definition in usg5-4.h is needed to prevent
469c3de61eb1 (SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 15860
diff changeset
36 all asynchronous subprocesses from exiting right away. */
24210
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
37
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
38 /* James Youngman <jay@gnu.org> found that on "DYNIX/ptx ARNIE 4.0
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
39 * V4.4.2 i386", the push of the ttcompat module would fail. It seems
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
40 * that PTX 4.4.2 doesn't have that module, so if the push fails we
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
41 * don't kill ourselves. While this version lacks ttcompat, it also
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
42 * has ptem, but the manual page for ptem indicates that it should
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
43 * be pushed onto the slave side before the line discipline module.
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
44 * See also the streampty manual page, if you're curious (and have
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
45 * a ptx system).
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
46 */
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
47
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
48 /* rms: I hope that older versions which do have ttcompat
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
49 will not get confused by the code to use ptem. */
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
50
21145
469c3de61eb1 (SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 15860
diff changeset
51 #undef SETUP_SLAVE_PTY
469c3de61eb1 (SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 15860
diff changeset
52 #define SETUP_SLAVE_PTY \
24210
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
53 if (ioctl (xforkin, I_PUSH, "ptem") == -1 && errno != EINVAL) \
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
54 fatal ("ioctl I_PUSH ptem", errno); \
21145
469c3de61eb1 (SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 15860
diff changeset
55 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
469c3de61eb1 (SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 15860
diff changeset
56 fatal ("ioctl I_PUSH ldterm", errno); \
24210
4dc06f8c8c33 (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Richard M. Stallman <rms@gnu.org>
parents: 21145
diff changeset
57 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1 && errno != EINVAL) \
21145
469c3de61eb1 (SETUP_SLAVE_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 15860
diff changeset
58 fatal ("ioctl I_PUSH ttcompat", errno);
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 27677
diff changeset
59
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 27677
diff changeset
60 /* arch-tag: 14621824-8dca-432b-a97a-049fc4ce0e9f
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 27677
diff changeset
61 (do not change this comment) */