Searched refs:utimensat (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-current/contrib/pjdfstest/tests/utimensat/
H A D07.t5 desc="utimensat will work if the caller is the owner or root"
10 require "utimensat"
29 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT $DATE2 0 0
30 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 0 UTIME_OMIT 0
31 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
35 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT $DATE2 0 0
36 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 0 UTIME_OMIT 0
37 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
42 expect 0 -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0
45 expect 0 -u $UID_ROOT open . O_RDONLY : utimensat
[all...]
H A D06.t5 desc="utimensat with UTIME_NOW will work if the caller has write permission"
10 require "utimensat"
27 expect EACCES -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
32 expect 0 -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
35 expect 0 -u $UID_ROOT open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT 0 UTIME_OMIT 0
40 expect 0 -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
H A D04.t5 desc="utimensat can set mtime < atime or vice versa"
10 require "utimensat"
25 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
29 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE2 0 $DATE1 0 0
H A D09.t5 desc="utimensat is y2038 compliant"
10 require "utimensat"
14 require utimensat
27 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
H A D05.t5 desc="utimensat can follow symlinks"
10 require "utimensat"
31 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
33 expect 0 open . O_RDONLY : utimensat 0 ${n2} $DATE3 0 $DATE4 0 AT_SYMLINK_NOFOLLOW
39 expect 0 open . O_RDONLY : utimensat 0 ${n2} $DATE5 0 $DATE6 0 0
H A D02.t5 desc="utimensat with UTIME_OMIT will leave the time unchanged"
10 require "utimensat"
25 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 0 UTIME_OMIT 0
29 expect 0 open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT $DATE2 0 0
H A D03.t5 desc="utimensat can update birthtimes"
10 require "utimensat"
26 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE1 0 0
31 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE2 0 $DATE2 0 0
H A D00.t5 desc="utimensat changes timestamps on any type of file"
10 require "utimensat"
25 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
H A D08.t5 desc="utimensat can set timestamps with subsecond precision"
10 require "utimensat"
28 expect 0 open . O_RDONLY : utimensat 0 ${n0} $DATE1 $DATE1_NS $DATE2 $DATE2_NS 0
H A D01.t5 desc="utimensat with UTIME_NOW will set the will set typestamps to now"
10 require "utimensat"
28 expect 0 open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
/freebsd-current/tools/build/
H A Dstat.h40 int utimensat(int, const char *, const struct timespec *, int);
H A Dutimensat.c40 utimensat(int fd, const char *path, const struct timespec times[2], int flag) function
/freebsd-current/tools/build/cross-build/include/mac/sys/
H A Dstat.h40 utimensat(int fd, const char *file, const struct timespec *ts, int flag)
/freebsd-current/crypto/openssh/openbsd-compat/regress/
H A Dutimensattest.c29 #define TMPFILE "utimensat.tmp"
30 #define TMPFILE2 "utimensat.tmp2"
36 int utimensat(int, const char *, const struct timespec[2], int);
51 fprintf(stderr, "utimensat: %s: %s\n", msg,
54 fprintf(stderr, "utimensat: %s: expected %ld got %ld\n",
76 if (utimensat(AT_FDCWD, TMPFILE, ts, AT_SYMLINK_NOFOLLOW) == -1)
77 fail("utimensat", 0, 0);
110 (void)utimensat(AT_FDCWD, TMPFILE, ts, AT_SYMLINK_NOFOLLOW);
114 fail("utimensat symlink st_atime", 0, 0 );
116 fail("utimensat symlin
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libc/c063/
H A Dt_utimensat.c47 #define FILE "dir/utimensat"
48 #define BASEFILE "utimensat"
61 atf_tc_set_md_var(tc, "descr", "See that utimensat works with fd");
74 ATF_REQUIRE(utimensat(dfd, BASEFILE, tptr, 0) == 0);
88 "See that utimensat works with fd as AT_FDCWD");
100 ATF_REQUIRE(utimensat(AT_FDCWD, BASEFILE, tptr, 0) == 0);
113 "See that utimensat fails with fd as AT_FDCWD and bad path");
118 ATF_REQUIRE(utimensat(AT_FDCWD, FILEERR, tptr, 0) == -1);
124 atf_tc_set_md_var(tc, "descr", "See that utimensat fail with bad path");
132 ATF_REQUIRE(utimensat(df
[all...]
/freebsd-current/tests/sys/pjdfstest/tests/
H A DMakefile37 TESTS_SUBDIRS+= utimensat
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dbsd-misc.h102 int utimensat(int, const char *, const struct timespec[2], int);
H A Dbsd-misc.c123 * A limited implementation of utimensat() that only implements the
128 utimensat(int fd, const char *path, const struct timespec times[2], function
/freebsd-current/contrib/pjdfstest/tests/
H A Dmisc.sh204 utimensat)
/freebsd-current/sbin/restore/
H A Dtape.c627 (void) utimensat(AT_FDCWD, name, ctimep,
629 (void) utimensat(AT_FDCWD, name, mtimep,
659 (void) utimensat(AT_FDCWD, name, ctimep, 0);
660 (void) utimensat(AT_FDCWD, name, mtimep, 0);
689 (void) utimensat(AT_FDCWD, name, ctimep, 0);
690 (void) utimensat(AT_FDCWD, name, mtimep, 0);
H A Ddirs.c654 utimensat(AT_FDCWD, cp, node.ctimep, 0);
655 utimensat(AT_FDCWD, cp, node.mtimep, 0);
/freebsd-current/sys/sys/
H A Dsyscall.mk392 utimensat.o \
H A Dstat.h375 int utimensat(int fd, const char *path, const struct timespec times[2],
/freebsd-current/usr.bin/touch/
H A Dtouch.c202 if (!utimensat(AT_FDCWD, *argv, ts, atflag))
/freebsd-current/lib/libsys/
H A DMakefile.sys367 utimensat.2 \
533 MLINKS+=utimensat.2 futimens.2

Completed in 382 milliseconds

12