Commit Graph

126 Commits

Author SHA1 Message Date
Kevin Brothaler
7fbff3a443 Fix for removed OS X constants.
https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
Fixes https://github.com/rust-lang/libc/issues/480
2017-01-16 12:49:49 -04:00
Michael Neumann
7134822dd2 Skip signedness test for sem_t on DragonFly 2016-12-04 13:05:01 +01:00
Michael Neumann
09bff052a9 Include aio.h on DragonFly as well 2016-12-04 12:46:17 +01:00
Alex Crichton
8726270a8e Merge pull request #456 from alexcrichton/cache-things
Share the host's `target` directory for tests
2016-11-18 09:00:09 -06:00
Alex Crichton
c2842463e5 Share the host's target directory for tests
This helps caching between runs and can help speed up turnaround time for
various operations. The old android container didn't work out for some reason
due to permissions so the definition has now been vendored locally to just
rebuild it each time.
2016-11-17 11:30:17 -08:00
Alan Somers
9860c2935a Fix tests on FreeBSD 11
FreeBSD svn r262489 removed some *_MAXID definitions in sys/sysctl.h.  They never
should've been used outside of the FreeBSD base system anyway.  Mark them as
deprecated, hide them from the API docs, and disable their tests.

r273250 removed MAP_RENAME and MAP_NORESERVE, flags used by mmap(2), but old
binaries that use them will still work.  Suppress their test errors.

r294930 changed stack_t.ss_sp from a char* to a void*.  Suppress its test error.
2016-11-15 20:54:43 -07:00
Alan Somers
e0ff0d6185 Fix more CI errors in PR #449 2016-11-13 14:35:17 -07:00
Alan Somers
9245e0727b Fix various CI errors in PR #449 2016-11-13 13:52:34 -07:00
Alan Somers
4ec884ac6d Fix undefined symbol errors in CI 2016-11-13 08:07:45 -07:00
Alex Crichton
852db737b3 Merge pull request #441 from billiob/setfsuid
Add setfsgid()/setfsuid() on linux
2016-11-06 00:37:48 -07:00
Boris Faure
28d0afa657 Add setfsgid()/setfsuid() on linux 2016-11-05 21:19:53 +01:00
Boris Faure
da445b99f2 Fix typo in comment 2016-11-05 20:16:50 +01:00
Alex Crichton
78070bdf28 Try to fix powerpc64 and update to crates.io ctest 2016-10-20 17:23:23 -07:00
Alex Crichton
739edbc468 Use workspaces in this repo
Also cache on appveyor to speed up builds.
2016-10-08 17:26:56 -07:00
Alex Crichton
10142aa24a Add checksums to cargo lock files 2016-09-29 19:20:58 -07:00
Philipp Keller
04d0b71d2c Add missing header shadow.h 2016-09-27 07:19:17 +02:00
Alexander Schlarb
7590565993 Add System V message queue bindings for Linux (glibc/musl) 2016-09-18 13:14:28 +02:00
Jorge Aparicio
bcc44dfee8 libc-test: cargo update 2016-09-11 17:52:45 -05:00
Alex Crichton
351df2ddef Bump to 0.2.16 2016-09-08 15:01:24 -07:00
bors
af23c1e5f1 Auto merge of #365 - alexcrichton:more-arch, r=alexcrichton
Add more architectures to libc-test

* `i686-unknown-linux-musl`
* `powerpc-unknown-linux-gnu`
* `powerpc64-unknown-linux-gnu`

cc @japaric
cc https://github.com/rust-lang/rust/issues/36006
2016-08-27 11:26:39 -07:00
Alex Crichton
a097ff6d35 Add ci for i686-unknown-linux-musl 2016-08-26 19:49:16 -07:00
Knight
866c9e4cb7 libc-test: ignore user-defined struct 2016-08-09 14:38:11 +08:00
Knight
0e0fb686d6 libc-test: allow deprecated functions
glibc-2.24 deprecates readdir_r() and readdir64_r()
2016-08-09 14:38:11 +08:00
Alex Crichton
6c18f30543 Bump to 0.2.15 2016-08-04 08:19:48 -07:00
Knight
a6b283b133 Add header file for utmp(x) 2016-07-27 19:42:36 +08:00
Tomasz Miąsko
c4947bbb6d Define _NETBSD_SOURCE when building on NetBSD.
Both pthread_condattr_setclock and pthread_condattr_getclock are guarded
by #if defined(_NETBSD_SOURCE) on NetBSD.
2016-07-21 08:14:58 +02:00
Sergey Bugaev
a98c983cf0 Linux: add reboot() and constants 2016-07-12 13:22:51 +03:00
Alex Crichton
1f946a018a Bump to 0.2.14 2016-07-11 09:04:28 -07:00
Alex Crichton
760dd0b6dc Bump to 0.2.13 2016-06-28 10:02:55 -07:00
Alex Crichton
91c5dbf579 Bump to 0.2.12 2016-06-10 05:19:19 -07:00
Steven Fackler
41699f7406 Add semaphore APIs 2016-06-05 17:26:11 +01:00
Raphael Cohn
e6150ae2b9 Adding sysinfo() and sysinfo struct for Linux and Android.
Sadly, the sysinfo struct varies slightly between Musl and Glibc / Bionic.

