summaryrefslogtreecommitdiff
path: root/src/unix/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add LC_ constants for redox (and truncate() is now supported)Noa2023-03-101-1/+1
|
* Add support for OpenHarmonyAmanieu d'Antras2023-03-041-11/+14
|
* Support AIX operating systemQiu Chaofan2023-02-221-1/+17
| | | | | | | | | | | | This change adds rather complete definitions and declarations from AIX system headers, with little modification to fit the assumption in some crates or other targets in libc. Currently only 64-bit PowerPC targets on AIX are proposed, so definitions depending on pointer width are located in powerpc64 module. Thanks to initial work from Etienne Guesnet, this patch is based on it (#2278).
* Auto merge of #3038 - gh-tr:rebased/20221216, r=JohnTitorbors2022-12-201-49/+97
|\ | | | | | | | | | | | | | | | | | | | | Add support for QNX/Neutrino 7.1 Test cases (ctest2, all succeed): QNX/Neutrino 7.1 x86_64: 9884 QNX/Neutrino 7.1 aarch64: 9766 Co-authored-by: Tristan Roach <troach@qnx.com> Co-authored-by: Florian Bartels <Florian.Bartels@elektrobit.com>
| * Add support for QNX/Neutrino 7.1Florian Bartels2022-12-161-49/+97
| | | | | | | | | | | | | | | | | | Test cases (ctest2, all succeed): QNX/Neutrino 7.1 x86_64: 9884 QNX/Neutrino 7.1 aarch64: 9766 Co-authored-by: Tristan Roach <troach@qnx.com> Co-authored-by: Florian Bartels <Florian.Bartels@elektrobit.com>
* | Add ISO C functions atof, atol, atoll, strtoll, strtoullLegionMammal9782022-12-141-0/+5
|/
* handle c circular dependence (linux gnu)Daniil Belov2022-11-161-0/+2
|
* Fix typo: `readfs` -> `readfds`Takayuki Nakata2022-10-251-2/+2
|
* Add support for tvosThom Chiovoloni2022-10-111-2/+14
|
* getting back android traget in case without rustc-dep-of-stdBryanskiy2022-07-311-0/+1
|
* add crt-static for androidBryanskiy2022-07-161-1/+8
|
* Remove rumprun-related codeYuki Okushi2022-06-191-8/+0
| | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* unix: setreuid/setregidNikolay Edigaryev2022-05-271-0/+2
|
* haiku build fixDavid Carlier2022-04-301-2/+3
|
* Auto merge of #2767 - carbotaniuman:patch-1, r=Amanieubors2022-04-281-0/+3
|\ | | | | | | | | | | Add `stpcpy`, `stpncpy`, and `strtok_r` to unix These are POSIX 2008 extensions to the C standard.
| * Add `stpcpy`, `stpncpy`, and `strtok_r` to unixcarbotaniuman2022-04-261-0/+3
| |
* | Remove adjtime for AndroidGuy Rutenberg2022-04-231-1/+2
| |
* | Remove adjtime for emscriptenGuy Rutenberg2022-04-131-1/+7
| |
* | Add adjtime support.Guy Rutenberg2022-04-111-0/+2
|/
* Auto merge of #2717 - vladimir-ea:watchos, r=Amanieubors2022-03-171-2/+7
|\ | | | | | | | | | | | | | | | | Add support for Apple WatchOS Hi, I am hoping to add Apple WatchOS compile targets and these are prerequisite changes. Many thanks! Vlad.
| * [watch_os] Fix formatVladimir Michael Eatwell2022-03-081-1/+4
| |
| * [watch_os] add support for Apple WatchOSVladimir Michael Eatwell2022-03-081-2/+4
| |
* | Merge remote-tracking branch 'rust-lang/master' into horizon-getrandom-and-fixesMark Drobnak2022-03-131-1/+1
|\ \ | | | | | | | | | | | | | | | # Conflicts: # src/unix/mod.rs # src/unix/newlib/horizon/mod.rs
| * | Correct the size of certain types on espidf platformScott Mabin2022-03-041-2/+9
| |/
* | Fix uid_t and gid_t sizes on horizonIan Chamberlain2022-03-061-2/+10
|/ | | | (cherry picked from commit e84dbb7cb3a015c9f33db9b29019975c669113de)
* Fix/remove deprecated DragonFly itemsRyan Zoeller2021-11-071-4/+0
| | | | | These items were recently deprecated on DragonFly, either because the platform does not define them or because they were out of date.
* Auto merge of #2487 - rtzoeller:dfly_stat_deprecation, r=JohnTitorbors2021-11-061-0/+4
|\ | | | | | | | | | | | | | | Document stat.st_blksize changes on DragonFly BSD The tests are currently failing on DragonFly BSD, due to [changes to `stat.st_blksize`](https://github.com/DragonFlyBSD/DragonFlyBSD/commit/34c6728ee290889398ff2f1305a91f08aa6b0b35) among other reasons. `st_blksize` is now an `i64`, and has moved to take up a previously reserved struct member. Deprecate the struct, to indicate it will be modified in a subsequent release.
| * Document stat changes on DragonFly BSDRyan Zoeller2021-11-051-0/+4
| |
* | Use link modifiers -bundle on musl and wasi target121011112021-11-031-10/+10
|/
* Add `strtof` for all platforms that have `strtod`Hans Christian Schmitz2021-08-221-0/+1
| | | | | | | All platforms that have `strtod` very likely also have `strtof`. Having `strtof` allows for fuzzing of `hexf-parse::parse_hexf32` comparing against `strtof`, which can't (easily) be done with `strtod`, due to float rounding and over-/underflow behavior.
* unix add hstrerrorDean Li2021-08-071-0/+1
|
* Support for the ESP-IDF framework (Xtensa and RiscV arch)imarkov2021-08-021-2/+16
|
* Fix styleYuki Okushi2021-04-061-282/+63
|
* style fixes to satisfy new rustfmtJonah Petri2021-02-131-6/+12
|
* uclibc: fix x86_64-unknown-l4re-uclibc buildJonah Petri2021-02-131-0/+1
|
* uclibc: style fixesJonah Petri2021-02-121-5/+12
|
* uclibc -> linux-like/linux: Manual consolitation of redundant structs and fns.Jonah Petri2021-02-121-3/+7
|
* uclibc -> linux-like/linux: mostly mechanical removal of redundant symbolsJonah Petri2021-02-121-4/+1
|
* Auto merge of #2034 - nielx:haiku-native, r=JohnTitorbors2021-02-081-7/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Haiku: add definitions for the Haiku's native sytem API. On the Haiku platform, the POSIX (and BSD) API coexists with the native API, that has its origins on the BeOS platform. Unlike other UNIX-like platforms, the native API is not an extension of the POSIX API, but instead exists sui generis, and many of the POSIX concepts have their own native variety, with relatively limited interoperability. Nonetheless, the native API coexists in the same library as the standard C and POSIX functions, namely libroot.so, and therefore this crate is a good place to add bindings to it. This commit implements most of Haiku's support kit, the most important parts of the kernel kit, and a part of the storage kit.
| * Haiku: fix various issues pointed out by the automated testsNiels Sascha Reedijk2021-01-281-7/+11
| | | | | | | | No changes to other platforms.
* | RustfmtAmanieu d'Antras2021-02-011-29/+57
|/
* Auto merge of #2005 - operutka:fix-uclibc-dependencies, r=Amanieubors2021-01-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing dl lib on armv5te-unknown-linux-uclibceabi I'm unable to link my executable for the Linux uClibc environment because of some missing symbols from the dl lib: ``` /home/operutka/goodcam/goodcam-server/target/armv5te-unknown-linux-uclibceabi/release/deps/goodcam_server-aefb92c403e8cd55.goodcam_server.dzc3futp-cgu.0.rcgu.o: In function `mio::sys::unix::dlsym::fetch::he5e2964820cfd29d': goodcam_server.dzc3futp-cgu.0:(.text._ZN3mio3sys4unix5dlsym5fetch17he5e2964820cfd29dE+0x30): undefined reference to `dlsym' /home/operutka/goodcam/goodcam-server/target/armv5te-unknown-linux-uclibceabi/release/deps/goodcam_server-aefb92c403e8cd55.goodcam_server.dzc3futp-cgu.0.rcgu.o: In function `std::sys::unix::weak::fetch::h5ed4b0fa5792ef5c': goodcam_server.dzc3futp-cgu.0:(.text._ZN3std3sys4unix4weak5fetch17h5ed4b0fa5792ef5cE+0x3c): undefined reference to `dlsym' ``` The libc crate is being used at both of these points. This change fixes the issue for me. I've tested it with two different GCC cross toolchains for armv5te and it seems to be OK. _Note: I'm building my own std using the unstable build-std Cargo feature._
| * Fix missing dl lib on armv5te-unknown-linux-uclibceabiOndrej Perutka2020-12-181-1/+1
| |
* | Fix link warnings on rustdocYuki Okushi2020-11-231-2/+3
| |
* | Add endservent, getservbyport, getservent, setservent0e4ef6222020-10-271-0/+7
| |
* | Allow deprecated `time_t` on muslYuki Okushi2020-10-251-3/+10
| |
* | add clearerrDaniel Brooks2020-10-071-0/+1
|/
* Consolidate handling of libdl, and handle crt-staticJosh Triplett2020-09-211-0/+3
| | | | | | | Move the link line for `libdl` up to `src/unix/mod.rs`, making it easier to see all the libraries `libc` links to. This also makes `libdl` respect `target-feature=+crt-static`.
* Consolidate handling of libutil, and handle crt-staticJosh Triplett2020-09-211-0/+3
| | | | | | | | | | | The two library blocks that specify `#[link(name = "util")]` do not actually reference any functions in `libutil`; the functions that do use `libutil` don't have any reference to it. And having two library blocks specify it results in two separate inclusions of `-lutil` on the linker command line. Move the link lines up to `src/unix/mod.rs`, making it easier to see all the libraries `libc` links to. This also makes `libutil` respect `target-feature=+crt-static`.
* Add support for building with static glibcJosh Triplett2020-09-211-0/+20
| | | | | | | | | This will need corresponding changes in rust-lang/rust to activate, but this will make it possible to make those changes. Note that despite the apparent redundancy in config directives, the link directives cannot be simplified any further. Attempting to factor out the checks for `target_feature = "crt-static"` does not work.