annotate src/s/sunos413.h @ 73562:368665ce6f35

Add support for TCP sockets. (SEND_STRING, SEND_QUOTED, HSOCKET, CLOSE_SOCKET, IOCTL, INITIALIZE): New macros. (IOCTL_BOOL_ARG): New typedef. (server_file): New global variable. (longopts): New option --server-file. (decode_options): Process new option --server-file and environment variable EMACS_SERVER_FILE. (print_help_and_exit): Document new option. (fail): If no connection available and no alternate editor, suggest using options to make them explicit. (AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): New constants. (send_buffer, sblen): New variables. (send_to_emacs): New function to buffer output and send it with send(). (quote_file_name): Use SEND_STRING. (close_winsock, initialize_sockets): New functions to load and unload Winsock. (get_server_config, set_tcp_socket): New functions to create and set up TCP sockets. (set_local_socket): New function to create and set up Unix socket (code moved from previous implementation). (set_socket): New function to chose between TCP and Unix sockets. (main): Use SEND_STRING and SEND_QUOTED. Most code moved to set_local_socket. Use set_socket. Get answers from server.el with recv(), not file stream functions.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 31 Oct 2006 00:21:19 +0000
parents 695cf19ef79e
children 375f2633d815
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3114
630eb7c9ea64 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 #include "sunos4-1.h"
630eb7c9ea64 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
5638
866c3e94b8a4 Add #undef SYSTEM_MALLOC.
Richard M. Stallman <rms@gnu.org>
parents: 5204
diff changeset
3 /* jik@gza.com says this works now. */
3114
630eb7c9ea64 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 /* The bug that corrupts GNU malloc's memory pool is fixed in SunOS 4.1.3. */
630eb7c9ea64 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
630eb7c9ea64 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 #undef SYSTEM_MALLOC
4903
72f692faeb8c *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 3308
diff changeset
7
5204
74fd637f952c [!SYSTEM_MALLOC] (MEMMOVE_MISSING): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5090
diff changeset
8 /* barrie@calvin.demon.co.uk says memmove is missing. */
74fd637f952c [!SYSTEM_MALLOC] (MEMMOVE_MISSING): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5090
diff changeset
9 #ifndef SYSTEM_MALLOC
74fd637f952c [!SYSTEM_MALLOC] (MEMMOVE_MISSING): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5090
diff changeset
10 #define MEMMOVE_MISSING
74fd637f952c [!SYSTEM_MALLOC] (MEMMOVE_MISSING): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5090
diff changeset
11 #endif
31966
7f83baedcc7b (USE_MMAP_FOR_BUFFERS): Define.
Dave Love <fx@gnu.org>
parents: 12463
diff changeset
12
7f83baedcc7b (USE_MMAP_FOR_BUFFERS): Define.
Dave Love <fx@gnu.org>
parents: 12463
diff changeset
13 #define USE_MMAP_FOR_BUFFERS 1
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 31966
diff changeset
14
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 31966
diff changeset
15 /* arch-tag: ebd184b0-9084-4306-8e71-c0437330e1e1
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 31966
diff changeset
16 (do not change this comment) */