Home
last modified time | relevance | path

Searched refs:nix (Results 1 – 25 of 129) sorted by relevance

123456

/external/rust/crates/nix/
DCHANGELOG.md9 - Added a `passwd` field to `Group` (#[1338](https://github.com/nix-rust/nix/pull/1338))
10 - Added `mremap` (#[1306](https://github.com/nix-rust/nix/pull/1306))
11 - Added `personality` (#[1331](https://github.com/nix-rust/nix/pull/1331))
12 - Added limited Fuchsia support (#[1285](https://github.com/nix-rust/nix/pull/1285))
13 - Added `getpeereid` (#[1342](https://github.com/nix-rust/nix/pull/1342))
15 (#[1333](https://github.com/nix-rust/nix/pull/1333)).
20 ([#1356](https://github.com/nix-rust/nix/pull/1356))
23 (#[1350](https://github.com/nix-rust/nix/pull/1350))
25 (#[1344](https://github.com/nix-rust/nix/pull/1344))
29 ([#1381](https://github.com/nix-rust/nix/pull/1381))
[all …]
DREADME.md1 # Rust bindings to *nix APIs
3 …uild Status](https://api.cirrus-ci.com/github/nix-rust/nix.svg)](https://cirrus-ci.com/github/nix-…
4 [![crates.io](http://meritbadge.herokuapp.com/nix)](https://crates.io/crates/nix)
6 [Documentation (Releases)](https://docs.rs/nix/)
8 Nix seeks to provide friendly bindings to various *nix platform APIs (Linux, Darwin,
19 exposed by libc and nix for the
27 // nix api (returns a nix::Result<CStr>)
33 nix target support consists of two tiers. While nix attempts to support all
47 The following targets are supported by `nix`:
90 `nix` requires Rust 1.40.0 or newer.
[all …]
DCONTRIBUTING.md1 # Contributing to nix
3 We're really glad you're interested in contributing to nix! This
6 To have a welcoming and inclusive project, nix uses the Rust project's
16 [issues]: https://github.com/nix-rust/nix/issues
26 easier it is to figure out how to fix it. For nix, this will likely
29 [issue-search]: https://github.com/nix-rust/nix/search?utf8=%E2%9C%93&q=is%3Aissue&type=Issues
30 [new-issue]: https://github.com/nix-rust/nix/issues/new
57 GitHub pull requests are the primary mechanism we use to change nix. GitHub itself has
67 [cl]: https://github.com/nix-rust/nix/blob/master/CHANGELOG.md
73 nix has a test suite that you can run with `cargo test`. Ideally, we'd like pull
[all …]
DMETADATA1 name: "nix"
2 description: "Rust friendly bindings to *nix APIs"
6 value: "https://crates.io/crates/nix"
10 value: "https://static.crates.io/crates/nix/nix-0.20.0.crate"
DCargo.toml.orig2 name = "nix"
3 description = "Rust friendly bindings to *nix APIs"
6 authors = ["The nix-rust Project Developers"]
7 repository = "https://github.com/nix-rust/nix"
DCargo.toml15 name = "nix" package
17 authors = ["The nix-rust Project Developers"]
19 description = "Rust friendly bindings to *nix APIs"
22 repository = "https://github.com/nix-rust/nix"
/external/rust/crates/nix/test/sys/
Dtest_ptrace.rs1 use nix::Error;
2 use nix::errno::Errno;
3 use nix::unistd::getpid;
4 use nix::sys::ptrace;
6 use nix::sys::ptrace::Options;
65 use nix::sys::ptrace; in test_ptrace_cont()
66 use nix::sys::signal::{raise, Signal}; in test_ptrace_cont()
67 use nix::sys::wait::{waitpid, WaitPidFlag, WaitStatus}; in test_ptrace_cont()
68 use nix::unistd::fork; in test_ptrace_cont()
69 use nix::unistd::ForkResult::*; in test_ptrace_cont()
[all …]
Dtest_socket.rs1 use nix::sys::socket::{AddressFamily, InetAddr, UnixAddr, getsockname};
138 use nix::sys::socket::{socket, AddressFamily, SockType, SockFlag}; in test_getsockname()
139 use nix::sys::socket::{bind, SockAddr}; in test_getsockname()
153 use nix::unistd::{read, write}; in test_socketpair()
154 use nix::sys::socket::{socketpair, AddressFamily, SockType, SockFlag}; in test_socketpair()
166 use nix::Result;
167 use nix::sys::socket::*;
237 use nix::sys::uio::IoVec;
238 use nix::sys::socket::sockopt::{UdpGroSegment, UdpGsoSegment};
323 use nix::sys::uio::IoVec; in udp_sendmmsg()
[all …]
Dtest_wait.rs1 use nix::Error;
2 use nix::unistd::*;
3 use nix::unistd::ForkResult::*;
4 use nix::sys::signal::*;
5 use nix::sys::wait::*;
64 use nix::sys::ptrace::{self, Options, Event};
65 use nix::sys::signal::*;
66 use nix::sys::wait::*;
67 use nix::unistd::*;
68 use nix::unistd::ForkResult::*;
Dtest_lio_listio_resubmit.rs7 use nix::Error;
8 use nix::errno::*;
9 use nix::libc::off_t;
10 use nix::sys::aio::*;
11 use nix::sys::signal::SigevNotify;
12 use nix::unistd::{SysconfVar, sysconf};
Dtest_epoll.rs1 use nix::sys::epoll::{EpollCreateFlags, EpollFlags, EpollOp, EpollEvent};
2 use nix::sys::epoll::{epoll_create1, epoll_ctl};
3 use nix::Error;
4 use nix::errno::Errno;
Dtest_select.rs1 use nix::sys::select::*;
2 use nix::unistd::{pipe, write};
3 use nix::sys::signal::SigSet;
4 use nix::sys::time::{TimeSpec, TimeValLike};
Dtest_mman.rs1 use nix::Error;
2 use nix::libc::{c_void, size_t};
3 use nix::sys::mman::{mmap, MapFlags, ProtFlags};
6 use nix::sys::mman::{mremap, MRemapFlags};
Dtest_termios.rs4 use nix::{Error, fcntl};
5 use nix::errno::Errno;
6 use nix::pty::openpty;
7 use nix::sys::termios::{self, LocalFlags, OutputFlags, tcgetattr};
8 use nix::unistd::{read, write, close};
Dtest_inotify.rs1 use nix::sys::inotify::{AddWatchFlags,InitFlags,Inotify};
2 use nix::Error;
3 use nix::errno::Errno;
/external/rust/crates/nix/test/
Dtest_fcntl.rs2 use nix::Error;
4 use nix::errno::*;
6 use nix::fcntl::{open, OFlag, readlink};
8 use nix::fcntl::{openat, readlinkat, renameat};
10 use nix::sys::stat::Mode;
12 use nix::unistd::{close, read};
91 use nix::fcntl::*;
92 use nix::sys::stat::fstat;
93 use nix::sys::uio::IoVec;
94 use nix::unistd::{close, pipe, read, write};
[all …]
Dtest_mq.rs4 use nix::errno::Errno::*;
5 use nix::Error::Sys;
6 use nix::mqueue::{mq_open, mq_close, mq_send, mq_receive, mq_attr_member_t};
7 use nix::mqueue::{MqAttr, MQ_OFlag};
8 use nix::sys::stat::Mode;
43 use nix::mqueue::mq_getattr; in test_mq_getattr()
66 use nix::mqueue::{mq_getattr, mq_setattr}; in test_mq_setattr()
103 use nix::mqueue::{mq_getattr, mq_set_nonblock, mq_remove_nonblock}; in test_mq_set_nonblocking()
127 use nix::mqueue::mq_unlink; in test_mq_unlink()
Dtest_time.rs8 use nix::time::clock_getcpuclockid;
9 use nix::time::{clock_getres, clock_gettime, ClockId};
30 let clock_id = clock_getcpuclockid(nix::unistd::Pid::this()).unwrap(); in test_clock_getcpuclockid()
53 assert!(ClockId::pid_cpu_clock_id(nix::unistd::Pid::this()) in test_clock_id_pid_cpu_clock_id()
Dtest_stat.rs16 use nix::{fcntl, Error};
18 use nix::errno::Errno;
20 use nix::sys::stat::{self, futimens, utimes};
21 use nix::sys::stat::{fchmod, stat};
23 use nix::sys::stat::{fchmodat, utimensat, mkdirat};
30 use nix::sys::stat::lutimes;
32 use nix::sys::stat::{FchmodatFlags, UtimensatFlags};
33 use nix::sys::stat::Mode;
36 use nix::sys::stat::FileStat;
39 use nix::sys::time::{TimeSpec, TimeVal, TimeValLike};
[all …]
Dtest_dir.rs1 use nix::dir::{Dir, Type};
2 use nix::fcntl::OFlag;
3 use nix::sys::stat::Mode;
44 assert_eq!(Dir::from_fd(-1).unwrap_err(), nix::Error::Sys(nix::errno::Errno::EBADF)); in ebadf()
Dtest_ptymaster_drop.rs3 use nix::fcntl::OFlag;
4 use nix::pty::*;
5 use nix::unistd::close;
Dtest_poll.rs1 use nix::{
47 use nix::poll::ppoll; in test_ppoll()
48 use nix::sys::signal::SigSet; in test_ppoll()
49 use nix::sys::time::{TimeSpec, TimeValLike}; in test_ppoll()
Dtest_pty.rs8 use nix::fcntl::{OFlag, open};
9 use nix::pty::*;
10 use nix::sys::stat;
11 use nix::sys::termios::*;
12 use nix::unistd::{write, close, pause};
248 use nix::unistd::ForkResult::*; in test_forkpty()
249 use nix::sys::signal::*; in test_forkpty()
250 use nix::sys::wait::wait; in test_forkpty()
Dtest_mount.rs18 use nix::errno::Errno;
19 use nix::mount::{mount, umount, MsFlags};
20 use nix::sched::{unshare, CloneFlags};
21 use nix::sys::stat::{self, Mode};
22 use nix::unistd::getuid;
/external/icu/icu4c/source/test/perf/collationperf/
DCollPerf.pl81 my @nix = `$p -locale @locale[$n] -unix -loop 1000 -file $filePath@data[$n] -qsort`;
85 my @nixa = split( ' = ', $nix[2] );
93 @nix = `$p -locale @locale[$n] -unix -loop 1000 -file $filePath@data[$n] -keygen`;
97 @nixa = split( ' = ', $nix[2] );
105 @nixa = split( ' = ', $nix[3] );

123456