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
A.J. Gardner
5399c89f60
Change netbsd link_name for setlocale
2016-03-30 23:09:25 -05:00
A.J. Gardner
5a0c067f1b
Define struct and consts for notbsds
...
Linux-likes have more locale categories than the BSDs (except for
musl). We define the common set of categories at the
src/unix/notbsd/mod.rs level, and leave the rest to the
platform-specific modules.
2016-03-30 22:51:47 -05:00
A.J. Gardner
0dc717626e
Define struct and consts for bsds
...
The BSDs seem to have more peculiarities than the notbsds
2016-03-30 22:50:10 -05:00
A.J. Gardner
874852cff1
Pull lconv def down into notbsd
2016-03-30 19:59:47 -05:00
A.J. Gardner
912a7a03b4
Fix lconv field offsets for apple-likes
2016-03-30 19:49:42 -05:00
bors
62fb1d52b5
Auto merge of #245 - alexcrichton:bump, r=alexcrichton
...
Bump to 0.2.9
2016-03-30 17:40:49 -07:00
Alex Crichton
3de1107244
Bump to 0.2.9
2016-03-30 17:40:32 -07:00
bors
334b106303
Auto merge of #241 - alexcrichton:fix-header-footer, r=alexcrichton
...
Swap header/footer... dunno how they got that way?
Apparently they were swapped accidentally already!
Closes #240
2016-03-30 09:07:10 -07:00
A.J. Gardner
b788a5c736
Add locale.h in libc-test
2016-03-30 01:13:55 -05:00
A.J. Gardner
2bd6f12241
Fix long line
...
Lint caught a long line. This should fix the CI failure.
2016-03-30 00:55:49 -05:00
A.J. Gardner
110152c115
Add lconv type, and locale support for UNIX
...
We have lconv struct, setlocale(), and localeconv(). Constants live
under notbsd for now.
2016-03-30 00:36:43 -05:00
Alex Crichton
19e64f3cfb
Swap header/footer... dunno how they got that way?
...
Apparently they were swapped accidentally already!
Closes #240
2016-03-28 13:58:13 -07:00
bors
cd925e0ce1
Auto merge of #233 - kamalmarhubi:linux-fcntl, r=alexcrichton
...
linux: Add missing Linux-specific fcntls
Also move F_DUPFD_CLOEXEC up a level as it is available on Android.
2016-03-18 09:38:23 -07:00
Kamal Marhubi
b43118cb98
linux: Add missing Linux-specific fcntls
...
Also move F_DUPFD_CLOEXEC up a level as it is available on Android.
This commit leaves file sealing related fcntls and bitflag constants
out, as they are defined in `linux/fcntl.h` rather than `fcntl.h`. They
can be included once an approach for verification has been figured out.
See #235 for more detail.
2016-03-18 01:43:59 -04:00
bors
fa161aec16
Auto merge of #229 - kamalmarhubi:mount-flags, r=alexcrichton
...
linux: Move some MS_flags for mount(2) up
These flags are available on Android.
2016-03-15 00:12:31 -07:00
bors
aabff317d4
Auto merge of #226 - m4rw3r:master, r=alexcrichton
...
apple: Add TIOC* constants
From `sys/ioctl.h`.
Extracted on OS X 10.11.3.
2016-03-14 22:57:24 -07:00
bors
052118790c
Auto merge of #230 - alexcrichton:winapi-update, r=alexcrichton
...
Update winapi
2016-03-14 21:59:54 -07:00
Alex Crichton
609693dae1
Update winapi
2016-03-14 21:59:21 -07:00
Kamal Marhubi
10bfe07651
linux: Move some MS_ flags for mount(2) up
...
These flags are available on Android.
2016-03-14 19:25:06 -04:00
Kamal Marhubi
4ff4acec36
linux: Comment distinction between msync and mount MS_ flags
...
They have different types and should be visually separated for ease of
reading.
2016-03-14 19:25:06 -04:00
bors
722fedd5bb
Auto merge of #227 - kamalmarhubi:clone-flags, r=alexcrichton
...
linux: Move namespace clone flags up one level
The flags are available in Android, and should be defined higher up.
2016-03-13 13:39:33 -07:00
Kamal Marhubi
ae69a167ac
linux: Move namespace clone flags up one level
...
The flags are available in Android, and should be defined higher up.
2016-03-13 16:26:49 -04:00
Martin Wernstål
f500051a99
apple: TIOCTIMESTAMP and TIOCDCDTIMESTAMP differ on 32 bit
2016-03-13 20:35:56 +01:00
Martin Wernstål
8e85797c3d
apple: Add TIOC* constants
...
From sys/ioctl.h
2016-03-13 16:41:06 +01:00
bors
d9f256ec37
Auto merge of #225 - posborne:netlink-android, r=alexcrichton
...
Pull sockaddr_nl up a layer as it is present for Android
The addition of sockaddr_nl seems to be a fairly recent
addition to bionic, although it would appear that its lack
of presence in previous versions is more of an oversight than
anything else.
831c8a5249/libc/kernel/uapi/linux/netlink.h (L54)
2016-03-11 22:43:11 -08:00
Paul Osborne
9e94d5b777
Pull sockaddr_nl up a layer as it is present for Android
...
The addition of sockaddr_nl seems to be a fairly recent
addition to bionic, although it would appear that its lack
of presence in previous versions is more of an oversight than
anything else.
831c8a5249/libc/kernel/uapi/linux/netlink.h (L54)
This change is motivated by failures to build nix under Android.
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-12 00:13:31 -06:00
bors
493d79b2ea
Auto merge of #224 - kamalmarhubi:safer-cfg, r=alexcrichton
...
Make cfg_if uses more explicit and consistent
This commit changes most uses of cfg_if as follows:
- fallthrough `else` usage is avoided for architecture or OS specific
items
- a comment is added in the final `else` clause to signal intent someone
modifying
It is safer to omit items than include ones for the wrong platform or
architecture.
2016-03-11 12:31:39 -08:00
Kamal Marhubi
66c3375326
Make cfg_if uses more explicit and consistent
...
This commit changes most uses of cfg_if as follows:
- fallthrough `else` usage is avoided for architecture or OS specific
items
- a comment is added in the final `else` clause to signal intent someone
modifying
It is safer to omit items than include ones for the wrong platform or
architecture.
2016-03-11 14:06:21 -05:00
bors
ef979ef4d8
Auto merge of #222 - mneumann:dragonfly_clock_gettime, r=alexcrichton
...
Fix DragonFly: clock_gettime() expects CLOCK_* constants as ulong.
While there add all CLOCK_ constants as found on DragonFly.
2016-03-11 11:00:34 -08:00
bors
61ae4865b0
Auto merge of #223 - alexcrichton:run-all, r=alexcrichton
...
Run CI on all branches
Only running them against auto-libc unfortunately means that PRs don't run CI.
2016-03-11 09:36:59 -08:00
Alex Crichton
81ba7f05a8
Run CI on all branches
...
Only running them against auto-libc unfortunately means that PRs don't run CI.
2016-03-11 09:35:56 -08:00
bors
8543d5f7c6
Auto merge of #221 - alexcrichton:bors, r=alexcrichton
...
Prep repo to be bors-compatible
In... theory this is what we need? Let's try it out.
2016-03-11 09:13:06 -08:00
Michael Neumann
378bb73bcc
Fix DragonFly: clock_gettime() expects CLOCK_* constants as ulong.
...
While there add all CLOCK_ constants as found on DragonFly.
2016-03-11 16:01:56 +01:00
Alex Crichton
2ff0e52d53
Add webhooks to travis
2016-03-10 17:26:44 -08:00
Alex Crichton
8a4e72e159
Merge pull request #219 from kamalmarhubi/perf_event_open
...
linux: Add SYS_perf_event_open syscall numbers
2016-03-10 16:44:22 -08:00
Kamal Marhubi
a63cd45a36
linux: Add SYS_perf_event_open syscall numbers
...
The associated `perf_event_attr` struct is not included as it contains
unions and a bitfield making it unrepresentable in Rust. Additionally,
it is not entirely stable, and has changed size several times.
2016-03-10 15:36:48 -05:00
Kamal Marhubi
f934724bba
musl: Add architecture specific modules for 64 bit
2016-03-10 15:32:18 -05:00
Alex Crichton
04213bbac5
Merge pull request #202 from kamalmarhubi/openpty
...
apple: Add openpty(3) and forkpty(3)
2016-03-08 21:43:44 -08:00
Kamal Marhubi
89a7700e23
apple: Add openpty(3) and forkpty(3)
2016-03-08 23:47:03 -05:00
Alex Crichton
b47bc673ba
Merge pull request #218 from alexcrichton/bump
...
Bump to 0.2.8
2016-03-07 14:42:21 -08:00
Alex Crichton
95a56522db
Update the libc-test lockfile
2016-03-07 13:12:43 -08:00
Alex Crichton
7426d35119
Bump to 0.2.8
2016-03-07 13:11:58 -08:00
Alex Crichton
2278a54955
Merge pull request #217 from gabrielesvelto/master
...
Add MAP_STACK and MAP_HUGETLB entries to MIPS so that the nix crate can be built
2016-03-07 09:09:06 -08:00
Gabriele Svelto
30dfc4b7ff
Add MAP_STACK and MAP_HUGETLB entries to MIPS so that the nix crate can be built
2016-03-07 15:49:20 +01:00
Alex Crichton
08f816f745
Merge pull request #216 from alexcrichton/merge
...
Merging more PRs in the queue
2016-03-06 23:44:27 -08:00
Alex Crichton
c01ec7ebfe
Merge branch 'master' of https://github.com/fpgaminer/libc into merge
2016-03-06 23:18:11 -08:00
Alex Crichton
ba516ff2c2
Merge branch 'musl-arm' of https://github.com/joerg-krause/libc into merge
2016-03-06 23:18:01 -08:00
fpgaminer
f5885eec25
Add utimensat
2016-03-06 19:49:06 -08:00
Jörg Krause
8ad252009a
musl: opt for dynamic linking for arm arch
...
When building with musl for an arm target link with a shared libc (like mips
already does).
2016-03-07 00:26:12 +01:00