Home
last modified time | relevance | path

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

12

/picolibc-3.7.0-3.6.0/semihost/
Dlseek.c43 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
45 if (whence == SEEK_CUR && offset == 0) in lseek()
48 if (whence == SEEK_END) { in lseek()
51 whence = SEEK_SET; in lseek()
58 if (whence != SEEK_SET || fd < 0) { in lseek()
Dlseek64.c43 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
45 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dfseek.c44 int whence; member
52 int whence) in fseek() argument
60 args.whence = whence; in fseek()
/picolibc-3.7.0-3.6.0/semihost/fake/
Dfake_stub.c75 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
79 (void) whence; in lseek()
83 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
85 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-3.7.0-3.6.0/semihost/machine/powerpc/
Dpowerpc_stub.c76 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
80 (void) whence; in lseek()
84 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
86 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-3.7.0-3.6.0/semihost/machine/msp430/
Dmsp430-stub.c80 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
84 (void) whence; in lseek()
88 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
90 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-3.7.0-3.6.0/semihost/machine/sparc/
Dsparc_stub.c80 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
84 (void) whence; in lseek()
88 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
90 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-3.7.0-3.6.0/semihost/machine/mips/
Dmips_stub.c80 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
84 (void) whence; in lseek()
88 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
90 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-3.7.0-3.6.0/semihost/machine/x86/
De9_stub.c80 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
84 (void) whence; in lseek()
88 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
90 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-3.7.0-3.6.0/semihost/machine/sh/
Dsh_stub.c81 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
85 (void) whence; in lseek()
89 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
91 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dfseek.c87 int whence) in fseek() argument
89 return fseeko ( fp, offset, whence); in fseek()
Dfunopen.c139 int whence) in funseeker() argument
145 if ((result = c->seekfn (c->cookie, (fpos_t) off, whence)) < 0 && errno) in funseeker()
150 if ((result = c->seekfn (c->cookie, (_fpos64_t) off, whence)) < 0 && errno) in funseeker()
166 int whence) in funseeker64() argument
171 if ((result = c->seekfn (c->cookie, off, whence)) < 0 && errno) in funseeker64()
Dfseeko.c99 int whence) in fseeko() argument
143 switch (whence) in fseeko()
173 whence = SEEK_SET; in fseeko()
232 if (whence == SEEK_SET) in fseeko()
338 || seekfn (fp->_cookie, offset, whence) == POS_ERR) in fseeko()
Dfopencookie.c140 int whence) in fcseeker() argument
150 if (c->seekfn (c->cookie, &offset, whence) < 0 && errno) in fcseeker()
167 int whence) in fcseeker64() argument
172 if (c->seekfn (c->cookie, &offset, whence) < 0 && errno) in fcseeker64()
Dfmemopen.c164 int whence) in fmemseeker() argument
173 if (whence == SEEK_CUR) in fmemseeker()
175 else if (whence == SEEK_END) in fmemseeker()
218 int whence) in fmemseeker64() argument
222 if (whence == SEEK_CUR) in fmemseeker64()
224 else if (whence == SEEK_END) in fmemseeker64()
Dopen_memstream.c153 int whence) in memseeker() argument
158 if (whence == SEEK_CUR) in memseeker()
160 else if (whence == SEEK_END) in memseeker()
220 int whence) in memseeker64() argument
225 if (whence == SEEK_CUR) in memseeker64()
227 else if (whence == SEEK_END) in memseeker64()
/picolibc-3.7.0-3.6.0/semihost/machine/arc/
Darc_stub.c43 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
45 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
Darc_lseek.c45 lseek(int fd, off_t offset, int whence) in lseek() argument
47 off_t ret = arc_semihost3(SYS_SEMIHOST_lseek, fd, offset, whence); in lseek()
/picolibc-3.7.0-3.6.0/semihost/machine/m68k/
Dm68k_stub.c45 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
47 return (off_t) lseek64(fd, (_off64_t) offset, whence); in lseek()
Dm68k_lseek.c47 lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
51 return m68k_semihost4_64(HOSTED_LSEEK, fd, a, b, whence); in lseek64()
/picolibc-3.7.0-3.6.0/semihost/machine/nios2/
Dnios2_stub.c45 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
47 return (off_t) lseek64(fd, (_off64_t) offset, whence); in lseek()
Dnios2_lseek.c47 lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
51 return nios2_semihost4_64(HOSTED_LSEEK, fd, a, b, whence); in lseek64()
/picolibc-3.7.0-3.6.0/newlib/libc/stdio64/
Dstdio64.c30 _off64_t lseek64(int fd, _off64_t offset, int whence);
36 int whence) in __sseek64() argument
41 ret = lseek64 (fp->_file, (_off64_t) offset, whence); in __sseek64()
Dfseeko64.c92 int whence) in fseeko64() argument
111 return (_off64_t) fseeko (fp, offset, whence); in fseeko64()
145 switch (whence) in fseeko64()
175 whence = SEEK_SET; in fseeko64()
230 if (whence == SEEK_SET) in fseeko64()
331 || seekfn (fp->_cookie, offset, whence) == POS_ERR) in fseeko64()
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dfseek.c42 int fseek(FILE *stream, FSEEK_TYPE offset, int whence) in fseek() argument
46 if ((xf->seek) (stream, (__off_t) offset, whence) >= 0) { in fseek()

12