Home
last modified time | relevance | path

Searched refs:off_t (Results 76 – 100 of 1194) sorted by path

12345678910>>...48

/freebsd/contrib/expat/
H A DChanges52 #672 CMake: Lowercase off_t and size_t to help a bug in Meson
H A Dexpat_config.h.in140 #undef off_t
/freebsd/contrib/expat/xmlwf/
H A Dunixfilemap.c97 fd, (off_t)0); in filemap()
/freebsd/contrib/file/
H A Dconfig.h.in489 #undef off_t
H A Dconfigure14143 /* Check that off_t can represent 2**63 - 1 correctly.
14217 /* Check that off_t can represent 2**63 - 1 correctly.
14287 /* Check that off_t can represent 2**63 - 1 correctly.
/freebsd/contrib/file/src/
H A Dapprentice.c330 file_private off_t
332 if (/*CONSTCOND*/sizeof(off_t) == sizeof(int)) in maxoff_t()
333 return CAST(off_t, INT_MAX); in maxoff_t()
334 if (/*CONSTCOND*/sizeof(off_t) == sizeof(long)) in maxoff_t()
335 return CAST(off_t, LONG_MAX); in maxoff_t()
2500 size_t llen, off_t off, size_t len, const char *name, const char *extra, in parse_extra()
2556 CAST(off_t, offsetof(struct magic, apple)), in parse_apple()
2568 CAST(off_t, offsetof(struct magic, ext)), in parse_ext()
2583 CAST(off_t, offsetof(struct magic, mimetype)), in parse_mime()
3310 MAP_PRIVATE|MAP_FILE, fd, CAST(off_t, 0))) == MAP_FAILED) { in apprentice_map()
H A Dcdf.c370 cdf_read(const cdf_info_t *info, off_t off, void *buf, size_t len) in cdf_read()
374 if (CAST(off_t, off + len) != CAST(off_t, siz)) in cdf_read()
400 if (cdf_read(info, CAST(off_t, 0), buf, sizeof(buf)) == -1) in cdf_read_header()
439 return cdf_read(info, CAST(off_t, pos), RCAST(char *, buf) + offs, len); in cdf_read_sector()
H A Dcompress.c548 if (lseek(fd, CAST(off_t, 0), SEEK_SET) == CAST(off_t, -1)) { in file_pipe2file()
906 (void) lseek(fd, CAST(off_t, 0), SEEK_SET); in handledesc()
H A Delfclass.h44 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
59 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
69 CAST(off_t, elf_getu(swap, elfhdr.e_shoff)), shnum,
H A Dfile.h189 off_t eoff;
636 ssize_t pread(int, void *, size_t, off_t);
H A Dmagic.c429 off_t pos = CAST(off_t, -1); in file_or_fd()
490 pos = lseek(fd, CAST(off_t, 0), SEEK_CUR); in file_or_fd()
539 if (pos != CAST(off_t, -1)) in file_or_fd()
H A Dmemtest.c134 (off_t)0); in main()
H A Dpread.c9 pread(int fd, void *buf, size_t len, off_t off) { in pread()
10 off_t old; in pread()
H A Dreadelf.c53 int, size_t, int *, uint16_t *, int, off_t, int, off_t);
355 off_t ph_off = off, offs; in dophn_core()
944 file_private off_t
946 off_t off, int num, off_t fsize, uint64_t virtaddr) in get_offset_from_virtaddr()
984 off_t offset; in get_string_on_virtaddr()
1018 int fd, off_t ph_off, int ph_num, off_t fsize) in do_auxv_note()
1158 int fd, off_t ph_off, int ph_num, off_t fsize) in donote()
1502 == CAST(off_t, -1)) { in doshn()
1728 off_t offs = xph_offset; in dophn_exec()
1827 off_t fsize; in file_tryelf()
[all …]
/freebsd/contrib/less/
H A Dch.c242 if (lseek(ch_file, (off_t)pos, SEEK_SET) == BAD_LSEEK) in ch_get()
715 if (lseek(ch_file, (off_t)0, SEEK_SET) == BAD_LSEEK) in ch_flush()
798 return (lseek(f, (off_t)1, SEEK_SET) != BAD_LSEEK); in seekable()
H A Ddecode.c823 if (lseek(f, (off_t)0, SEEK_SET) == BAD_LSEEK) in lesskey()
H A Dedit.c985 if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK) in use_logfile()
H A Dfilename.c456 if (lseek(f, (off_t)0, SEEK_SET) == BAD_LSEEK) in bin_file()
492 off_t spos; in seek_filesize()
494 spos = lseek(f, (off_t)0, SEEK_END); in seek_filesize()
H A Dless.h127 off_t lseek();
215 #define BAD_LSEEK ((off_t)-1)
239 typedef off_t POSITION;
240 typedef off_t LINENUM;
/freebsd/contrib/lib9p/backend/
H A Dfs.c1708 if (lseek(file->ff_fd, (off_t)req->lr_req.io.offset, SEEK_SET) < 0) in fs_read()
1999 if (lseek(file->ff_fd, (off_t)req->lr_req.io.offset, SEEK_SET) < 0) in fs_write()
2060 if (truncate(file->ff_name, (off_t)l9stat->length) != 0) { in fs_wstat()
2572 if (ftruncate(fd, (off_t)req->lr_req.tsetattr.size)) { in fs_setattr()
/freebsd/contrib/libarchive/
H A DNEWS228 Feb 21, 2010: Use int64_t instead of off_t, dev_t, ino_t, uid_t, and gid_t
377 * libarchive_test: Skip large file tests on systems with 32-bit off_t
/freebsd/contrib/libarchive/libarchive/
H A Darchive_entry_stat.c77 st->st_size = (off_t)archive_entry_size(entry); in archive_entry_stat()
H A Darchive_read_disk_entry_from_file.c963 off_t initial_off; in setup_sparse()
964 off_t off_s, off_e; in setup_sparse()
1022 if (off_s == (off_t)-1) { in setup_sparse()
1037 if (off_e == (off_t)-1) { in setup_sparse()
1040 if (off_e != (off_t)-1) in setup_sparse()
H A Darchive_read_disk_posix.c781 (off_t)t->current_sparse->offset, SEEK_SET) < 0) { in _archive_read_data_block()
H A Darchive_read_open_file.c126 off_t skip = (off_t)request; in file_skip()

12345678910>>...48