Mercurial > gnulib
view modules/alloca-opt @ 10186:bef6a09c05f1
utimens.c: correct kernel bug work-around
Ondřej Vašík found that the invalid return value of 280 indicates
failure, not success, and the kernel bug we're trying to work
around affects not just the utimensat call, but also the fallback
futimens call.
* lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
not success.
[HAVE_FUTIMENS]: Use the same work-around, here.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Fri, 06 Jun 2008 18:20:14 +0200 |
parents | a7e785cafb33 |
children | 76dbe14046dc |
line wrap: on
line source
Description: Memory allocation on the stack, as an optional optimization. It allows using the alloca() macro if and only if the autoconf tests define HAVE_ALLOCA. Files: lib/alloca.in.h m4/alloca.m4 Depends-on: configure.ac: gl_FUNC_ALLOCA Makefile.am: BUILT_SOURCES += $(ALLOCA_H) # We need the following in order to create <alloca.h> when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += alloca.h alloca.h-t Include: #include <alloca.h> License: LGPLv2+ Maintainer: bug-gnulib@gnu.org