Searched refs:truncate (Results 26 - 50 of 96) sorted by relevance

1234

/freebsd-12-stable/contrib/pjdfstest/tests/ftruncate/
H A D05.t3 # $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 D10.t3 # $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 D01.t3 # $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 D12.t3 # $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 D05.t3 # $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 D10.t3 # $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 D01.t3 # $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 D11.t3 # $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 D12.t3 # $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 Dt_truncate.c44 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 Dfile-write.c47 "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 Dpt_sync.c47 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 Dsync_error.sh23 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 Dhead_test.sh77 truncate -s +1K outfile
87 truncate -s +1K infile
/freebsd-12-stable/contrib/ntp/sntp/tests/
H A DfileHandlingTest.c95 if (!truncate(filename, 0))
/freebsd-12-stable/tests/sys/pjdfstest/tests/
H A DMakefile36 TESTS_SUBDIRS+= truncate
/freebsd-12-stable/crypto/openssh/openbsd-compat/
H A Dbsd-misc.h68 int truncate (const char *, off_t);
/freebsd-12-stable/usr.sbin/chown/tests/
H A Dchown_test.sh106 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 DMakefile64 TESTS_SUBDIRS+= truncate
/freebsd-12-stable/tests/sys/geom/class/eli/
H A Dconf.sh32 truncate -s $bytes backing_file
/freebsd-12-stable/contrib/gdb/gdb/
H A Dscm-valprint.c227 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 Dchmod_test.sh102 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 Dfstyp_test.sh133 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 Dcallback.h98 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 Dvmimage.subr84 truncate -s ${VMSIZE} ${VMBASE}
103 truncate -s ${VMSIZE} ${VMBASE}.tmp

Completed in 274 milliseconds

1234