- Jun 14, 2017
-
-
Mateusz Sieczko authored
-
- Jun 08, 2017
-
-
Andrew Salmon authored
Make changes to reflect this
-
- Jun 07, 2017
-
-
Andrew Salmon authored
vfork, wait4, getresuid, getresgid, personality, vhangup, swapon, swapoff, getdomainname, setdomainname, iopl, ioperm
-
- May 29, 2017
-
-
Daniel McKenna authored
Fixed the issues that prevented the libc_tests that are generated from passing. Also, fixed struct names and types to be representative of the linux source files.
-
- May 26, 2017
-
-
Andrew Salmon authored
-
Andrew Salmon authored
_GNU_SOURCE works differently than other libraries and creates function pointer issues
-
- May 18, 2017
-
-
Bryant Mairs authored
The default on OS X does not provide clear errors, instead the NOCANCEL variants should be used. These are available as of OS X 10.6 onwards.
-
Lee Bousfield authored
-
- May 07, 2017
-
-
Lee Bousfield authored
-
- May 06, 2017
-
-
Kelvin Ly authored
-
- May 03, 2017
-
-
Jon Gjengset authored
-
- May 02, 2017
-
-
NODA, Kai authored
There is a compatibility issue regarding the type of a flag parameter: int vs uint. Linux does declare the syscall to use uint and musl followed it, but it is incompatible with other POSIX recv*/send* syscalls. So it seems to be wise to follow the glibc version of prototypes with int. Signed-off-by:
NODA, Kai <nodakai@gmail.com>
-
- Apr 29, 2017
-
-
Jon Gjengset authored
-
- Apr 28, 2017
-
-
Jon Gjengset authored
Some notes about the particularities of the changes: res_init has been deprecated in favor of res_ninit, and many (but not all) targets have therefore renamed the link name to __res_init. For example, this happened in glibc in version 2.2: https://bugzilla.redhat.com/show_bug.cgi?id=43822#c6 In these systems, res_init is #defined to __res_init in resolv.h, which lets existing C programs continue to be compiled. Unfortunately, this define doesn't automatically apply to our Rust code. We therefore need to manually map the link name of res_init as appropriate for each target: macOS and iOS use res_9_init: https://github.com/practicalswift/osx/blob/3908694d6328baa293f0d7fc337348c01d13ed8f/src/libresolv/resolv.h#L316 Solaris uses res_init: https://java.net/projects/solaris/sources/on-src/content/usr/src/head/resolv.h OpenBSD uses __res_init: https://github.com/openbsd/src/blob/f3b3b7c7ca9a921db3a5650eed40f2b2e4d731d8/include/resolv.h#L268 FreeBSD uses __res_init: https://github.com/freebsd/freebsd/blob/6911f4a88c9832e5985b788f5e84010424f9e020/include/resolv.h#L290 NetBSD uses __res_init: http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/include/resolv.h glibc uses __res_init: https://github.com/lattera/glibc/blob/a2f34833b1042d5d8eeb263b4cf4caaea138c4ad/resolv/resolv.h#L259 eglibc uses __res_init: https://github.com/Xilinx/eglibc/blob/7f0bcce417c47aefad06ddfec7cd4ced3a4e10ff/resolv/resolv.h#L259 musl uses res_init: https://github.com/runtimejs/musl-libc/blob/0a11d7cb13e243782da36e2e5747b8b151933cca/include/resolv.h#L128 Android uses res_init: https://github.com/android/platform_bionic/blob/306ea559528255e19a5bcd68cc2a9b1afc2cfb27/libc/include/resolv.h#L57 One caveat here is that NetBSD doesn't seem to use the symbol name __res_init yet, despite the redefine being present in resolv.h. At least Travis fails for the netbsd target if __res_init is used. This may change in the future. iOS and macOS both unfortunately require linking with libresolv, despite the symbols technically being available without libresolv: resolv: http://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html Android and OpenBSD fall in the same category.
-
- Apr 27, 2017
-
-
Kelvin Ly authored
-
- Apr 21, 2017
- Apr 20, 2017
- Apr 19, 2017
-
-
Marco A L Barbosa authored
-
- Apr 04, 2017
-
-
superriva authored
INFO for the patch: FREEBSD [https://github.com/freebsd/freebsd] /sys/sys/_types.h typedef long __key_t; /sys/sys/types.h typedef __key_t key_t; /sys/sys/ipc.h struct ipc_perm { uid_t cuid; gid_t cgid; uid_t uid; gid_t gid; mode_t mode; unsigned short seq; key_t key; }; key_t ftok(const char *, int); /sys/sys/msg.h typedef unsigned long msglen_t; typedef unsigned long msgqnum_t; struct msqid_ds { struct ipc_perm msg_perm; struct msg *msg_first; struct msg *msg_last; msglen_t msg_cbytes; msgqnum_t msg_qnum; msglen_t msg_qbytes; pid_t msg_lspid; pid_t msg_lrpid; time_t msg_stime; time_t msg_rtime; time_t msg_ctime; }; struct msg { struct msg *msg_next; long msg_type; u_short msg_ts; short msg_spot; struct label *label; }; struct msginfo { int msgmax, msgmni, msgmnb, msgtql, msgssz, msgseg; }; int msgctl(int, int, struct msqid_ds *); int msgget(key_t, int); ssize_t msgrcv(int, void *, size_t, long, int); int msgsnd(int, const void *, size_t, int); /sys/sys/shm.h typedef unsigned int shmatt_t; struct shmid_ds { struct ipc_perm shm_perm; size_t shm_segsz; pid_t shm_lpid; pid_t shm_cpid; shmatt_t shm_nattch; time_t shm_atime; time_t shm_dtime; time_t shm_ctime; }; void *shmat(int, const void *, int); int shmget(key_t, size_t, int); int shmctl(int, int, struct shmid_ds *); int shmdt(const void *); /sys/security/mac/mac_internal.h struct label { int l_flags; intptr_t l_perpolicy[MAC_MAX_SLOTS]; }; Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update build.rs Update mod.rs Update mod.rs Update build.rs Update mod.rs Update build.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update mod.rs Update build.rs Update build.rs Update mod.rs Update mod.rs
-
- Feb 24, 2017
-
-
Marco A L Barbosa authored
- some tests are failing - remove readlink, timegm and sig* functions in favor of the unix/mod.rs definitions - remove time64_t (it is not defined for aarch64) - move some definitions to android/b32.rs and create appropriated definitions in android/b64.rs
-
Zac Berkowitz authored
``` export TARGET=x86_64-unknown-openbsd export QEMU=openbsd.qcow2 sh ci/run-docker.sh $TARGET ``` Passes when run localy.
-
Zac Berkowitz authored
Adding `termios.h` behind `rpcsvc/rex.h` does not solve the #define clash since `rex.h` also defines the `_SYS_TERMIOS_H_` include guard.
-
- Feb 21, 2017
-
-
Marco A L Barbosa authored
-
Ryan Moeller authored
-
- Feb 20, 2017
-
-
Zac Berkowitz authored
Attempting to correct for conflicting defines from `rpcsvc/rex.h`
-
- Jan 16, 2017
-
- Dec 04, 2016
-
-
Michael Neumann authored
-
Michael Neumann authored
-
- Nov 17, 2016
-
-
Alex Crichton authored
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.
-
- Nov 16, 2016
-
-
Alan Somers authored
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.
-
- Nov 13, 2016
-
-
Alan Somers authored
-
Alan Somers authored
-
Alan Somers authored
-
- Nov 05, 2016
-
-
Boris Faure authored
-
Boris Faure authored
-
- Oct 21, 2016
-
-
Alex Crichton authored
-
- Oct 09, 2016
-
-
Alex Crichton authored
Also cache on appveyor to speed up builds.
-
- Sep 30, 2016
-
-
Alex Crichton authored
-