aboutsummaryrefslogtreecommitdiff
path: root/io
AgeCommit message (Collapse)Author
2014-02-13Clean up trivially redundant __USE_MISC conditionals.Joseph Myers
This patch cleans up cases of __USE_MISC that are trivially redundant after the recent substitution of __USE_MISC for __USE_BSD and __USE_SVID: either in constructs such as "defined __USE_MISC || defined __USE_MISC", or else (in the bits/mman.h case) a conditional on __USE_MISC nested inside another __USE_MISC conditional. (The cleanups remaining after this patch are still quite large, but it seems a reasonable piece to separate out.) Tested x86_64. * bits/mman.h [__USE_MISC]: Remove redundant conditionals. * ctype/ctype.h [__USE_MISC]: Likewise. * dirent/dirent.h [__USE_MISC]: Likewise. * grp/grp.h [__USE_MISC]: Likewise. * io/fcntl.h [__USE_MISC]: Likewise. * io/sys/stat.h [__USE_MISC]: Likewise. * libio/stdio.h [__USE_MISC]: Likewise. * posix/unistd.h [__USE_MISC]: Likewise. * pwd/pwd.h [__USE_MISC]: Likewise. * stdlib.h [__USE_MISC]: Likewise. * string/bits/string2.h [__USE_MISC]: Likewise. * string/string.h [__USE_MISC]: Likewise. * time/time.h [__USE_MISC]: Likewise.
2014-02-12Combine __USE_BSD and __USE_SVID into __USE_MISC.Joseph Myers
This patch cleans up following the obsoletion of _BSD_SOURCE and _SVID_SOURCE by combining __USE_BSD and __USE_SVID into __USE_MISC. The only non-mechanical part of this patch is the changes to features.h; everything else is simple substitution of __USE_MISC for the old macros. Thus, this patch leaves obviously redundant conditionals such as "defined __USE_MISC || defined __USE_MISC", and does not update #endif comments where they referred to BSD or SVID in words instead of the literal macro name. This is intended to facilitate patch review by separating the less mechanical changes from these purely mechanical changes into a separate patch. (I do intend to integrate all the changes from <https://sourceware.org/ml/libc-alpha/2013-12/msg00226.html>, which I believe includes all the trailing comment updates, in subsequent patches.) Tested x86_64. * include/features.h (__USE_BSD): Remove macro definitions. (__USE_SVID): Likewise. (_BSD_SOURCE): Likewise. (_SVID_SOURCE): Likewise. [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition from definition of _DEFAULT_SOURCE. [_BSD_SOURCE || _SVID_SOURCE]: Change condition to [_DEFAULT_SOURCE]. * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC]. * bits/mman.h [__USE_BSD]: Likewise. * bits/termios.h [__USE_BSD]: Likewise. * bits/waitstatus.h [__USE_BSD]: Likewise. * ctype/ctype.h [__USE_SVID]: Likewise. * dirent/dirent.h [__USE_BSD]: Likewise. * grp/grp.h [__USE_SVID]: Likewise. [__USE_BSD]: Likewise. * inet/netinet/igmp.h [__USE_BSD]: Likewise. * io/fcntl.h [__USE_BSD]: Likewise. * io/ftw.h [__USE_BSD]: Likewise. * io/sys/stat.h [__USE_BSD]: Likewise. * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise. * libio/bits/stdio2.h [__USE_BSD]: Likewise. * libio/stdio.h [__USE_SVID]: Likewise. [__USE_BSD]: Likewise. * math/math.h [__USE_SVID]: Likewise. [__USE_BSD]: Likewise. * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise. * misc/bits/syslog.h [__USE_BSD]: Likewise. * misc/search.h [__USE_SVID]: Likewise. * misc/sys/mman.h [__USE_BSD]: Likewise. * misc/sys/syslog.h [__USE_BSD]: Likewise. * misc/sys/uio.h [__USE_BSD]: Likewise. * posix/bits/unistd.h [__USE_BSD]: Likewise. * posix/glob.h [__USE_BSD]: Likewise. * posix/regex.h [__USE_BSD]: Likewise. * posix/sys/types.h [__USE_BSD]: Likewise. [__USE_SVID]: Likewise. * posix/sys/utsname.h [__USE_SVID]: Likewise. * posix/sys/wait.h [__USE_BSD]: Likewise. [__USE_SVID]: Likewise. * posix/unistd.h [__USE_BSD]: Likewise. [__USE_SVID]: Likewise. * pwd/pwd.h [__USE_SVID]: Likewise. * resolv/netdb.h [__USE_BSD]: Likewise. * setjmp/setjmp.h [__USE_BSD]: Likewise. * signal/signal.h [__USE_BSD]: Likewise. [__USE_SVID]: Likewise. * socket/sys/socket.h [__USE_BSD]: Likewise. * stdlib/fmtmsg.h [__USE_SVID]: Likewise. * stdlib/stdlib.h [__USE_BSD]: Likewise. [__USE_SVID]: Likewise. * string/bits/string2.h [__USE_BSD]: Likewise. [__USE_SVID]: Likewise. * string/bits/string3.h [__USE_BSD]: Likewise. * string/endian.h [__USE_BSD]: Likewise. * string/string.h [__USE_SVID]: Likewise. [__USE_BSD]: Likewise. * string/strings.h [__USE_BSD]: Likewise. * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise. * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise. * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise. * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]: Likewise. * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise. * sysvipc/sys/ipc.h [__USE_SVID]: Likewise. * termios/termios.h [__USE_BSD]: Likewise. * time/sys/time.h [__USE_BSD]: Likewise. * time/time.h [__USE_BSD]: Likewise. [__USE_SVID]: Likewise. * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_BSD]: Change condition to [__USE_MISC].
2014-02-12Stop io/ftwtest deleting its own output.Joseph Myers
If you rerun "make check" in a tree where some tests have already been run, it will rerun io/ftwtest-sh because that test uses ftwtest.out, the same name to which output is redirected, as its internal temporary file, and then removes it on exit. Clearly tests should not be removing the files to which their output is redirected like that. This patch changes the script to use a different file as its internal temporary file, so the actual output referenced in the makefile isn't removed. Tested x86_64. * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae
2013-08-26Make stub lxstat64 call xstat64, like stub lxstat calls xstat.Roland McGrath
2013-08-21Fix typos.Ondřej Bílka
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers
2013-05-06Fix poll stub implementation.Roland McGrath
2013-05-03Consolidate definitions of _FORTIFY_SOURCE wrappers for open{,64}{,at}.Roland McGrath
2013-04-29Make stub fchdir.c define __fchdir.Roland McGrath
2013-03-06T_REMOVEDIR and AT_EACCESS have the same value.Patsy Franklin
Add comments to fcntl.h explaining why AT_REMOVEDIR and AT_EACCESS can have the same value.
2013-02-05Fix aliases in stub lseek.Roland McGrath
2013-01-11Add --enable-hardcoded-path-in-tests configure optionH.J. Lu
2013-01-08Don't check __GNUC__ together with __USE_EXTERN_INLINES.Joseph Myers
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers
2012-11-14Adding missing -fexception CFLAGSMarcus Shawcroft
2012-11-04[BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge
2012-10-24Use build directory instead of `pwd` in ftwtest-sh.Joseph Myers
2012-10-24Always define off_t, mode_t, pid_tAndreas Jaeger
* io/fcntl.h: Always define mode_t, off_t, pid_t and use these types for creat, creat64, lockf, posix_fadvise, posix_fallocate. [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t. [__USE_LARGEFILE64]: Use off64_t in declaration of lock64, posix_fadvise64, posix_fallocate64.
2012-10-24Define and use $(run-built-tests).Joseph Myers
2012-10-20Alsways include <bits/types.h> in <fcntl.h>.Roland McGrath
Move include of <bits/types.h> to the top and include it unconditionally.
2012-10-19Use $(built-program-cmd) in io/ftwtest-sh.Joseph Myers
2012-10-19Use working directory, not /tmp, in io/ftwtest-sh.Joseph Myers
2012-10-01Define __have_atfcts global in stub openat implementation.Roland McGrath
2012-09-28Fix stub open.c to define __libc_open.Roland McGrath
2012-09-28tst-mknodat: create a FIFO instead of a socketPino Toscano
A FIFO is the only special file which is guaranteed to be created with mknod/mknodat.
2012-09-25Set "fail on error" mode directly in testsuite shell scriptsDmitry V. Levin
2012-09-25Add copyright notices to testsuite shell scriptsDmitry V. Levin
2012-08-15Move stub lseek.c to the right directory.Roland McGrath
2012-08-06Clean up lockf64, fseeko64, ftello64, fgetpos64, fsetpos64 for off64_t == off_t.Roland McGrath
2012-07-30Fix lots of bitrot for stub configurations.Roland McGrath
2012-05-12Avoid dup3 PLT usage.Thomas Schwinge
Fixes fallout from 5aa3a74a59916b489e9cf7c4dce9eb149e106c6c.
2012-05-10Hurd: Define some posix typesSamuel Thibault
2012-04-29Fix attributes for fortify functions.Marek Polacek
2012-03-07Remove distribute variable from MakefilesUlrich Drepper
2012-02-26Add first fixes for conformtest for POSIX2008Ulrich Drepper
2012-02-26Fix up POSIX testing in conformtestUlrich Drepper
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert
2012-01-08bits/poll2.h needs __BEGIN/__END_DECLSUlrich Drepper
2012-01-08Install bits/poll2.hUlrich Drepper
2012-01-08Add checking versions of poll and ppollUlrich Drepper
2012-01-07Remove pre-ISO C supportUlrich Drepper
No more __const.
2011-06-10Quash some new warnings from GCC 4.6.Roland McGrath
2011-05-15Fix a few problems in fopen and freopenUlrich Drepper
fopen should set the FD_CLOEXEC flag if requested evenif the kernel does not support an aotmic operation. freopen should reuse the file descriptor for the stream. This is especially important for calls to change the standard streams (stin, stdout, stderr).
2011-04-22Remove doubled words.Jim Meyering
2011-04-01Really implement fallocate{,64} and sync_file_range as cancellation points.Ulrich Drepper
2011-04-01Fix typos in comments.Ulrich Drepper
2011-04-01Define AT_EMPTY_PATH.Ulrich Drepper
2011-01-17Define AT_NO_AUTOMOUNT.Ulrich Drepper
2010-04-04Fix definition and testing of S_ISSOCK.Ulrich Drepper