view lib/utimens.h @ 13706:b236a91e37b9

pthread: add pthread_spin_destroy * lib/pthread.in.h (pthread_spin_destroy): New function.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 20 Sep 2010 16:14:49 -0700
parents bfe487360d66
children ca6d65189199
line wrap: on
line source

#include <time.h>
int fdutimens (int, char const *, struct timespec const [2]);
int utimens (char const *, struct timespec const [2]);
int lutimens (char const *, struct timespec const [2]);

#if GNULIB_FDUTIMENSAT
# include <fcntl.h>
# include <sys/stat.h>

int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
                 int atflag);

/* Using this function makes application code slightly more readable.  */
static inline int
lutimensat (int dir, char const *file, struct timespec const times[2])
{
  return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
}
#endif