Commit Graph

515 Commits

Author SHA1 Message Date
Mátyás Mustoha
2cc90c7e65 Use 32-bit mode_t on 64-bit Android devices 2016-02-18 11:56:40 +01:00
Alex Crichton
1b1eea2cdd Merge pull request #190 from cuviper/android-lfs
Android: add some of the same LFS functions as Linux
2016-02-16 21:34:42 -08:00
Josh Stone
d2da7f7317 Android: remove readahead
While this appears to be in bionic libc, it's not in any header, so CI
fails to validate it.  Let's just skip that one.
2016-02-16 18:11:08 -08:00
Josh Stone
ff45035b38 Android: add some of the same LFS functions as Linux
Audit the LFS functions from Linux and add the same for Android if
bionic supports it, according to libc.map from API 23 (Android 6.0).

The standard library is currently limited to API 18, so it may only use
`lseek64`, `pread64`, `pwrite64`, `ftruncate64`, and `readahead`.

Note that `stat64` and `dirent64` are actually identical to the regular
versions, because bionic has always mapped them to the LFS syscalls.
It also sets `O_LARGEFILE` at all times, so `open` matches `open64`.
Still, the explicit LFS names may be useful to match Linux.

Fixes #189.
2016-02-16 17:32:43 -08:00
Alex Crichton
403bdc8839 Merge pull request #188 from alexcrichton/merge
Roll together a few PRs in the queue
2016-02-15 10:42:32 -08:00
Alex Crichton
afb1f1a386 Merge branch 'sigaltstack-flags' of https://github.com/tmiasko/libc into merge 2016-02-15 10:20:06 -08:00
Alex Crichton
0668b9c91a Merge branch 'pthread-kill' of https://github.com/tmiasko/libc into merge 2016-02-15 10:19:54 -08:00
Alex Crichton
43148b5d13 Merge branch 'mkstemp' of https://github.com/kamalmarhubi/libc into merge 2016-02-15 10:19:45 -08:00
Alex Crichton
1722806b73 Merge branch 'master' of https://github.com/JasonSmith/libc into merge 2016-02-15 10:19:35 -08:00
Kamal Marhubi
511a7809cd unix: Add mkstemp(3) and related functions 2016-02-15 09:51:10 -05:00
Tomasz Miąsko
b0b33707bd [unix] Add pthread_kill. 2016-02-15 12:39:54 +01:00
Tomasz Miąsko
26e1ec1b76 [unix] Add SS_ONSTACK and SS_DISABLE. 2016-02-15 11:52:45 +01:00
Jason Smith
4c29409688 Merge branch 'master' into master 2016-02-13 18:24:43 -05:00
Alex Crichton
213a0f9c4a Merge pull request #177 from cybergeek94/master
Add `posix_fadvise()` and related constants
2016-02-13 00:59:51 -08:00
Austin Bonander
10543d08c3 Add posix_fadvise() and related constants 2016-02-12 23:24:01 -08:00
Alex Crichton
0113d684b4 Merge pull request #182 from alexcrichton/update-after-move
Update links in README for transition to rust-lang
2016-02-12 10:46:24 -08:00
Alex Crichton
b7b90d4a4d Update links in README for transition to rust-lang 2016-02-11 18:37:10 -08:00
Alex Crichton
27d4a94d33 Merge pull request #183 from antonblanchard/powerpc64_merge2
PowerPC64 fixes
2016-02-11 18:36:53 -08:00
Anton Blanchard
9e1a38ee2c wchar_t is signed on powerpc64 2016-02-12 00:59:36 +00:00
Anton Blanchard
6e6ff6a2a0 target_arch is always powerpc64, remove powerpc64le check
We no longer need to check for powerpc64le, so remove it.
2016-02-12 00:59:36 +00:00
Alex Crichton
1179ac7c6b Merge pull request #181 from dhuseby/fixing_netbsd_siginfo_t
this fixes the siginfo_t compilation errors
2016-02-11 16:25:26 -08:00
Dave Huseby
812c910d05 this fixes the siginfo_t, adds missing pthread externs. 2016-02-11 09:28:56 -08:00
Alex Crichton
61eddafb30 Merge pull request #146 from alexcrichton/no-std
Add a default-on std feature
2016-02-10 18:19:51 -08:00
Alex Crichton
6d46b6fa5f Add a default-on "use_std" feature
This adds a `use_std` Cargo feature which disables `#![no_std]` builds of libc,
but is enabled by default. The library will currently continue to link to the
standard library to maintain backwards compatibility with the 0.2 series and
older Rust compilers for now, but this default can possible be changed in the
future.
2016-02-10 17:21:21 -08:00
Jason Travis Smith
d90f1f9089 Merge branch 'master' of https://github.com/JasonSmith/libc
Rebased again for the latest changes.
2016-02-10 06:03:24 -05:00
Jason Travis Smith
270c7d4a07 Fixed a typo in the #[cfg()] of gettimeofday.
The #[cfg()] was looking for 'arget_os' instead of 'target_os'.
2016-02-10 06:02:36 -05:00
Alex Crichton
379e92f27e Merge pull request #179 from alexcrichton/bump
Bump to 0.2.7
2016-02-09 15:27:19 -08:00
Alex Crichton
87e6c65c74 Bump to 0.2.7 2016-02-09 13:26:02 -08:00
Alex Crichton
9a3de2f0cf Merge pull request #178 from dhuseby/fixing_netbsd_build
SIGSTKSZ is the same on OpenBSD, Bitrig, and NetBSD
2016-02-08 16:02:25 -08:00
Dave Huseby
e92ec48e56 SIGSTKSZ is the same on OpenBSD, Bitrig, and NetBSD 2016-02-08 13:47:02 -08:00
Jason Travis Smith
5ffa4c1b41 Merge branch 'master' of https://github.com/JasonSmith/libc
Rebasing for pull request to be valid.
2016-02-07 03:29:22 -05:00
Jason Travis Smith
bb0988c958 Fixed a typo in the #[cfg()] of gettimeofday.
The #[cfg()] was looking for 'arget_os' instead of 'target_os'.
2016-02-07 03:28:57 -05:00
Alex Crichton
37c866a609 Merge pull request #170 from kamalmarhubi/sendfile
unix: Add sendfile to platforms that support it
2016-02-06 16:17:44 -08:00
Kamal Marhubi
143358bb97 unix: Add sendfile to platforms that support it 2016-02-06 15:02:19 -05:00
Alex Crichton
cb688da699 Merge pull request #175 from alexcrichton/rollup
Merging 2 PRs together
2016-02-06 11:22:19 -08:00
Jason Travis Smith
aafab85e30 Fixed a typo in the #[cfg()] of gettimeofday.
The #[cfg()] was looking for 'arget_os' instead of 'target_os'.
2016-02-06 05:46:41 -05:00
Alex Crichton
e295b8ad4d Merge branch 'peterhj-cpuset-affinity' of https://github.com/peterhj/libc 2016-02-05 18:19:39 -08:00
Alex Crichton
9122ebf23f Merge branch 'sysctl_consts_in_openbsd' of https://github.com/polezaivsani/libc 2016-02-05 18:19:27 -08:00
Alex Crichton
a64ee24718 Merge pull request #173 from alexcrichton/rtld-names
Add more RTLD_* constants
2016-02-05 17:10:05 -08:00
Peter Jin
1a190c7b79 linux: Initial support for cpuset and gnu pthread_attr_affinity interface 2016-02-05 15:06:39 -08:00
Vasily Kolobkov
86aae3cfb0 Add a pinch of KERN_PROC_* consts to OpenBSD family 2016-02-06 00:05:48 +02:00
Alex Crichton
29de598537 Add more RTLD_* constants 2016-02-05 13:57:37 -08:00
Alex Crichton
e9db959527 Merge pull request #172 from kamalmarhubi/splice-and-friends
linux: Add splice, tee, vmsplice
2016-02-05 13:57:14 -08:00
Kamal Marhubi
0cfc25fe96 linux: Add splice, tee, vmsplice 2016-02-05 13:12:49 -05:00
Alex Crichton
748c92a098 Merge pull request #168 from alexcrichton/ios-nightlies
Use iOS nightlies instead of a pinned version
2016-02-04 19:25:25 -08:00
Alex Crichton
36ae2359b3 Use iOS nightlies instead of a pinned version 2016-02-04 15:35:58 -08:00
Alex Crichton
579f2c9836 Merge pull request #169 from dhuseby/fixing_bitrig_d_namlen
fixes the bitrig d_namlen compile error
2016-02-03 23:31:59 -08:00
Dave Huseby
c97d2174c4 fixes the bitrig d_namlen compile error 2016-02-03 13:03:45 -08:00
Alex Crichton
026f4b335d Merge pull request #166 from lambda/sc-pagesize
Define _SC_PAGE_SIZE constants
2016-01-31 21:18:04 -08:00
Brian Campbell
11f29f592a Define _SC_PAGE_SIZE constants
According to POSIX, sysconf can take _SC_PAGESIZE or _SC_PAGE_SIZE,
which may be the same value.  This constant was define in "apple" as
equal to _SC_PAGESIZE, but not any of the other platforms.

Add definitions for _SC_PAGE_SIZE for all platforms which had
_SC_PAGESIZE defined. On all platforms but Android (Bionic), they are
the same value; on Android _SC_PAGE_SIZE has a different value.
2016-01-31 23:40:01 -05:00