aboutsummaryrefslogtreecommitdiff
path: root/io
AgeCommit message (Collapse)AuthorFilesLines
2014-02-13Clean up trivially redundant __USE_MISC conditionals.Joseph Myers2-7/+7
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 Myers3-16/+16
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 Myers1-1/+1
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 McRae121-121/+121
2013-08-26Make stub lxstat64 call xstat64, like stub lxstat calls xstat.Roland McGrath1-10/+3
2013-08-21Fix typos.Ondřej Bílka1-1/+1
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers1-27/+27
2013-05-06Fix poll stub implementation.Roland McGrath1-5/+5
2013-05-03Consolidate definitions of _FORTIFY_SOURCE wrappers for open{,64}{,at}.Roland McGrath9-49/+126
2013-04-29Make stub fchdir.c define __fchdir.Roland McGrath1-2/+2
2013-03-06T_REMOVEDIR and AT_EACCESS have the same value.Patsy Franklin1-0/+6
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 McGrath1-3/+4
2013-01-11Add --enable-hardcoded-path-in-tests configure optionH.J. Lu1-1/+1
2013-01-08Don't check __GNUC__ together with __USE_EXTERN_INLINES.Joseph Myers1-1/+1
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers117-120/+117
2012-11-14Adding missing -fexception CFLAGSMarcus Shawcroft1-0/+2
2012-11-04[BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge74-90/+0
2012-10-24Use build directory instead of `pwd` in ftwtest-sh.Joseph Myers1-1/+1
2012-10-24Always define off_t, mode_t, pid_tAndreas Jaeger1-24/+28
* 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 Myers1-1/+1
2012-10-20Alsways include <bits/types.h> in <fcntl.h>.Roland McGrath1-1/+3
Move include of <bits/types.h> to the top and include it unconditionally.
2012-10-19Use $(built-program-cmd) in io/ftwtest-sh.Joseph Myers2-16/+13
2012-10-19Use working directory, not /tmp, in io/ftwtest-sh.Joseph Myers1-2/+2
2012-10-01Define __have_atfcts global in stub openat implementation.Roland McGrath1-1/+8
2012-09-28Fix stub open.c to define __libc_open.Roland McGrath1-5/+8
2012-09-28tst-mknodat: create a FIFO instead of a socketPino Toscano1-14/+14
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. Levin2-3/+5
2012-09-25Add copyright notices to testsuite shell scriptsDmitry V. Levin1-0/+17
2012-08-15Move stub lseek.c to the right directory.Roland McGrath1-0/+52
2012-08-06Clean up lockf64, fseeko64, ftello64, fgetpos64, fsetpos64 for off64_t == off_t.Roland McGrath2-3/+20
2012-07-30Fix lots of bitrot for stub configurations.Roland McGrath3-10/+9
2012-05-12Avoid dup3 PLT usage.Thomas Schwinge1-2/+3
Fixes fallout from 5aa3a74a59916b489e9cf7c4dce9eb149e106c6c.
2012-05-10Hurd: Define some posix typesSamuel Thibault1-2/+24
2012-04-29Fix attributes for fortify functions.Marek Polacek4-8/+8
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-2/+0
2012-02-26Add first fixes for conformtest for POSIX2008Ulrich Drepper1-2/+4
2012-02-26Fix up POSIX testing in conformtestUlrich Drepper1-1/+1
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert115-345/+230
2012-01-08bits/poll2.h needs __BEGIN/__END_DECLSUlrich Drepper1-0/+4
2012-01-08Install bits/poll2.hUlrich Drepper1-2/+2
2012-01-08Add checking versions of poll and ppollUlrich Drepper3-1/+86
2012-01-07Remove pre-ISO C supportUlrich Drepper8-97/+97
No more __const.
2011-06-10Quash some new warnings from GCC 4.6.Roland McGrath1-5/+2
2011-05-15Fix a few problems in fopen and freopenUlrich Drepper1-1/+2
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 Meyering1-2/+2
2011-04-01Really implement fallocate{,64} and sync_file_range as cancellation points.Ulrich Drepper1-1/+4
2011-04-01Fix typos in comments.Ulrich Drepper1-1/+1
2011-04-01Define AT_EMPTY_PATH.Ulrich Drepper1-0/+1
2011-01-17Define AT_NO_AUTOMOUNT.Ulrich Drepper1-1/+3
2010-04-04Fix definition and testing of S_ISSOCK.Ulrich Drepper1-2/+4