1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

Rename module sys_types to sys_types-h.

* modules/sys_types-h: Renamed from modules/sys_types.
* modules/sys_types-h-tests: Renamed from modules/sys_types-tests.
* modules/sys_types-h-c++-tests: Renamed from
modules/sys_types-c++-tests.
* tests/test-sys_types-h.c: Renamed from tests/test-sys_types.c.
* tests/test-sys_types-h-c++.cc: Renamed from
tests/test-sys_types-c++.cc.
* doc/posix-headers/sys_types.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_types: New file.
This commit is contained in:
Bruno Haible
2024-12-27 23:41:40 +01:00
parent 73ea612ad1
commit c784118fde
26 changed files with 119 additions and 80 deletions

View File

@@ -1,3 +1,17 @@
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module sys_types to sys_types-h.
* modules/sys_types-h: Renamed from modules/sys_types.
* modules/sys_types-h-tests: Renamed from modules/sys_types-tests.
* modules/sys_types-h-c++-tests: Renamed from
modules/sys_types-c++-tests.
* tests/test-sys_types-h.c: Renamed from tests/test-sys_types.c.
* tests/test-sys_types-h-c++.cc: Renamed from
tests/test-sys_types-c++.cc.
* doc/posix-headers/sys_types.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_types: New file.
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module sys_times to sys_times-h.

View File

@@ -3,8 +3,8 @@
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_types.h.html}
Gnulib module: sys_types
@mindex sys_types
Gnulib module: sys_types-h
@mindex sys_types-h
Portability problems fixed by Gnulib:
@itemize

View File

@@ -14,7 +14,7 @@ include_next
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
sys_types
sys_types-h
unistd
configure.ac:

View File

@@ -11,7 +11,7 @@ extensions
largefile
lseek
stdio-h
sys_types
sys_types-h
# Just to guarantee consistency between fseek() and fseeko().
fseek

View File

