- May 06, 2016
-
-
bors authored
unix: Add PIPE_BUF for bsd and notbsd This is the maximum size of guaranteed-atomic writes to a pipe.
-
- May 05, 2016
-
-
Kamal Marhubi authored
This is the maximum size of guaranteed-atomic writes to a pipe.
-
bors authored
Adding syslog functions, constants and structs This commit adds the functions:- - syslog - openlog - closelog - setlogmask It adds LOG_* constants. It adds the `CODE` struct used by the `#define` definitions `prioritynames` and `facilitynames`. It does not add:- - the function `vsyslog`; this is an extension to POSIX and uses va_list macros; - the `#define`s `prioritynames` and `facilitynames`, as usage is not common - rust functions mirroring the macros:- - LOG_PRI - LOG_MAKEPRI - LOG_MASK - LOG_UPTO - LOG_FAC * `CODE` is included in case a third-party unsafe C function returns or takes it.
-
Raphael Cohn authored
-
Raphael Cohn authored
Did this by moving these definitions up from DragonFlyBSD.
-
Raphael Cohn authored
This is because Android bionic doesn't support `LOG_NFEATURES`.
-
Raphael Cohn authored
-
Raphael Cohn authored
Removed CODE, as its definition and name varies too wildy and I have no current code using it to test permutations with. Moved LOG_NFACILITIES down, as Mac OS X defines this value differently. Added Mac OS X specific LOG_* facilities. Added FreeBSD / DragonFly BSD specific LOG_* facilities. Moved LOG_PERROR down, as all platforms bar Solaris define this. Moved LOG_CRON down, as Solaris defines this with a different value. Moved LOG_AUTHPRIV and LOG_FTP down, as all platforms bar Solaris define these. Looks like Solaris is suffering from the bit rot of commercial Unix...
-
bors authored
Added strnlen function to all platforms. strnlen is used to find the length of a C string that may be lacking a terminal NUL character. Whilst it is possible to implement the equivalent functionality in rust code, it is cleaner, simpler and removes the need for duplication of tricky functionality to get right. It also makes it easier to port C code snippets to rust. In my case, it's needed for dealing with the result of `gethostname`. Note that strnlen is not part of POSIX or C99, but is present on all major platforms.
-
- May 04, 2016
-
-
bors authored
Definition of _SC_HOST_NAME_MAX for OpenBSD and FreeBSD
-
Raphael Cohn authored
strnlen is used to find the length of a C string that may be lacking a terminal NUL character. Whilst it is possible to implement the equivalent functionality in rust code, it is cleaner, simpler and removes the need for duplication of tricky functionality to get right. It also makes it easier to port C code snippets to rust. Note that strnlen is not part of POSIX or C99.
-
bors authored
Added _SC_HOST_NAME_MAX for FreeBSD, DragonFly, BitRig and Linux (glibc and musl) I'd have liked to also add NetBSD and OpenBSD, but I can't find where _SC_HOST_NAME_MAX is defined.
-
Raphael Cohn authored
This commit adds the functions:- - syslog - openlog - closelog - setlogmask It adds LOG_* constants. It adds the CODE struct used by the #define definitions prioritynames and facilitynames. It does not add:- - the function vsyslog; this is an extension to POSIX and uses va_list macros; - the #defines prioritynames and facilitynames, as usage is not common - rust functions mirroring the macros:- - LOG_PRI - LOG_MAKEPRI - LOG_MASK - LOG_UPTO - LOG_FAC * CODE is included in case a third-party unsafe C function returns or takes it.
-
Raphael Cohn authored
-
Raphael Cohn authored
-
- May 03, 2016
-
-
bors authored
Bump to 0.2.11 Closes #273
-
Alex Crichton authored
-
- Apr 30, 2016
-
-
bors authored
apple: Add RLIMIT_RSS as alias of RLIMIT_AS This is defined in <sys/resource.h> as #define RLIMIT_RSS RLIMIT_AS /* source compatibility alias */ See http://opensource.apple.com//source/xnu/xnu-1456.1.26/bsd/sys/resource.h
-
Kamal Marhubi authored
This is defined in <sys/resource.h> as #define RLIMIT_RSS RLIMIT_AS /* source compatibility alias */ See http://opensource.apple.com//source/xnu/xnu-1456.1.26/bsd/sys/resource.h
-
- Apr 29, 2016
-
-
bors authored
OS X: add various process status tests defined by wait.h Adds the various process test macros specified in the wait(2) manpage on OS X. ```WCOREDUMP``` is implemented BSD-wide as it seems to be the only macro whose definition is constant across the BSDs.
-
Matt Barnett authored
-
bors authored
linux: Add prlimit(2) and prlimit64(2) As with `getrlimit` and `setrlimit`, the glibc wrappers have a non-`int` for the `resource` argument, eg: extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource, const struct rlimit *__new_limit, struct rlimit *__old_limit) __THROW;
-
Kamal Marhubi authored
As with `getrlimit` and `setrlimit`, the glibc wrappers have a non-`int` for the `resource` argument, eg: extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource, const struct rlimit *__new_limit, struct rlimit *__old_limit) __THROW;
-
- Apr 28, 2016
-
-
bors authored
notbsd: Deduplicate definitions A bunch of definitions were duplicated across, eg, android and linux. This commit pulls these up to higher levels where they can be shared.
-
Matt Barnett authored
-
bors authored
Add SIGEMT (for apple) and SIGINFO (for bsd).
-
bors authored
Explain about the automated tests on Travis in order to advise contributors to locally test their patches.
-
Kamal Marhubi authored
A bunch of definitions were duplicated across, eg, android and linux. This commit pulls these up to higher levels where they can be shared.
-
- Apr 27, 2016
-
-
Kai Noda authored
in order to advise contributors to locally test their patches. Also update ctest to include a fix on rerun-if-changed so that human developers doing trial & error can properly test their latest code. Signed-off-by:
NODA, Kai <nodakai@gmail.com>
-
- Apr 26, 2016
-
-
Philipp Matthias Schaefer authored
-
- Apr 25, 2016
-
-
Alex Crichton authored
Use rustup to add targets, not manual curl
-
Alex Crichton authored
-
- Apr 18, 2016
-
-
bors authored
Add support for arm-unknown-linux-musleabi{,hf} targets. These targets will be similar to the x86_64-unknown-linux-musl target, in that they'll use MUSL libc to allow fully static binaries to be generated. To remain consistent with the naming of existing ARM targets, as well as with the standard naming of MUSL toolchains, we'll use `musleabi` and `musleabihf` as the target environment names (analogous to `gnueabi` and `gnueabihf`). Most of these changes just extend the special casing for x86_64 MUSL targets to the ARM ones as well.
-
- Apr 16, 2016
-
-
Timon Van Overveldt authored
These targets will be similar to the x86_64-unknown-linux-musl target, in that they'll use MUSL libc to allow fully static binaries to be generated. To remain consistent with the naming of existing ARM targets, as well as with the standard naming of MUSL toolchains, we'll use `musleabi` and `musleabihf` as the target environment names (analogous to `gnueabi` and `gnueabihf`). Most of these changes just extend the special casing for x86_64 MUSL targets to the ARM ones as well.
-
- Apr 15, 2016
-
-
bors authored
Add ucontext for linux-musl. It just copy pasted from the linux-other version.
-
Philipp Matthias Schaefer authored
-
- Apr 13, 2016