Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 25 of 80) sorted by relevance

1234

/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcdos.c83 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 Dos_seek.c31 __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 Dgetholes.c119 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 Dpr_lseek.c41 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 Dfseek.c77 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 Dsmstdio.c201 sm_stdioseek(fp, offset, whence) in sm_stdioseek() argument
204 int whence;
211 return fseek(s, offset, whence);
H A Dstdio.c179 sm_stdseek(fp, offset, whence) in sm_stdseek() argument
182 int whence;
186 ret = lseek(fp->f_file, (off_t) offset, whence);
H A Dstrio.c164 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 Dmdb_memio.c58 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 Dmdb_strio.c63 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 Dmdb_io_impl.h54 #define IOP_SEEK(io, off, whence) ((io)->io_ops->io_seek((io), (off), (whence))) argument
H A Dmdb_fdio.c77 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 Dwhence.c45 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 Dfake_fssub.c390 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 Dbootrd.c114 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 Dpromfs.c43 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 Dbootvfs.h59 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 Dbootvfs.h56 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 Dnfsops.c307 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 Dmemstream.c649 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 Dflush.c1022 _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 Dfmemopen.c134 fmemopen_seek(FILE *iop, off_t off, int whence) in fmemopen_seek() argument
139 switch (whence) { in fmemopen_seek()
H A Dopen_wmemstream.c125 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 Dkmdb_promio.c79 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 Dpcfs.c102 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()

1234