[00/30] Remove Linux generic sysdep

Message ID 20221019221433.1082017-1-adhemerval.zanella@linaro.org
Headers
Series Remove Linux generic sysdep |

Message

Adhemerval Zanella Netto Oct. 19, 2022, 10:14 p.m. UTC
  With recent BZ#29657, where struct stat were not adapted for 64 time
because I forgot that generic folder is not always usedfor ports with
default 64 bit time_t; it seems better to finish the generic
integration and make the Linux default implementation the de-facto
"generic" implementation.

The patchset is mostly mechanic, the first part only moves syscall
support from generic to default.

The second part change the socket interface assumption to assume
wire-up syscall (and adjust the architecture that still requires
sockecall).

The last part moves the generic headers to the default and finally
remove the generic folder and Implies.

Adhemerval Zanella (30):
  linux: Fix generic struct_stat for 64 bit time (BZ# 29657)
  linux: Consolidate dl-origin.c
  Linux: consolidate chmod implementation
  Linux: consolidate chown implementation
  Linux: consolidate dup2 implementation
  Lninux: consolidate epoll_create implementation
  Linux: consolidate inotify_init implementation
  Linux: consolidate lchown implementation
  Linux: consolidate link implementation
  Linux: consolidate mkdir implementation
  Linux: consolidate readlink implementation
  Linux: consolidate rmdir implementation
  Linux: consolidate symlink implementation
  Linux: consolidate unlink implementation
  Linux: consolidate sendfile implementation
  Linux: Move wordsize-32 Version to default
  Linux: consolidate ____longjmp_chk
  Linux: Assume and consolidate bind wire-up syscall
  Linux: Assume iand consolidate socket wire-up syscall
  Linux: Assume and consolidate socketpair wire-up syscall
  Linux: Assume and consolidate listen wire-up syscall
  Linux: Assume and consolidate getsockname wire-up syscall
  Linux: Assume and consolidate getpeername wire-up syscall
  Linux: Assume and consolidate shutdown wire-up syscall
  Linux: Remove unused generic Makefile
  Linux: Remove generic sysdep
  Linux: make generic xstatver.h the default one
  Linux: Make generic fcntl.h the default one
  Linux: Consolidate typesizes.h
  Linux: Remove generic Implies

 sysdeps/unix/sysv/linux/Versions              |   3 +
 .../linux/{generic => }/____longjmp_chk.c     |   6 +-
 sysdeps/unix/sysv/linux/aarch64/Implies       |   1 -
 sysdeps/unix/sysv/linux/aarch64/sysdep.h      |   3 +-
 sysdeps/unix/sysv/linux/arc/Implies           |   2 -
 sysdeps/unix/sysv/linux/arc/sysdep.h          |   4 +-
 sysdeps/unix/sysv/linux/arm/Versions          |   3 -
 .../unix/sysv/linux/arm/bits/struct_stat.h    | 139 ++++++++++++++++++
 sysdeps/unix/sysv/linux/arm/bits/typesizes.h  |  74 ++++++++++
 .../sysv/linux/{generic => arm}/xstatver.h    |  11 +-
 sysdeps/unix/sysv/linux/bind.c                |   7 +-
 sysdeps/unix/sysv/linux/bits/fcntl.h          |  56 ++++++-
 sysdeps/unix/sysv/linux/bits/struct_stat.h    | 116 +++++++--------
 .../sysv/linux/{generic => }/bits/typesizes.h |   0
 sysdeps/unix/sysv/linux/{generic => }/chmod.c |  10 +-
 sysdeps/unix/sysv/linux/{generic => }/chown.c |   9 +-
 sysdeps/unix/sysv/linux/csky/Implies          |   2 -
 .../{generic => csky}/bits/struct_stat.h      |  28 ++--
 sysdeps/unix/sysv/linux/csky/sysdep.h         |   2 +-
 sysdeps/unix/sysv/linux/dl-origin.c           |  14 +-
 sysdeps/unix/sysv/linux/{generic => }/dup2.c  |   9 +-
 .../sysv/linux/{generic => }/epoll_create.c   |   9 +-
 sysdeps/unix/sysv/linux/generic/Makefile      |   3 -
 sysdeps/unix/sysv/linux/generic/README        |  11 --
 sysdeps/unix/sysv/linux/generic/bits/fcntl.h  |  55 -------
 sysdeps/unix/sysv/linux/generic/dl-origin.c   |  79 ----------
 sysdeps/unix/sysv/linux/generic/syscalls.list |  10 --
 .../sysv/linux/generic/wordsize-32/Versions   |   5 -
 sysdeps/unix/sysv/linux/getpeername.c         |   7 +-
 sysdeps/unix/sysv/linux/getsockname.c         |   7 +-
 sysdeps/unix/sysv/linux/hppa/Versions         |   3 -
 .../unix/sysv/linux/hppa/bits/struct_stat.h   | 139 ++++++++++++++++++
 sysdeps/unix/sysv/linux/hppa/bits/typesizes.h |  74 ++++++++++
 sysdeps/unix/sysv/linux/hppa/xstatver.h       |  13 ++
 sysdeps/unix/sysv/linux/i386/Versions         |   4 -
 .../unix/sysv/linux/i386/kernel-features.h    |  19 +--
 sysdeps/unix/sysv/linux/ia64/bits/typesizes.h |  86 +++++++++++
 .../sysv/linux/{generic => }/inotify_init.c   |   9 +-
 sysdeps/unix/sysv/linux/kernel-features.h     |   7 +
 .../unix/sysv/linux/{generic => }/lchown.c    |  11 +-
 sysdeps/unix/sysv/linux/{generic => }/link.c  |   9 +-
 sysdeps/unix/sysv/linux/listen.c              |   7 +-
 .../unix/sysv/linux/loongarch/lp64/Implies    |   1 -
 sysdeps/unix/sysv/linux/loongarch/sysdep.h    |   3 +-
 sysdeps/unix/sysv/linux/lseek.c               |   4 +
 sysdeps/unix/sysv/linux/lseek64.c             |   4 +
 sysdeps/unix/sysv/linux/m68k/Versions         |   3 -
 sysdeps/unix/sysv/linux/m68k/bits/typesizes.h |  74 ++++++++++
 .../unix/sysv/linux/m68k/kernel-features.h    |  19 +--
 sysdeps/unix/sysv/linux/microblaze/Versions   |   5 -
 .../sysv/linux/microblaze/bits/typesizes.h    |  74 ++++++++++
 .../sysv/linux/microblaze/kernel-features.h   |   7 -
 sysdeps/unix/sysv/linux/mips/Versions         |   3 -
 sysdeps/unix/sysv/linux/mips/bits/typesizes.h |  95 ++++++++++++
 .../sysv/linux/mips/mips64/n64/sendfile64.c   |   1 -
 .../sysv/linux/mips/mips64/n64/syscalls.list  |   3 -
 sysdeps/unix/sysv/linux/{generic => }/mkdir.c |  15 +-
 sysdeps/unix/sysv/linux/nios2/Implies         |   2 -
 .../unix/sysv/linux/nios2/bits/struct_stat.h  | 135 +++++++++++++++++
 sysdeps/unix/sysv/linux/nios2/sysdep.h        |   2 +-
 sysdeps/unix/sysv/linux/or1k/Implies          |   2 -
 sysdeps/unix/sysv/linux/or1k/sysdep.h         |   3 +-
 .../unix/sysv/linux/powerpc/bits/typesizes.h  |  95 ++++++++++++
 .../unix/sysv/linux/powerpc/kernel-features.h |   7 -
 .../sysv/linux/powerpc/powerpc32/Versions     |   3 -
 .../unix/sysv/linux/{generic => }/readlink.c  |   9 +-
 sysdeps/unix/sysv/linux/riscv/rv32/Implies    |   2 -
 sysdeps/unix/sysv/linux/riscv/rv64/Implies    |   1 -
 sysdeps/unix/sysv/linux/riscv/sysdep.h        |   3 +-
 sysdeps/unix/sysv/linux/{generic => }/rmdir.c |   9 +-
 .../unix/sysv/linux/s390/kernel-features.h    |  19 +--
 sysdeps/unix/sysv/linux/s390/s390-32/Versions |   3 -
 .../{generic/wordsize-32 => }/sendfile.c      |  15 +-
 .../linux/{generic/sysdep.h => sendfile64.c}  |  27 +++-
 sysdeps/unix/sysv/linux/sh/Versions           |   3 -
 sysdeps/unix/sysv/linux/sh/bits/struct_stat.h | 139 ++++++++++++++++++
 sysdeps/unix/sysv/linux/sh/bits/typesizes.h   |  74 ++++++++++
 sysdeps/unix/sysv/linux/sh/kernel-features.h  |   7 -
 sysdeps/unix/sysv/linux/sh/xstatver.h         |  13 ++
 sysdeps/unix/sysv/linux/shutdown.c            |   7 +-
 sysdeps/unix/sysv/linux/socket.c              |   7 +-
 sysdeps/unix/sysv/linux/socketpair.c          |   7 +-
 .../unix/sysv/linux/sparc/kernel-features.h   |  10 +-
 .../unix/sysv/linux/sparc/sparc32/Versions    |   3 -
 .../unix/sysv/linux/{generic => }/symlink.c   |   9 +-
 sysdeps/unix/sysv/linux/syscalls.list         |   2 -
 .../unix/sysv/linux/{generic => }/unlink.c    |   9 +-
 .../unix/sysv/linux/wordsize-64/sendfile64.c  |   1 -
 .../unix/sysv/linux/wordsize-64/syscalls.list |   1 -
 sysdeps/unix/sysv/linux/xstatver.h            |  11 +-
 90 files changed, 1549 insertions(+), 468 deletions(-)
 rename sysdeps/unix/sysv/linux/{generic => }/____longjmp_chk.c (90%)
 create mode 100644 sysdeps/unix/sysv/linux/arm/bits/struct_stat.h
 create mode 100644 sysdeps/unix/sysv/linux/arm/bits/typesizes.h
 rename sysdeps/unix/sysv/linux/{generic => arm}/xstatver.h (52%)
 rename sysdeps/unix/sysv/linux/{generic => }/bits/typesizes.h (100%)
 rename sysdeps/unix/sysv/linux/{generic => }/chmod.c (78%)
 rename sysdeps/unix/sysv/linux/{generic => }/chown.c (77%)
 rename sysdeps/unix/sysv/linux/{generic => csky}/bits/struct_stat.h (92%)
 rename sysdeps/unix/sysv/linux/{generic => }/dup2.c (83%)
 rename sysdeps/unix/sysv/linux/{generic => }/epoll_create.c (79%)
 delete mode 100644 sysdeps/unix/sysv/linux/generic/Makefile
 delete mode 100644 sysdeps/unix/sysv/linux/generic/README
 delete mode 100644 sysdeps/unix/sysv/linux/generic/bits/fcntl.h
 delete mode 100644 sysdeps/unix/sysv/linux/generic/dl-origin.c
 delete mode 100644 sysdeps/unix/sysv/linux/generic/syscalls.list
 delete mode 100644 sysdeps/unix/sysv/linux/generic/wordsize-32/Versions
 create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/struct_stat.h
 create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/typesizes.h
 create mode 100644 sysdeps/unix/sysv/linux/hppa/xstatver.h
 create mode 100644 sysdeps/unix/sysv/linux/ia64/bits/typesizes.h
 rename sysdeps/unix/sysv/linux/{generic => }/inotify_init.c (78%)
 rename sysdeps/unix/sysv/linux/{generic => }/lchown.c (75%)
 rename sysdeps/unix/sysv/linux/{generic => }/link.c (78%)
 create mode 100644 sysdeps/unix/sysv/linux/m68k/bits/typesizes.h
 delete mode 100644 sysdeps/unix/sysv/linux/microblaze/Versions
 create mode 100644 sysdeps/unix/sysv/linux/microblaze/bits/typesizes.h
 create mode 100644 sysdeps/unix/sysv/linux/mips/bits/typesizes.h
 delete mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/sendfile64.c
 delete mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
 rename sysdeps/unix/sysv/linux/{generic => }/mkdir.c (79%)
 create mode 100644 sysdeps/unix/sysv/linux/nios2/bits/struct_stat.h
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/bits/typesizes.h
 rename sysdeps/unix/sysv/linux/{generic => }/readlink.c (80%)
 rename sysdeps/unix/sysv/linux/{generic => }/rmdir.c (78%)
 rename sysdeps/unix/sysv/linux/{generic/wordsize-32 => }/sendfile.c (77%)
 rename sysdeps/unix/sysv/linux/{generic/sysdep.h => sendfile64.c} (55%)
 create mode 100644 sysdeps/unix/sysv/linux/sh/bits/struct_stat.h
 create mode 100644 sysdeps/unix/sysv/linux/sh/bits/typesizes.h
 create mode 100644 sysdeps/unix/sysv/linux/sh/xstatver.h
 rename sysdeps/unix/sysv/linux/{generic => }/symlink.c (78%)
 rename sysdeps/unix/sysv/linux/{generic => }/unlink.c (77%)
 delete mode 100644 sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c