Home
last modified time | relevance | path

Searched refs:off_t (Results 101 – 125 of 1194) sorted by relevance

12345678910>>...48

/freebsd/tools/test/stress2/misc/
H A Dsendfile_shm.sh88 load(int infd, int shmfd, off_t size)
90 off_t c, r;
104 sendfd(int s, int shmfd, off_t size)
106 off_t sbytes;
117 receivefd(int s, int outfd, off_t size)
120 off_t c, r, r1;
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmkfile.c59 off_t size; in main()
127 size = ((off_t)atoll(argv[1]) * (off_t)mult); in main()
158 } else if (lseek(fd, (off_t)size-1, SEEK_SET) < 0) { in main()
181 off_t written = 0; in main()
184 if (lseek(fd, (off_t)0, SEEK_SET) < 0) { in main()
/freebsd/lib/libufs/
H A Dsblock.c178 static int use_pread(void *devfd, off_t loc, void **bufp, int size);
179 static int use_pwrite(void *devfd, off_t loc, void *buf, int size);
196 sbget(int devfd, struct fs **fsp, off_t sblockloc, int flags) in sbget()
225 use_pread(void *devfd, off_t loc, void **bufp, int size) in use_pread()
250 off_t savedactualloc; in sbput()
283 use_pwrite(void *devfd, off_t loc, void *buf, int size) in use_pwrite()
/freebsd/tools/tools/ncpus/
H A Dbiosmptable.c47 #define PTOV(pa) ((off_t)(pa))
50 static mpfps_t biosmptable_search_mpfps(off_t base, int length);
51 static mpcth_t biosmptable_check_mpcth(off_t addr);
148 memread(off_t addr, void* entry, size_t size) in memread()
183 biosmptable_search_mpfps(off_t base, int length) in biosmptable_search_mpfps()
222 biosmptable_check_mpcth(off_t addr) in biosmptable_check_mpcth()
/freebsd/sys/sys/
H A Dtypes.h172 typedef __off_t off_t; /* file offset */ typedef
368 int ftruncate(int, off_t);
372 off_t lseek(int, off_t, int);
376 void * mmap(void *, size_t, int, int, int, off_t);
380 int truncate(const char *, off_t);
/freebsd/bin/dd/
H A Dposition.c49 static off_t
52 off_t n; in seek_offset()
74 return ((off_t)( (uint64_t)n * sz )); in seek_offset()
86 off_t cnt; in pos_in()
154 off_t cnt; in pos_out()
/freebsd/crypto/heimdal/lib/krb5/
H A Dstore-int.h41 off_t (*seek)(struct krb5_storage_data*, off_t, int);
42 int (*trunc)(struct krb5_storage_data*, off_t);
/freebsd/contrib/sendmail/libsm/
H A Dstdio.c103 (void) (*fp->f_seek)((void *)fp, (off_t)0, SEEK_END);
178 off_t
181 off_t offset;
184 register off_t ret;
186 ret = lseek(fp->f_file, (off_t) offset, whence);
187 if (ret != (off_t) -1)
449 (void) (*fp->f_seek)(fp, (off_t)0, SEEK_END);
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DFile.cpp130 off_t File::SeekFromStart(off_t offset, Status *error_ptr) { in SeekFromStart()
136 off_t File::SeekFromCurrent(off_t offset, Status *error_ptr) { in SeekFromCurrent()
142 off_t File::SeekFromEnd(off_t offset, Status *error_ptr) { in SeekFromEnd()
148 Status File::Read(void *dst, size_t &num_bytes, off_t &offset) { in Read()
152 Status File::Write(const void *src, size_t &num_bytes, off_t &offset) { in Write()
387 off_t NativeFile::SeekFromStart(off_t offset, Status *error_ptr) { in SeekFromStart()
388 off_t result = 0; in SeekFromStart()
418 off_t NativeFile::SeekFromCurrent(off_t offset, Status *error_ptr) { in SeekFromCurrent()
419 off_t result = -1; in SeekFromCurrent()
449 off_t NativeFile::SeekFromEnd(off_t offset, Status *error_ptr) { in SeekFromEnd()
[all …]
/freebsd/usr.sbin/fifolog/lib/
H A Dlibfifolog_int.h34 off_t logsize;
44 int fifolog_int_read(const struct fifolog_file *ff, off_t recno);
45 const char *fifolog_int_findend(const struct fifolog_file *ff, off_t *last);
H A Dlibfifolog.h32 const char *fifolog_create(const char *fn, off_t size, ssize_t recsize);
43 off_t fifolog_reader_seek(const struct fifolog_reader *fl, time_t t0);
44 void fifolog_reader_process(struct fifolog_reader *fl, off_t from, fifolog_reader_render_t *func, v…
/freebsd/usr.bin/tail/
H A Dreverse.c55 static void r_reg(FILE *, const char *, enum STYLE, off_t, struct stat *);
76 reverse(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) in reverse()
105 r_reg(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) in r_reg()
108 off_t curoff, size, lineend; in r_reg()
127 curoff >= map.mapoff + (off_t)map.maplen) { in r_reg()
192 off_t enomem = 0; in r_buf()
/freebsd/lib/geom/part/
H A Dgeom_part.c268 off_t sector, bestsector; in find_provider()
326 off_t last, size, start, new_size; in gpart_autofill_resize()
403 lba = (off_t)strtoimax(s, NULL, 0); in gpart_autofill_resize()
449 off_t first, last, a_first; in gpart_autofill()
450 off_t size, start, a_lba; in gpart_autofill()
451 off_t lba, len, alignment, offset; in gpart_autofill()
626 off_t first, last, sector, end; in gpart_show_geom()
627 off_t length, secsz; in gpart_show_geom()
780 off_t sector, end; in gpart_backup()
781 off_t length; in gpart_backup()
[all …]
/freebsd/usr.sbin/dumpcis/
H A Dreadcis.c46 static int ck_linktarget(int, off_t, int);
47 static struct tuple_list *read_one_tuplelist(int, int, off_t);
197 off_t offs; in read_tuples()
200 last_tl = tlist = read_one_tuplelist(fd, MDF_ATTR, (off_t) 0); in read_tuples()
235 ck_linktarget(fd, (off_t) 0, 0)) { in read_tuples()
248 read_one_tuplelist(int fd, int flags, off_t offs) in read_one_tuplelist()
333 ck_linktarget(int fd, off_t offs, int flag) in ck_linktarget()
/freebsd/stand/libsa/
H A Dsplitfs.c40 off_t tot_pos; /* Offset from the beginning of the sequence */
41 off_t file_pos; /* Offset from the beginning of the slice */
48 static off_t splitfs_seek(struct open_file *f, off_t offset, int where);
231 static off_t
232 splitfs_seek(struct open_file *f, off_t offset, int where) in splitfs_seek()
236 off_t new_pos, seek_by; in splitfs_seek()
/freebsd/tests/sys/cddl/zfs/bin/
H A Dmkfile.c134 if ((lseek(fd, (off_t)(s - 1LL), SEEK_SET) == (off_t)-1) || in create_file()
146 if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) { in create_file()
/freebsd/contrib/libdiff/include/
H A Ddiff_main.h31 off_t pos; /* set whether memory-mapped or not */
33 off_t len;
104 off_t pos; /* if not memory-mapped */
106 off_t len;
260 FILE *f, const uint8_t *data, off_t len, int diff_flags);
/freebsd/usr.sbin/makefs/
H A Dzfs.c54 #define MINMSSIZE ((off_t)1 << 24) /* 16MB */
56 #define MAXMSSIZE ((off_t)1 << 34) /* 16GB */
64 off_t indloc;
65 off_t indspace;
67 off_t dataoff;
68 off_t datablksz;
141 off_t asize, mssize, vdevsize, vdevsize1; in zfs_size_vdev()
372 off_t configloc, configblksz; in pool_init_objdir_config()
630 off_t size, off_t blksz) in dnode_cursor_init()
681 off_t blkid, blksz, loc; in _dnode_cursor_flush()
[all …]
/freebsd/usr.bin/cksum/
H A Dprint.c40 pcrc(char *fn, uint32_t val, off_t len) in pcrc()
49 psum1(char *fn, uint32_t val, off_t len) in psum1()
58 psum2(char *fn, uint32_t val, off_t len) in psum2()
/freebsd/usr.bin/gzip/
H A Dunxz.c40 static off_t
41 unxz(int i, int o, char *pre, size_t prelen, off_t *bytes_in) in unxz()
47 off_t bytes_out, bp; in unxz()
185 io_pread(int fd, io_buf *buf, size_t size, off_t pos) in io_pread()
285 off_t pos = st.st_size; in parse_indexes()
463 off_t
468 off_t res = lzma_index_uncompressed_size(xfi.idx); in unxz_len()
/freebsd/contrib/elftoolchain/libpe/
H A Dlibpe_utils.c37 off_t
38 libpe_align(PE *pe, off_t off, size_t align) in libpe_align()
40 off_t n; in libpe_align()
/freebsd/sys/geom/
H A Dgeom_disk.h106 off_t d_mediasize;
110 off_t d_delmaxsize;
111 off_t d_stripeoffset;
112 off_t d_stripesize;
/freebsd/usr.bin/cmp/
H A Dspecial.c42 c_special(int fd1, const char *file1, off_t skip1, in c_special()
43 int fd2, const char *file2, off_t skip2, off_t limit) in c_special()
46 off_t byte, line; in c_special()
/freebsd/usr.sbin/uefisign/
H A Dpe.c142 range_check(const struct executable *x, off_t off, size_t len, in range_check()
150 if (off >= (off_t)x->x_len) { in range_check()
225 parse_section_table(struct executable *x, off_t off, int number_of_sections) in parse_section_table()
262 parse_directory(struct executable *x, off_t off, in parse_directory()
348 parse_optional_32_plus(struct executable *x, off_t off, in parse_optional_32_plus()
398 parse_optional_32(struct executable *x, off_t off, int number_of_sections) in parse_optional_32()
447 parse_optional(struct executable *x, off_t off, int number_of_sections) in parse_optional()
468 parse_pe(struct executable *x, off_t off) in parse_pe()
500 static off_t
503 off_t off; in append()
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_file.c324 off_t off; in linux_llseek()
409 off_t base; in linux_getdents()
485 off_t base; in linux_getdents64()
556 off_t base; in linux_readdir()
875 off_t length; in linux_truncate64()
898 off_t length; in linux_ftruncate64()
972 off_t offset; in linux_pread()
997 off_t offset; in linux_pwrite()
1023 off_t offset; in linux_preadv()
1050 off_t offset; in linux_pwritev()
[all …]

12345678910>>...48