mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-19 01:10:57 -08:00
nt/inc/sys/time.h (struct timespec): Define. lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/dtotimespec.$(O), $(BLD)/gettime.$(O), $(BLD)/timespec-add.$(O), and $(BLD)/timespec-sub.$(O). ($(BLD)/dtotimespec.$(O)): ($(BLD)/gettime.$(O)): ($(BLD)/timespec-add.$(O)): ($(BLD)/timespec-sub.$(O)): New dependencies. lib/stat-time.h: lib/timespec.h: lib/utimens.h: Include sys/time.h src/w32.c (fdutimens): New function. src/w32proc.c (sys_select): Adapt to change in the EMACS_TIME type. src/s/ms-w32.h (pselect): Redirect to sys_select. src/sysselect.h [WINDOWSNT]: Don't include sys/select.h. Fixes: debbugs:9000
20 lines
625 B
C
20 lines
625 B
C
#include <time.h>
|
|
#include <sys/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
|