Searched refs:SEEK_CUR (Results 1 - 25 of 146) sorted by relevance

123456

/illumos-gate/usr/src/lib/libast/common/dir/
H A Dtelldir.c40 return(lseek(dirp->dd_fd, 0L, SEEK_CUR) + (long)dirp->dd_loc);
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dftell.c35 return (long)sfseek(f, (Sfoff_t)0, SEEK_CUR);
45 return (int64_t)sfseek(f, (Sfoff_t)0, SEEK_CUR);
H A Dftello.c35 return sfseek(f, (Sfoff_t)0, SEEK_CUR);
45 return sfseek(f, (Sfoff_t)0, SEEK_CUR) >= 0 ? 0 : -1;
H A Dfgetpos.c35 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1;
45 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1;
H A Dfflush.c39 sfseek(f, (Sfoff_t)0, SEEK_CUR|SF_PUBLIC);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dtell.c55 return (lseek64(f, 0, SEEK_CUR));
63 return (lseek(f, 0, SEEK_CUR));
H A Dseekdir.c60 if (lseek(dirp->dd_fd, 0, SEEK_CUR) != 0) {
93 if (lseek64(dirp->dd_fd, 0, SEEK_CUR) != 0) {
H A Dtelldir.c63 if (lseek(dirp->dd_fd, 0, SEEK_CUR) != 0) {
87 if (lseek64(dirp->dd_fd, 0, SEEK_CUR) != 0) {
/illumos-gate/usr/src/boot/lib/libstand/
H A Dlseek.c87 case SEEK_CUR:
107 if ((filepos = (f->f_ops->fo_seek)(f, (off_t)0, SEEK_CUR)) == -1)
114 case SEEK_CUR:
133 if (where == SEEK_CUR)
/illumos-gate/usr/src/lib/libpp/common/
H A Dppprintf.c41 pp.outp += sfseek(sp, 0L, SEEK_CUR);
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfseek.c93 if((type &= (SEEK_SET|SEEK_CUR|SEEK_END)) != SEEK_SET &&
94 type != SEEK_CUR && type != SEEK_END )
101 (void)SFSK(f,(Sfoff_t)0,SEEK_CUR,f->disc);
118 if(type == SEEK_CUR)
165 { r = p + (type == SEEK_CUR ? f->here : 0);
176 r = p + (type == SEEK_CUR ? s : 0);
178 { if((hardseek || (type == SEEK_CUR && p == 0)) )
179 { if((s = SFSK(f, (Sfoff_t)0, SEEK_CUR, f->disc)) == f->here ||
201 if((p += type == SEEK_CUR ? s : 0) < 0)
H A Dsfsize.c64 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,disc);
72 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,disc);
78 f->here = SFSK(f,(Sfoff_t)0,SEEK_CUR,f->disc);
H A Dsftell.c55 p = sfseek(f,(Sfoff_t)0,SEEK_CUR);
H A Dsfmove.c66 (void)SFSEEK(fr,(Sfoff_t)(-r),SEEK_CUR);
68 (void)SFSEEK(fw,(Sfoff_t)(-w),SEEK_CUR);
97 else if((cur = SFSEEK(fr, (Sfoff_t)0, SEEK_CUR)) >= 0 )
98 { sk = n > 0 ? SFSEEK(fr, n, SEEK_CUR) : SFSEEK(fr, 0, SEEK_END);
196 (void)SFSK(fr,(Sfoff_t)(-w),SEEK_CUR,fr->disc);
213 (void)SFSEEK(fr,(Sfoff_t)(-r),SEEK_CUR);
H A Dsfsk.c61 if((type &= (SEEK_SET|SEEK_CUR|SEEK_END)) > SEEK_END)
70 else if(type == SEEK_CUR)
/illumos-gate/usr/src/head/
H A Dfcntl.h54 #ifndef SEEK_CUR
55 #define SEEK_CUR 1 /* Set file pointer to current plus "offset" */ macro
/illumos-gate/usr/src/boot/sys/sys/
H A Dunistd.h108 #define SEEK_CUR 1 /* set file offset to current plus offset */ macro
119 #define L_INCR SEEK_CUR
/illumos-gate/usr/src/lib/libbc/inc/include/
H A Dunistd.h95 #define SEEK_CUR 1 /* Set file pointer to current plus "offset" */ macro
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dftell.c77 tres = lseek64(FILENO(iop), 0, SEEK_CUR);
H A Dftello.c82 tres = lseek64(FILENO(iop), 0, SEEK_CUR);
/illumos-gate/usr/src/test/zfs-tests/cmd/largest_file/
H A Dlargest_file.c95 llseek_ret = llseek(fd, offset, SEEK_CUR);
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdcsubstr.c65 parent = sfsk(f,(Sfoff_t)0,SEEK_CUR,disc);
131 case SEEK_CUR:
138 { parent = sfsk(f,(Sfoff_t)0,SEEK_CUR,disc);
186 if((here = sfseek(parent,(Sfoff_t)0,SEEK_CUR)) < 0 || sfseek(parent,offset,SEEK_SET) < 0)
/illumos-gate/usr/src/ucbhead/
H A Dunistd.h64 #define SEEK_CUR 1 /* Set file pointer to current plus "offset" */ macro
/illumos-gate/usr/src/lib/libcmd/common/
H A Drevlib.c42 if(sfseek(in,(off_t)0,SEEK_CUR) < 0)
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_memio.c69 case SEEK_CUR:

Completed in 115 milliseconds

123456