Searched defs:whence (Results 1 - 25 of 38) sorted by relevance

12

/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dlseek.c36 lseek(int fd, off_t offset, int whence) argument
40 if (whence < 0 || whence > 2) {
47 if ((ret = _syscall(SYS_lseek, fd, off, whence)) != -1)
52 return (_syscall(SYS_lseek, fd, offset, whence));
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_lseek.c43 pr_lseek(struct ps_prochandle *Pr, int filedes, off_t offset, int whence) argument
54 return (lseek(filedes, offset, whence));
89 adp++; /* whence argument */
90 adp->arg_value = whence;
118 pr_llseek(struct ps_prochandle *Pr, int filedes, offset_t offset, int whence) argument
129 return (llseek(filedes, offset, whence));
164 adp++; /* whence argument */
165 adp->arg_value = whence;
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_memio.c60 memio_seek(mdb_io_t *io, off64_t offset, int whence) argument
65 switch (whence) {
84 return (IOP_SEEK(io->io_next, offset, whence));
H A Dmdb_strio.c65 strio_seek(mdb_io_t *io, off64_t offset, int whence) argument
71 return (IOP_SEEK(io->io_next, offset, whence));
73 switch (whence) {
H A Dmdb_fdio.c79 fdio_seek(mdb_io_t *io, off64_t offset, int whence) argument
84 return (lseek64(fdp->fd_fd, offset, whence));
86 return (IOP_SEEK(io->io_next, offset, whence));
/illumos-gate/usr/src/boot/lib/libz/
H A Dzopen.c33 xgzseek(void *cookie, fpos_t offset, int whence) argument
35 return gzseek(cookie, (z_off_t)offset, whence);
/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) argument
H A Dfsswitch.c208 lseek(int filefd, off_t addr, int whence) argument
211 return ((*dfl_fsw->fsw_lseek)(filefd, addr, whence));
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dwhence.c23 * whence [-afvp] name...
45 static int whence(Shell_t *,char**, int);
89 return(whence(shp,argv, flags));
93 * for the whence command
130 return(whence(shp, argv, flags));
133 static int whence(Shell_t *shp,char **argv, register int flags) function
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_promio.c79 pio_seek(mdb_io_t *io, off64_t offset, int whence) argument
84 return (IOP_SEEK(io->io_next, offset, whence));
/illumos-gate/usr/src/common/fs/
H A Ddecompress.c267 cf_seek(fileid_t *filep, off_t addr, int whence) argument
275 if (whence == SEEK_CUR)
H A Dbootfsops.c256 bbootfs_lseek(int fd, off_t addr, int whence) argument
263 switch (whence) {
H A Dpcfs.c104 static off_t bpcfs_lseek(int fdesc, off_t addr, int whence);
353 * This version of seek() only performs absolute seeks (whence == 0).
356 bpcfs_lseek(int fd, off_t addr, int whence) argument
364 switch (whence) {
373 printf("lseek(): invalid whence value %d\n", whence);
H A Dufsops.c660 bufs_lseek(int fd, off_t addr, int whence) argument
669 cf_seek(filep, addr, whence);
671 switch (whence) {
680 printf("lseek(): invalid whence value %d\n", whence);
H A Dhsfs.c141 static off_t bhsfs_lseek(int fdesc, off_t addr, int whence);
555 * This version of seek() only performs absolute seeks (whence == 0).
558 bhsfs_lseek(int fd, off_t addr, int whence) argument
568 cf_seek(filep, addr, whence);
570 switch (whence) {
579 printf("lseek(): invalid whence value %d\n", whence);
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rep.c142 lock_register(int fd, int cmd, int type, off_t offset, int whence, off_t len) argument
148 lock.l_whence = whence;
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfsops.c307 boot_nfs_lseek(int fd, off_t offset, int whence) argument
313 printf("boot_nfs_lseek(%d, 0x%x, %d)\n", fd, offset, whence);
324 switch (whence) {
347 dprintf("boot_nfs_lseek: invalid whence value.\n");
/illumos-gate/usr/src/test/zfs-tests/cmd/getholes/
H A Dgetholes.c50 * Return an appropriate whence value, depending on whether the file begins
119 int c, fd, options = 0, whence = SEEK_DATA; local
160 whence = starts_with_hole(fd);
161 while ((off = lseek(fd, off, whence)) != -1) {
165 seg->seg_type = whence;
172 whence = whence == SEEK_HOLE ? SEEK_DATA : SEEK_HOLE;
/illumos-gate/usr/src/uts/common/krtld/
H A Dbootrd.c110 BRD_SEEK(struct boot_fs_ops *ops, int fd, off_t addr, int whence) argument
114 addr, whence));
117 return (ops->fsw_lseek(fd, addr, whence));
/illumos-gate/usr/src/stand/lib/sa/
H A Dstdio.c281 fseek(FILE *stream, long offset, int whence) argument
288 switch (whence) {
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdcdos.c83 static struct map *getmapping(Dosdisc_t *dp, Sfoff_t offset, register int whence) argument
85 static struct map *getmapping(dp, offset, whence)
88 register int whence;
104 while((++mp)->logical && (whence==SEEK_CUR?mp->physical:mp->logical) <= offset);
226 * if <whence> is SEEK_CUR, physical offset converted to logical offset
230 static Sfoff_t cur_offset(Dosdisc_t *dp, Sfoff_t offset,Sfio_t *iop,register int whence) argument
232 static Sfoff_t cur_offset(dp, offset, iop, whence)
236 register int whence;
242 if(whence==SEEK_CUR)
244 whence
276 dos_seek(Sfio_t *iop, Sfoff_t offset, register int whence, Sfdisc_t* disc) argument
[all...]
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c718 boot_ufs_lseek(int fd, off_t addr, int whence) argument
726 switch (whence) {
735 printf("ufs_lseek(): invalid whence value %d\n", whence);
/illumos-gate/usr/src/common/ficl/
H A Dloader.c698 * fseek ( fd ofs whence -- pos )
703 int fd, pos, whence; local
707 whence = ficlStackPopInteger(ficlVmGetDataStack(pVM));
710 ficlStackPushInteger(ficlVmGetDataStack(pVM), lseek(fd, pos, whence));
/illumos-gate/usr/src/boot/sys/boot/userboot/test/
H A Dtest.c214 test_seek(void *arg, void *h, uint64_t offset, int whence) argument
220 if (lseek(tf->tf_u.fd, offset, whence) < 0)
/illumos-gate/usr/src/lib/mpapi/libmpapi/common/
H A Dmpapi.c88 static int lock_register(int fd, int cmd, int type, off_t offset, int whence,
3331 lock_register(int fd, int cmd, int type, off_t offset, int whence, off_t len) argument
3337 lock.l_whence = whence;

Completed in 124 milliseconds

12