@@ -12,7 +12,7 @@ Depends-on:
stdio-h
extensions
largefile
sys_types
sys_types-h
lseek [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
stdckdint-h [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
# Just to guarantee consistency between ftell() and ftello().

View File

@@ -7,7 +7,7 @@ m4/ftruncate.m4
Depends-on:
unistd
sys_types
sys_types-h
largefile
msvc-nothrow [test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1]
msvc-inval [test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1]

View File

@@ -7,7 +7,7 @@ lib/get_ppid_of.c
Depends-on:
extensions
sys_types
sys_types-h
unistd
open

View File

@@ -3,7 +3,7 @@ tests/test-largefile.c
Depends-on:
intprops
sys_types
sys_types-h
sys_stat-h
configure.ac:

View File

@@ -4,7 +4,7 @@ tests/test-limits-h.c
Depends-on:
assert-h
extensions
sys_types
sys_types-h
limits-h-c++-tests
configure.ac:

View File

@@ -7,7 +7,7 @@ m4/lseek.m4
Depends-on:
unistd
sys_types
sys_types-h
largefile
msvc-nothrow [test $REPLACE_LSEEK = 1]
fstat [test "$gl_cv_func_lseek_pipe" = no]

View File

@@ -8,7 +8,7 @@ lib/same-inode.h
Depends-on:
extern-inline
stdbool-h
sys_types
sys_types-h
configure.ac:

View File

@@ -17,7 +17,7 @@ gen-header
include_next
limits-h
multiarch
sys_types
sys_types-h
configure.ac:
gl_STDINT_H

View File

@@ -17,7 +17,7 @@ snippet/c++defs
snippet/warn-on-use
ssize_t
stddef-h
sys_types
sys_types-h
configure.ac-early:
gl_STDIO_H_EARLY

View File

@@ -11,7 +11,7 @@ include_next
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
sys_types
sys_types-h
configure.ac:
gl_STRINGS_H

View File

@@ -13,7 +13,7 @@ include_next
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
sys_types
sys_types-h
time-h
configure.ac:

View File

@@ -1,46 +1,20 @@
Description:
A <sys/types.h> that conforms better to POSIX.
Status:
deprecated
Notice:
This module is deprecated. Use the module 'sys_types-h' instead.
Files:
lib/sys_types.in.h
m4/sys_types_h.m4
m4/off_t.m4
m4/off64_t.m4
m4/pid_t.m4
Depends-on:
gen-header
include_next
ssize_t
configure.ac-early:
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
sys_types-h
configure.ac:
gl_SYS_TYPES_H
gl_SYS_TYPES_H_REQUIRE_DEFAULTS
AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += sys/types.h
# We need the following in order to create <sys/types.h> when the system
# doesn't have one that works with the given compiler.
sys/types.h: sys_types.in.h $(top_builddir)/config.status
$(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
$(AM_V_at)$(SED_HEADER_STDOUT) \
-e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \
-e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
-e 's|@''HAVE_OFF64_T''@|$(HAVE_OFF64_T)|g' \
-e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \
$(srcdir)/sys_types.in.h > $@-t
$(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += sys/types.h sys/types.h-t
MOSTLYCLEANDIRS += sys
Include:
<sys/types.h>
@@ -49,4 +23,3 @@ License:
LGPLv2+
Maintainer:
all

View File

@@ -1,17 +0,0 @@
Files:
tests/test-sys_types-c++.cc
Status:
c++-test
Depends-on:
ansi-c++-opt
configure.ac:
Makefile.am:
if ANSICXX
TESTS += test-sys_types-c++
check_PROGRAMS += test-sys_types-c++
test_sys_types_c___SOURCES = test-sys_types-c++.cc
endif

52
modules/sys_types-h Normal file
View File

@@ -0,0 +1,52 @@
Description:
A <sys/types.h> that conforms better to POSIX.
Files:
lib/sys_types.in.h
m4/sys_types_h.m4
m4/off_t.m4
m4/off64_t.m4
m4/pid_t.m4
Depends-on:
gen-header
include_next
ssize_t
configure.ac-early:
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
configure.ac:
gl_SYS_TYPES_H
gl_SYS_TYPES_H_REQUIRE_DEFAULTS
AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += sys/types.h
# We need the following in order to create <sys/types.h> when the system
# doesn't have one that works with the given compiler.
sys/types.h: sys_types.in.h $(top_builddir)/config.status
$(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
$(AM_V_at)$(SED_HEADER_STDOUT) \
-e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \
-e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
-e 's|@''HAVE_OFF64_T''@|$(HAVE_OFF64_T)|g' \
-e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \
$(srcdir)/sys_types.in.h > $@-t
$(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += sys/types.h sys/types.h-t
MOSTLYCLEANDIRS += sys
Include:
<sys/types.h>
License:
LGPLv2+
Maintainer:
all

View File

@@ -0,0 +1,17 @@
Files:
tests/test-sys_types-h-c++.cc
Status:
c++-test
Depends-on:
ansi-c++-opt
configure.ac:
Makefile.am:
if ANSICXX
TESTS += test-sys_types-h-c++
check_PROGRAMS += test-sys_types-h-c++
test_sys_types_h_c___SOURCES = test-sys_types-h-c++.cc
endif

11
modules/sys_types-h-tests Normal file
View File

@@ -0,0 +1,11 @@
Files:
tests/test-sys_types-h.c
Depends-on:
sys_types-h-c++-tests
configure.ac:
Makefile.am:
TESTS += test-sys_types-h
check_PROGRAMS += test-sys_types-h

View File

@@ -1,11 +0,0 @@
Files:
tests/test-sys_types.c
Depends-on:
sys_types-c++-tests
configure.ac:
Makefile.am:
TESTS += test-sys_types
check_PROGRAMS += test-sys_types

View File

@@ -9,7 +9,7 @@ Depends-on:
gen-header
include_next
ssize_t
sys_types
sys_types-h
configure.ac:
gl_SYS_UIO_H

View File

@@ -7,7 +7,7 @@ m4/truncate.m4
Depends-on:
unistd
sys_types
sys_types-h
largefile
sys_stat-h
stat [test $REPLACE_TRUNCATE = 1]

View File

@@ -17,7 +17,7 @@ snippet/c++defs
snippet/warn-on-use
ssize_t
stddef-h
sys_types
sys_types-h
configure.ac:
gl_UNISTD_H