all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob f4bed098347eb2bfde3812f0ada61d841a07aceb 604 bytes (raw)
name: src/unexsol.c 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
/* Trivial unexec for Solaris.  */

#include "config.h"
#include "unexec.h"

#include <dlfcn.h>

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

void
unexec (const char *new_name, const char *old_name)
{
  Lisp_Object data;
  Lisp_Object errstring;

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

  data = list1 (build_string (new_name));
  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)));
}

debug log:

solving f4bed09 ...
found f4bed09 in https://yhetil.org/emacs/CAFXAjY4DwBEs+uPFnnFAD8TfLOZbn_yrjhvBq4f4bg1F_ax8tw@mail.gmail.com/
found 0f84099 in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 0f84099d39e3e3f96bb180c07cf1e3810f3a1693	src/unexsol.c

applying [1/1] https://yhetil.org/emacs/CAFXAjY4DwBEs+uPFnnFAD8TfLOZbn_yrjhvBq4f4bg1F_ax8tw@mail.gmail.com/
diff --git a/src/unexsol.c b/src/unexsol.c
index 0f84099..f4bed09 100644

Checking patch src/unexsol.c...
Applied patch src/unexsol.c cleanly.

index at:
100644 f4bed098347eb2bfde3812f0ada61d841a07aceb	src/unexsol.c

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.