Blame gnu/utimens.h

Packit 1ef1a9
/* Set file access and modification times.
Packit 1ef1a9
Packit 1ef1a9
   Copyright 2012-2015 Free Software Foundation, Inc.
Packit 1ef1a9
Packit 1ef1a9
   This program is free software: you can redistribute it and/or modify it
Packit 1ef1a9
   under the terms of the GNU General Public License as published by the
Packit 1ef1a9
   Free Software Foundation; either version 3 of the License, or any
Packit 1ef1a9
   later version.
Packit 1ef1a9
Packit 1ef1a9
   This program is distributed in the hope that it will be useful,
Packit 1ef1a9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 1ef1a9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 1ef1a9
   GNU General Public License for more details.
Packit 1ef1a9
Packit 1ef1a9
   You should have received a copy of the GNU General Public License
Packit 1ef1a9
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit 1ef1a9
Packit 1ef1a9
/* Written by Paul Eggert.  */
Packit 1ef1a9
Packit 1ef1a9
#include <time.h>
Packit 1ef1a9
int fdutimens (int, char const *, struct timespec const [2]);
Packit 1ef1a9
int utimens (char const *, struct timespec const [2]);
Packit 1ef1a9
int lutimens (char const *, struct timespec const [2]);
Packit 1ef1a9
Packit 1ef1a9
#if GNULIB_FDUTIMENSAT
Packit 1ef1a9
# include <fcntl.h>
Packit 1ef1a9
# include <sys/stat.h>
Packit 1ef1a9
Packit 1ef1a9
#ifndef _GL_INLINE_HEADER_BEGIN
Packit 1ef1a9
 #error "Please include config.h first."
Packit 1ef1a9
#endif
Packit 1ef1a9
_GL_INLINE_HEADER_BEGIN
Packit 1ef1a9
#ifndef _GL_UTIMENS_INLINE
Packit 1ef1a9
# define _GL_UTIMENS_INLINE _GL_INLINE
Packit 1ef1a9
#endif
Packit 1ef1a9
Packit 1ef1a9
int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
Packit 1ef1a9
                 int atflag);
Packit 1ef1a9
Packit 1ef1a9
/* Using this function makes application code slightly more readable.  */
Packit 1ef1a9
_GL_UTIMENS_INLINE int
Packit 1ef1a9
lutimensat (int dir, char const *file, struct timespec const times[2])
Packit 1ef1a9
{
Packit 1ef1a9
  return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
Packit 1ef1a9
}
Packit 1ef1a9
Packit 1ef1a9
_GL_INLINE_HEADER_END
Packit 1ef1a9
Packit 1ef1a9
#endif