/src/lib/libc/sys/ |
truncate.c | 1 /* $NetBSD: truncate.c,v 1.13 2012/03/20 16:26:12 matt Exp $ */ 35 static char sccsid[] = "@(#)truncate.c 8.1 (Berkeley) 6/17/93"; 37 __RCSID("$NetBSD: truncate.c,v 1.13 2012/03/20 16:26:12 matt Exp $"); 52 truncate(const char *path, off_t length) function in typeref:typename:int
|
Makefile.inc | 36 pread.c preadv.c pwrite.c pwritev.c truncate.c ntp_adjtime.c \ 297 timer_settime.2 timerfd.2 truncate.2 umask.2 undelete.2 \ 399 MLINKS+=truncate.2 ftruncate.2
|
/src/tests/lib/libc/sys/ |
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("/a/b/c/d/e/f/g", 999) == -1) [all...] |
/src/lib/libm/arch/m68k/ |
s_ceil.S | 49 fintx %fp0 | truncate
|
s_floor.S | 50 fintx %fp0 | truncate
|
/src/usr.bin/mail/ |
v7.local.c | 76 * Do not remove the spool file, just truncate it to zero 80 if (value(ENAME_KEEP) != NULL || truncate(mailname, (off_t)0) < 0)
|
/src/lib/librefuse/refuse/ |
v11.h | 63 int (*truncate) (const char *, off_t); member in struct:fuse_operations_v11
|
v21.h | 59 int (*truncate) (const char *, off_t); member in struct:fuse_operations_v21
|
v22.h | 63 int (*truncate) (const char *, off_t); member in struct:fuse_operations_v22
|
v23.h | 63 int (*truncate) (const char *, off_t); member in struct:fuse_operations_v23
|
v25.h | 59 int (*truncate) (const char *, off_t); member in struct:fuse_operations_v25
|
v28.h | 59 int (*truncate) (const char *, off_t); member in struct:fuse_operations_v28
|
v29.h | 59 int (*truncate) (const char *, off_t); member in struct:fuse_operations_v29
|
v34.h | 58 int (*truncate) (const char *, off_t, struct fuse_file_info *fi); member in struct:fuse_operations_v34
|
v35.h | 58 int (*truncate) (const char *, off_t, struct fuse_file_info *fi); member in struct:fuse_operations_v35
|
v26.h | 59 int (*truncate) (const char *, off_t); member in struct:fuse_operations_v26
|
v30.h | 67 int (*truncate) (const char *, off_t, struct fuse_file_info *fi); member in struct:fuse_operations_v30
|
v38.h | 58 int (*truncate) (const char *, off_t, struct fuse_file_info *fi); member in struct:fuse_operations_v38
|
fs.c | 1185 if (((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->truncate) \ 1186 return ((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->truncate(path, size); \ 1201 if (((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->truncate) \ 1202 return ((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->truncate(path, size, fi); \ 1220 * truncate(). */ 1223 if (((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->truncate) \ 1224 return ((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->truncate(path, size); \ 1234 * FUSE 3.0. Call it if it exists, or fall back to truncate() 1240 else if (((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->truncate) \ 1241 return ((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->truncate(path, size); [all...] |
/src/sys/external/bsd/drm2/dist/drm/i915/gem/ |
i915_gem_object_types.h | 58 void (*truncate)(struct drm_i915_gem_object *obj); member in struct:drm_i915_gem_object_ops
|
/src/tests/kernel/ |
t_memfd_create.c | 138 ATF_TC(truncate); 139 ATF_TC_HEAD(truncate, tc) 145 ATF_TC_BODY(truncate, tc) 167 "Truncate did not shrink size to %zu (is %jd)", 173 "Truncate did not grow size to %zu (is %jd)", rwbuf_size, 301 "Seal %x prevented truncate to shrink", except); 303 "Truncate failed unexpectedly (%s)", 312 "Seal %x prevented truncate to shrink", except); 314 "Truncate failed unexpectedly (%s)", 338 "Truncate succeeded unexpectedly") [all...] |
/src/share/examples/refuse/fanoutfs/ |
fanoutfs.c | 537 /* truncate a file */ 546 if (truncate(name, size) < 0) { 580 .truncate = fanoutfs_truncate,
|
/src/sys/rump/include/rump/ |
rump_syscallshotgun.h | 100 #define truncate(a,b) rump_sys_truncate(a,b) macro
|
/src/sys/sys/ |
types.h | 262 int truncate(const char *, off_t);
|
/src/include/ |
unistd.h | 188 int truncate(const char *, off_t);
|