Kelvin Ly
26670c77b7
Fix build errors for mips-unknown-linux-uclibc
2017-04-21 18:20:08 -04:00
Kelvin Ly
56d2d472d0
Omit lots of definitions from mips-unknown-linux-uclibc
2017-04-21 17:02:35 -04:00
Kelvin Ly
2d6c7dad20
Fix more stuff after updating libc
2017-04-20 18:42:59 -04:00
Kelvin Ly
3e70b66226
Fix constants for mips-unknown-linux-uclibc
2017-04-20 17:44:44 -04:00
Kelvin Ly
9a835580a6
Add changes to allow uclibc to build
2017-04-20 02:37:31 -04:00
bors
81310f5d8f
Auto merge of #569 - Norbytus:master, r=alexcrichton
...
Add const socket protocol for divert rule ipfw on FreeBSD
2017-04-06 16:16:20 +00:00
Norbytus
65b5a5f221
Add const socket protocol for divert rule ipfw on FreeBSD
2017-04-06 17:05:31 +03:00
bors
b821c3ea83
Auto merge of #565 - anatol:master, r=alexcrichton
...
Link libc crate against pthread
pthread_* functions are defined in libpthread thus we need to link against
this library.
2017-04-05 16:06:34 +00:00
Anatol Pomozov
a763fc5903
Link libc crate against pthread
...
pthread_* functions are defined in libpthread thus we need to link against
this library.
2017-04-04 13:24:13 -07:00
bors
89aab46099
Auto merge of #559 - superriva:superriva-patch-1, r=alexcrichton
...
Add IPC,SHM,MSG for Freebsd
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
#define IPC_CREAT 001000
#define IPC_EXCL 002000
#define IPC_NOWAIT 004000
#define IPC_PRIVATE (key_t)0
#define IPC_RMID 0
#define IPC_SET 1
#define IPC_STAT 2
#define IPC_INFO 3
#define IPC_R 000400
#define IPC_W 000200
#define IPC_M 010000
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
#define MSG_NOERROR 010000
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
#define SHM_RDONLY 010000
#define SHM_RND 020000
#define SHMLBA PAGE_SIZE
#define SHM_R (IPC_R)
#define SHM_W (IPC_W)
#define SHM_LOCK 11
#define SHM_UNLOCK 12
#define SHM_STAT 13
#define SHM_INFO 14
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
#define MAC_MAX_SLOTS 4
struct label {
int l_flags;
intptr_t l_perpolicy[MAC_MAX_SLOTS];
};
2017-04-04 17:35:20 +00:00
superriva
2122616185
Add IPC,SHM,MSG for Freebsd
...
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
2017-04-04 10:13:43 +03:00
bors
0203490e9d
Auto merge of #567 - amosonn:master, r=alexcrichton
...
Added O_EXEC, O_SEARCH to solaris and musl, O_PATH to musl.
See #566 .
2017-04-04 05:41:19 +00:00
Amos Onn
be1cbaf0b3
Added O_PATH, O_EXEC, O_SEARCH to musl.
2017-04-04 00:42:47 +02:00
Amos Onn
252be4da54
Added O_EXEC and O_SEARCH to solaris libc.
2017-04-04 00:22:32 +02:00
bors
cba41429f2
Auto merge of #564 - vojtechkral:patch-1, r=alexcrichton
...
Make networking on Solaris/Illumos great again
2017-04-01 00:16:46 +00:00
Vojtech Kral
f4fea9b4a0
Correct sa_family_t on Solaris/Illumos
2017-03-31 22:08:43 +02:00
bors
c6a68f18cb
Auto merge of #560 - Mic92:fchown, r=alexcrichton
...
Add fchown
2017-03-30 20:04:02 +00:00
bors
603e5a79c6
Auto merge of #562 - Mic92:utime, r=alexcrichton
...
add UTIME_OMIT, UTIME_NOW on linux
2017-03-30 16:45:48 +00:00
Jörg Thalheim
22e79d6781
add UTIME_OMIT, UTIME_NOW on linux
2017-03-30 12:12:06 +02:00
Jörg Thalheim
e6864db83e
add fchown
2017-03-29 20:55:33 +02:00
bors
1033ce707a
Auto merge of #558 - Mic92:truncate64, r=alexcrichton
...
add truncate64/readdir64/openat64 on linux
2017-03-27 15:58:20 +00:00
bors
1d501bc29c
Auto merge of #549 - Mic92:atflags, r=alexcrichton
...
add AT_* constants
2017-03-27 14:25:23 +00:00
Jörg Thalheim
677b08e2ce
add openat64 on linux
2017-03-25 16:03:30 +01:00
Jörg Thalheim
4b6ffe3e30
add readdir64 on linux
2017-03-25 14:11:58 +01:00
Jörg Thalheim
6893609ea8
add truncate64 on linux
2017-03-25 14:04:13 +01:00
Jörg Thalheim
6ddc76a27e
add AT_* constants
2017-03-25 12:57:15 +01:00
bors
8c11f71643
Auto merge of #556 - archaelus:apple_add_fion, r=alexcrichton
...
Add FIONREAD for apple/b64
Adds the FIONREAD constant for macos/x86_64 machines.
2017-03-25 02:03:48 +00:00
Geoff Cant
913da6cc3a
Add FIONREAD for apple/b64
2017-03-24 17:16:43 -07:00
bors
4e313148fe
Auto merge of #550 - Mic92:fdopendir, r=alexcrichton
...
add fdopendir
2017-03-24 14:36:31 +00:00
Jörg Thalheim
99a524d4fc
add fdopendir
2017-03-24 10:38:09 +01:00
bors
e9238ebc9b
Auto merge of #552 - vojtechkral:patch-3, r=alexcrichton
...
Solaris/Illumos: Add several more filio ioctls
MIO needs these
2017-03-23 21:01:30 +00:00
bors
443977132a
Auto merge of #551 - Mic92:readlinkat, r=alexcrichton
...
move *at family to unix
apparently supported on all platforms.
2017-03-23 20:37:54 +00:00
bors
16718abf50
Auto merge of #553 - alexcrichton:fix-ci, r=alexcrichton
...
Get CI working again
A few changes have necessitated some updates on our end
2017-03-23 18:47:30 +00:00
Alex Crichton
9a55bc1027
Get CI working again
...
A few changes have necessitated some updates on our end
2017-03-23 11:29:57 -07:00
Vojtech Kral
636348ae6b
Solaris/Illumos: Add several more filio ioctls
...
MIO needs these
2017-03-21 17:27:16 +01:00
Jörg Thalheim
64f89331ee
move *at family to unix
2017-03-20 16:10:01 +01:00
bors
863fb88586
Auto merge of #546 - alexander255:master, r=alexcrichton
...
Add support for the `accept4` system call for FreeBSD* & NetBSD*
As outlined in #540 .
However since support for this system call seems to be committed, but not yet released in NetBSD & BitRig (is BitRig actually still be developed at all, btw?), I'm not sure whether it wouldn't be a better idea to only add OpenBSD support instead?
What's the official policy on this?
2017-03-03 23:53:22 +00:00
Alexander Schlarb
23d4059546
Add support for the accept4
system call for FreeBSD* & NetBSD*
2017-03-03 21:12:12 +01:00
bors
05a2d19735
Auto merge of #545 - kamalmarhubi:bump, r=alexcrichton
...
Bump to 0.2.21
closes https://github.com/rust-lang/libc/issues/539
2017-03-02 00:31:07 +00:00
Kamal Marhubi
d24e86c9d7
Bump to 0.2.21
...
closes https://github.com/rust-lang/libc/issues/539
2017-03-01 19:00:07 -05:00
bors
d197e21015
Auto merge of #543 - berkowski:socket_constants, r=alexcrichton
...
Adds many socket related constants
Started off adding a few constants to help cleaning up some `nix-rust/nix` issues. Went a little.. further.
Adds lots of socket-related constants (`PF_*`, `MSG_*`, `AF_*`, `SO_*`, `SOL_*`, etc.) to linux/bsd flavors.
Added constants to `bsd/frebsdlike/dragonfly` for completeness, though they aren't covered by CI. Did not touch `notbsd/linux/s390x.rs`
2017-03-01 22:59:11 +00:00
Zac Berkowitz
985ea406ec
Added #[doc(hidden)] to AF_MAX, PF_MAX, others.
2017-03-01 18:06:01 +00:00
Zac Berkowitz
fa1962641a
Added socket constants for apple
2017-03-01 18:06:01 +00:00
Zac Berkowitz
27ce7b1575
Cleaned up unused socket constants.
2017-03-01 18:06:01 +00:00
Zac Berkowitz
5494238c47
Added many socket-related constants to BSD
2017-03-01 18:06:01 +00:00
Zac Berkowitz
1479ea84fe
Added many socket-related constants to linux
2017-03-01 18:06:01 +00:00
bors
612a5861da
Auto merge of #538 - malbarbo:ci-android, r=alexcrichton
...
Add and fix tests for {i686, aarch64}-linux-android targets
I think that these changes do not breaks compatibility.
There are some types and constants changes to i686 and aarch64, but I see these changes as bug fixes instead of breaking changes. Also the type time64_t was remove from aarch64 because it is not defined in this arch.
Fixes #536
2017-03-01 16:24:39 +00:00
bors
331b179a7b
Auto merge of #542 - Susurrus:master, r=alexcrichton
...
Add OXTABS and ONOEOT for BSD systems
According to all references I could find these are BSD extensions to POSIX and are also supported on OS X.
2017-02-28 17:14:12 +00:00
Bryant Mairs
cda0f200da
Add OXTABS and ONOEOT for BSD systems
2017-02-28 08:49:26 -08:00
Marco A L Barbosa
b2791dbef0
Merge branch 'master' into ci-android
2017-02-27 23:10:55 -03:00