/freebsd/usr.bin/gzip/ |
H A D | gzip.c | 243 static void print_ratio(off_t, off_t, FILE *); 251 static void print_list_out(off_t, off_t, const char*); 271 static off_t unbzip2(int, int, char *, size_t, off_t *); 280 static off_t unpack(int, int, char *, size_t, off_t *); 284 static off_t unxz(int, int, char *, size_t, off_t *); 289 static off_t unlz(int, int, char *, size_t, off_t *); 293 static off_t unzstd(int, int, char *, size_t, off_t *); 560 static off_t 718 static off_t 1257 static off_t [all …]
|
/freebsd/tests/sys/file/ |
H A D | fspacectl_test.c | 40 static off_t file_max_blocks = 32; 44 fill(int fd, off_t offset, off_t len) in fill() 61 blen = len < (off_t)blocksize ? len : blocksize; in fill() 86 check_content_dealloc(int fd, off_t hole_start, off_t hole_len, off_t file_sz) in check_content_dealloc() 90 off_t offset, resid; in check_content_dealloc() 187 off_t offset, length; in ATF_TC_BODY() 212 off_t offset, length; in ATF_TC_BODY() 237 off_t offset, length; in ATF_TC_BODY() 261 off_t offset, length; in ATF_TC_BODY() 285 off_t offset, length; in ATF_TC_BODY() [all …]
|
/freebsd/sys/geom/vinum/ |
H A D | geom_vinum_var.h | 152 off_t drive_size; /* Total size incl. headers. */ 169 off_t size; /* Size of this free slot. */ 170 off_t offset; /* Offset on the drive. */ 255 off_t size; /* Size of this drive. */ 256 off_t avail; /* Available space. */ 281 off_t size; /* The size of this subdisk. */ 283 off_t plex_offset; /* Offset in the associated plex. */ 291 off_t initialized; /* Count of initialized bytes. */ 318 off_t size; /* The size of the plex. */ 347 off_t synced; /* Count of synced bytes. */ [all …]
|
H A D | geom_vinum_raid5.c | 41 static int gv_raid5_offset(struct gv_plex *, off_t, off_t, 42 off_t *, off_t *, int *, int *, int); 46 struct bio *, caddr_t, off_t, off_t, int *); 48 struct bio *, caddr_t, off_t, off_t); 50 struct bio *, caddr_t, off_t, off_t); 54 off_t bcount) in gv_raid5_start() 177 caddr_t addr, off_t boff, off_t bcount) in gv_raid5_check() 183 off_t real_len, real_off; in gv_raid5_check() 255 caddr_t addr, off_t boff, off_t bcount) in gv_raid5_rebuild() 343 struct bio *bp, caddr_t addr, off_t boff, off_t bcount, int *delay) in gv_raid5_request() [all …]
|
/freebsd/lib/libmd/ |
H A D | sha.h | 163 char *SHA_FdChunk(int, char *, off_t, off_t); 165 char *SHA_FileChunk(const char *, char *, off_t, off_t); 173 char *SHA1_FdChunk(int, char *, off_t, off_t); 175 char *SHA1_FileChunk(const char *, char *, off_t, off_t);
|
/freebsd/sys/sys/ |
H A D | file.h | 85 off_t foffset_lock(struct file *fp, int flags); 90 static inline off_t 127 typedef int fo_fallocate_t(struct file *fp, off_t offset, off_t len, 130 off_t *offset, off_t *length, int flags, 181 off_t fa_start; /* (f) Region start. */ 182 off_t fa_end; /* (f) Region end. */ 210 off_t f_offset; 238 off_t xf_offset; /* file offset */ 418 struct uio *trl_uio, off_t offset, size_t nbytes, off_t *sent, int flags, in fo_sendfile() 478 fo_fallocate(struct file *fp, off_t offset, off_t len, struct thread *td) in fo_fallocate() [all …]
|
H A D | uio.h | 46 typedef __off_t off_t; typedef 55 off_t uio_offset; /* offset in target object */ 89 int physcopyin_vlist(struct bus_dma_segment *src, off_t offset, 92 off_t offset, size_t len); 98 int uiomove_object(struct vm_object *obj, off_t obj_size, struct uio *uio); 106 ssize_t preadv(int, const struct iovec *, int, off_t); 107 ssize_t pwritev(int, const struct iovec *, int, off_t);
|
/freebsd/lib/libgeom/ |
H A D | libgeom.h | 129 off_t lg_mediasize; 131 off_t lg_stripeoffset; 132 off_t lg_stripesize; 160 off_t g_mediasize(int); 162 off_t g_stripeoffset(int); 163 off_t g_stripesize(int); 165 int g_delete(int, off_t, off_t);
|
H A D | geom_util.c | 90 off_t 93 off_t mediasize; in g_mediasize() 116 off_t 119 off_t stripesize; in g_stripesize() 129 off_t 132 off_t stripeoffset; in g_stripeoffset() 166 g_delete(int fd, off_t offset, off_t length) in g_delete() 168 off_t arg[2]; in g_delete()
|
/freebsd/sys/kern/ |
H A D | kern_rangelock.c | 41 off_t rl_q_start, rl_q_end; 189 rangelock_unlock_range(struct rangelock *lock, void *cookie, off_t start, in rangelock_unlock_range() 190 off_t end, struct mtx *ilk) in rangelock_unlock_range() 217 rangelock_enqueue(struct rangelock *lock, off_t start, off_t end, int mode, in rangelock_enqueue() 271 rangelock_rlock(struct rangelock *lock, off_t start, off_t end, struct mtx *ilk) in rangelock_rlock() 278 rangelock_tryrlock(struct rangelock *lock, off_t start, off_t end, in rangelock_tryrlock() 286 rangelock_wlock(struct rangelock *lock, off_t start, off_t end, struct mtx *ilk) in rangelock_wlock() 293 rangelock_trywlock(struct rangelock *lock, off_t start, off_t end, in rangelock_trywlock()
|
/freebsd/crypto/openssh/ |
H A D | progressmeter.c | 66 static off_t start_pos; /* initial position of transfer */ 67 static off_t end_pos; /* ending position of transfer */ 68 static off_t cur_pos; /* transfer position as of last refresh */ 69 static volatile off_t *counter; /* progress counter */ 89 format_rate(off_t bytes) in format_rate() 110 format_size(off_t bytes) in format_size() 128 off_t transferred; in refresh_progress_meter() 131 off_t bytes_left; in refresh_progress_meter() 194 format_rate((off_t)bytes_per_second)); in refresh_progress_meter() 248 start_progress_meter(const char *f, off_t filesize, off_t *ctr) in start_progress_meter()
|
/freebsd/bin/pax/ |
H A D | buf_subs.c | 202 appnd_start(off_t skcnt) in appnd_start() 205 off_t cnt; in appnd_start() 236 if (ar_rev((off_t)cnt) < 0) in appnd_start() 385 rd_skip(off_t skcnt) in rd_skip() 387 off_t res; in rd_skip() 388 off_t cnt; in rd_skip() 389 off_t skipped = 0; in rd_skip() 559 wr_skip(off_t skcnt) in wr_skip() 601 off_t size = arcn->sb.st_size; in wr_rdfile() 661 off_t size = arcn->sb.st_size; in rd_wrfile() [all …]
|
H A D | ar_io.c | 442 off_t cpos; in ar_set_wr() 588 off_t cpos; in ar_write() 621 cpos -= (off_t)res; in ar_write() 706 off_t cpos; in ar_rdsync() 707 off_t mpos; in ar_rdsync() 789 ar_fow(off_t sksz, off_t *skipped) in ar_fow() 791 off_t cpos; in ar_fow() 792 off_t mpos; in ar_fow() 848 ar_rev(off_t sksz) in ar_rev() 850 off_t cpos; in ar_rev() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | sha2.h | 88 char *SHA224FileChunk(const char *, char *, off_t, off_t) 107 char *SHA256FileChunk(const char *, char *, off_t, off_t) 126 char *SHA384FileChunk(const char *, char *, off_t, off_t) 145 char *SHA512FileChunk(const char *, char *, off_t, off_t) 164 char *SHA512_256FileChunk(const char *, char *, off_t, off_t)
|
/freebsd/usr.bin/cmp/ |
H A D | regular.c | 46 static u_char *remmap(u_char *, int, off_t); 53 c_regular(int fd1, const char *file1, off_t skip1, off_t len1, in c_regular() 54 int fd2, const char *file2, off_t skip2, off_t len2, off_t limit) in c_regular() 59 off_t byte, length, line; in c_regular() 60 off_t pagemask, off1, off2; in c_regular() 75 pagemask = (off_t)pagesize - 1; in c_regular() 170 remmap(u_char *mem, int fd, off_t offset) in remmap()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | mmap_seek.c | 39 seek_data(int fd, off_t offset, off_t expected) in seek_data() 41 off_t data_offset = lseek(fd, offset, SEEK_DATA); in seek_data() 50 seek_hole(int fd, off_t offset, off_t expected) in seek_hole() 52 off_t hole_offset = lseek(fd, offset, SEEK_HOLE); in seek_hole() 81 off_t file_size = atoi(argv[2]); in main() 82 off_t block_size = atoi(argv[3]); in main()
|
/freebsd/contrib/diff/src/ |
H A D | cmp.c | 48 static off_t file_position (int); 72 static off_t ignore_initial[2]; 129 off_t o; in specify_ignore_initial() 330 off_t s0 = stat_buf[0].st_size - file_position (0); in main() 387 off_t byte_number_max = MIN (bytes, TYPE_MAXIMUM (off_t)); in cmp() 403 off_t ig = ignore_initial[f]; in cmp() 462 char byte_buf[INT_BUFSIZE_BOUND (off_t)]; in cmp() 463 char line_buf[INT_BUFSIZE_BOUND (off_t)]; in cmp() 513 char byte_buf[INT_BUFSIZE_BOUND (off_t)]; in cmp() 665 static off_t [all …]
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs.h | 61 off_t offset; 88 off_t lastcookie; 110 off_t i; /* input (physical) offset */ 111 off_t o; /* output (logical) offset */ 153 off_t ipos; /* current input position */ 154 off_t opos; /* current output position */ 160 struct tarfs_idx { off_t i, o; } *idx; 230 size_t namelen, __enum_uint8(vtype) type, off_t off, size_t sz, 237 tarfs_lookup_dir(struct tarfs_node *tnp, off_t cookie); 248 void *buf, off_t off, size_t len);
|
/freebsd/sys/geom/gate/ |
H A D | g_gate.h | 93 off_t sc_readoffset; /* P: sc_read_mtx */ 111 off_t gctl_mediasize; 119 off_t gctl_readoffset; 131 off_t gctl_mediasize; 134 off_t gctl_readoffset; 156 off_t gctl_offset; 157 off_t gctl_length;
|
/freebsd/usr.bin/tail/ |
H A D | misc.c | 71 mapprint(struct mapinfo *mip, off_t startoff, off_t len) in mapprint() 77 (off_t)mip->maplen) { in mapprint() 97 maparound(struct mapinfo *mip, off_t offset) in maparound() 103 mip->mapoff = offset & ~((off_t)TAILMAPLEN - 1); in maparound() 105 if ((off_t)mip->maplen > mip->maxoff - mip->mapoff) in maparound()
|
/freebsd/lib/libsecureboot/h/ |
H A D | verify_file.h | 45 int verify_prep(int, const char *, off_t, struct stat *, const char *); 55 int verify_file(int, const char *, off_t, int, const char *); 62 struct vectx* vectx_open(int, const char *, off_t, struct stat *, int *, const char *); 64 off_t vectx_lseek(struct vectx *, off_t, int);
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | elf_next.c | 38 off_t next; in elf_next() 53 next = e->e_rawfile - parent->e_rawfile + (off_t) e->e_rawsize; in elf_next() 60 parent->e_u.e_ar.e_next = (next >= (off_t) parent->e_rawsize) ? in elf_next() 61 (off_t) 0 : next; in elf_next() 72 if (next > (off_t) parent->e_rawsize) { in elf_next()
|
/freebsd/usr.sbin/makefs/cd9660/ |
H A D | cd9660_write.c | 44 static int cd9660_write_path_table(iso9660_disk *, FILE *, off_t, int); 47 static int cd9660_write_filedata(iso9660_disk *, FILE *, off_t, 50 static int cd9660_write_buffered(FILE *, off_t, int, const unsigned char *); 52 static void cd9660_write_rr(iso9660_disk *, FILE *, cd9660node *, off_t, off_t); 164 cd9660_write_path_table(iso9660_disk *diskStructure, FILE *fd, off_t sector, in cd9660_write_path_table() 266 off_t working_sector; in cd9660_write_file() 391 cd9660_write_filedata(iso9660_disk *diskStructure, FILE *fd, off_t sector, in cd9660_write_filedata() 394 off_t curpos; in cd9660_write_filedata() 414 cd9660_write_buffered(FILE *fd, off_t offset, int buff_len, 471 off_t offset, off_t sector) in cd9660_write_rr() [all …]
|
/freebsd/contrib/ntp/util/ |
H A D | tickadj.c | 232 static void getoffsets (off_t *, off_t *, off_t *, off_t *); 248 off_t tickadj_offset; in main() 249 off_t tick_offset; in main() 250 off_t dosync_offset; in main() 251 off_t noprintf_offset; in main() 624 off_t *tick_off, in getoffsets() 625 off_t *tickadj_off, in getoffsets() 626 off_t *dosync_off, in getoffsets() 627 off_t *noprintf_off in getoffsets() 854 off_t off, in writevar() [all …]
|
/freebsd/sys/geom/ |
H A D | geom.h | 213 off_t mediasize; 215 off_t stripesize; 216 off_t stripeoffset; 299 void g_resize_provider(struct g_provider *pp, off_t size); 344 void * g_read_data(struct g_consumer *cp, off_t offset, off_t length, int *error); 345 int g_write_data(struct g_consumer *cp, off_t offset, void *ptr, off_t length); 346 int g_delete_data(struct g_consumer *cp, off_t offset, off_t length); 349 int g_use_g_read_data(void *, off_t, void **, int); 350 int g_use_g_write_data(void *, off_t, void *, int); 359 off_t offset; [all …]
|