* lisp/emacs-lisp/byte-run.el (defun-declarations-alist):
[emacs.git] / lib / utimens.h
blobf765d102b77eeb69079ebb31a677d4af88963c11
1 /* Set file access and modification times.
3 Copyright 2012 Free Software Foundation, Inc.
5 This program is free software: you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 3 of the License, or any
8 later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 /* Written by Paul Eggert. */
20 #include <time.h>
21 int fdutimens (int, char const *, struct timespec const [2]);
22 int utimens (char const *, struct timespec const [2]);
23 int lutimens (char const *, struct timespec const [2]);
25 #if GNULIB_FDUTIMENSAT
26 # include <fcntl.h>
27 # include <sys/stat.h>
29 _GL_INLINE_HEADER_BEGIN
30 #ifndef _GL_UTIMENS_INLINE
31 # define _GL_UTIMENS_INLINE _GL_INLINE
32 #endif
34 int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
35 int atflag);
37 /* Using this function makes application code slightly more readable. */
38 _GL_UTIMENS_INLINE int
39 lutimensat (int dir, char const *file, struct timespec const times[2])
41 return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
44 _GL_INLINE_HEADER_END
46 #endif