Commit Graph

506 Commits

Author SHA1 Message Date
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
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
Brian Campbell
cb12fdfea3 Remove trailing whitespace 2016-01-31 23:40:01 -05:00
Alex Crichton
28b526aa9d Merge pull request #167 from lambda/add-abort
Add abort
2016-01-31 20:29:05 -08:00
Brian Campbell
d81e4a0ad8 Add abort
This is defined by the C standard to indicate abnormal program
terminaiton; it is defined to call raise(SIGABRT), and to not return.
This can be useful when panics are not an option, such as signal
handlers handling stack overflow.
2016-01-31 22:04:05 -05:00
Alex Crichton
30f70baa6c Merge pull request #165 from japaric/musl-nlink_t
musl: define nlink_t as u32/u64
2016-01-30 20:37:51 -08:00
Jorge Aparicio
ec9db4d779 musl: define nlink_t as u32/u64 2016-01-30 19:51:14 -05:00
Alex Crichton
53d11fc6ef Merge pull request #164 from japaric/fix-linkage
musl: fix linkage of libc
2016-01-30 10:21:13 -08:00
Jorge Aparicio
7376d09b72 musl: fix linkage of libc
I messed up the logic of the cfg during my rebase of #163 😅
2016-01-30 04:06:37 -05:00
Alex Crichton
5863d86587 Merge pull request #163 from japaric/mips-musl
musl: add support for mips/mipsel
2016-01-29 23:33:11 -08:00
Jorge Aparicio
751bea36c7 musl: add support for mips 2016-01-30 01:28:50 -05:00