Commit Graph

42 Commits

Author SHA1 Message Date
Jessica Hamilton 6de9e63431 haiku: define PATH_MAX. 2017-09-26 00:06:28 +00:00
Jessica Hamilton 72ac033a4a haiku: fix incorrect constant for EMFILE. 2017-09-26 00:06:14 +00:00
Jessica Hamilton 7bff2dcdbf haiku: add missing pathconf constants. 2017-09-25 23:28:37 +00:00
Jessica Hamilton 7b2ecc6596 haiku: add missing sysconf constants. 2017-09-22 23:12:06 +00:00
Jessica Hamilton 07a430325c haiku: add missing POSIX errors, reorder to match header. 2017-09-03 16:29:19 -05:00
Jessica Hamilton b24c5888cd haiku: add missing SOCK_SEQPACKET. 2017-09-03 16:29:19 -05:00
Jessica Hamilton ab7925f8ea haiku: add missing pthread_create. 2017-09-03 16:29:19 -05:00
Jessica Hamilton dc2e747b2a haiku: time_t is now 64-bit on x86_64. 2017-09-03 16:29:19 -05:00
Alex Crichton 22b98dedfe Add asmjs/wasm32 to CI
Rebase of #610 and also move emscripten up much higher in the hierarchy to
ensure that it doesn't have too much of a ripple effect on other platforms.

This involved moving down a good number of definitions, but hopefully was done
with care to not break anything!
2017-08-26 22:15:29 -07:00
Alexander von Gluck IV 177d5e6fba haiku: Add missing signals
* Now a complete signal list on Haiku minus reserved.
* Fixes build failure due to missing SIGUSR1
2017-08-25 20:28:03 -05:00
Alexander von Gluck IV c9b276f1ce haiku: Correct typo 2017-08-25 16:13:01 -05:00
Jamie Hewland f1d2011401 Try move getpwuid_r/getpwnam_r to base Unix module 2017-08-10 20:01:16 +02:00
Bryant Mairs fef784e26a Add execvpe for support *nix platforms 2017-07-16 21:53:32 -07:00
Nicolas Dusart 9f5766fb3f add missing socket constants 2017-07-10 10:52:20 +02:00
Bryant Mairs 82dc2f3322 Add constants for termios ioctls 2017-07-02 09:55:00 -07:00
main() b2de1fd5e1 Add pthread_rwlockattr APIs 2017-06-28 17:56:37 +02: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
Jörg Thalheim 59008790e1
add dirfd on unix 2017-06-13 08:02:31 +01:00
Jörg Thalheim 99a524d4fc
add fdopendir 2017-03-24 10:38:09 +01:00
Marco A L Barbosa 9a20f93222 Fix style 2017-02-27 17:54:51 -03:00
Marco A L Barbosa a3759d7feb Fix missing prefix :: 2017-02-27 17:40:58 -03:00
Marco A L Barbosa fab2d30ada Remove cfg_if from src/unix/mod.rs
- Copy 17 functions definitions from src/unix/mod.rs
      to src/unix/bsd/mod.rs src/unix/haiku/mod.rs
      src/unix/notbsd/linux/mod.rs and src/unix/solaris/mod.rs
    - Add some functions to android that was cfged out
    - Remove cf* and tc* functions implementations for android
      (they are available with api >= 12, which was release in 2011)
2017-02-27 16:41:57 -03:00
Tyler Julian fdb213e415 Add IPPROTO_ICMP and IPPROTO_ICMPV6 system constants 2017-02-01 17:45:39 -08:00
bors cb7f667321 Auto merge of #489 - zackw:add-waitid, r=alexcrichton
Add waitid and related constants and types.

[`waitid`](http://pubs.opengroup.org/onlinepubs/9699919799/functions/waitid.html) is a variation on `waitpid` with a marginally more convenient way of reporting the status, and a couple of handy
additional features, such as the ability to peek at an exit status without consuming it.  It's in POSIX.1-2008 and should be available on all supported Unixes.

Along with it come the type `idtype_t` and the constants `WEXITED`, `WSTOPPED`, `WCONTINUED`, and `WNOWAIT`.  The constants were already defined for unix/notbsd platforms.

The patch is currently incomplete: I'm pushing it to get CI to test platforms I don't have.  Todo list is

* [x] Add a definition of `siginfo_t` to all platforms that don't have it.
* [x] Verify that the new constants are consistent for all \*BSD platforms.
* [x] Verify that `idtype_t` is consistent across the board.
* [x] Add `link_name` annotations for `waitid` if/as necessary.
2017-01-10 19:34:06 +00:00
Zack Weinberg 984fb54d83 Changes requested by reviewers 2017-01-10 11:09:51 -05:00
Tyler Julian b619df8fd4 Add MSG_PEEK socket flag 2017-01-09 18:29:34 -08:00
Zack Weinberg f05e48cfb5 Patch in id_t missing in a few places 2017-01-07 20:52:47 -05:00
Zack Weinberg 31d9779591 Reorganize again; more portability fixes.
It turns out that *only* FreeBSD and NetBSD proper have waitid, and that
Solaris' additional W* constants are totally different from everyone
else's, which tips me over from 'find some way to shoehorn this into
the top-level unix/mod.rs' to 'put it in the submodules, live with the
code duplication'.
2017-01-07 20:04:42 -05:00
Christian Legnitto d563089d58 Add clock_settime()
See http://www.catb.org/esr/time-programming/#_clock_gettime_2_clock_settime_2_clock_getres_2
2016-12-14 22:47:52 -08:00
Guillaume Gomez 7d2aea94a1 Add needed structs for fd passing 2016-12-05 12:48:15 -08:00
bors c90d379866 Auto merge of #420 - kallisti5:master, r=alexcrichton
Haiku: Add missing EAI_SYSTEM const
2016-10-08 12:39:58 -07:00
Mathieu Poumeyrol a59d299645 define more MSG_NOSIGNAL 2016-10-08 12:51:53 +02:00
Alexander von Gluck IV ecfb968100 Haiku: Add missing EAI_SYSTEM const 2016-10-07 09:18:44 -05:00
bors 4577f089b4 Auto merge of #416 - kallisti5:master, r=alexcrichton
Haiku: More build fixes
2016-10-04 16:19:26 -07:00
Alexander von Gluck IV 573c5fe94d Haiku: Add in final missing pthread pubs 2016-10-04 17:47:19 -05:00
Alexander von Gluck IV 9f0696e1e8 Haiku: Add missing sem/thread structs. Fix non-pub ULONG 2016-10-04 15:19:38 -05:00
bors 68abfade9f Auto merge of #415 - kallisti5:master, r=alexcrichton
Haiku: Add in missing build-time types, fix module usage

Working through the few final remaining build issues for the Haiku target.
2016-10-04 10:00:05 -07:00
Alexander von Gluck IV e8155ba221 Haiku: Add missing nl_item type 2016-10-03 10:17:58 -05:00
Alexander von Gluck IV c5660180a5 Haiku: Fix missing use merge of pointer module 2016-10-03 10:04:11 -05:00
Andrew Paseltiner 45179c97da
Add `pthread_mutex_timedlock` 2016-10-01 08:01:47 -04:00
Niels Sascha Reedijk a3ff95554e Add support for Haiku x86 and x86_64
* Rework of original patches from Niels Sascha Reedijk
  that include style and build fixes for libc master
2016-09-29 14:00:57 -05:00