Mercurial > hg > xemacs-beta
annotate src/unexsol2-6.c @ 5533:11da5b828d10
shell-command and shell-command-on-region API compliant with FSF 23.3.1
| author | Mats Lidell <mats.lidell@cag.se> |
|---|---|
| date | Sun, 31 Jul 2011 01:29:09 +0200 |
| parents | 308d34e9f07d |
| children |
| rev | line source |
|---|---|
| 0 | 1 /* Unexec function for Solaris 2.x |
| 2 Copyright (C) 1994 Sun Microsystems, Inc. | |
| 3 | |
| 4 This file is part of XEmacs. | |
| 5 | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2286
diff
changeset
|
6 XEmacs is free software: you can redistribute it and/or modify it |
| 0 | 7 under the terms of the GNU General Public License as published by the |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2286
diff
changeset
|
8 Free Software Foundation, either version 3 of the License, or (at your |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2286
diff
changeset
|
9 option) any later version. |
| 0 | 10 |
| 11 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
| 12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
| 14 for more details. | |
| 15 | |
| 16 You should have received a copy of the GNU General Public License | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2286
diff
changeset
|
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 0 | 18 |
| 19 /* Synched up with: Not in FSF. */ | |
| 20 | |
| 21 #include <stdlib.h> | |
| 22 #include <stdio.h> | |
| 23 #include <dlfcn.h> | |
| 2286 | 24 #include "compiler.h" |
| 0 | 25 |
| 26 int unexec (char *new_name, char *old_name, unsigned int data_start, | |
| 27 unsigned int bss_start, unsigned int entry_address); | |
| 28 int | |
| 2286 | 29 unexec (char *new_name, char *UNUSED (old_name), |
| 30 unsigned int UNUSED (data_start), unsigned int UNUSED (bss_start), | |
| 31 unsigned int UNUSED (entry_address)) | |
| 0 | 32 { |
| 33 if (dldump (0, new_name, RTLD_MEMORY) != 0) | |
| 34 { | |
| 35 fprintf (stderr, "unexec(): dldump(%s): %s \n", | |
| 36 new_name, dlerror()); | |
| 37 exit (1); | |
| 38 } | |
| 39 | |
| 40 return 0; | |
| 41 } |
