wasi-libc/libc-bottom-half/sources
Dan Gohman cf366c06d1 Optimize lseek in the tell case.
`lseek(x, 0, SEEK_CUR)` has no effect other than to return the current
file offset. The patch here uses a macro with `__builtin_constant_p` to
recognize this case and rewrite it to a library call that uses `fd_tell`
rather than `fd_seek`, so that programs that don't need actual seeking
don't end up importing `fd_seek`.

This is also the first usage of `__wasi_fd_tell` in WASI libc, so this
adds it to undefined-symbols.txt.
2019-04-30 16:19:05 -07:00
..
__wasilibc_fd_renumber.c Fix miscellaneous lint warnings. 2019-04-15 09:47:16 -07:00
__wasilibc_tell.c Optimize lseek in the tell case. 2019-04-30 16:19:05 -07:00
abort.c Fix miscellaneous lint warnings. 2019-04-15 09:47:16 -07:00
errno.c WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
getentropy.c Declare getentropy in <sys/random.h> 2019-04-30 16:07:49 -07:00
isatty.c WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
LICENSE WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
pause.c Fix miscellaneous lint warnings. 2019-04-15 09:47:16 -07:00
sbrk.c WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
string.c Use the same indentation style as surrounding code. 2019-04-15 09:47:16 -07:00