Commit Graph

623 Commits

Author SHA1 Message Date
Alex Crichton 7a7676a951 Merge pull request #197 from gandro/fix-netbsd-sigsymbols
Fix deprecated NetBSD sigaction/sigaltstack symbols
2016-02-26 16:00:52 -08:00
Sebastian Wicki b7c3e5c026 Fix deprecated NetBSD sigaction/sigaltstack symbols 2016-02-26 21:58:19 +01:00
Alex Crichton b57e3126c3 Merge pull request #194 from mneumann/dragonfly_fixes_2016_squashed
Fixed for DragonFly
2016-02-21 09:51:57 -08:00
Michael Neumann a09fe71617 Fix a couple of issues spotted by alexcrichton.
See comments https://github.com/rust-lang/libc/pull/194.

Note on struct utsname: Neither using a constant, nor a conditional
macro seems to work, so I just created an ugly utsname with conditions
on each field. This should also fix the CI fallout. #[cfg] on macros
doesn't work?

As DragonFly only supports one platform, I merged  x86_64.rs into
dragonfly/mod.rs.
2016-02-21 12:28:10 +01:00
Michael Neumann a6a64d17a0 Squashed commit of the following:
Running libc-test: PASSED 3426 tests

commit 1a7ee714db34f17abd33dc9262d3e10275eec68d
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:30:56 2016 +0100

    Fix RLIM_POSIXLOCKS ->  RLIMIT_POSIXLOCKS

commit 09c49a97ebebf087486659ef8277610d99e5c7b3
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:29:24 2016 +0100

    Ignore signedness check for uuid_t on DragonFly

commit aab4d11f59917686280c271683bf00ff34c8040d
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:23:21 2016 +0100

    Move FreeBSD-only function into freebsd/mod.rs

commit 9921f030b103dbccb37930ab1d64cf1dd587bd48
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:21:42 2016 +0100

    Move POSIX_FADV_* to freebsd/mod.rs

commit 2921c2db1e3d0314375aa371936bd227cc6c6e2a
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:20:11 2016 +0100

    Fix signedness of blksize_t for DragonFly

commit 65e817baee9e01d2d7c86c6202c63ee46d218914
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:19:02 2016 +0100

    Fix Q_{GET,SET}QUOTA for DragonFly

commit a0d2d63ef88206d321222140ae6b3d92c93b51bd
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:17:27 2016 +0100

    Fix RLIMIT_* for DragonFly

commit d04a1600a7c66a792a481e1524a1652234a69939
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:12:09 2016 +0100

    Fix ELAST for DragonFly

commit d120b9278426a76ee106e91e6c999885c1f5c7f4
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:10:28 2016 +0100

    Fix F_GETLK, F_SETLK, F_SETLKW for DragonFly

commit 963f7da270a14f4d12ea1a52301e363ce745c897
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:08:51 2016 +0100

    Fix O_CLOEXEC for DragonFly

commit f4d6c9d5991d690c7cb4460790a8e37e713bc034
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:07:18 2016 +0100

    Fix RAND_MAX for DragonFly

commit ba48336da7be613a49702ad9de445ab3850ebb7c
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 13:04:48 2016 +0100

    Fix statvfs for DragonFly

commit 9ae480c60a7d77b31a17d34320464f4179e40a4a
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 12:51:47 2016 +0100

    Fix fd_set for DragonFly

commit a15e027838288c4980371c503252cca7e32356c0
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 12:42:24 2016 +0100

    Fix all remaining issues on DragonFly

    Missing functions and missing constats.

commit 3966e4fce0cb81bd0b3ed8cdf50611e6982f7767
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 12:27:14 2016 +0100

    Use a macro instead of a constant.

    When using a constant, the libc-test thinks this constant
    exists as an C equivalent.

commit 9b5659aaf54419f317250cb3a4692a1c14fdbc33
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 12:21:01 2016 +0100

    Use a constant in utsname

commit 50484eda3c978a9c0a9652f6fc619c41ad349c2d
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 12:17:55 2016 +0100

    Fix struct utsname

commit 832e94248fabc91574d6d42630168da3542c153f
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 12:07:08 2016 +0100

    DragonFly has different stat, dirent, clock_t, ino_t, nlink_t, blksize_t

commit f3152a369d75ae8c1558afa5a59aa55e33b33ec6
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 11:52:54 2016 +0100

    Move DragonFly related stuff into dragonfly/*

    Replicate x86_64.rs from FreeBSD. Need some twists.

commit 9fe35124064aa92303171d019004df119f948223
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 11:49:38 2016 +0100

    Move FreeBSD code under freebsd/*.

    Next commit will replicate some of the architecture dependent stuff
    for DragonFly.

commit e91983df8deb14004f7a0fe47878f0e4eb31198d
Author: Michael Neumann <mneumann@ntecs.de>
Date:   Sat Feb 20 11:44:25 2016 +0100

    struct utsname has a different size on DragonFly
2016-02-20 13:34:01 +01:00
Alex Crichton 054147a207 Merge pull request #193 from alexcrichton/fix-ios
Fix iOS builds
2016-02-18 17:47:46 -08:00
Alex Crichton 28a493a8cf Move iOS back to a known good date 2016-02-18 13:53:46 -08:00
Alex Crichton 16f1c190af Merge branch 'fix_arm64_android_modet' of https://github.com/mmatyas/libc 2016-02-18 09:40:45 -08:00
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