wasi-libc/libc-bottom-half/headers/public
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
..
netinet WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
sys WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
wasi Optimize lseek in the tell case. 2019-04-30 16:19:05 -07:00
__errno_values.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__fd_set.h Implement FD_SET, FD_CLR, etc. 2019-04-23 15:01:23 -07:00
__function___isatty.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_bits_signal.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_dirent.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_fcntl.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_netinet_in.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_poll.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_stdlib.h Fix miscellaneous lint warnings. 2019-04-15 09:47:16 -07:00
__header_string.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_sys_ioctl.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_sys_resource.h Declare getrusage. 2019-04-22 11:41:40 -07:00
__header_sys_socket.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_sys_stat.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_time.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__header_unistd.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__macro_FD_SETSIZE.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_dirent.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_in6_addr.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_in_addr.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_iovec.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_msghdr.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_pollfd.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_rusage.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_sockaddr_in6.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_sockaddr_in.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_sockaddr_storage.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_sockaddr_un.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_sockaddr.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_timeval.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_tm.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__struct_tms.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_clockid_t.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_DIR.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_fd_set.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_in_addr_t.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_in_port_t.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_nfds_t.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_sa_family_t.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_sigset_t.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
__typedef_socklen_t.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
dirent.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
errno.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
fcntl.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
poll.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
stdlib.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
string.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
time.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
unistd.h WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00