view src/s/hiuxmpp.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 1b9752b309ec 375f2633d815
line wrap: on
line source

/* System description file for HI-UX.  */

#define BSD 198911   /* system version (year & month) */
#define DBL_DIG 15   /* same as the definition of <float.h> */
#include "bsd4-3.h"

/* Identify OSF1 for the m- files. */

#define OSF1

/* To avoid to include the non-existant header file <sys/vlimit.h>,
    we define BSD4_2.
    This definition does not mean that the OS is based on BSD 4.2.  */
#define BSD4_2

/* Define _BSD to tell the include files we're running under
   the BSD universe and not the SYSV universe.
   Define HITACHI and OSF for Xt's Boolean type as int intead of char.
   (But for these defines, /usr/include/X11/Intrinsic.h defines
   Boolean as char, but libXt.a on HI-UX/MPP requires it as int.)  */

#define C_SWITCH_SYSTEM	-D_BSD -DHITACHI -DOSF
#define LIBS_SYSTEM	-lbsd

#define GETPGRP_NO_ARG

#define SYSV_SYSTEM_DIR

/* If your system uses COFF (Common Object File Format) then define the
   preprocessor symbol "COFF". */

/* #define COFF */

/* Here is how to find X Windows.  LD_SWITCH_X_SITE_AUX gives an -R option
   says where to find X windows at run time.  We convert it to a -rpath option
   which is what OSF1 uses.  */
#define LD_SWITCH_SYSTEM

#undef KERNEL_FILE
#define KERNEL_FILE "/mach_kernel"

#undef LDAV_SYMBOL
#define LDAV_SYMBOL "avenrun"

/* arch-tag: c5422584-cd86-4e10-8089-9f604523dab7
   (do not change this comment) */