summary refs log tree commit diff
path: root/src/libstd/sys/unix/weak.rs
AgeCommit message (Collapse)AuthorLines
2016-02-05std: Add support for accept4 on LinuxAlex Crichton-1/+5
This is necessary to atomically accept a socket and set the CLOEXEC flag at the same time. Support only appeared in Linux 2.6.28 so we have to dynamically determine which syscall we're supposed to call in this case.
2016-02-05std: Add a helper for symbols that may not existAlex Crichton-0/+81
Right now we only attempt to call one symbol which my not exist everywhere, __pthread_get_minstack, but this pattern will come up more often as we start to bind newer functionality of systems like Linux. Take a similar strategy as the Windows implementation where we use `dlopen` to lookup whether a symbol exists or not.