From patchwork Wed Jun 26 17:49:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zack Weinberg X-Patchwork-Id: 1122942 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-103166-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=panix.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="o72eC1VP"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45YrD61ggHz9s8m for ; Thu, 27 Jun 2019 03:50:46 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=IsCYctGNr+wy+pgwAwwgJk0UxiboKoJtedDJ/MF4dbGMHEjUjWdnE ad+9M3hbD5LQp83wM1YA4ImGKmrYofCOCq7mFKM1+o6KnedKrB9e2I+/PrW67Cs2 XjnjVqCMs8LYhob5hYAc8ty1HFi4ZAkagGOE6TOswd5y0pMZzdfBP0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding; s=default; bh=qGZpIsRXfqs6S2ULyBmFFqeyTW8=; b=o72eC1VPHd8r2xNekcpSH/lyNsYk Hht7DqfYiJDyg9Wp6PgZCDj+53n+8NbPRmUPAihzoyDLN+MOw/87Rw4fRQWze+fU oKJwThrWPY4+BPlTvR91mNqW/wlkhXFeVOxSzrhH1sxtgvvFw4rGlcuUntS7q/DH 0nMikPaIv36P3QI= Received: (qmail 7874 invoked by alias); 26 Jun 2019 17:50:02 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 7788 invoked by uid 89); 26 Jun 2019 17:50:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_PASS autolearn=ham version=3.3.1 spammy=exposure, regret, sgh, formally X-HELO: mailbackend.panix.com From: Zack Weinberg To: libc-alpha@sourceware.org Cc: joseph@codesourcery.com, carlos@redhat.com Subject: [PATCH 00/25] Public header file hygiene improvements for 2.30 Date: Wed, 26 Jun 2019 13:49:45 -0400 Message-Id: <20190626174954.8009-1-zackw@panix.com> MIME-Version: 1.0 I would like to propose this set of hygiene improvements to public header files for 2.30. Its principal goal is to minimize the number of cases where standardized public headers include other public headers (standardized or not) and therefore define a bunch of symbols that they’re not formally specified to define. It also removes a fair amount of cruft from sys/types.h and bits/types.h, obsoletes four additional typedefs that should not be used in public interfaces anymore (caddr_t, daddr_t, loff_t, register_t), and restricts sys/types.h’s definition of u_intN_t and register_t to __USE_MISC (i.e. they are no longer present in strict conformance modes). These changes should not break portable programs, but they do have fairly high source compatibility risk; I regret not having been able to complete this patch series earlier in the development cycle. This patch series is a superset of the “sys/types.h cleanup and further typedef obsoletion” patch series I posted in March, which was never fully reviewed. I have rolled in all of the changes requested from what reviews did happen. Zack Weinberg (25): Move most headers installed by top-level Makefile to misc/. Define register_t using bits/typesizes.h macros. sys/types.h: Don’t define u_intN_t or register_t unless __USE_MISC. Add caddr_t, daddr_t, and loff_t to the set of obsolete typedefs. Simplify definition of __time64_t. Clean up bits/types.h. Create bits/types headers for most remaining __T_defined macros. Don’t conditionalize declarations of ldiv_t, lldiv_t, __gwchar_t. Add check-obsolete-constructs checker for nested includes. Swap sys/syslog.h with syslog.h. Swap sys/poll.h with poll.h. Don’t include sys/cdefs.h directly from public headers. Split up endian.h to minimize exposure of BYTE_ORDER. Add bits/types/ wrappers for stddef.h and stdarg.h types. Don’t rely on stddef.h or stdarg.h for individual type definitions. Limit the set of strings.h functions also exposed in string.h. Don’t include sys/select.h from sys/types.h. Don’t include signal.h from sys/wait.h or sys/param.h. Don’t include string.h from sys/un.h. Don’t include sys/time.h from sys/timex.h. Don’t include sys/types.h or stdint.h from most public headers. Minimize includes of unrelated public headers by networking headers. Don’t include sys/socket.h from public headers. Minimize inclusion of netinet/in.h from public headers. Rename sys/ucontext.h to bits/ucontext.h. Makefile | 38 +- NEWS | 11 + bits/endian.h | 13 - bits/endianness.h | 17 + bits/fcntl.h | 9 +- bits/in.h | 8 +- bits/param.h | 7 + bits/poll.h | 9 +- bits/sem.h | 7 +- bits/signum-generic.h | 2 +- bits/signum.h | 2 +- bits/sockaddr.h | 3 + bits/socket.h | 47 -- bits/syslog-path.h | 8 +- bits/time64.h | 2 +- bits/types/stack_t.h | 3 +- bits/typesizes.h | 16 +- bits/uapi-compat.h | 34 ++ {sysdeps/generic/sys => bits}/ucontext.h | 6 +- {sysdeps/gnu/bits => bits}/utmp.h | 32 +- {sysdeps/gnu/bits => bits}/utmpx.h | 35 +- conform/data/glob.h-data | 2 +- conform/data/stdio.h-data | 2 +- conform/data/sys/wait.h-data | 1 + conform/data/wchar.h-data | 12 +- ctype/ctype.h | 2 +- debug/tst-chk1.c | 1 + debug/wcpcpy_chk.c | 2 - dirent/dirent.h | 17 +- dlfcn/dlfcn.h | 4 +- elf/dl-map-segments.h | 15 +- elf/dl-minimal.c | 2 +- elf/dl-reloc.c | 4 +- elf/link.h | 2 +- gmon/sys/gmon.h | 2 - gmon/sys/profil.h | 4 +- gmon/tst-sprofil.c | 1 + grp/grp.h | 13 +- grp/initgroups.c | 1 + gshadow/gshadow.h | 4 +- hurd/Makefile | 2 +- hurd/fd-read.c | 2 +- hurd/fd-write.c | 2 +- hurd/hurd/fd.h | 6 +- hurd/hurd/ioctl.h | 2 - hurd/hurd/signal.h | 15 +- hurd/hurd/sigpreempt.h | 3 +- hurd/hurd/userlink.h | 18 +- iconv/gconv.h | 6 +- iconv/iconv.h | 3 +- iconv/loop.c | 1 - iconv/skeleton.c | 2 - include/bits/NULL.h | 1 + include/bits/endian.h | 1 + include/bits/strings_x2k8.h | 1 + include/bits/types/__va_list.h | 1 + include/bits/types/blkcnt64_t.h | 1 + include/bits/types/blkcnt_t.h | 1 + include/bits/types/blksize_t.h | 1 + include/bits/types/caddr_t.h | 1 + include/bits/types/daddr_t.h | 1 + include/bits/types/dev_t.h | 1 + include/bits/types/fsblkcnt64_t.h | 1 + include/bits/types/fsblkcnt_t.h | 1 + include/bits/types/fsfilcnt64_t.h | 1 + include/bits/types/fsfilcnt_t.h | 1 + include/bits/types/fsid_t.h | 1 + include/bits/types/gid_t.h | 1 + include/bits/types/id_t.h | 1 + include/bits/types/in_addr_t.h | 1 + include/bits/types/in_port_t.h | 1 + include/bits/types/ino64_t.h | 1 + include/bits/types/ino_t.h | 1 + include/bits/types/intptr_t.h | 1 + include/bits/types/key_t.h | 1 + include/bits/types/loff_t.h | 1 + include/bits/types/mode_t.h | 1 + include/bits/types/nlink_t.h | 1 + include/bits/types/off64_t.h | 1 + include/bits/types/off_t.h | 1 + include/bits/types/pid_t.h | 1 + include/bits/types/ptrdiff_t.h | 1 + include/bits/types/register_t.h | 1 + include/bits/types/size_t.h | 1 + include/bits/types/socklen_t.h | 1 + include/bits/types/ssize_t.h | 1 + include/bits/types/struct_in6_addr.h | 1 + include/bits/types/struct_in_addr.h | 1 + include/bits/types/struct_linger.h | 1 + include/bits/types/struct_sockaddr.h | 1 + include/bits/types/struct_sockaddr_in.h | 1 + include/bits/types/struct_sockaddr_in6.h | 1 + include/bits/types/struct_sockaddr_storage.h | 1 + include/bits/types/suseconds_t.h | 1 + include/bits/types/u_int.h | 1 + include/bits/types/u_intN_t.h | 1 + include/bits/types/uid_t.h | 1 + include/bits/types/uint.h | 1 + include/bits/types/useconds_t.h | 1 + include/bits/types/va_list.h | 1 + include/bits/types/wchar_t.h | 1 + include/bits/xopen_lim.h | 149 +----- include/err.h | 6 +- include/features.h | 478 +---------------- include/gnu-versions.h | 53 +- include/gnu/libc-version.h | 35 +- include/ifaddrs.h | 1 + include/limits.h | 193 +------ include/net/if.h | 2 +- include/netdb.h | 8 +- include/netinet/ether.h | 1 + include/netinet/in_systm.h | 1 + include/netinet/ip.h | 1 + include/netinet/ip_icmp.h | 1 + include/netinet/tcp.h | 1 + include/netinet/udp.h | 1 + include/poll.h | 12 +- include/set-hooks.h | 3 +- include/stdc-predef.h | 61 +-- include/stdio.h | 34 +- include/sys/mtio.h | 1 + include/sys/poll.h | 10 +- include/sys/socketvar.h | 1 + include/sys/syslog.h | 19 +- include/sys/ucontext.h | 1 + include/syslog.h | 16 +- include/utmpx.h | 1 + include/values.h | 69 +-- include/wchar.h | 14 +- inet/Makefile | 14 +- inet/aliases.h | 4 +- inet/arpa/inet.h | 8 +- inet/bits/types/in_addr_t.h | 9 + inet/bits/types/in_port_t.h | 9 + inet/bits/types/struct_in6_addr.h | 30 ++ inet/bits/types/struct_in_addr.h | 18 + inet/bits/types/struct_sockaddr_in.h | 28 + inet/bits/types/struct_sockaddr_in6.h | 25 + inet/check_pf.c | 1 + inet/gethstbynm.c | 1 + inet/gethstbynm_r.c | 1 + inet/getsourcefilter.c | 1 + inet/htonl.c | 3 +- inet/htons.c | 2 + inet/ifaddrs.h | 2 +- inet/inet6_opt.c | 1 + inet/inet6_option.c | 1 + inet/inet6_rth.c | 1 + inet/netinet/icmp6.h | 125 ++--- inet/netinet/igmp.h | 12 +- inet/netinet/in.h | 137 ++--- {sysdeps/generic => inet}/netinet/in_systm.h | 3 +- {sysdeps/generic => inet}/netinet/ip.h | 43 +- inet/netinet/ip6.h | 88 ++-- {sysdeps/gnu => inet}/netinet/ip_icmp.h | 63 +-- {sysdeps/gnu => inet}/netinet/tcp.h | 182 +++---- {sysdeps/gnu => inet}/netinet/udp.h | 20 +- inet/protocols/routed.h | 4 +- inet/protocols/rwhod.h | 5 +- inet/protocols/talkd.h | 11 +- inet/protocols/timed.h | 5 +- inet/setsourcefilter.c | 2 +- inet/test-ifaddrs.c | 1 + inet/test-inet6_opt.c | 1 + inet/tst-getni1.c | 1 + inet/tst-getni2.c | 1 + inet/tst-inet6_rth.c | 1 + inet/tst-inet6_scopeid_pton.c | 1 + intl/gettext.c | 7 +- intl/libintl.h | 8 +- intl/loadmsgcat.c | 7 +- intl/ngettext.c | 7 +- io/bits/poll2.h | 9 +- io/fcntl.h | 27 +- io/fts.h | 5 +- io/ftw.h | 1 - io/{sys => }/poll.h | 6 +- io/sys/poll.h | 79 +-- io/sys/sendfile.h | 6 +- io/sys/stat.h | 66 +-- io/sys/statvfs.h | 21 +- libio/bits/stdio.h | 2 +- libio/bits/stdio2.h | 28 +- libio/bits/types/struct_FILE.h | 1 + libio/iolibio.h | 2 +- libio/libio.h | 8 +- libio/stdio.h | 71 +-- libio/vwprintf.c | 2 +- locale/loadlocale.c | 11 +- locale/locale.h | 3 +- login/Makefile | 13 +- login/utmp.h | 15 +- {sysdeps/gnu => login}/utmpx.h | 14 +- mach/lock-intern.h | 3 +- malloc/malloc.h | 7 +- malloc/tst-malloc-thread-fail.c | 1 + malloc/tst-malloc_info.c | 1 + malloc/tst-mallocfork.c | 1 + misc/Makefile | 31 +- misc/ar.h | 2 +- misc/bits/syslog-ldbl.h | 9 +- misc/bits/syslog.h | 13 +- misc/bits/types/struct_iovec.h | 3 +- {include => misc}/bits/xopen_lim.h | 0 misc/err.c | 12 +- misc/err.h | 14 +- {include => misc}/features.h | 0 {include => misc}/gnu-versions.h | 0 {include => misc}/gnu/libc-version.h | 0 {include => misc}/limits.h | 0 misc/search.h | 3 +- {include => misc}/stdc-predef.h | 0 misc/sys/auxv.h | 3 +- misc/sys/mman.h | 20 +- {sysdeps/gnu => misc}/sys/mtio.h | 7 +- misc/sys/param.h | 12 +- misc/sys/select.h | 7 +- misc/sys/syslog.h | 218 +------- misc/sys/uio.h | 5 +- misc/sys/xattr.h | 3 +- misc/{sys => }/syslog.h | 9 +- misc/tst-fdset.c | 2 +- misc/ustat.c | 8 +- {include => misc}/values.h | 0 nis/nis_add.c | 4 +- nis/nis_call.c | 10 +- nis/nis_callback.c | 12 +- nis/nis_checkpoint.c | 4 +- nis/nis_domain_of.c | 1 + nis/nis_findserv.c | 8 +- nis/nis_intern.h | 12 +- nis/nis_lookup.c | 4 +- nis/nis_mkdir.c | 8 +- nis/nis_modify.c | 4 +- nis/nis_ping.c | 4 +- nis/nis_remove.c | 4 +- nis/nis_rmdir.c | 4 +- nis/nis_server.c | 8 +- nis/nis_table.c | 28 +- nis/nis_util.c | 4 +- nis/nss_nis/nis-hosts.c | 1 + nis/nss_nisplus/nisplus-grp.c | 8 +- nis/nss_nisplus/nisplus-hosts.c | 1 + nis/nss_nisplus/nisplus-pwd.c | 8 +- nis/rpcsvc/nis_callback.h | 2 +- nis/rpcsvc/yp.h | 6 +- nis/yp_xdr.c | 1 + nis/ypclnt.c | 42 +- nptl/pthread_join_common.c | 2 + nptl/tst-cancel4.c | 24 +- nptl/tst-fork4.c | 1 + nptl/tst-getpid3.c | 1 + nptl/tst-mutex9.c | 1 + nptl/tst-rwlock12.c | 1 + nscd/aicache.c | 1 + nscd/cache.c | 1 + nscd/hstcache.c | 1 + nscd/initgrcache.c | 3 + nscd/netgroupcache.c | 2 + nscd/nscd_gethst_r.c | 1 + nscd/servicescache.c | 1 + nss/digits_dots.c | 1 + nss/nss.h | 6 +- nss/nss_compat/compat-grp.c | 1 + nss/nss_compat/compat-pwd.c | 1 + nss/nss_compat/compat-spwd.c | 1 + nss/nss_db/db-XXX.c | 1 + nss/nss_files/files-hosts.c | 1 + nss/nss_files/files-network.c | 1 + nss/tst-nss-files-hosts-erange.c | 2 + nss/tst-nss-files-hosts-getent.c | 2 + nss/tst-nss-files-hosts-multi.c | 2 + nss/tst-nss-test4.c | 1 + posix/Makefile | 37 +- posix/bits/types.h | 199 +++---- posix/bits/types/blkcnt64_t.h | 9 + posix/bits/types/blkcnt_t.h | 13 + posix/bits/types/blksize_t.h | 9 + posix/bits/types/caddr_t.h | 9 + posix/bits/types/daddr_t.h | 9 + posix/bits/types/dev_t.h | 9 + posix/bits/types/fsblkcnt64_t.h | 9 + posix/bits/types/fsblkcnt_t.h | 13 + posix/bits/types/fsfilcnt64_t.h | 9 + posix/bits/types/fsfilcnt_t.h | 13 + posix/bits/types/fsid_t.h | 9 + posix/bits/types/gid_t.h | 9 + posix/bits/types/id_t.h | 10 + posix/bits/types/ino64_t.h | 9 + posix/bits/types/ino_t.h | 13 + posix/bits/types/intptr_t.h | 10 + posix/bits/types/key_t.h | 9 + posix/bits/types/loff_t.h | 9 + posix/bits/types/mode_t.h | 9 + posix/bits/types/nlink_t.h | 9 + posix/bits/types/off64_t.h | 9 + posix/bits/types/off_t.h | 13 + posix/bits/types/pid_t.h | 9 + posix/bits/types/register_t.h | 9 + posix/bits/types/socklen_t.h | 9 + posix/bits/types/ssize_t.h | 9 + posix/bits/types/suseconds_t.h | 9 + posix/bits/types/u_int.h | 15 + posix/bits/types/u_intN_t.h | 17 + posix/bits/types/uid_t.h | 9 + posix/bits/types/uint.h | 10 + posix/bits/types/useconds_t.h | 9 + posix/glob.h | 32 +- posix/sched.h | 13 +- posix/spawn.h | 5 +- posix/sys/types.h | 332 ++++-------- posix/sys/wait.h | 13 +- posix/tst-getaddrinfo2.c | 1 + posix/tst-getaddrinfo3.c | 1 + posix/unistd.h | 60 +-- posix/wordexp.h | 3 +- pwd/pwd.h | 15 +- resolv/arpa/nameser.h | 34 +- resolv/arpa/nameser_compat.h | 3 +- resolv/bits/types/res_state.h | 17 +- resolv/netdb.h | 13 +- resolv/ns_print.c | 2 + resolv/nss_dns/dns-network.c | 1 + resolv/resolv.h | 17 +- resolv/resolv_conf.c | 1 + resolv/tst-bug18665-tcp.c | 2 + resolv/tst-bug18665.c | 1 + resolv/tst-inet_ntop.c | 1 + resolv/tst-inet_pton.c | 1 + resolv/tst-ns_name_compress.c | 1 + resolv/tst-res_hnok.c | 1 + resolv/tst-resolv-ai_idn-common.c | 2 + resolv/tst-resolv-basic.c | 1 + resolv/tst-resolv-binary.c | 1 + resolv/tst-resolv-canonname.c | 1 + resolv/tst-resolv-edns.c | 2 + resolv/tst-resolv-network.c | 2 + resolv/tst-resolv-nondecimal.c | 2 + resolv/tst-resolv-res_init-skeleton.c | 1 + resolv/tst-resolv-search.c | 2 + resolv/tst-resolv-threads.c | 1 + resolv/tst-resolv-trailing.c | 1 + resource/sys/resource.h | 6 +- rt/aio.h | 7 +- rt/mqueue.h | 8 +- rt/tst-mqueue1.c | 5 +- scripts/check-c++-types.sh | 1 + scripts/check-obsolete-constructs.py | 494 ++++++++++++++++-- shadow/shadow.h | 4 +- signal/sighold.c | 1 - signal/signal.h | 18 +- signal/sigrelse.c | 1 - socket/Makefile | 8 +- socket/bits/types/struct_linger.h | 11 + socket/bits/types/struct_sockaddr.h | 15 + socket/bits/types/struct_sockaddr_storage.h | 21 + {sysdeps/gnu => socket}/net/if.h | 12 +- socket/sys/socket.h | 23 +- {sysdeps/generic => socket}/sys/socketvar.h | 0 socket/sys/un.h | 10 +- stdio-common/printf.h | 11 +- stdio-common/tempname.c | 1 - stdio-common/tst-vfprintf-user-type.c | 1 + stdlib/Makefile | 6 +- stdlib/alloca.h | 3 +- stdlib/bits/NULL.h | 47 ++ stdlib/bits/types/__va_list.h | 47 ++ stdlib/bits/types/ptrdiff_t.h | 45 ++ stdlib/bits/types/size_t.h | 45 ++ stdlib/bits/types/va_list.h | 36 ++ stdlib/bits/types/wchar_t.h | 50 ++ stdlib/inttypes.h | 14 +- stdlib/monetary.h | 10 +- stdlib/stdint.h | 16 +- stdlib/stdlib.h | 17 +- stdlib/sys/random.h | 4 +- stdlib/sys/ucontext.h | 1 + stdlib/ucontext.h | 2 +- string/Makefile | 5 +- string/bits/endian.h | 48 ++ string/bits/strings_x2k8.h | 70 +++ string/endian.h | 39 +- string/string.h | 8 +- string/strings.h | 42 +- string/test-string.h | 1 + string/tst-cmp.c | 1 + sunrpc/auth_des.c | 2 +- sunrpc/auth_unix.c | 4 +- sunrpc/authdes_prot.c | 10 +- sunrpc/authuxprot.c | 2 +- sunrpc/clnt_raw.c | 12 +- sunrpc/clnt_tcp.c | 28 +- sunrpc/clnt_udp.c | 22 +- sunrpc/clnt_unix.c | 26 +- sunrpc/key_call.c | 2 +- sunrpc/pm_getmaps.c | 2 +- sunrpc/pm_getport.c | 4 +- sunrpc/pmap_clnt.c | 4 +- sunrpc/pmap_prot2.c | 2 +- sunrpc/pmap_rmt.c | 16 +- sunrpc/proto.h | 2 +- sunrpc/rpc/auth.h | 4 +- sunrpc/rpc/auth_des.h | 3 +- sunrpc/rpc/clnt.h | 16 +- sunrpc/rpc/netdb.h | 3 +- sunrpc/rpc/pmap_clnt.h | 12 +- sunrpc/rpc/pmap_rmt.h | 4 +- sunrpc/rpc/rpc_msg.h | 4 +- sunrpc/rpc/svc.h | 15 +- sunrpc/rpc/types.h | 44 +- sunrpc/rpc/xdr.h | 22 +- sunrpc/rpc_clntout.c | 8 +- sunrpc/rpc_cmsg.c | 12 +- sunrpc/rpc_gethostbyname.c | 1 + sunrpc/rpc_hout.c | 2 +- sunrpc/rpc_prot.c | 4 +- sunrpc/rpc_sample.c | 4 +- sunrpc/rpc_svcout.c | 6 +- sunrpc/svc.c | 3 +- sunrpc/svc_authux.c | 2 +- sunrpc/svc_raw.c | 8 +- sunrpc/svc_tcp.c | 24 +- sunrpc/svc_udp.c | 14 +- sunrpc/svc_unix.c | 28 +- sunrpc/xdr.c | 4 +- sunrpc/xdr_array.c | 4 +- sunrpc/xdr_mem.c | 12 +- sunrpc/xdr_rec.c | 46 +- sunrpc/xdr_ref.c | 6 +- sunrpc/xdr_sizeof.c | 8 +- sunrpc/xdr_stdio.c | 14 +- support/resolv_test.c | 1 + support/resolv_test.h | 4 +- support/support_format_address_family.c | 1 + support/support_format_addrinfo.c | 1 + support/support_format_dns_packet.c | 1 + support/support_format_hostent.c | 1 + support/support_format_netent.c | 1 + support/tst-support-namespace.c | 1 + support/tst-support_capture_subprocess.c | 19 +- support/xunistd.h | 4 +- sysdeps/aarch64/bits/endian.h | 30 -- sysdeps/aarch64/bits/endianness.h | 15 + sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/alpha/bits/endian.h | 7 - sysdeps/alpha/bits/endianness.h | 11 + sysdeps/arm/bits/endian.h | 10 - sysdeps/arm/bits/endianness.h | 15 + sysdeps/arm/{sys => bits}/ucontext.h | 6 +- sysdeps/arm/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/csky/bits/endian.h | 9 - sysdeps/csky/bits/endianness.h | 15 + sysdeps/csky/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/generic/ldsodefs.h | 2 - sysdeps/generic/memcopy.h | 3 +- sysdeps/generic/net/if.h | 49 -- sysdeps/generic/netinet/if_ether.h | 6 +- sysdeps/generic/netinet/tcp.h | 108 ---- sysdeps/gnu/Makefile | 17 - sysdeps/gnu/bits/sem.h | 7 +- sysdeps/hppa/bits/endian.h | 7 - sysdeps/hppa/bits/endianness.h | 11 + .../htl/bits/types/struct___pthread_attr.h | 4 +- sysdeps/htl/pthread.h | 1 - sysdeps/i386/{sys => bits}/ucontext.h | 6 +- sysdeps/i386/i686/multiarch/bcopy.c | 1 + sysdeps/i386/i686/multiarch/bzero.c | 1 + sysdeps/i386/i686/multiarch/ifunc-impl-list.c | 1 + sysdeps/ia64/bits/endianness.h | 11 + sysdeps/ia64/ieee754.h | 4 +- sysdeps/ieee754/ieee754.h | 4 +- sysdeps/ieee754/ldbl-128/ieee754.h | 4 +- sysdeps/ieee754/ldbl-128ibm/ieee754.h | 4 +- sysdeps/ieee754/ldbl-opt/nldbl-compat.c | 8 +- sysdeps/ieee754/ldbl-opt/nldbl-compat.h | 16 +- sysdeps/m68k/bits/endian.h | 7 - sysdeps/m68k/bits/endianness.h | 11 + sysdeps/m68k/{sys => bits}/ucontext.h | 6 +- sysdeps/m68k/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/mach/hurd/bits/errno.h | 1 + sysdeps/mach/hurd/bits/fcntl.h | 11 +- sysdeps/mach/hurd/bits/param.h | 13 +- sysdeps/mach/hurd/bits/socket.h | 47 -- sysdeps/mach/hurd/bits/typesizes.h | 16 +- sysdeps/mach/hurd/i386/Makefile | 39 -- sysdeps/mach/hurd/if_index.c | 1 + sysdeps/mach/hurd/net/ethernet.h | 13 +- sysdeps/mach/hurd/net/if_arp.h | 10 +- sysdeps/mach/hurd/net/route.h | 20 +- sysdeps/mach/hurd/sendfile.c | 1 + sysdeps/mach/i386/bits/mach/param.h | 5 + sysdeps/microblaze/bits/endian.h | 30 -- sysdeps/microblaze/bits/endianness.h | 15 + .../microblaze/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/mips/bits/endian.h | 15 - sysdeps/mips/bits/endianness.h | 16 + sysdeps/mips/{sys => bits}/ucontext.h | 6 +- sysdeps/mips/ieee754/ieee754.h | 17 +- sysdeps/mips/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/nios2/bits/endian.h | 12 - sysdeps/nios2/bits/endianness.h | 16 + sysdeps/nios2/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/nptl/libc-lock.h | 1 - sysdeps/nptl/libc-lockP.h | 1 - sysdeps/nptl/proc_service.h | 3 + sysdeps/nptl/pthread.h | 2 +- sysdeps/nptl/sys/procfs.h | 3 +- sysdeps/nptl/thread_db.h | 3 +- sysdeps/posix/dl-fileid.h | 4 +- sysdeps/posix/sigignore.c | 3 - sysdeps/posix/sigset.c | 3 - sysdeps/posix/waitid.c | 1 - sysdeps/powerpc/bits/endian.h | 36 -- sysdeps/powerpc/bits/endianness.h | 16 + .../power4/multiarch/ifunc-impl-list.c | 1 + .../powerpc/powerpc64/multiarch/bcopy-ppc64.c | 1 + sysdeps/powerpc/powerpc64/multiarch/bcopy.c | 1 + .../powerpc64/multiarch/ifunc-impl-list.c | 1 + sysdeps/powerpc/sys/platform/ppc.h | 10 +- sysdeps/pthread/semaphore.h | 2 +- sysdeps/riscv/bits/endian.h | 5 - sysdeps/riscv/bits/endianness.h | 11 + sysdeps/riscv/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/s390/bits/endian.h | 7 - sysdeps/s390/bits/endianness.h | 11 + sysdeps/s390/bzero.c | 1 + sysdeps/s390/multiarch/ifunc-impl-list.c | 1 + sysdeps/sh/bits/endian.h | 13 - sysdeps/sh/bits/endianness.h | 15 + sysdeps/sh/nptl/bits/pthreadtypes-arch.h | 2 +- sysdeps/sparc/bits/endian.h | 12 - sysdeps/sparc/bits/endianness.h | 16 + sysdeps/sparc/sparc32/ieee754.h | 4 +- sysdeps/sparc/sparc64/multiarch/bzero.c | 1 + .../sparc/sparc64/multiarch/ifunc-impl-list.c | 1 + sysdeps/unix/bsd/bits/signum.h | 2 +- sysdeps/unix/bsd/bits/sockaddr.h | 12 + sysdeps/unix/sysv/linux/aarch64/bits/procfs.h | 16 +- .../linux/aarch64/{sys => bits}/ucontext.h | 8 +- .../unix/sysv/linux/aarch64/sigcontextinfo.h | 2 +- sysdeps/unix/sysv/linux/aarch64/sys/user.h | 2 + .../unix/sysv/linux/aarch64/ucontext_i.sym | 5 +- sysdeps/unix/sysv/linux/alpha/bits/epoll.h | 5 + .../sysv/linux/alpha/bits/procfs-prregset.h | 9 + sysdeps/unix/sysv/linux/alpha/bits/procfs.h | 8 +- sysdeps/unix/sysv/linux/alpha/bits/signum.h | 2 +- .../unix/sysv/linux/alpha/bits/typesizes.h | 2 +- .../sysv/linux/alpha/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/alpha/sys/acct.h | 2 +- sysdeps/unix/sysv/linux/alpha/sys/user.h | 8 +- .../sysv/linux/alpha/ucontext-offsets.sym | 2 +- sysdeps/unix/sysv/linux/arm/bits/procfs.h | 9 +- .../sysv/linux/arm/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/arm/register-dump.h | 2 +- sysdeps/unix/sysv/linux/arm/sigcontextinfo.h | 2 +- sysdeps/unix/sysv/linux/arm/sys/user.h | 2 + sysdeps/unix/sysv/linux/arm/ucontext_i.sym | 4 +- sysdeps/unix/sysv/linux/bits/epoll.h | 5 + sysdeps/unix/sysv/linux/bits/in.h | 33 +- sysdeps/unix/sysv/linux/bits/param.h | 5 + sysdeps/unix/sysv/linux/bits/poll.h | 9 +- sysdeps/unix/sysv/linux/bits/sem.h | 7 +- sysdeps/unix/sysv/linux/bits/sigcontext.h | 11 +- sysdeps/unix/sysv/linux/bits/signum.h | 2 +- sysdeps/unix/sysv/linux/bits/socket.h | 47 +- sysdeps/unix/sysv/linux/bits/timex.h | 20 +- sysdeps/unix/sysv/linux/bits/types/stack_t.h | 3 +- sysdeps/unix/sysv/linux/bits/uapi-compat.h | 153 ++++++ sysdeps/unix/sysv/linux/bits/uio-ext.h | 4 +- sysdeps/unix/sysv/linux/check_native.c | 1 + .../unix/sysv/linux/csky/abiv2/ucontext_i.sym | 4 +- sysdeps/unix/sysv/linux/csky/bits/procfs.h | 5 + .../sysv/linux/csky/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/csky/register-dump.h | 2 +- sysdeps/unix/sysv/linux/dl-vdso.h | 6 + sysdeps/unix/sysv/linux/errqueue.h | 19 +- sysdeps/unix/sysv/linux/generic/bits/stat.h | 2 +- sysdeps/unix/sysv/linux/generic/bits/statfs.h | 2 +- .../unix/sysv/linux/generic/bits/typesizes.h | 16 +- .../sysv/linux/generic/wordsize-32/overflow.h | 2 +- sysdeps/unix/sysv/linux/hppa/bits/epoll.h | 5 + sysdeps/unix/sysv/linux/hppa/bits/procfs.h | 5 + sysdeps/unix/sysv/linux/hppa/bits/signum.h | 2 +- .../sysv/linux/hppa/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/hppa/pthread.h | 1 - sysdeps/unix/sysv/linux/hppa/ucontext_i.sym | 1 - sysdeps/unix/sysv/linux/i386/ucontext_i.sym | 1 - sysdeps/unix/sysv/linux/ia64/Makefile | 6 +- sysdeps/unix/sysv/linux/ia64/bits/endian.h | 7 - sysdeps/unix/sysv/linux/ia64/bits/ipc.h | 2 +- sysdeps/unix/sysv/linux/ia64/bits/procfs.h | 9 +- .../unix/sysv/linux/ia64/bits/sigcontext.h | 14 +- .../sysv/linux/ia64/bits/types/__ia64_fpreg.h | 22 + .../sysv/linux/ia64/{sys => bits}/ucontext.h | 18 +- .../sysv/linux/ia64/sigcontext-offsets.sym | 2 +- sysdeps/unix/sysv/linux/ia64/sys/ptrace.h | 3 +- sysdeps/unix/sysv/linux/ia64/sys/user.h | 2 +- sysdeps/unix/sysv/linux/lseek.c | 4 +- sysdeps/unix/sysv/linux/lseek64.c | 2 +- sysdeps/unix/sysv/linux/m68k/bits/poll.h | 9 +- sysdeps/unix/sysv/linux/m68k/bits/procfs.h | 9 +- sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h | 4 +- .../sysv/linux/m68k/{sys => bits}/ucontext.h | 6 +- .../sysv/linux/m68k/m680x0/ucontext_i.sym | 1 - sysdeps/unix/sysv/linux/m68k/sys/user.h | 2 + .../unix/sysv/linux/microblaze/bits/procfs.h | 9 +- .../linux/microblaze/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/microblaze/sys/user.h | 6 +- sysdeps/unix/sysv/linux/mips/bits/epoll.h | 5 + sysdeps/unix/sysv/linux/mips/bits/poll.h | 9 +- sysdeps/unix/sysv/linux/mips/bits/procfs.h | 5 + sysdeps/unix/sysv/linux/mips/bits/signum.h | 2 +- .../unix/sysv/linux/mips/bits/types/stack_t.h | 3 +- .../linux/{generic => mips}/bits/typesizes.h | 28 +- .../sysv/linux/mips/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/mips/sys/user.h | 4 +- sysdeps/unix/sysv/linux/mips/ucontext_i.sym | 2 - sysdeps/unix/sysv/linux/net/ethernet.h | 12 +- sysdeps/unix/sysv/linux/net/if_arp.h | 8 +- sysdeps/unix/sysv/linux/net/if_ppp.h | 10 +- sysdeps/unix/sysv/linux/net/if_shaper.h | 8 +- sysdeps/unix/sysv/linux/net/route.h | 20 +- sysdeps/unix/sysv/linux/netatalk/at.h | 40 +- sysdeps/unix/sysv/linux/netinet/if_ether.h | 21 +- sysdeps/unix/sysv/linux/netinet/if_fddi.h | 14 +- sysdeps/unix/sysv/linux/netinet/if_tr.h | 68 +-- sysdeps/unix/sysv/linux/netipx/ipx.h | 10 +- sysdeps/unix/sysv/linux/netrose/rose.h | 2 +- sysdeps/unix/sysv/linux/nios2/bits/procfs.h | 5 + .../sysv/linux/nios2/{sys => bits}/ucontext.h | 6 +- .../unix/sysv/linux/nios2/sigcontextinfo.h | 3 +- sysdeps/unix/sysv/linux/nios2/sys/user.h | 2 + sysdeps/unix/sysv/linux/nios2/ucontext_i.sym | 2 - sysdeps/unix/sysv/linux/ntp_gettime.c | 4 - sysdeps/unix/sysv/linux/ntp_gettimex.c | 4 - sysdeps/unix/sysv/linux/powerpc/bits/ppc.h | 2 +- sysdeps/unix/sysv/linux/powerpc/bits/procfs.h | 20 +- .../linux/powerpc/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/powerpc/htm.h | 2 +- .../linux/powerpc/powerpc32/ucontext_i.sym | 1 - .../linux/powerpc/powerpc64/ucontext_i.sym | 1 - sysdeps/unix/sysv/linux/powerpc/sys/user.h | 5 +- sysdeps/unix/sysv/linux/pselect.c | 2 +- sysdeps/unix/sysv/linux/riscv/bits/procfs.h | 10 +- .../sysv/linux/riscv/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/riscv/makecontext.c | 18 +- .../unix/sysv/linux/riscv/sigcontextinfo.h | 2 +- sysdeps/unix/sysv/linux/riscv/ucontext_i.sym | 4 +- sysdeps/unix/sysv/linux/s390/bits/procfs.h | 9 +- sysdeps/unix/sysv/linux/s390/bits/typesizes.h | 16 +- .../sysv/linux/s390/{sys => bits}/ucontext.h | 6 +- .../{gnu => unix/sysv/linux/s390}/bits/utmp.h | 37 +- sysdeps/unix/sysv/linux/s390/bits/utmpx.h | 34 +- sysdeps/unix/sysv/linux/s390/sys/user.h | 2 + .../sysv/linux/s390/tst-ptrace-singleblock.c | 11 +- sysdeps/unix/sysv/linux/s390/ucontext_i.sym | 1 - sysdeps/unix/sysv/linux/scsi/sg.h | 4 +- sysdeps/unix/sysv/linux/sh/bits/procfs.h | 5 + .../sysv/linux/sh/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym | 1 - sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym | 1 - sysdeps/unix/sysv/linux/sh/sys/user.h | 5 +- sysdeps/unix/sysv/linux/sparc/bits/epoll.h | 5 + sysdeps/unix/sysv/linux/sparc/bits/poll.h | 9 +- sysdeps/unix/sysv/linux/sparc/bits/procfs.h | 7 +- sysdeps/unix/sysv/linux/sparc/bits/signum.h | 2 +- .../unix/sysv/linux/sparc/bits/typesizes.h | 16 +- .../sysv/linux/sparc/{sys => bits}/ucontext.h | 6 +- .../sysv/linux/sparc/sparc32/ucontext_i.sym | 1 - sysdeps/unix/sysv/linux/sparc/sys/user.h | 3 +- sysdeps/unix/sysv/linux/splice.c | 2 +- sysdeps/unix/sysv/linux/sys/acct.h | 8 +- sysdeps/unix/sysv/linux/sys/epoll.h | 10 +- sysdeps/unix/sysv/linux/sys/eventfd.h | 5 +- sysdeps/unix/sysv/linux/sys/fanotify.h | 6 +- sysdeps/unix/sysv/linux/sys/fsuid.h | 2 +- sysdeps/unix/sysv/linux/sys/inotify.h | 11 +- sysdeps/unix/sysv/linux/sys/procfs.h | 6 +- sysdeps/unix/sysv/linux/sys/quota.h | 6 +- sysdeps/unix/sysv/linux/sys/raw.h | 7 +- sysdeps/unix/sysv/linux/sys/signalfd.h | 47 +- sysdeps/unix/sysv/linux/sys/sysctl.h | 4 +- sysdeps/unix/sysv/linux/sys/timex.h | 18 +- sysdeps/unix/sysv/linux/test-errno-linux.c | 2 +- sysdeps/unix/sysv/linux/tst-align-clone.c | 5 +- sysdeps/unix/sysv/linux/ustat.c | 9 +- sysdeps/unix/sysv/linux/x86/bits/epoll.h | 5 + sysdeps/unix/sysv/linux/x86/bits/procfs.h | 5 + sysdeps/unix/sysv/linux/x86/bits/typesizes.h | 21 +- .../sysv/linux/x86/{sys => bits}/ucontext.h | 6 +- sysdeps/unix/sysv/linux/x86/sys/user.h | 2 + sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym | 1 - sysdeps/x86/bits/endian.h | 7 - sysdeps/x86/bits/endianness.h | 11 + sysvipc/sys/ipc.h | 24 +- sysvipc/sys/msg.h | 20 +- sysvipc/sys/sem.h | 13 +- sysvipc/sys/shm.h | 21 +- termios/termios.h | 8 +- time/sys/time.h | 6 +- time/time.h | 15 +- wcsmbs/bits/wchar2.h | 14 +- wcsmbs/uchar.h | 4 +- wcsmbs/wchar.h | 46 +- wcsmbs/wcstol_l.c | 1 - wcsmbs/wcstoll_l.c | 1 - wcsmbs/wcstoul_l.c | 1 - wcsmbs/wcstoull_l.c | 1 - wctype/bits/wctype-wchar.h | 2 +- 709 files changed, 4331 insertions(+), 4675 deletions(-) delete mode 100644 bits/endian.h create mode 100644 bits/endianness.h create mode 100644 bits/uapi-compat.h rename {sysdeps/generic/sys => bits}/ucontext.h (95%) copy {sysdeps/gnu/bits => bits}/utmp.h (83%) rename {sysdeps/gnu/bits => bits}/utmpx.h (82%) create mode 100644 include/bits/NULL.h create mode 100644 include/bits/endian.h create mode 100644 include/bits/strings_x2k8.h create mode 100644 include/bits/types/__va_list.h create mode 100644 include/bits/types/blkcnt64_t.h create mode 100644 include/bits/types/blkcnt_t.h create mode 100644 include/bits/types/blksize_t.h create mode 100644 include/bits/types/caddr_t.h create mode 100644 include/bits/types/daddr_t.h create mode 100644 include/bits/types/dev_t.h create mode 100644 include/bits/types/fsblkcnt64_t.h create mode 100644 include/bits/types/fsblkcnt_t.h create mode 100644 include/bits/types/fsfilcnt64_t.h create mode 100644 include/bits/types/fsfilcnt_t.h create mode 100644 include/bits/types/fsid_t.h create mode 100644 include/bits/types/gid_t.h create mode 100644 include/bits/types/id_t.h create mode 100644 include/bits/types/in_addr_t.h create mode 100644 include/bits/types/in_port_t.h create mode 100644 include/bits/types/ino64_t.h create mode 100644 include/bits/types/ino_t.h create mode 100644 include/bits/types/intptr_t.h create mode 100644 include/bits/types/key_t.h create mode 100644 include/bits/types/loff_t.h create mode 100644 include/bits/types/mode_t.h create mode 100644 include/bits/types/nlink_t.h create mode 100644 include/bits/types/off64_t.h create mode 100644 include/bits/types/off_t.h create mode 100644 include/bits/types/pid_t.h create mode 100644 include/bits/types/ptrdiff_t.h create mode 100644 include/bits/types/register_t.h create mode 100644 include/bits/types/size_t.h create mode 100644 include/bits/types/socklen_t.h create mode 100644 include/bits/types/ssize_t.h create mode 100644 include/bits/types/struct_in6_addr.h create mode 100644 include/bits/types/struct_in_addr.h create mode 100644 include/bits/types/struct_linger.h create mode 100644 include/bits/types/struct_sockaddr.h create mode 100644 include/bits/types/struct_sockaddr_in.h create mode 100644 include/bits/types/struct_sockaddr_in6.h create mode 100644 include/bits/types/struct_sockaddr_storage.h create mode 100644 include/bits/types/suseconds_t.h create mode 100644 include/bits/types/u_int.h create mode 100644 include/bits/types/u_intN_t.h create mode 100644 include/bits/types/uid_t.h create mode 100644 include/bits/types/uint.h create mode 100644 include/bits/types/useconds_t.h create mode 100644 include/bits/types/va_list.h create mode 100644 include/bits/types/wchar_t.h rewrite include/bits/xopen_lim.h (100%) rewrite include/features.h (100%) rewrite include/gnu-versions.h (100%) rewrite include/gnu/libc-version.h (100%) rewrite include/limits.h (100%) create mode 100644 include/netinet/in_systm.h create mode 100644 include/netinet/ip.h create mode 100644 include/netinet/ip_icmp.h create mode 100644 include/netinet/tcp.h create mode 100644 include/netinet/udp.h rewrite include/stdc-predef.h (100%) create mode 100644 include/sys/mtio.h create mode 100644 include/sys/socketvar.h rewrite include/sys/syslog.h (93%) create mode 100644 include/sys/ucontext.h rewrite include/syslog.h (100%) create mode 100644 include/utmpx.h rewrite include/values.h (100%) create mode 100644 inet/bits/types/in_addr_t.h create mode 100644 inet/bits/types/in_port_t.h create mode 100644 inet/bits/types/struct_in6_addr.h create mode 100644 inet/bits/types/struct_in_addr.h create mode 100644 inet/bits/types/struct_sockaddr_in.h create mode 100644 inet/bits/types/struct_sockaddr_in6.h rename {sysdeps/generic => inet}/netinet/in_systm.h (97%) rename {sysdeps/generic => inet}/netinet/ip.h (93%) rename {sysdeps/gnu => inet}/netinet/ip_icmp.h (90%) rename {sysdeps/gnu => inet}/netinet/tcp.h (74%) rename {sysdeps/gnu => inet}/netinet/udp.h (91%) copy io/{sys => }/poll.h (95%) rewrite io/sys/poll.h (99%) rename {sysdeps/gnu => login}/utmpx.h (94%) copy {include => misc}/bits/xopen_lim.h (100%) copy {include => misc}/features.h (100%) copy {include => misc}/gnu-versions.h (100%) copy {include => misc}/gnu/libc-version.h (100%) copy {include => misc}/limits.h (100%) copy {include => misc}/stdc-predef.h (100%) rename {sysdeps/gnu => misc}/sys/mtio.h (98%) rewrite misc/sys/syslog.h (99%) copy misc/{sys => }/syslog.h (97%) copy {include => misc}/values.h (100%) create mode 100644 posix/bits/types/blkcnt64_t.h create mode 100644 posix/bits/types/blkcnt_t.h create mode 100644 posix/bits/types/blksize_t.h create mode 100644 posix/bits/types/caddr_t.h create mode 100644 posix/bits/types/daddr_t.h create mode 100644 posix/bits/types/dev_t.h create mode 100644 posix/bits/types/fsblkcnt64_t.h create mode 100644 posix/bits/types/fsblkcnt_t.h create mode 100644 posix/bits/types/fsfilcnt64_t.h create mode 100644 posix/bits/types/fsfilcnt_t.h create mode 100644 posix/bits/types/fsid_t.h create mode 100644 posix/bits/types/gid_t.h create mode 100644 posix/bits/types/id_t.h create mode 100644 posix/bits/types/ino64_t.h create mode 100644 posix/bits/types/ino_t.h create mode 100644 posix/bits/types/intptr_t.h create mode 100644 posix/bits/types/key_t.h create mode 100644 posix/bits/types/loff_t.h create mode 100644 posix/bits/types/mode_t.h create mode 100644 posix/bits/types/nlink_t.h create mode 100644 posix/bits/types/off64_t.h create mode 100644 posix/bits/types/off_t.h create mode 100644 posix/bits/types/pid_t.h create mode 100644 posix/bits/types/register_t.h create mode 100644 posix/bits/types/socklen_t.h create mode 100644 posix/bits/types/ssize_t.h create mode 100644 posix/bits/types/suseconds_t.h create mode 100644 posix/bits/types/u_int.h create mode 100644 posix/bits/types/u_intN_t.h create mode 100644 posix/bits/types/uid_t.h create mode 100644 posix/bits/types/uint.h create mode 100644 posix/bits/types/useconds_t.h rewrite posix/sys/types.h (73%) create mode 100644 socket/bits/types/struct_linger.h create mode 100644 socket/bits/types/struct_sockaddr.h create mode 100644 socket/bits/types/struct_sockaddr_storage.h rename {sysdeps/gnu => socket}/net/if.h (98%) rename {sysdeps/generic => socket}/sys/socketvar.h (100%) create mode 100644 stdlib/bits/NULL.h create mode 100644 stdlib/bits/types/__va_list.h create mode 100644 stdlib/bits/types/ptrdiff_t.h create mode 100644 stdlib/bits/types/size_t.h create mode 100644 stdlib/bits/types/va_list.h create mode 100644 stdlib/bits/types/wchar_t.h create mode 100644 stdlib/sys/ucontext.h create mode 100644 string/bits/endian.h create mode 100644 string/bits/strings_x2k8.h delete mode 100644 sysdeps/aarch64/bits/endian.h create mode 100644 sysdeps/aarch64/bits/endianness.h delete mode 100644 sysdeps/alpha/bits/endian.h create mode 100644 sysdeps/alpha/bits/endianness.h delete mode 100644 sysdeps/arm/bits/endian.h create mode 100644 sysdeps/arm/bits/endianness.h rename sysdeps/arm/{sys => bits}/ucontext.h (96%) delete mode 100644 sysdeps/csky/bits/endian.h create mode 100644 sysdeps/csky/bits/endianness.h delete mode 100644 sysdeps/generic/net/if.h delete mode 100644 sysdeps/generic/netinet/tcp.h delete mode 100644 sysdeps/hppa/bits/endian.h create mode 100644 sysdeps/hppa/bits/endianness.h rename sysdeps/i386/{sys => bits}/ucontext.h (97%) create mode 100644 sysdeps/ia64/bits/endianness.h delete mode 100644 sysdeps/m68k/bits/endian.h create mode 100644 sysdeps/m68k/bits/endianness.h rename sysdeps/m68k/{sys => bits}/ucontext.h (96%) delete mode 100644 sysdeps/microblaze/bits/endian.h create mode 100644 sysdeps/microblaze/bits/endianness.h delete mode 100644 sysdeps/mips/bits/endian.h create mode 100644 sysdeps/mips/bits/endianness.h rename sysdeps/mips/{sys => bits}/ucontext.h (97%) delete mode 100644 sysdeps/nios2/bits/endian.h create mode 100644 sysdeps/nios2/bits/endianness.h delete mode 100644 sysdeps/powerpc/bits/endian.h create mode 100644 sysdeps/powerpc/bits/endianness.h delete mode 100644 sysdeps/riscv/bits/endian.h create mode 100644 sysdeps/riscv/bits/endianness.h delete mode 100644 sysdeps/s390/bits/endian.h create mode 100644 sysdeps/s390/bits/endianness.h delete mode 100644 sysdeps/sh/bits/endian.h create mode 100644 sysdeps/sh/bits/endianness.h delete mode 100644 sysdeps/sparc/bits/endian.h create mode 100644 sysdeps/sparc/bits/endianness.h rename sysdeps/unix/sysv/linux/aarch64/{sys => bits}/ucontext.h (95%) rename sysdeps/unix/sysv/linux/alpha/{sys => bits}/ucontext.h (96%) rename sysdeps/unix/sysv/linux/arm/{sys => bits}/ucontext.h (97%) create mode 100644 sysdeps/unix/sysv/linux/bits/uapi-compat.h rename sysdeps/unix/sysv/linux/csky/{sys => bits}/ucontext.h (96%) rename sysdeps/unix/sysv/linux/hppa/{sys => bits}/ucontext.h (96%) delete mode 100644 sysdeps/unix/sysv/linux/ia64/bits/endian.h create mode 100644 sysdeps/unix/sysv/linux/ia64/bits/types/__ia64_fpreg.h rename sysdeps/unix/sysv/linux/ia64/{sys => bits}/ucontext.h (91%) rename sysdeps/unix/sysv/linux/m68k/{sys => bits}/ucontext.h (97%) rename sysdeps/unix/sysv/linux/microblaze/{sys => bits}/ucontext.h (96%) copy sysdeps/unix/sysv/linux/{generic => mips}/bits/typesizes.h (82%) rename sysdeps/unix/sysv/linux/mips/{sys => bits}/ucontext.h (97%) rename sysdeps/unix/sysv/linux/nios2/{sys => bits}/ucontext.h (95%) rename sysdeps/unix/sysv/linux/powerpc/{sys => bits}/ucontext.h (98%) rename sysdeps/unix/sysv/linux/riscv/{sys => bits}/ucontext.h (97%) rename sysdeps/unix/sysv/linux/s390/{sys => bits}/ucontext.h (96%) rename sysdeps/{gnu => unix/sysv/linux/s390}/bits/utmp.h (83%) rename sysdeps/unix/sysv/linux/sh/{sys => bits}/ucontext.h (97%) rename sysdeps/unix/sysv/linux/sparc/{sys => bits}/ucontext.h (99%) rename sysdeps/unix/sysv/linux/x86/{sys => bits}/ucontext.h (98%) delete mode 100644 sysdeps/x86/bits/endian.h create mode 100644 sysdeps/x86/bits/endianness.h