view src/unexsol.c @ 98230:e37978ef9db9

* xterm.h (x_display_info): Remove `height' and `width' members. * nsterm.h (ns_display_info): Remove `height' and `width' members. * w32term.h (w32_display_info): Remove `height', `width', `height_in', and `width_in' members. * xterm.c (x_display_pixel_height, x_display_pixel_width): New functions. (x_calc_absolute_position): Use them. (x_term_init): Omit removed `height' and `width' members. * w32term.c (x_display_pixel_height, x_display_pixel_width): New functions. (w32_read_socket, x_calc_absolute_position): Use them. (w32_initialize_display_info, w32_term_init): Omit removed members of w32_display_info. * nsterm.m (x_display_pixel_height, x_display_pixel_width): New functions. (ns_initialize_display_info): Omit removed members of ns_display_info. * xterm.c (x_display_pixel_height, x_display_pixel_width): New functions. (x_calc_absolute_position): Use them. (x_term_init): Omit removed `height' and `width' members. * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height) (compute_tip_xy): Use x_display_pixel_height and x_display_pixel_width. * frame.c (x_fullscreen_adjust): Use x_display_pixel_height and x_display_pixel_width. * xmenu.c (menu_position_func): Use x_display_pixel_height and x_display_pixel_width.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 18 Sep 2008 18:21:05 +0000
parents b7bf941f8049
children 8a8e69664178 68dd71358159
line wrap: on
line source

/* Trivial unexec for Solaris.  */

#include <config.h>
#include <stdlib.h>
#include <dlfcn.h>

#include "lisp.h"
#include "buffer.h"
#include "charset.h"
#include "coding.h"

int
unexec (char *new_name, char *old_name, unsigned int data_start,
        unsigned int bss_start, unsigned int entry_address)
{
  Lisp_Object data;
  Lisp_Object errstring;

  if (! dldump (0, new_name, RTLD_MEMORY))
    return 0;

  data = Fcons (build_string (new_name), Qnil);
  synchronize_system_messages_locale ();
  errstring = code_convert_string_norecord (build_string (dlerror ()),
					    Vlocale_coding_system, 0);

  xsignal (Qfile_error,
	   Fcons (build_string ("Cannot unexec"), Fcons (errstring, data)));
}

/* arch-tag: d8ff72b3-8198-4011-8ef5-011b12027f59
   (do not change this comment) */