Home
last modified time | relevance | path

Searched refs:off_t (Results 1 – 25 of 1197) sorted by relevance

12345678910>>...48

/freebsd/usr.bin/cmp/
H A Dextern.h37 void c_link(const char *, off_t, const char *, off_t, off_t);
38 void c_regular(int, const char *, off_t, off_t, int, const char *, off_t,
39 off_t, off_t);
40 void c_special(int, const char *, off_t, int, const char *, off_t, off_t);
41 void diffmsg(const char *, const char *, off_t, off_t, int, int);
/freebsd/usr.sbin/makefs/zfs/
H A Dzfs.h49 #define MAXBLOCKSIZE ((off_t)(1 << MAXBLOCKSHIFT))
52 #define MINBLOCKSIZE ((off_t)(1 << MINBLOCKSHIFT))
54 #define MINDEVSIZE ((off_t)SPA_MINDEVSIZE)
107 off_t vdevsize; /* vdev size, including labels */
108 off_t asize; /* vdev size, excluding labels */
135 off_t objset_space_alloc(zfs_opt_t *, zfs_objset_t *, off_t *);
146 off_t vdev_space_alloc(zfs_opt_t *zfs, off_t *lenp);
148 uint8_t level, uint64_t fill, const void *data, off_t sz, off_t loc,
151 uint64_t fill, const void *data, off_t sz, off_t loc, blkptr_t *bp);
153 off_t sz, off_t loc);
[all …]
H A Dvdev.c48 blkptr_set(blkptr_t *bp, off_t off, off_t size, uint8_t dntype, uint8_t level, in blkptr_set()
88 assert((off_t)len > 0 && off + (off_t)len > off && in vdev_pwrite()
113 uint8_t level, uint64_t fill, const void *data, off_t sz, off_t loc, in vdev_pwrite_data()
127 uint64_t fill, const void *data, off_t sz, off_t loc, blkptr_t *bp) in vdev_pwrite_dnode_indir()
138 off_t sz, off_t loc) in vdev_pwrite_dnode_data()
145 vdev_label_set_checksum(void *buf, off_t off, off_t size) in vdev_label_set_checksum()
167 off_t blksz, loff; in vdev_label_write()
234 off_t
237 off_t len; in vdev_space_alloc()
248 len = (off_t)1 << flsll(len); in vdev_space_alloc()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_fmemopen.c72 off_t n;
418 off_t i; in ATF_TC_BODY()
435 for (i = (off_t)1; i <= (off_t)t->n; ++i) { in ATF_TC_BODY()
466 off_t i; in ATF_TC_BODY()
514 off_t len, rest, i; in ATF_TC_BODY()
522 rest = (off_t)t->n - len; in ATF_TC_BODY()
532 if (i < (off_t)t->n) { in ATF_TC_BODY()
549 for (i = (off_t)1; i <= (off_t)t->n; ++i) { in ATF_TC_BODY()
575 off_t len, rest, i; in ATF_TC_BODY()
635 off_t i; in ATF_TC_BODY()
[all …]
/freebsd/sys/crypto/skein/
H A Dskein_freebsd.h75 char *SKEIN256_FdChunk(int, char *, off_t, off_t);
76 char *SKEIN512_FdChunk(int, char *, off_t, off_t);
77 char *SKEIN1024_FdChunk(int, char *, off_t, off_t);
81 char *SKEIN256_FileChunk(const char *, char *, off_t, off_t);
82 char *SKEIN512_FileChunk(const char *, char *, off_t, off_t);
83 char *SKEIN1024_FileChunk(const char *, char *, off_t, off_t);
/freebsd/tests/sys/fs/fusefs/
H A Dio.cc81 off_t m_filesize;
252 void do_copy_file_range(off_t off_in, off_t off_out, size_t size) in do_copy_file_range()
409 off_t wofs = 0x21a0; in TEST_P()
411 off_t rofs = 0xb284; in TEST_P()
464 off_t wofs = 0x160c5; in TEST_P()
466 off_t rofs = 0x472e; in TEST_P()
481 off_t wofs0 = 0x3bad7; in TEST_P()
483 off_t wofs1 = 0xc30d; in TEST_P()
486 off_t rofs = 0xdf17; in TEST_P()
509 off_t wofs = 0x2790c; in TEST_P()
[all …]
H A Dcopy_file_range.cc160 off_t start1 = 1 << 18; in TEST_F()
161 off_t start2 = 3 << 17; in TEST_F()
282 off_t fsize2 = 0; in TEST_F()
283 off_t start1 = 0; in TEST_F()
284 off_t start2 = 0; in TEST_F()
338 off_t offset2_in = 0; in TEST_F()
651 off_t fsize = 65536; in TEST_F()
652 off_t off_in = 0; in TEST_F()
699 off_t fsize2 = 0; in TEST_F()
700 off_t start1 = 0; in TEST_F()
[all …]
H A Dlseek.cc61 off_t offset_in = 1 << 28; in TEST_F()
93 off_t offset = 1 << 28; in TEST_F()
155 off_t offset_initial = 1 << 27; in TEST_F()
156 off_t offset_out = 1 << 29; in TEST_F()
213 off_t offset_in = 1 << 28; in TEST_F()
214 off_t offset_out = 1 << 29; in TEST_F()
249 off_t offset_in = 1 << 28; in TEST_F()
285 off_t offset_in = 1 << 28; in TEST_F()
286 off_t offset_out = 1 << 29; in TEST_F()
321 off_t offset_in = 1 << 28; in TEST_F()
[all …]
/freebsd/contrib/elftoolchain/libelf/
H A Delf_update.c448 static off_t
509 static off_t
718 static off_t
721 off_t rc; in _libelf_write_scn()
847 static off_t
891 static off_t
953 static off_t
1034 static off_t
1037 off_t nrc, rc; in _libelf_write_elf()
1199 off_t
[all …]
/freebsd/usr.bin/tail/
H A Dextern.h46 off_t mapoff;
47 off_t maxoff;
63 void follow(file_info_t *, enum STYLE, off_t);
64 void forward(FILE *, const char *, enum STYLE, off_t, struct stat *);
65 void reverse(FILE *, const char *, enum STYLE, off_t, struct stat *);
67 int bytes(FILE *, const char *, off_t);
68 int lines(FILE *, const char *, off_t);
72 int mapprint(struct mapinfo *, off_t, off_t);
73 int maparound(struct mapinfo *, off_t);
/freebsd/bin/pax/
H A Dextern.h55 int ar_fow(off_t, off_t *);
56 int ar_rev(off_t );
76 extern off_t wrlimit;
77 extern off_t rdcnt;
78 extern off_t wrcnt;
82 int appnd_start(off_t);
85 int rd_skip(off_t);
89 int wr_skip(off_t);
116 off_t cpio_endrd(void);
123 off_t vcpio_endrd(void);
[all …]
/freebsd/sys/sys/
H A Drangelock.h73 off_t start, off_t end, struct mtx *ilk);
74 void *rangelock_rlock(struct rangelock *lock, off_t start, off_t end,
76 void *rangelock_tryrlock(struct rangelock *lock, off_t start, off_t end,
78 void *rangelock_wlock(struct rangelock *lock, off_t start, off_t end,
80 void *rangelock_trywlock(struct rangelock *lock, off_t start, off_t end,
H A Dfcntl.h55 typedef __off_t off_t; typedef
304 off_t l_start; /* starting offset */
305 off_t l_len; /* len = 0 means until end of file */
318 off_t l_start; /* starting offset */
319 off_t l_len; /* len = 0 means until end of file */
329 off_t r_offset; /* starting offset */
330 off_t r_len; /* length */
387 int posix_fadvise(int, off_t, off_t, int);
388 int posix_fallocate(int, off_t, off_t);
/freebsd/usr.bin/cksum/
H A Dextern.h35 int crc(int, uint32_t *, off_t *);
36 void pcrc(char *, uint32_t, off_t);
37 void psum1(char *, uint32_t, off_t);
38 void psum2(char *, uint32_t, off_t);
39 int csum1(int, uint32_t *, off_t *);
40 int csum2(int, uint32_t *, off_t *);
41 int crc32(int, uint32_t *, off_t *);
/freebsd/contrib/elftoolchain/libpe/
H A D_libpe.h189 off_t libpe_align(PE *, off_t, size_t);
205 int libpe_resync_sections(PE *, off_t);
207 off_t libpe_write_coff_header(PE *, off_t);
208 off_t libpe_write_msdos_stub(PE *, off_t);
209 off_t libpe_write_pe_header(PE *, off_t);
210 off_t libpe_write_sections(PE *, off_t);
211 off_t libpe_write_section_headers(PE *, off_t);
/freebsd/usr.bin/bsdiff/bsdiff/
H A Dbsdiff.c53 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) in matchlen()
55 off_t i; in matchlen()
63 static off_t search(off_t *I,u_char *old,off_t oldsize, in search()
64 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) in search()
66 off_t x,y; in search()
91 off_t y; in offtout()
121 off_t scan,pos,len; in main()
123 off_t oldscore,scsc; in main()
125 off_t overlap,Ss,lens; in main()
126 off_t i; in main()
[all …]
/freebsd/sbin/hastd/
H A Dactivemap.h44 bool activemap_write_start(struct activemap *amp, off_t offset, off_t length);
45 bool activemap_write_complete(struct activemap *amp, off_t offset,
46 off_t length);
63 off_t activemap_sync_offset(struct activemap *amp, off_t *lengthp,
65 bool activemap_need_sync(struct activemap *amp, off_t offset, off_t length);
H A Drangelock.c55 off_t rl_start;
56 off_t rl_end;
96 rangelock_add(struct rangelocks *rls, off_t offset, off_t length) in rangelock_add()
112 rangelock_del(struct rangelocks *rls, off_t offset, off_t length) in rangelock_del()
128 rangelock_islocked(struct rangelocks *rls, off_t offset, off_t length) in rangelock_islocked()
131 off_t end; in rangelock_islocked()
H A Drangelock.h42 int rangelock_add(struct rangelocks *rls, off_t offset, off_t length);
43 void rangelock_del(struct rangelocks *rls, off_t offset, off_t length);
44 bool rangelock_islocked(struct rangelocks *rls, off_t offset, off_t length);
/freebsd/sys/geom/
H A Dgeom_slice.h42 off_t offset;
43 off_t length;
49 off_t offset;
50 off_t length;
72 int g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectors…
80 int g_slice_conf_hot(struct g_geom *gp, u_int idx, off_t offset, off_t length, int ract, int dact, …
/freebsd/usr.sbin/trim/
H A Dtrim.c49 static off_t getsize(const char *path);
51 static int trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose);
57 off_t offset, length; in main()
80 (off_t)usz < 0 || (usz == 0 && ch == 'l')) in main()
86 offset = (off_t)usz; in main()
88 length = (off_t)usz; in main()
171 static off_t
175 off_t mediasize; in getsize()
204 trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose) in trim()
206 off_t arg[2]; in trim()
/freebsd/sys/geom/vinum/
H A Dgeom_vinum.h90 void gv_adjust_freespace(struct gv_sd *, off_t);
109 void gv_update_vol_size(struct gv_volume *, off_t);
110 off_t gv_vol_size(struct gv_volume *);
111 off_t gv_plex_size(struct gv_plex *);
115 int gv_attach_sd(struct gv_sd *, struct gv_plex *, off_t,
145 int gv_grow_request(struct gv_plex *, off_t, off_t, int, caddr_t);
147 void gv_init_request(struct gv_sd *, off_t, caddr_t, off_t);
149 void gv_parity_request(struct gv_plex *, int, off_t);
152 int gv_sync_request(struct gv_plex *, struct gv_plex *, off_t, off_t, int,
/freebsd/sys/crypto/sha2/
H A Dsha512t.h122 char *SHA512_224_FdChunk(int, char *, off_t, off_t);
124 char *SHA512_224_FileChunk(const char *, char *, off_t, off_t);
134 char *SHA512_256_FdChunk(int, char *, off_t, off_t);
136 char *SHA512_256_FileChunk(const char *, char *, off_t, off_t);
/freebsd/tools/regression/fsx/
H A Dfsx.c103 off_t file_size = 0;
104 off_t biggest = 0;
295 off_t ret; in save_buffer()
306 off_t size_by_seek = lseek(savefd, (off_t)0, SEEK_END); in save_buffer()
400 off_t size_by_seek; in check_size()
434 doread(off_t offset, off_t size) in doread()
436 off_t ret; in doread()
582 off_t ret; in dowrite()
744 if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) { in writefileimage()
818 off_t offset; in test()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DFile.h176 virtual off_t SeekFromStart(off_t offset, Status *error_ptr = nullptr);
196 virtual off_t SeekFromCurrent(off_t offset, Status *error_ptr = nullptr);
217 virtual off_t SeekFromEnd(off_t offset, Status *error_ptr = nullptr);
240 virtual Status Read(void *dst, size_t &num_bytes, off_t &offset);
265 virtual Status Write(const void *src, size_t &num_bytes, off_t &offset);
401 off_t SeekFromStart(off_t offset, Status *error_ptr = nullptr) override;
402 off_t SeekFromCurrent(off_t offset, Status *error_ptr = nullptr) override;
403 off_t SeekFromEnd(off_t offset, Status *error_ptr = nullptr) override;
404 Status Read(void *dst, size_t &num_bytes, off_t &offset) override;
405 Status Write(const void *src, size_t &num_bytes, off_t &offset) override;

12345678910>>...48