/freebsd-12-stable/contrib/pjdfstest/tests/ftruncate/ |
H A D | 05.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/05.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns EACCES when search permission is denied for a component of the path prefix" 22 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 123 25 expect EACCES -u 65534 -g 65534 truncate ${n1}/${n2} 1234 28 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 1234
|
H A D | 10.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/10.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns EROFS if the named file resides on a read-only file system" 22 expect 0 truncate ${n0}/${n1} 123 25 expect EROFS truncate ${n0}/${n1} 1234 28 expect 0 truncate ${n0}/${n1} 1234
|
H A D | 01.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/01.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns ENOTDIR if a component of the path prefix is not a directory" 17 expect ENOTDIR truncate ${n0}/${n1}/test 123
|
H A D | 12.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/12.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns EFBIG or EINVAL if the length argument was greater than the maximum file size" 15 r=`${fstest} truncate ${n0} 999999999999999 2>/dev/null`
|
/freebsd-12-stable/contrib/pjdfstest/tests/truncate/ |
H A D | 05.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/05.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns EACCES when search permission is denied for a component of the path prefix" 22 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 123 25 expect EACCES -u 65534 -g 65534 truncate ${n1}/${n2} 1234 28 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 1234
|
H A D | 10.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/10.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns EROFS if the named file resides on a read-only file system" 22 expect 0 truncate ${n0}/${n1} 123 25 expect EROFS truncate ${n0}/${n1} 1234 28 expect 0 truncate ${n0}/${n1} 1234
|
H A D | 01.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/01.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns ENOTDIR if a component of the path prefix is not a directory" 17 expect ENOTDIR truncate ${n0}/${n1}/test 123
|
H A D | 11.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/11.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns ETXTBSY the file is a pure procedure (shared text) file that is being executed" 24 expect ETXTBSY truncate ${n0} 123
|
H A D | 12.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/truncate/12.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="truncate returns EFBIG or EINVAL if the length argument was greater than the maximum file size" 15 r=`${fstest} truncate ${n0} 999999999999999 2>/dev/null`
|
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_truncate.c | 44 static const char path[] = "truncate"; 72 atf_tc_fail("ftruncate(2) did not truncate"); 110 atf_tc_set_md_var(tc, "descr", "A basic test of truncate(2)"); 126 ATF_REQUIRE(truncate(path, sizes[i]) == 0); 132 atf_tc_fail("truncate(2) did not truncate"); 147 atf_tc_set_md_var(tc, "descr", "Test errors from truncate(2)"); 156 ATF_REQUIRE_ERRNO(EFAULT, truncate((void *)-1, 999) == -1); 159 ATF_REQUIRE_ERRNO(EISDIR, truncate("/etc", 999) == -1); 162 ATF_REQUIRE_ERRNO(ENOENT, truncate("/ [all...] |
/freebsd-12-stable/tests/sys/audit/ |
H A D | file-write.c | 47 "truncate(2) call"); 52 /* File needs to exist to call truncate(2) */ 55 ATF_REQUIRE_EQ(0, truncate(path, offlen)); 70 "truncate(2) call"); 77 ATF_REQUIRE_EQ(-1, truncate(errpath, offlen));
|
/freebsd-12-stable/contrib/processor-trace/libipt/src/ |
H A D | pt_sync.c | 47 static const uint8_t *truncate(const uint8_t *pointer, size_t alignment) function 59 return truncate(pointer + alignment - 1, alignment); 217 pos = truncate(pos, sizeof(*psb_pattern));
|
/freebsd-12-stable/tests/sys/geom/class/mirror/ |
H A D | sync_error.sh | 23 atf_check truncate -s 32M $f2 65 atf_check truncate -s 32M $f2 66 atf_check truncate -s 32M $f3
|
/freebsd-12-stable/usr.bin/head/tests/ |
H A D | head_test.sh | 77 truncate -s +1K outfile 87 truncate -s +1K infile
|
/freebsd-12-stable/contrib/ntp/sntp/tests/ |
H A D | fileHandlingTest.c | 95 if (!truncate(filename, 0))
|
/freebsd-12-stable/tests/sys/pjdfstest/tests/ |
H A D | Makefile | 36 TESTS_SUBDIRS+= truncate
|
/freebsd-12-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-misc.h | 68 int truncate (const char *, off_t);
|
/freebsd-12-stable/usr.sbin/chown/tests/ |
H A D | chown_test.sh | 106 atf_check truncate -s 0 foo bar 136 atf_check truncate -s 0 foo 156 atf_check truncate -s 0 foo bar 185 atf_check truncate -s 0 foo bar mnt/bazbaz
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/ |
H A D | Makefile | 64 TESTS_SUBDIRS+= truncate
|
/freebsd-12-stable/tests/sys/geom/class/eli/ |
H A D | conf.sh | 32 truncate -s $bytes backing_file
|
/freebsd-12-stable/contrib/gdb/gdb/ |
H A D | scm-valprint.c | 227 int truncate = print_max && len > (int) print_max; local 228 if (truncate) 246 fputs_filtered (truncate ? "...\"" : "\"", stream);
|
/freebsd-12-stable/bin/chmod/tests/ |
H A D | chmod_test.sh | 102 atf_check truncate -s 0 foo bar 131 atf_check truncate -s 0 foo 152 atf_check truncate -s 0 foo bar
|
/freebsd-12-stable/usr.sbin/fstyp/tests/ |
H A D | fstyp_test.sh | 133 atf_check -s exit:0 truncate -s 64m msdos.img 144 atf_check -s exit:0 truncate -s 64m msdos.img 155 atf_check -s exit:0 truncate -s 64m msdos.img 167 atf_check -s exit:0 truncate -s 64m msdos.img 254 atf_check -s exit:0 truncate -s 256m zeros
|
/freebsd-12-stable/contrib/gdb/include/gdb/ |
H A D | callback.h | 98 int (*truncate) PARAMS ((host_callback *, const char *, long)); 97 int (*truncate) PARAMS ((host_callback *, const char *, long)); member in struct:host_callback_struct
|
/freebsd-12-stable/release/tools/ |
H A D | vmimage.subr | 84 truncate -s ${VMSIZE} ${VMBASE} 103 truncate -s ${VMSIZE} ${VMBASE}.tmp
|