feature_tests.h: always use largefile interfaces
commit4ccee8f7628b27136616cb54f50061d40a1205b8
authorLauri Tirkkonen <lotheac@iki.fi>
Fri, 4 Jan 2019 09:07:42 +0000 (4 11:07 +0200)
committerLauri Tirkkonen <lotheac@iki.fi>
Fri, 4 Jan 2019 22:45:43 +0000 (5 00:45 +0200)
treed138acbad47b2cd3a3dd4ef2f406d9cc4f855825
parent65ab09e2d21603475459c17fde46bce68fbaa183
feature_tests.h: always use largefile interfaces

this is transitional; we'll remove the non-64bit interfaces after
bootstrapping everything to use largefile.

remove the #error from libelf.h; the notes in libelf/README.LFS claim
that new interfaces using off64_t would have to be written to make
libelf large-file aware, but that's not true if off_t is always 64 bits
(which it is after the feature_tests.h change). do similarly for
old_procfs.h, swap.h, and ustat.h.

in 32-bit libc/libgen/madv, stop building the 32-bit interfaces. the
header pragmas should ensure everything ends up using the *64 symbols.
the resulting 32-bit libc will *only* have symbol names ending in "64",
and the 64-bit one has normal names. in rtld, apply a temporary
workaround that copes with the modified symbol names.

to bootstrap, first install the new headers onto your current system and
rebuild & install all of userland to make everything 32-bit there use
the *64 symbols. then build base.
44 files changed:
arch/x86/include/sys/old_procfs.h
include/libelf.h
include/sys/feature_tests.h
include/sys/swap.h
include/sys/ustat.h
usr/src/cmd/sgs/rtld/common/_rtld.h
usr/src/cmd/sgs/rtld/common/external.c
usr/src/cmd/sgs/rtld/common/util.c
usr/src/cmd/truss/expound.c
usr/src/lib/libc/Makefile.targ
usr/src/lib/libc/common/sys/fstatvfs.s
usr/src/lib/libc/common/sys/getdents.s
usr/src/lib/libc/common/sys/getrlimit.s
usr/src/lib/libc/common/sys/lseek.s
usr/src/lib/libc/common/sys/mmap.s
usr/src/lib/libc/common/sys/pread.s
usr/src/lib/libc/common/sys/preadv.s
usr/src/lib/libc/common/sys/pwrite.s
usr/src/lib/libc/common/sys/pwritev.s
usr/src/lib/libc/common/sys/setrlimit.s
usr/src/lib/libc/common/sys/statvfs.s
usr/src/lib/libc/i386/Makefile.com
usr/src/lib/libc/i386/sys/ptrace.c
usr/src/lib/libc/inc/asyncio.h
usr/src/lib/libc/port/aio/aio.c
usr/src/lib/libc/port/aio/posix_aio.c
usr/src/lib/libc/port/gen/attropen.c
usr/src/lib/libc/port/gen/posix_fadvise.c
usr/src/lib/libc/port/gen/posix_fallocate.c
usr/src/lib/libc/port/gen/readdir.c
usr/src/lib/libc/port/gen/readdir_r.c
usr/src/lib/libc/port/gen/scandir.c
usr/src/lib/libc/port/gen/walkstack.c
usr/src/lib/libc/port/mapfile-vers
usr/src/lib/libc/port/stdio/fseeko.c
usr/src/lib/libc/port/stdio/ftello.c
usr/src/lib/libc/port/stdio/tmpfile.c
usr/src/lib/libc/port/threads/scalls.c
usr/src/lib/libc/port/threads/thr.c
usr/src/lib/libgen/common/copylist.c
usr/src/lib/libgen/common/mapfile-vers
usr/src/lib/libproc/common/pr_fcntl.c
usr/src/lib/madv/common/madv.c
usr/src/test/os-tests/tests/file-locking/util.c