Alex Crichton
c8b125383e
Merge pull request #354 from fiveop/poll_constants
...
Add missing constants for poll() flags
2016-08-10 15:36:20 -07:00
Philipp Matthias Schaefer
965df8ed4f
Add missing constants for poll() flags
2016-08-10 22:58:29 +02:00
Alex Crichton
3630c46aea
Merge pull request #353 from knight42/utmp
...
Make utmp(x) support more platforms
2016-08-09 08:35:02 -07:00
Knight
ee0a812bfd
Add utmpx on freebsd
2016-08-09 14:38:11 +08:00
Knight
cc1a0c212d
Add utmpx on apple
2016-08-09 14:38:11 +08:00
Knight
5f8f0923cc
Move struct utmpx to Linux level
2016-08-09 14:38:11 +08: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
20222659a0
Merge pull request #350 from meh/master
...
Add memset
2016-08-06 17:06:42 -07:00
meh
5bf1fe4fc2
Add memset
2016-08-06 16:45:15 +02:00
Alex Crichton
e01321c78b
Merge pull request #348 from alexcrichton/bump
...
Bump to 0.2.15
2016-08-04 18:51:45 -07:00
Alex Crichton
290d4b10aa
Merge pull request #349 from meh/master
...
Add memcpy and memmove
2016-08-04 18:51:28 -07:00
meh
988305b369
Add memcpy and memmove
2016-08-04 22:31:51 +02:00
Alex Crichton
6c18f30543
Bump to 0.2.15
2016-08-04 08:19:48 -07:00
Alex Crichton
23b69f3e08
Merge pull request #346 from frewsxcv/pg
...
Add `getpgid`.
2016-08-03 09:23:39 -07:00
Corey Farwell
68dba7ab5a
Add getpgid
.
2016-08-03 08:21:45 -04:00
Alex Crichton
d85f265099
Merge pull request #344 from letheed/master
...
Add clock_nanosleep for linux and solaris
2016-08-01 00:29:52 -07:00
Letheed
58b7dfb17e
Add clock_nanosleep for linux and solaris
2016-08-01 08:52:11 +02:00
Alex Crichton
670f0b3060
Merge pull request #343 from valarauca/master
...
Added Ptrace option parameters
2016-07-31 16:52:15 -07:00
valarauca
9f977e135d
Copy Paste Error
...
Accidentally duplicated a line 3 times.
2016-07-31 18:50:54 -04:00
Alex Crichton
932f22be4e
Merge pull request #342 from knight42/getpw
...
Add functions to get password/group file entry
2016-07-31 15:11:53 -07:00
valarauca
bb0064bcfd
Added Ptrace option parameters
...
When the tracer process (often parent, but not necessarily) starts tracing it needs to pass the kernel options about what it is trying to accomplish. These constants were not defined in this document, so I'm attempting to add them.
2016-07-31 16:13:40 -04:00
Knight
19fb32a0a9
Add passwd related functions
2016-07-31 17:00:15 +08:00
Knight
263970d14a
Add struct group and related functions
2016-07-31 16:58:17 +08:00
Alex Crichton
3b4f15d576
Merge pull request #340 from knight42/utmp
...
Add utmpx
2016-07-28 08:51:46 -07:00
Knight
b47e554216
Add struct utmp for i686-linux
2016-07-27 21:29:38 +08:00
Knight
62f9035f4c
Add struct utmp for android
2016-07-27 21:29:38 +08:00
Knight
881c4622a5
Add struct utmp for openbsd
2016-07-27 21:04:27 +08:00
Knight
a6b283b133
Add header file for utmp(x)
2016-07-27 19:42:36 +08:00
Alex Crichton
5066b7dcab
Merge pull request #341 from japaric/arm-musl
...
arm-musl targets now use cfg(target_env = "musl")
2016-07-26 22:34:49 -07:00
Jorge Aparicio
23a5092adc
arm-musl targets now use cfg(target_env = "musl")
2016-07-26 16:13:03 -05:00
Alex Crichton
09261133a0
Merge pull request #339 from asomers/master
...
Add sethostname for freebsdlike operating systems
2016-07-25 09:05:58 -07:00
Alan Somers
366509d3fd
Add sethostname for freebsdlike operating systems
2016-07-24 23:42:33 +00:00
Alex Crichton
bbf53a1f7e
Merge pull request #337 from ParadoxSpiral/master
...
Add setlocale and wsetlocale for Windows
2016-07-21 20:33:22 -07:00
ParadoxSpiral
aff822e4f6
Add setlocale and wsetlocale for Windows
2016-07-22 02:11:11 +02:00
Alex Crichton
b065b3c659
Merge pull request #335 from tmiasko/condattr
...
Add support for pthread_condattr_t on Unix platforms.
2016-07-21 09:03:05 -07: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
Tomasz Miąsko
cb64485f27
Add support for pthread_condattr_t on Unix platforms.
...
Following types and function have been added:
* pthread_cond_init
* pthread_condattr_t
* pthread_condattr_init
* pthread_condattr_destroy
* pthread_condattr_setclock [0]
* pthread_condattr_getclock [0][1]
[0] Not available on OSX.
[1] May be unavailable on NetBSD, it is a very recent addition.
Left out from openbsdlike hierarchy for now.
2016-07-21 08:14:12 +02:00
Alex Crichton
32dc2ea910
Merge pull request #334 from fiveop/literal_overflow_warning
...
Cast unsigned literals to signed integers.
2016-07-15 14:47:37 -07:00
Philipp Matthias Schaefer
5a68b6ad38
Cast unsigned literals to signed integers.
...
This makes it explicity that we know the literals are to large and
will result in a negative number. This gets rid of a warning in
1.9.0 and younger versions, as well as an error when using the
constants as discrimintants of #[repr(i32)] enumerations in older
versions.
2016-07-15 23:19:00 +02:00
Alex Crichton
16f3a8e96c
Merge pull request #333 from bugaevc/reboot
...
Linux: add reboot() and constants
2016-07-12 12:45:58 -07:00
Sergey Bugaev
8b76797d8f
Revert "Share reboot code between Linux & Android"
...
This reverts commit ea0a870b4f3c3b1726be6bc6c18006555b1ae253.
2016-07-12 20:56:43 +03:00
Sergey Bugaev
5d65c3f246
Revert "Fix accidental two blank lines"
...
This reverts commit 43ab51cba47511bfc2e382a30d84eb3d5e129d42.
2016-07-12 20:55:08 +03:00
Sergey Bugaev
43ab51cba4
Fix accidental two blank lines
2016-07-12 20:26:49 +03:00
Sergey Bugaev
ea0a870b4f
Share reboot code between Linux & Android
2016-07-12 20:22:26 +03:00
Sergey Bugaev
4624510ae3
Cosmetic: fix the indentation
2016-07-12 20:20:57 +03:00
Alex Crichton
baf71f87e0
Merge pull request #317 from cjschneider2/master
...
Add `if_nameindex()` and `if_freenameindex()` from POSIX-2001
2016-07-12 08:07:50 -07:00
Sergey Bugaev
f4c3fc5417
Move LINUX_REBOOT_* constants out of common Linux code
...
Copy them into individual platform files instead. Fixes musl build.
2016-07-12 14:35:45 +03:00
Sergey Bugaev
a98c983cf0
Linux: add reboot() and constants
2016-07-12 13:22:51 +03:00
Charles J. Schneider
332bd86689
Manually exclude Android instead of compiler cfg
...
This change is due to an unfortunate interaction between the `s!` macro
and the Android abi. When the struct is defined, but excluded through a
`[cfg(not(target_os = "android"))]` the macro tries to define a
non-existent struct. This commit manually add the functions & struct to
each platform independently.
2016-07-12 09:32:42 +02:00