glibc/sysdeps/unix/sysv/linux/sys
Joseph Myers 663e7d7849 Only define loff_t for __USE_MISC (bug 14553).
Bug 14553 reports that sys/types.h defines loff_t unconditionally,
despite it not being part of any supported standard.  This is
permitted by the POSIX *_t reservation, but as a
quality-of-implementation issue it's still best not to define it
except for __USE_MISC.  This patch conditions the definition
accordingly, updating a macro in sysdeps/unix/sysv/linux/sys/quota.h
to use __loff_t so it still works even if __USE_MISC is not defined.

codesearch.debian.net suggests there are quite a lot of loff_t uses
outside glibc, but it might well make sense to change all (few) uses
of loff_t or __loff_t inside glibc to use off64_t or __off64_t
instead, leaving only the definitions, treating this name as
obsolescent.

Tested for x86_64.

	[BZ #14553]
	* posix/sys/types.h (loff_t): Only define for [__USE_MISC].
	* sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
	instead of loff_t.
2018-02-06 21:29:50 +00:00
..
acct.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
epoll.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
eventfd.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fanotify.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fsuid.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
inotify.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
kd.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
klog.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mount.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
pci.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
personality.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
prctl.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
procfs.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ptrace.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
quota.h Only define loff_t for __USE_MISC (bug 14553). 2018-02-06 21:29:50 +00:00
raw.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
reboot.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
signalfd.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
soundcard.h
swap.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
syscall.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sysctl.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sysinfo.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
timerfd.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
timex.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ttydefaults.h
user.h
vt.h