/freebsd-current/contrib/pjdfstest/tests/utimensat/ |
H A D | 07.t | 5 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 D | 06.t | 5 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 D | 04.t | 5 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 D | 09.t | 5 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 D | 05.t | 5 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 D | 02.t | 5 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 D | 03.t | 5 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 D | 00.t | 5 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 D | 08.t | 5 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 D | 01.t | 5 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 D | stat.h | 40 int utimensat(int, const char *, const struct timespec *, int);
|
H A D | utimensat.c | 40 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 D | stat.h | 40 utimensat(int fd, const char *file, const struct timespec *ts, int flag)
|
/freebsd-current/crypto/openssh/openbsd-compat/regress/ |
H A D | utimensattest.c | 29 #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 D | t_utimensat.c | 47 #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 D | Makefile | 37 TESTS_SUBDIRS+= utimensat
|
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | bsd-misc.h | 102 int utimensat(int, const char *, const struct timespec[2], int);
|
H A D | bsd-misc.c | 123 * 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 D | misc.sh | 204 utimensat)
|
/freebsd-current/sbin/restore/ |
H A D | tape.c | 627 (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 D | dirs.c | 654 utimensat(AT_FDCWD, cp, node.ctimep, 0); 655 utimensat(AT_FDCWD, cp, node.mtimep, 0);
|
/freebsd-current/sys/sys/ |
H A D | syscall.mk | 392 utimensat.o \
|
H A D | stat.h | 375 int utimensat(int fd, const char *path, const struct timespec times[2],
|
/freebsd-current/usr.bin/touch/ |
H A D | touch.c | 202 if (!utimensat(AT_FDCWD, *argv, ts, atflag))
|
/freebsd-current/lib/libsys/ |
H A D | Makefile.sys | 367 utimensat.2 \ 533 MLINKS+=utimensat.2 futimens.2
|