/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcdos.c | 83 static struct map *getmapping(Dosdisc_t *dp, Sfoff_t offset, register int whence) in getmapping() argument 85 static struct map *getmapping(dp, offset, whence) in getmapping() 88 register int whence; 104 while((++mp)->logical && (whence==SEEK_CUR?mp->physical:mp->logical) <= offset); 230 static Sfoff_t cur_offset(Dosdisc_t *dp, Sfoff_t offset,Sfio_t *iop,register int whence) in cur_offset() argument 232 static Sfoff_t cur_offset(dp, offset, iop, whence) in cur_offset() 236 register int whence; 242 if(whence==SEEK_CUR) 244 whence= -1; 251 whence = 1; [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/os/ |
H A D | os_seek.c | 31 __os_seek(fd, pgsize, pageno, relative, isrewind, whence) in __os_seek() argument 36 int isrewind, whence; 43 pgsize, pageno, relative, isrewind, whence); 49 ret = lseek(fd, offset, whence);
|
/illumos-gate/usr/src/test/zfs-tests/cmd/getholes/ |
H A D | getholes.c | 119 int c, fd, options = 0, whence = SEEK_DATA; in main() local 160 whence = starts_with_hole(fd); in main() 161 while ((off = lseek(fd, off, whence)) != -1) { in main() 165 seg->seg_type = whence; in main() 172 whence = whence == SEEK_HOLE ? SEEK_DATA : SEEK_HOLE; in main()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_lseek.c | 41 pr_lseek(struct ps_prochandle *Pr, int filedes, off_t offset, int whence) in pr_lseek() argument 52 return (lseek(filedes, offset, whence)); in pr_lseek() 88 adp->arg_value = whence; in pr_lseek() 116 pr_llseek(struct ps_prochandle *Pr, int filedes, offset_t offset, int whence) in pr_llseek() argument 127 return (llseek(filedes, offset, whence)); in pr_llseek() 163 adp->arg_value = whence; in pr_llseek()
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fseek.c | 77 sm_io_seek(fp, timeout, offset, whence) in sm_io_seek() argument 81 int SM_NONVOLATILE whence; 134 switch (whence) 168 whence = SM_IO_SEEK_SET; 215 if (whence == SM_IO_SEEK_SET) 322 (*seekfn)(fp, (off_t) offset, whence) == POS_ERR)
|
H A D | smstdio.c | 201 sm_stdioseek(fp, offset, whence) in sm_stdioseek() argument 204 int whence; 211 return fseek(s, offset, whence);
|
H A D | stdio.c | 179 sm_stdseek(fp, offset, whence) in sm_stdseek() argument 182 int whence; 186 ret = lseek(fp->f_file, (off_t) offset, whence);
|
H A D | strio.c | 164 sm_strseek(fp, offset, whence) in sm_strseek() argument 167 int whence; 173 switch (whence)
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_memio.c | 58 memio_seek(mdb_io_t *io, off64_t offset, int whence) in memio_seek() argument 63 switch (whence) { in memio_seek() 82 return (IOP_SEEK(io->io_next, offset, whence)); in memio_seek()
|
H A D | mdb_strio.c | 63 strio_seek(mdb_io_t *io, off64_t offset, int whence) in strio_seek() argument 69 return (IOP_SEEK(io->io_next, offset, whence)); in strio_seek() 71 switch (whence) { in strio_seek()
|
H A D | mdb_io_impl.h | 54 #define IOP_SEEK(io, off, whence) ((io)->io_ops->io_seek((io), (off), (whence))) argument
|
H A D | mdb_fdio.c | 77 fdio_seek(mdb_io_t *io, off64_t offset, int whence) in fdio_seek() argument 82 return (lseek64(fdp->fd_fd, offset, whence)); in fdio_seek() 84 return (IOP_SEEK(io->io_next, offset, whence)); in fdio_seek()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | whence.c | 45 static int whence(Shell_t *,char**, int); 89 return(whence(shp,argv, flags)); in b_command() 130 return(whence(shp, argv, flags)); in b_whence() 133 static int whence(Shell_t *shp,char **argv, register int flags) in whence() function
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_fssub.c | 390 convoff(struct vnode *vp, struct flock64 *lckdat, int whence, offset_t offset) in convoff() argument 395 if ((lckdat->l_whence == 2) || (whence == 2)) { in convoff() 417 switch (whence) { in convoff() 430 lckdat->l_whence = (short)whence; in convoff()
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | bootrd.c | 114 BRD_SEEK(struct boot_fs_ops *ops, int fd, off_t addr, int whence) in BRD_SEEK() argument 118 addr, whence)); in BRD_SEEK() 121 return (ops->fsw_lseek(fd, addr, whence)); in BRD_SEEK()
|
/illumos-gate/usr/src/stand/lib/fs/common/ |
H A D | promfs.c | 43 static off_t promfs_lseek(int fd, off_t offset, int whence); 99 promfs_lseek(int fd, off_t offset, int whence) in promfs_lseek() argument
|
/illumos-gate/usr/src/stand/sys/ |
H A D | bootvfs.h | 59 off_t (*fsw_lseek)(int filefd, off_t addr, int whence); 76 extern off_t lseek(int filefd, off_t addr, int whence);
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | bootvfs.h | 56 off_t (*fsw_lseek)(int filefd, off_t addr, int whence); 102 extern off_t lseek(int filefd, off_t addr, int whence);
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | nfsops.c | 307 boot_nfs_lseek(int fd, off_t offset, int whence) in boot_nfs_lseek() argument 313 printf("boot_nfs_lseek(%d, 0x%x, %d)\n", fd, offset, whence); in boot_nfs_lseek() 324 switch (whence) { in boot_nfs_lseek()
|
/illumos-gate/usr/src/test/libc-tests/tests/stdio/ |
H A D | memstream.c | 649 memstream_check_seek(FILE *f, size_t len, int whence) in memstream_check_seek() argument 655 if (fseeko(f, 0, whence) != 0) { in memstream_check_seek() 656 warn("failed to seek, whence: %d", whence); in memstream_check_seek() 1026 int whence; in fmemopen_bad_seeks() member 1050 r = fseek(f, seeks[i].off, seeks[i].whence); in fmemopen_bad_seeks() 1053 "expected %d, found %d", seeks[i].whence, in fmemopen_bad_seeks() 1424 int whence; in memstream_bad_seek() member 1447 r = fseek(f, seeks[i].off, seeks[i].whence); in memstream_bad_seek() 1450 "expected %d, found %d", seeks[i].whence, in memstream_bad_seek() 1457 r = fseek(fw, seeks[i].off, seeks[i].whence); in memstream_bad_seek() [all …]
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | flush.c | 1022 _xseek(FILE *iop, off_t off, int whence) in _xseek() argument 1026 return (ops->std_seek(iop, off, whence)); in _xseek() 1029 return (lseek(_get_fd(iop), off, whence)); in _xseek() 1033 _xseek64(FILE *iop, off64_t off, int whence) in _xseek64() argument 1047 return (ops->std_seek(iop, off, whence)); in _xseek64() 1050 return (lseek64(_get_fd(iop), off, whence)); in _xseek64()
|
H A D | fmemopen.c | 134 fmemopen_seek(FILE *iop, off_t off, int whence) in fmemopen_seek() argument 139 switch (whence) { in fmemopen_seek()
|
H A D | open_wmemstream.c | 125 open_wmemstream_seek(FILE *iop, off_t off, int whence) in open_wmemstream_seek() argument 130 switch (whence) { in open_wmemstream_seek()
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_promio.c | 79 pio_seek(mdb_io_t *io, off64_t offset, int whence) in pio_seek() argument 84 return (IOP_SEEK(io->io_next, offset, whence)); in pio_seek()
|
/illumos-gate/usr/src/common/fs/ |
H A D | pcfs.c | 102 static off_t bpcfs_lseek(int fdesc, off_t addr, int whence); 354 bpcfs_lseek(int fd, off_t addr, int whence) in bpcfs_lseek() argument 362 switch (whence) { in bpcfs_lseek() 371 printf("lseek(): invalid whence value %d\n", whence); in bpcfs_lseek()
|