nix/test/sys
Homu 4ca407db6b Auto merge of #332 - kamalmarhubi:fork-enum, r=fiveop
unistd: Redesign the enum returned by fork()

This changes the name of the enum returned by `fork()` to `ForkResult`,
and changes the `Parent` variant to be struct-like.

The result can be matched like

    use nix::unistd::ForkResult::*;
    match fork().unwrap() {
        Parent { child } => { ... }
        Child => { ... }
    }

using the shorthand matching syntax for struct-like enum variants.

This is a breaking change.
2016-03-31 15:41:38 +09:00
..
mod.rs Add tests for sockopt (SndBuf, RcvBuf, SndBufForce, RcvBufForce) 2016-01-29 16:48:08 -05:00
test_ioctl.rs ioctl: return result type rather than raw integer 2015-08-12 19:49:18 -05:00
test_select.rs select: allow infinite timeout 2016-02-20 00:19:13 +03:00
test_socket.rs socket: Respect IPv6 flowinfo and scope_id in InetAddr::from_std 2016-03-30 14:20:02 -04:00
test_sockopt.rs Add tests for sockopt (SndBuf, RcvBuf, SndBufForce, RcvBufForce) 2016-01-29 16:48:08 -05:00
test_termios.rs feat: add execvpe 2015-05-05 05:23:05 -04:00
test_uio.rs Use tempdir for temporary files in tests 2016-01-13 09:56:14 -08:00
test_wait.rs unistd: Redesign the enum returned by fork() 2016-03-30 14:47:32 -04:00