Bryant Mairs
82dc2f3322
Add constants for termios ioctls
2017-07-02 09:55:00 -07:00
main()
3636d783c7
Fix types of PTHREAD_PROCESS_* constants
2017-07-02 18:47:37 +02:00
bors
77e0da5e1d
Auto merge of #635 - Susurrus:termios_again, r=alexcrichton
...
Finish off termios (hopefully!)
`cfmakesane` for FreeBSD and `tcgetsid` for everyone!
2017-06-30 05:57:29 +00:00
Bryant Mairs
e591c6f08a
Add tcfgetsid for all unices
2017-06-29 20:49:42 -07:00
Bryant Mairs
17936dc221
Add cfmakesane for FreeBSD
...
This doesn't appear on any other platforms
2017-06-29 20:49:38 -07:00
bors
83f5543e76
Auto merge of #633 - main--:rwlockattr, r=alexcrichton
...
Add pthread_rwlockattr APIs
I'm basically trying to mirror the existing code for pthread_mutexattr.
Hopefully the non-linux parts are correct - finding the right definitions is rather confusing and occasionally even contradicts existing definitions (e.g. [this](a26375e7b3/src/libpthread/src/internal.h (L295)
) `pthread_condattr_t` doesn't match #335 ).
2017-06-29 00:58:53 +00:00
main()
b2de1fd5e1
Add pthread_rwlockattr APIs
2017-06-28 17:56:37 +02:00
bors
4dd672704a
Auto merge of #628 - asomers:sysconf, r=alexcrichton
...
Add constants for sysconf(3) and pathconf(3)
2017-06-27 00:44:14 +00:00
Alan Somers
8961292919
Add constants for pathconf(3)
2017-06-26 18:38:13 -06:00
Alan Somers
41404970a3
Add sysconf constants for Illumos
2017-06-26 18:37:48 -06:00
Alan Somers
948d36d6c4
sort sysconf constants for Illumos
2017-06-26 18:37:47 -06:00
Alan Somers
db2b3d8e34
Add sysconf(2) constants for NetBSD and OpenBSD
2017-06-26 18:37:47 -06:00
Alan Somers
c0b6280585
Sort sysconf constants for NetBSD and OpenBSD. No functional change.
2017-06-26 18:37:47 -06:00
Alan Somers
7b17a30954
Add sysconf constants for Linux and Android
2017-06-26 18:37:46 -06:00
Alan Somers
57fa5fab85
Add sysconf constants for FreeBSD and DragonflyBSD
2017-06-26 18:37:46 -06:00
Alan Somers
8f666d4273
Sort FreeBSD's sysconf variables. No functional changes.
2017-06-26 18:35:50 -06:00
bors
f53b95a337
Auto merge of #625 - Susurrus:termios_more, r=alexcrichton
...
Add more termios constants
Went through and found some more termios constants that were missing and added them. I skipped some platforms (solaris, uclibc) and assumed Android has the same constants are Linux, as I couldn't find a good reference for what Android exposes, but it generally follows linux, so I assumed the same was true for some of those values.
## References:
FreeBSD:
* d39171bb1f/sys/sys/_termios.h
* d39171bb1f/include/termios.h
NetBSD: 0bff031265/sys/sys/termios.h
musl: /usr/x86_64-linux-musl/include/bits/termios.h (identical to Linux-x86_64)
linux: /usr/include/bits/termios.h
OpenBSD: 5271000b44/sys/sys/termios.h
DragonFlyBSD:
* ddad68003a/sys/sys/_termios.h
* ddad68003a/sys/sys/termios.h
Android: Just use the same as Linux
uclibc: skipped
haiku-os: http://cgit.haiku-os.org/haiku/tree/headers/posix/termios.h
mac: /usr/include/sys/termios.h and /usr/include/sys/_types/_posix_vdisable.h
solaris: skipped
bitrig (follows openbsd): d31f5220a9/sys/sys/termios.h
2017-06-26 21:54:59 +00:00
bors
46f71e2b2f
Auto merge of #626 - humenda:master, r=alexcrichton
...
[uclibc] add more structs to x86_64
This adds more structs to the uclibc/x86_64 port.
2017-06-26 20:40:29 +00:00
Bryant Mairs
297d5b7d03
Add termios local flags
2017-06-25 08:39:19 -07:00
bors
a38631f465
Auto merge of #616 - Arvamer:linux_input_types, r=alexcrichton
...
Add structs defined in linux/input.h
I was using definitions for these structs from `ioctl` but because @cmr decide to deprecate his crate (and yanked all versions :() I think that `libc` is the best place for them.
In original C header, primitive types uses aliases like `__u16` or `__s32`; for now I replaced them with Rust's counterparts but I'm not sure if it is ok, especially because tests were failing for `u64` (`unsigned long long` vs `unsigned long` on x86_64). Also, should I do something special with union in `ff_effect`?
I would like also to add all constants form `linux/input.h` and `linux/input-event-codes.h` if this PR will be accepted.
2017-06-25 04:55:33 +00:00
bors
2f28640dcb
Auto merge of #627 - GuildMasterInfinite:master, r=alexcrichton
...
Add missing Android constant
This pull requests add the `_SC_NPROCESSORS_CONF` constant to `libc` for Android targets. The similar `_SC_NPROCESSORS_ONLN` already existed.
The reason for adding only this constant is to help fix an [issue with `num_cpus`](https://github.com/seanmonstar/num_cpus/issues/34 ).
2017-06-24 17:13:10 +00:00
Gabriel Majeri
93f897aefb
Add _SC_NPROCESSORS_CONF
2017-06-24 19:48:17 +03:00
Bryant Mairs
cb53d72581
Add termios control flags
2017-06-24 08:56:16 -07:00
Bryant Mairs
bd7dfd133b
Add termios control character indices
2017-06-24 08:56:16 -07:00
Bryant Mairs
14a3a11e24
Add more termios output flags
2017-06-24 08:56:14 -07:00
Sebastian Humenda
c7a7cd831c
Add more structs
...
This adds more structs to the uclibc/x86_64 port.
2017-06-23 14:28:38 +02:00
bors
299e3f6e66
Auto merge of #624 - equal-l2:add-bsd-flag, r=alexcrichton
...
Add BSD flags
2017-06-20 15:04:46 +00:00
equal-l2
00fae9ebe5
Explicitly use namespace
2017-06-20 09:46:45 +09:00
equal-l2
6294184355
Add O_TTY_INIT for FreeBSD
2017-06-19 23:46:37 +09:00
equal-l2
8394276be0
Add O_RSYNC for NetBSD and OpenBSD
2017-06-19 23:46:37 +09:00
equal-l2
cad9a69cf7
Add O_EXEC for FreeBSD
2017-06-19 23:46:37 +09:00
equal-l2
971a291414
Add O_DIRECT for NetBSD and FreeBSD-like
2017-06-19 23:46:37 +09:00
equal-l2
62c0993210
Add O_DIRECTORY for FreeBSD, DragonFly, and OpenBSD-like
2017-06-19 23:44:08 +09:00
bors
b88c8f57b9
Auto merge of #623 - equal-l2:unify-bsd-flags, r=alexcrichton
...
Unify some BSD flags
These BSD flags have common value in all OSes, so I've merged them into root `mod.rs`.
- `O_ACCMODE`
- `O_RDONLY`
- `O_WRONLY`
- `O_RDWR`
- `O_APPEND`
- `O_CREAT`
- `O_TRUNC`
- `O_EXCL`
- `O_SYNC`
- `O_NONBLOCK`
- `O_SHLOCK`
- `O_EXLOCK`
- `O_FSYNC`
- `O_NDELAY`
2017-06-19 14:02:12 +00:00
equal-l2
1c39531673
Unify some BSD flags
2017-06-19 09:56:32 +09:00
bors
50c5a33fb6
Auto merge of #621 - mneumann:dragonfly-at-fixes, r=alexcrichton
...
Fix AT_ constants for DragonFly
2017-06-16 14:08:10 +00:00
Michael Neumann
abdeff3829
Fix AT_ constants for DragonFly
2017-06-16 15:05:04 +02:00
bors
a9ae173975
Auto merge of #620 - pornel:master, r=alexcrichton
...
struct tm for Windows
As documented here:
https://msdn.microsoft.com/en-us/library/windows/hardware/ff567981(v=vs.85).aspx
I've verified it matches `corecrt_wtime.h` file from Win10 SDK.
2017-06-15 22:48:20 +00:00
Kornel
53e0d387f8
struct tm for Windows
...
https://msdn.microsoft.com/en-us/library/windows/hardware/ff567981(v=vs.85).aspx
Matches corecrt_wtime.h from Win10 SDK
2017-06-15 23:16:50 +01:00
Arvamer
495d22a28d
Merge branch 'master' into linux_input_types
2017-06-15 21:07:32 +02:00
bors
2015cf17a6
Auto merge of #614 - Razican:version_update, r=alexcrichton
...
Bumped version number
Bumped version number so that the latest changes go to crates.io.
2017-06-15 18:32:09 +00:00
Razican
eb3f7b3658
cargo update
2017-06-15 20:13:11 +02:00
bors
edbc1f14e7
Auto merge of #619 - gdf8gdn8:fixed-missing-epolloneshot-android, r=alexcrichton
...
Fixed missing EPOLLONESHOT for android
resolve #548
2017-06-15 14:29:34 +00:00
bors
ce955e98c3
Auto merge of #618 - jcowgill:mips-cleanups, r=alexcrichton
...
Various MIPS cleanups
This PR contains a few cleanups to the MIPS part of the bindings. It mostly moves stuff out of `mips/mips32.rs` into `mips/mod.rs` which is identical between mips32 and mips64, mostly because mips64 is missing a number of syscalls. In addition, I add `struct flock` which was missing on mips64.
2017-06-15 13:56:10 +00:00
James Cowgill
3799b7b29e
Add missing struct flock to mips64
2017-06-15 11:01:20 +01:00
James Cowgill
23ce69b05a
Add missing MIPS syscalls
...
In addition, move the syscalls to the mips module file because they are
all identical in mips32 and mips64.
2017-06-15 11:01:19 +01:00
James Cowgill
b58bf3db62
Move types common to mips32 and mips64 into the main mips module
...
As a result of this commit, glob64_t will be added to mips64.
2017-06-15 11:00:47 +01:00
Uwe Strempel
519c5ea963
Fixed missing epoll one shot
2017-06-15 10:33:45 +02:00
Arvamer
92fac1dc92
Merge branch 'master' into linux_input_types
2017-06-15 09:12:34 +02:00
Mateusz Sieczko
60d93226ff
Add structs defined in linux/input.h
2017-06-14 21:48:41 +02:00