This means that users need to be careful when using the uptime, and should
always cast it to a signed value. Why uptime can be signed is beyond me...
2016-05-20 11:17:22 +01:00
Raphael Cohn
7fc0969900 Substantial changes to better support Solaris and BSD variants.
Removed CODE, as its definition and name varies too wildy and I
have no current code using it to test permutations with.

Moved LOG_NFACILITIES down, as Mac OS X defines this value
differently.

Added Mac OS X specific LOG_* facilities.

Added FreeBSD / DragonFly BSD specific LOG_* facilities.

Moved LOG_PERROR down, as all platforms bar Solaris define this.

Moved LOG_CRON down, as Solaris defines this with a different value.

Moved LOG_AUTHPRIV and LOG_FTP down, as all platforms bar Solaris
define these.

Looks like Solaris is suffering from the bit rot of commercial Unix...
2016-05-05 15:41:21 +01:00
Alex Crichton
959c6ab21b Bump to 0.2.11 2016-05-03 09:39:11 -07:00
Kamal Marhubi
9569599507 linux: Add prlimit(2) and prlimit64(2)
As with `getrlimit` and `setrlimit`, the glibc wrappers have a non-`int`
for the `resource` argument, eg:

    extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
                        const struct rlimit *__new_limit,
                        struct rlimit *__old_limit) __THROW;
2016-04-29 09:49:19 -04:00
Kai Noda
cba130bc01
Explain about the automated tests on Travis
in order to advise contributors to locally test their patches.

Also update ctest to include a fix on rerun-if-changed so that human
developers doing trial & error can properly test their latest code.

Signed-off-by: NODA, Kai <nodakai@gmail.com>
2016-04-27 08:35:18 +08:00
Alex Crichton
b302bed9d2 Bump to 0.2.10 2016-04-12 11:09:00 -07:00
bors
60f90cf560 Auto merge of #237 - Nercury:use-signal-instead-of-bsd-signal, r=alexcrichton
Use now available link name "signal" instead of "bsd_signal"

On android, the `bsd_signal` is gone, the `signal` is available.

While this is the most obvious solution, I am not sure of a few things:
- How are we going to keep compatibility with older NDKs where `signal` does not exist;
- Was something dependent on this being different on android and thus would break (for example, the rust compiler uses this function, so it may break somewhere).

Fixes #236.
2016-04-06 16:50:11 -07:00
Nerijus Arlauskas
0b7ccdd119 Do not skip "signal" when building libc tests. 2016-04-06 20:56:54 +03:00
A.J. Gardner
24c84f1360 Define xlocale and langinfo interfaces
There are many constants defined by langinfo, but we have the
new types, locale_t and nl_item.

We also have several functions, not all of which exist for every
platform:

nl_langinfo
nl_langinfo_l
newlocale
duplocale
freelocale
uselocale
querylocale
2016-04-04 20:51:44 -05:00
NODA, Kai
4d1efd9e8a
Exclude MS_RMT_MASK from libc-test
It was updated recently, so the test is known to fail depending on the
libc version of the test environment.

Signed-off-by: NODA, Kai <nodakai@gmail.com>
2016-04-03 22:16:52 +08:00
Kamal Marhubi
9c4af10e88 unix: Add openpty(3) and forkpty(3) for non-Apple platforms
The functions were added for Apple in #202. Adding them to other
platforms was pending an amendment to RFC 1291 to expand the scope of
libc to include libutil. The amendment was merged as
  https://github.com/rust-lang/rfcs/pull/1529
2016-04-02 09:33:55 -04:00
bors
dfc1ab5f2b Auto merge of #244 - mrhota:basic_locale, r=alexcrichton
Add lconv type, and locale support for UNIX

We have lconv struct, setlocale(), and localeconv(). Constants live
under notbsd for now.
2016-03-31 10:15:53 -07:00
Alex Crichton
3de1107244 Bump to 0.2.9 2016-03-30 17:40:32 -07:00
A.J. Gardner
b788a5c736 Add locale.h in libc-test 2016-03-30 01:13:55 -05:00
Alex Crichton
609693dae1 Update winapi 2016-03-14 21:59:21 -07:00
Kamal Marhubi
89a7700e23 apple: Add openpty(3) and forkpty(3) 2016-03-08 23:47:03 -05:00
Alex Crichton
95a56522db Update the libc-test lockfile 2016-03-07 13:12:43 -08:00
Alex Crichton
c173d9c5d5 Merge branch 'ucontext' of https://github.com/fiveop/libc into merge 2016-02-29 21:12:03 -08:00
Philipp Matthias Schaefer
7e3a151289 Add ucontext struct for Linux/x86 2016-02-29 19:44:41 +01:00