| /minix3/minix/tests/ |
| H A D | test26.c | 61 if (lseek(fd, (off_t) 3, SEEK_SET) != (off_t) 3) e(2); in test26a() 64 if (lseek(fd, (off_t) - 1, SEEK_END) != 5) e(5); in test26a() 69 if (lseek(fd, (off_t) 1000, SEEK_END) != 1006) e(8); in test26a() 74 if (st.st_size != (off_t) 6) e(11); in test26a() 79 if (lseek(fd, (off_t) 3, SEEK_SET) != (off_t) 3) e(14); in test26a() 81 if (lseek(fd, (off_t) 1000, SEEK_END) != 1006) e(16); in test26a() 85 if (st.st_size != (off_t) 6) e(18); in test26a() 90 if (st.st_size != (off_t) 1007) e(21); in test26a() 106 if (lseek(fd, (off_t) 15, SEEK_CUR) != (off_t) i * 25 + 6) e(29); in test26a() 109 if (lseek(fd, (off_t) 1006, SEEK_SET) != (off_t) 1006) e(30); in test26a() [all …]
|
| H A D | test50.c | 20 int make_file(off_t size); 21 void check_file(int fd, off_t size, off_t hole_start, off_t hole_end); 22 void all_sizes(void (*call) (off_t osize, off_t nsize)); 27 void sub50e(off_t osize, off_t nsize); 29 void sub50f(off_t osize, off_t nsize); 31 void sub50g(off_t osize, off_t nsize); 33 void sub50h(off_t osize, off_t nsize); 35 void sub50i(off_t size, off_t off, size_t len, int type); 42 static off_t sizes[] = { 97 void(*call) (off_t osize, off_t nsize); [all …]
|
| /minix3/usr.bin/cmp/ |
| H A D | extern.h | 38 void c_regular(int, const char *, off_t, off_t, int, const char *, off_t, off_t); 39 void c_special(int, const char *, off_t, int, const char *, off_t); 40 __dead void diffmsg(const char *, const char *, off_t, off_t); 41 __dead void eofmsg(const char *, off_t, off_t); 42 __dead void errmsg(const char *, off_t, off_t);
|
| H A D | misc.c | 50 errmsg(const char *file, off_t byte, off_t line) in errmsg() 60 eofmsg(const char *file, off_t byte, off_t line) in eofmsg() 78 diffmsg(const char *file1, const char *file2, off_t byte, off_t line) in diffmsg()
|
| /minix3/tests/lib/libc/stdio/ |
| H A D | t_fmemopen.c | 72 off_t n; 173 ATF_CHECK(ftello(fp) == (off_t)0); in ATF_TC_BODY() 201 ATF_CHECK(ftello(fp) == (off_t)0); in ATF_TC_BODY() 208 ATF_CHECK(fseeko(fp, (off_t)0, SEEK_END) == 0); in ATF_TC_BODY() 209 ATF_CHECK(ftello(fp) == (off_t)sizeof(buf)); in ATF_TC_BODY() 237 ATF_CHECK(ftello(fp) == (off_t)0); in ATF_TC_BODY() 242 ATF_CHECK(fseeko(fp, (off_t)0, SEEK_END) == 0); in ATF_TC_BODY() 243 ATF_CHECK(ftello(fp) == (off_t)0); in ATF_TC_BODY() 275 ATF_CHECK(ftello(fp) == (off_t)sizeof(buf)); in ATF_TC_BODY() 284 ATF_CHECK(fseeko(fp, (off_t)0, SEEK_END) == 0); in ATF_TC_BODY() [all …]
|
| /minix3/external/bsd/bind/dist/lib/isc/unix/include/isc/ |
| H A D | offset.h | 33 typedef off_t isc_offset_t; 36 (sizeof(off_t) == sizeof(char) ? INT_MAX : \ 37 (sizeof(off_t) == sizeof(short) ? SHRT_MAX : \ 38 (sizeof(off_t) == sizeof(int) ? INT_MAX : \ 39 (sizeof(off_t) == sizeof(long) ? LONG_MAX : \ 40 (sizeof(off_t) == sizeof(long long) ? LLONG_MAX : INTMAX_MAX)))))
|
| /minix3/bin/pax/ |
| H A D | extern.h | 74 int ar_fow(off_t, off_t *); 75 int ar_rev(off_t ); 102 extern off_t wrlimit; 103 extern off_t rdcnt; 104 extern off_t wrcnt; 108 int appnd_start(off_t); 111 int rd_skip(off_t); 115 int wr_skip(off_t); 116 int wr_rdfile(ARCHD *, int, off_t *); 117 int rd_wrfile(ARCHD *, int, off_t *); [all …]
|
| /minix3/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
| H A D | sha2.h | 84 char *SHA224_FileChunk(const char *, char *, off_t, off_t); 94 char *SHA256_FileChunk(const char *, char *, off_t, off_t); 104 char *SHA384_FileChunk(const char *, char *, off_t, off_t); 114 char *SHA512_FileChunk(const char *, char *, off_t, off_t);
|
| /minix3/sys/sys/ |
| H A D | sha2.h | 84 char *SHA224_FileChunk(const char *, char *, off_t, off_t); 94 char *SHA256_FileChunk(const char *, char *, off_t, off_t); 104 char *SHA384_FileChunk(const char *, char *, off_t, off_t); 114 char *SHA512_FileChunk(const char *, char *, off_t, off_t);
|
| H A D | file.h | 83 int (*fo_read) (struct file *, off_t *, struct uio *, 85 int (*fo_write) (struct file *, off_t *, struct uio *, 94 int (*fo_mmap) (struct file *, off_t *, size_t, int, int *, 122 off_t f_offset; /* first, is 64-bit */ 185 off_t *, int, register_t *); 187 size_t, off_t *, int, register_t *); 189 int do_filereadv(int, const struct iovec *, int, off_t *, 191 int do_filewritev(int, const struct iovec *, int, off_t *, 202 int fbadop_read(struct file *, off_t *, struct uio *, kauth_cred_t, int); 203 int fbadop_write(struct file *, off_t *, struct uio *, kauth_cred_t, int);
|
| H A D | uio.h | 64 #ifndef off_t 65 typedef __off_t off_t; /* file offset */ typedef 66 #define off_t __off_t macro 84 off_t uio_offset; /* offset into file this uio corresponds to */ 113 ssize_t preadv(int, const struct iovec *, int, off_t); 114 ssize_t pwritev(int, const struct iovec *, int, off_t);
|
| /minix3/lib/libpuffs/ |
| H A D | puffs.h | 72 off_t pkc_start; 73 off_t pkc_end; 80 off_t pn_size; 202 puffs_cookie_t, const struct puffs_cred *, int, off_t, off_t); 204 puffs_cookie_t, off_t, off_t, const struct puffs_cred *); 222 puffs_cookie_t, struct dirent *, off_t *, size_t *, 223 const struct puffs_cred *, int *, off_t *, size_t *); 234 uint8_t *, off_t, size_t *, const struct puffs_cred *, int); 236 uint8_t *, off_t, size_t *, const struct puffs_cred *, int); 255 uint8_t *, off_t, size_t *, const struct puffs_cred *, int, int); [all …]
|
| /minix3/include/ |
| H A D | unistd.h | 177 int posix_fallocate(int, off_t, off_t); 189 off_t lseek(int, off_t, int); 190 int truncate(const char *, off_t); 198 int ftruncate(int, off_t); 279 int lockf(int, int, off_t); 310 ssize_t pread(int, void *, size_t, off_t); 311 ssize_t pwrite(int, const void *, size_t, off_t); 349 int fdiscard(int, off_t, off_t); 351 int fsync_range(int, int, off_t, off_t);
|
| /minix3/usr.bin/cksum/ |
| H A D | extern.h | 42 void pcrc(char *, u_int32_t, off_t); 43 void psum1(char *, u_int32_t, off_t); 44 void psum2(char *, u_int32_t, off_t); 45 int csum1(int, u_int32_t *, off_t *); 46 int csum2(int, u_int32_t *, off_t *);
|
| /minix3/lib/libc/sys/ |
| H A D | posix_fallocate.c | 43 int __posix_fallocate(int, int, off_t, off_t); 49 posix_fallocate(int fd, off_t off, off_t len) in posix_fallocate()
|
| H A D | fdiscard.c | 43 int __fdiscard(int, int, off_t, off_t); 49 fdiscard(int fd, off_t off, off_t len) in fdiscard()
|
| H A D | posix_fadvise.c | 34 int __posix_fadvise50(int fd, int pad, off_t offset, off_t size, int hint); 37 posix_fadvise(int fd, off_t offset, off_t size, int hint) in posix_fadvise()
|
| H A D | lseek.c | 50 off_t __lseek(int, int, off_t, int); 56 off_t 57 lseek(int fd, off_t offset, int whence) in lseek()
|
| /minix3/minix/lib/libsys/ |
| H A D | vm_cache.c | 16 off_t dev_offset, ino_t ino, off_t ino_offset, u32_t *flags, in vm_cachecall() 47 void *vm_map_cacheblock(dev_t dev, off_t dev_offset, in vm_map_cacheblock() 48 ino_t ino, off_t ino_offset, u32_t *flags, int blocksize) in vm_map_cacheblock() 59 int vm_set_cacheblock(void *block, dev_t dev, off_t dev_offset, in vm_set_cacheblock() 60 ino_t ino, off_t ino_offset, u32_t *flags, int blocksize, int setflags) in vm_set_cacheblock() 68 int vm_forget_cacheblock(dev_t dev, off_t dev_offset, int blocksize) in vm_forget_cacheblock()
|
| /minix3/external/bsd/elftoolchain/dist/libelf/ |
| H A D | elf_getbase.c | 38 off_t 43 return ((off_t) -1); in elf_getbase() 47 return ((off_t) 0); in elf_getbase() 49 return ((off_t) ((uintptr_t) e->e_rawfile - in elf_getbase()
|
| H A D | elf_update.c | 118 _libelf_compute_section_extents(Elf *e, Elf_Scn *s, off_t rc) in _libelf_compute_section_extents() 448 static off_t 449 _libelf_resync_sections(Elf *e, off_t rc, struct _Elf_Extent_List *extents) in _libelf_resync_sections() 471 return ((off_t) -1); in _libelf_resync_sections() 478 return ((off_t) -1); in _libelf_resync_sections() 509 static off_t 516 off_t rc, phoff, shoff; in _libelf_resync_elf() 531 return ((off_t) -1); in _libelf_resync_elf() 555 return ((off_t) -1); in _libelf_resync_elf() 560 return ((off_t) -1); in _libelf_resync_elf() [all …]
|
| /minix3/lib/libc/stdio/ |
| H A D | ftello.c | 54 off_t in __weak_alias() 57 off_t pos; in __weak_alias() 65 return (off_t)-1; in __weak_alias() 76 pos = (*fp->_seek)(fp->_cookie, (off_t)0, SEEK_CUR); in __weak_alias() 77 if (pos == (off_t)-1) { in __weak_alias()
|
| H A D | funopen.c | 55 off_t (*seekfn)(void *, off_t, int), in funopen2() argument 91 off_t (*seekfn)(void *, off_t, int); 127 static off_t 128 cseekfn(void *dookie, off_t off, int whence) in cseekfn() 148 off_t (*seekfn)(void *, off_t, int), in funopen() argument
|
| H A D | stdio.c | 89 if (lseek(__sfileno(fp), (off_t)0, SEEK_END) == (off_t)-1) { in __swrite() 99 off_t 100 __sseek(void *cookie, off_t offset, int whence) in __sseek() 103 off_t ret; in __sseek() 109 if (ret == (off_t)-1L) in __sseek()
|
| /minix3/minix/include/minix/ |
| H A D | vm.h | 23 int minix_vfs_mmap(endpoint_t who, off_t offset, size_t len, 28 void *addr, size_t len, int prot, int flags, int fd, off_t offset); 29 int minix_vfs_mmap(endpoint_t who, off_t offset, size_t len, 75 int vm_set_cacheblock(void *block, dev_t dev, off_t dev_offset, 76 ino_t ino, off_t ino_offset, u32_t *flags, int blocksize, 78 void *vm_map_cacheblock(dev_t dev, off_t dev_offset, 79 ino_t ino, off_t ino_offset, u32_t *flags, int blocksize); 80 int vm_forget_cacheblock(dev_t dev, off_t dev_offset, int blocksize);
|