Home
last modified time | relevance | path

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

12

/picolibc-latest/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.c44 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
46 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/newlib/libc/machine/spu/
Dfseek.c45 int whence; member
53 int whence) in fseek() argument
61 args.whence = whence; in fseek()
/picolibc-latest/semihost/fake/
Dfake_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-latest/semihost/machine/powerpc/
Dpowerpc_stub.c77 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
81 (void) whence; in lseek()
85 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
87 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/semihost/machine/x86/
De9_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-latest/semihost/machine/mips/
Dmips_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-latest/semihost/machine/msp430/
Dmsp430-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-latest/semihost/machine/sparc/
Dsparc_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-latest/semihost/machine/sh/
Dsh_stub.c82 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
86 (void) whence; in lseek()
90 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
92 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/newlib/libc/stdio/
Dfseek.c86 int whence) in fseek() argument
88 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.c98 int whence) in fseeko() argument
142 switch (whence) in fseeko()
172 whence = SEEK_SET; in fseeko()
231 if (whence == SEEK_SET) in fseeko()
337 || 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.c159 int whence) in memseeker() argument
164 if (whence == SEEK_CUR) in memseeker()
166 else if (whence == SEEK_END) in memseeker()
226 int whence) in memseeker64() argument
231 if (whence == SEEK_CUR) in memseeker64()
233 else if (whence == SEEK_END) in memseeker64()
/picolibc-latest/semihost/machine/arc/
Darc_stub.c44 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
46 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-latest/semihost/machine/m68k/
Dm68k_stub.c44 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
46 return (off_t) lseek64(fd, (_off64_t) offset, whence); in lseek()
Dm68k_lseek.c46 lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
50 return m68k_semihost4_64(HOSTED_LSEEK, fd, a, b, whence); in lseek64()
/picolibc-latest/semihost/machine/nios2/
Dnios2_stub.c44 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
46 return (off_t) lseek64(fd, (_off64_t) offset, whence); in lseek()
Dnios2_lseek.c46 lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
50 return nios2_semihost4_64(HOSTED_LSEEK, fd, a, b, whence); in lseek64()
/picolibc-latest/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-latest/newlib/libc/tinystdio/
Dfseek.c43 int FSEEK(FILE *stream, FSEEK_TYPE offset, int whence) in FSEEK() argument
47 if ((xf->seek) (stream, (__off_t) offset, whence) >= 0) { in FSEEK()

12