Searched refs:whence (Results 1 - 25 of 64) sorted by relevance

123

/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/cmd/sendmail/db/os/
H A Dos_seek.c31 __os_seek(fd, pgsize, pageno, relative, isrewind, whence)
36 int isrewind, whence;
43 pgsize, pageno, relative, isrewind, whence);
49 ret = lseek(fd, offset, 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/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/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/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_io_impl.h56 #define IOP_SEEK(io, off, whence) ((io)->io_ops->io_seek((io), (off), (whence)))
H A Dmdb_fdio.c77 fdio_seek(mdb_io_t *io, off64_t offset, int whence) argument
82 return (lseek64(fdp->fd_fd, offset, whence));
84 return (IOP_SEEK(io->io_next, 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
/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/cmd/sendmail/libsm/
H A Dfseek.c70 ** offset -- seek offset based on 'whence'
71 ** whence -- indicates where seek is relative from.
79 sm_io_seek(fp, timeout, offset, whence)
83 int SM_NONVOLATILE whence;
131 ** Change any SM_IO_SEEK_CUR to SM_IO_SEEK_SET, and check `whence'
132 ** argument. After this, whence is either SM_IO_SEEK_SET or
136 switch (whence)
170 whence = SM_IO_SEEK_SET;
217 if (whence == SM_IO_SEEK_SET)
324 (*seekfn)(fp, (off_t) offset, whence)
[all...]
H A Dsmstdio.c195 ** offset -- new location based on 'whence'
196 ** whence -- indicates "base" for 'offset'
203 sm_stdioseek(fp, offset, whence)
206 int whence;
213 return fseek(s, offset, whence);
H A Dstdio.c169 ** offset -- how far to position from "base" (set by 'whence')
170 ** whence -- indicates where the "base" of the 'offset' to start
181 sm_stdseek(fp, offset, whence)
184 int whence;
188 ret = lseek(fp->f_file, (off_t) offset, whence);
H A Dstrio.c153 ** values for whence.
158 ** whence -- determines "base" for 'offset'
166 sm_strseek(fp, offset, whence)
169 int whence;
175 switch (whence)
/illumos-gate/usr/src/uts/common/krtld/
H A Dbootrd.c113 BRD_SEEK(struct boot_fs_ops *ops, int fd, off_t addr, int whence) argument
117 addr, whence));
120 return (ops->fsw_lseek(fd, addr, whence));
H A Dbootrd_cpio.c434 bcpio_lseek(int fd, off_t addr, int whence) argument
442 switch (whence) {
453 printf("lseek(): invalid whence value %d\n", 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/lib/libm/i386/src/
H A Dexp2f.s66 / whence x is in f2xm1's domain.
H A Dexp2.s72 / whence x is in f2xm1's domain.
H A Dexp2l.s75 / whence x is in f2xm1's domain.
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_fssub.c386 * convoff - converts the given data (start, whence) to the
387 * given whence.
390 convoff(struct vnode *vp, struct flock64 *lckdat, int whence, offset_t offset) argument
395 if ((lckdat->l_whence == 2) || (whence == 2)) {
417 switch (whence) {
430 lckdat->l_whence = (short)whence;
/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/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");

Completed in 228 milliseconds

123