Home
last modified time | relevance | path

Searched refs:SEEK_CUR (Results 1 – 25 of 137) sorted by relevance

123456

/titanic_41/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 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 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 Dsfsk.c61 if((type &= (SEEK_SET|SEEK_CUR|SEEK_END)) > SEEK_END)
70 else if(type == SEEK_CUR)
H A Dsftell.c55 p = sfseek(f,(Sfoff_t)0,SEEK_CUR);
/titanic_41/usr/src/lib/libc/port/gen/
H A Dtell.c55 return (lseek64(f, 0, SEEK_CUR)); in tell64()
63 return (lseek(f, 0, SEEK_CUR)); in tell()
H A Dtelldir.c63 if (lseek(dirp->dd_fd, 0, SEEK_CUR) != 0) { in telldir()
87 if (lseek64(dirp->dd_fd, 0, SEEK_CUR) != 0) { in telldir64()
H A Dseekdir.c60 if (lseek(dirp->dd_fd, 0, SEEK_CUR) != 0) { in seekdir()
93 if (lseek64(dirp->dd_fd, 0, SEEK_CUR) != 0) { in seekdir64()
/titanic_41/usr/src/lib/libast/common/stdio/
H A Dftell.c35 return (long)sfseek(f, (Sfoff_t)0, SEEK_CUR); in ftell()
45 return (int64_t)sfseek(f, (Sfoff_t)0, SEEK_CUR); in ftell64()
H A Dftello.c35 return sfseek(f, (Sfoff_t)0, SEEK_CUR); in ftello()
45 return sfseek(f, (Sfoff_t)0, SEEK_CUR) >= 0 ? 0 : -1; in ftello64()
H A Dfgetpos.c35 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1; in fgetpos()
45 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1; in fgetpos64()
H A Dfflush.c39 sfseek(f, (Sfoff_t)0, SEEK_CUR|SF_PUBLIC); in fflush()
/titanic_41/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)
H A Dsfdcdos.c104 while((++mp)->logical && (whence==SEEK_CUR?mp->physical:mp->logical) <= offset);
242 if(whence==SEEK_CUR)
292 case SEEK_CUR:
293 offset = sfsk(iop, (Sfoff_t)0,SEEK_CUR,disc);
331 if(whence==SEEK_CUR && dp->phere>=offset)
H A Dsfdcseekable.c73 addr = sfseek(sf,(Sfoff_t)0,SEEK_CUR);
124 case SEEK_CUR:
204 if(sfseek(f,(Sfoff_t)0,SEEK_CUR) >= 0)
/titanic_41/usr/src/head/
H A Dfcntl.h54 #ifndef SEEK_CUR
55 #define SEEK_CUR 1 /* Set file pointer to current plus "offset" */ macro
/titanic_41/usr/src/uts/common/syscall/
H A Dlseek.c53 #define SEEK_CUR 1 /* Set file pointer to current plus "offset" */ macro
101 case SEEK_CUR: in lseek32_common()
290 case SEEK_CUR: in lseek64()
/titanic_41/usr/src/lib/libast/common/dir/
H A Dtelldir.c40 return(lseek(dirp->dd_fd, 0L, SEEK_CUR) + (long)dirp->dd_loc);
/titanic_41/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dsetup.c155 (void) lseek(fd, (off_t) (header.name_size - 127), SEEK_CUR);
165 SEEK_CUR
184 SEEK_CUR
210 SEEK_CUR
/titanic_41/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dsetup.c200 (void) lseek(fd, (off_t) (header.name_size - 127), SEEK_CUR); in __m_read_terminfo()
209 SEEK_CUR); in __m_read_terminfo()
226 (header.num_count - __COUNT_NUM)), SEEK_CUR); in __m_read_terminfo()
250 (header.str_count - __COUNT_STR)), SEEK_CUR); in __m_read_terminfo()
/titanic_41/usr/src/lib/libpp/common/
H A Dppprintf.c41 pp.outp += sfseek(sp, 0L, SEEK_CUR); in ppprintf()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dkt_file.c1062 #define SEEK_CUR 1 macro
1259 if (fseek(KTFILEP(id), 0L, SEEK_CUR) < 0) in krb5_ktfileint_internal_read_entry()
1273 if (fseek(KTFILEP(id), -size, SEEK_CUR)) { in krb5_ktfileint_internal_read_entry()
1481 if (fseek(KTFILEP(id), 0L, SEEK_CUR) < 0) in krb5_ktfileint_write_entry()
1669 if (fseek(KTFILEP(id), 0L, SEEK_CUR) < 0) in krb5_ktfileint_find_slot()
1690 if (fseek(KTFILEP(id), size, SEEK_CUR)) { in krb5_ktfileint_find_slot()
1702 if (fseek(KTFILEP(id), size, SEEK_CUR)) { in krb5_ktfileint_find_slot()
1709 if (fseek(KTFILEP(id), 0L, SEEK_CUR) < 0) in krb5_ktfileint_find_slot()
1727 if (fseek(KTFILEP(id), 0L, SEEK_CUR) < 0) in krb5_ktfileint_find_slot()
1739 if (fseek(KTFILEP(id), 0L, SEEK_CUR) < 0) in krb5_ktfileint_find_slot()
/titanic_41/usr/src/lib/libcmd/common/
H A Djoin.c680 …if (sfseek(jp->file[0].iop, (Sfoff_t)-jp->file[0].reclen, SEEK_CUR) < 0 || !(cp1 = getrec(jp, 0, 0… in join()
690 if ((lo = sfseek(jp->file[1].iop, (Sfoff_t)0, SEEK_CUR)) < 0) in join()
760 if ((hi = sfseek(jp->file[1].iop, (Sfoff_t)0, SEEK_CUR)) < 0 || in join()
788 sfseek(jp->file[1].iop, (Sfoff_t)0, SEEK_CUR) < hi && in join()
948 if (sfseek(sfstdin,(Sfoff_t)0,SEEK_CUR) < 0) in b_join()
965 if (sfseek(sfstdin,(Sfoff_t)0,SEEK_CUR) < 0) in b_join()
/titanic_41/usr/src/lib/libc/port/stdio/
H A Dftell.c77 tres = lseek64(FILENO(iop), 0, SEEK_CUR); in ftell()
H A Dftello.c82 tres = lseek64(FILENO(iop), 0, SEEK_CUR); in ftello64()

123456