2012-08-25 04:27:32 +00:00
|
|
|
/* Information about executables.
|
|
|
|
|
2024-01-02 01:47:10 +00:00
|
|
|
Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
2012-08-25 04:27:32 +00:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2.1 of the License, or
|
2012-08-25 04:27:32 +00:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
GNU Lesser General Public License for more details.
|
2012-08-25 04:27:32 +00:00
|
|
|
|
Update from Gnulib
Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove. These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.
2021-10-04 19:11:39 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
2017-09-13 09:07:03 +00:00
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
2012-08-25 04:27:32 +00:00
|
|
|
|
|
|
|
/* Written by Paul Eggert. */
|
|
|
|
|
|
|
|
#ifndef _GL_EXECINFO_H
|
|
|
|
#define _GL_EXECINFO_H
|
|
|
|
|
2023-05-15 01:51:22 +00:00
|
|
|
/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE. */
|
|
|
|
#if !_GL_CONFIG_H_INCLUDED
|
2013-09-19 21:40:08 +00:00
|
|
|
#error "Please include config.h first."
|
|
|
|
#endif
|
2023-05-15 01:51:22 +00:00
|
|
|
|
2012-08-25 04:27:32 +00:00
|
|
|
_GL_INLINE_HEADER_BEGIN
|
|
|
|
#ifndef _GL_EXECINFO_INLINE
|
|
|
|
# define _GL_EXECINFO_INLINE _GL_INLINE
|
|
|
|
#endif
|
|
|
|
|
2024-05-11 20:16:48 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2012-08-25 04:27:32 +00:00
|
|
|
_GL_EXECINFO_INLINE int
|
|
|
|
backtrace (void **buffer, int size)
|
|
|
|
{
|
|
|
|
(void) buffer;
|
|
|
|
(void) size;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
_GL_EXECINFO_INLINE char **
|
|
|
|
backtrace_symbols (void *const *buffer, int size)
|
|
|
|
{
|
|
|
|
(void) buffer;
|
|
|
|
(void) size;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
_GL_EXECINFO_INLINE void
|
|
|
|
backtrace_symbols_fd (void *const *buffer, int size, int fd)
|
|
|
|
{
|
|
|
|
(void) buffer;
|
|
|
|
(void) size;
|
|
|
|
(void) fd;
|
|
|
|
}
|
|
|
|
|
2024-05-11 20:16:48 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-08-25 04:27:32 +00:00
|
|
|
_GL_INLINE_HEADER_END
|
|
|
|
|
|
|
|
#endif
|