Mercurial > gnulib
view modules/utimens @ 37520:b46e093d1df7
assure: new module
This works better than 'assert' when compiling with -DNDEBUG,
as it avoids some compiler diagnostics in that case.
Reported by Norihiro Tanaka in:
http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
* MODULES.html.sh (func_all_modules): Add 'assure'.
* lib/assure.h, modules/assure: New files.
* lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
* lib/poll.c, lib/savewd.c, lib/utimens.c, lib/xstrtol.c:
Prefer 'assure' to 'assert'.
* modules/chdir-long, modules/cycle-check, modules/fchdir:
* modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
Depend on 'assure'.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 20 Dec 2014 13:00:21 -0800 |
parents | 7adb4c303104 |
children | 5f3fec5cdd17 |
line wrap: on
line source
Description: Set file access and modification times. Files: lib/utimens.c lib/utimens.h m4/utimbuf.m4 m4/utimens.m4 m4/utimes.m4 Depends-on: assure errno extern-inline fcntl-h fstat lstat gettime stat-time stdbool sys_stat sys_time time configure.ac: gl_UTIMENS Makefile.am: lib_SOURCES += utimens.c Include: "utimens.h" Link: $(LIB_CLOCK_GETTIME) License: GPL Maintainer: Paul Eggert, Jim Meyering, Eric Blake