Import the "unistd" gnulib module

Programming / Debugging / GDB - Pedro Alves [redhat.com] - 1 July 2013 06:18 UTC

I wanted to import the pathmax module, and that pulls in the unistd module as dependency. The unistd module is actually bigger than the pathmax module. If we're going to end up with it, might as well import it explicitly, and make use of it throughout.

The "unistd" module makes a GNU-like always available. This means we no longer need to do:

+#ifdef HAVE_UNISTD_H #include +#endif

and we can remove a few constants from defs.h.

This is just the importing step.

gdb/ 2013-07-01 Pedro Alves



- gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
- gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4, import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and import/m4/unistd_h.m4.
- gnulib/aclocal.m4: Renenerate.
- gnulib/config.in: Renenerate.
- gnulib/configure: Renenerate.
- gnulib/import/Makefile.am: Renenerate.
- gnulib/import/Makefile.in: Renenerate.
- gnulib/import/m4/gnulib-cache.m4: Renenerate.
- gnulib/import/m4/gnulib-comp.m4: Renenerate.
- gnulib/import/m4/off_t.m4: New file.
- gnulib/import/m4/ssize_t.m4: New file.
- gnulib/import/m4/sys_types_h.m4: New file.
- gnulib/import/m4/unistd_h.m4: New file.
- gnulib/import/sys_types.in.h: New file.
- gnulib/import/unistd.c: New file.
- gnulib/import/unistd.in.h: New file.

27d9098 Import the "unistd" gnulib module.
gdb/ChangeLog | 22 +
gdb/gnulib/Makefile.in | 4 +
gdb/gnulib/aclocal.m4 | 4 +
gdb/gnulib/config.in | 144 ++++
gdb/gnulib/configure | 622 +++++++++++++-
gdb/gnulib/import/Makefile.am | 178 +++-
gdb/gnulib/import/Makefile.in | 308 ++++++-
gdb/gnulib/import/m4/gnulib-cache.m4 | 3 +-
gdb/gnulib/import/m4/gnulib-comp.m4 | 14 +
gdb/gnulib/import/m4/off_t.m4 | 18 +
gdb/gnulib/import/m4/ssize_t.m4 | 23 +
gdb/gnulib/import/m4/sys_types_h.m4 | 24 +
gdb/gnulib/import/m4/unistd_h.m4 | 186 ++++
gdb/gnulib/import/sys_types.in.h | 51 ++
gdb/gnulib/import/unistd.c | 3 +
gdb/gnulib/import/unistd.in.h | 1541 ++++++++++++++++++++++++++++++++++
gdb/gnulib/update-gnulib.sh | 2 +-
17 files changed, 3091 insertions(+), 56 deletions(-)

Upstream: sourceware.org


  • Share