Home
last modified time | relevance | path

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

12345678

/external/rust/crates/nix/
DCHANGELOG.md9 ([#1964](https://github.com/nix-rust/nix/pull/1964))
14 ([#1821](https://github.com/nix-rust/nix/pull/1821))
20 ([#1871](https://github.com/nix-rust/nix/pull/1871))
23 ([#1877](https://github.com/nix-rust/nix/pull/1877))
25 ([#1849](https://github.com/nix-rust/nix/pull/1849))
27 ([#1849](https://github.com/nix-rust/nix/pull/1849))
29 ([#1829](https://github.com/nix-rust/nix/pull/1829))
31 ([#1825](https://github.com/nix-rust/nix/pull/1825))
33 ([#1804](https://github.com/nix-rust/nix/pull/1804))
35 ([#1805](https://github.com/nix-rust/nix/pull/1805))
[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](https://img.shields.io/crates/v/nix.svg)](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<OsString>)
33 nix target support consists of two tiers. While nix attempts to support all
47 The following targets are supported by `nix`:
92 nix is supported on Rust 1.56.1 and higher. Its MSRV will not be
[all …]
DMETADATA2 # Usage: tools/external_updater/updater.sh update rust/crates/nix
5 name: "nix"
6 description: "Rust friendly bindings to *nix APIs"
10 value: "https://crates.io/crates/nix"
14 value: "https://static.crates.io/crates/nix/nix-0.26.2.crate"
DCargo.toml.orig2 name = "nix"
3 description = "Rust friendly bindings to *nix APIs"
7 authors = ["The nix-rust Project Developers"]
8 repository = "https://github.com/nix-rust/nix"
/external/rust/crates/nix/test/sys/
Dtest_ptrace.rs7 use nix::errno::Errno;
8 use nix::sys::ptrace;
10 use nix::sys::ptrace::Options;
11 use nix::unistd::getpid;
71 use nix::sys::ptrace; in test_ptrace_cont()
72 use nix::sys::signal::{raise, Signal}; in test_ptrace_cont()
73 use nix::sys::wait::{waitpid, WaitPidFlag, WaitStatus}; in test_ptrace_cont()
74 use nix::unistd::fork; in test_ptrace_cont()
75 use nix::unistd::ForkResult::*; in test_ptrace_cont()
134 use nix::sys::ptrace; in test_ptrace_interrupt()
[all …]
Dtest_socket.rs5 use nix::sys::socket::InetAddr;
6 use nix::sys::socket::{
45 use nix::sys::socket::{sockaddr_storage_to_addr, SockAddr}; in test_inetv4_addr_roundtrip_sockaddr_storage_to_addr()
75 use nix::sys::socket::{ in test_timestamping()
99 nix::sys::socket::bind(rsock, &sock_addr).unwrap(); in test_timestamping()
109 let mut cmsg = cmsg_space!(nix::sys::socket::Timestamps); in test_timestamping()
121 ::nix::time::clock_gettime(::nix::time::ClockId::CLOCK_REALTIME) in test_timestamping()
134 use nix::sys::socket::{sockaddr_storage_to_addr, SockAddr}; in test_inetv6_addr_roundtrip_sockaddr_storage_to_addr()
251 use crate::nix::sys::socket::SockaddrLike; in test_unnamed_uds_addr()
265 use nix::sys::socket::bind; in test_getsockname()
[all …]
Dtest_wait.rs2 use nix::errno::Errno;
3 use nix::sys::signal::*;
4 use nix::sys::wait::*;
5 use nix::unistd::ForkResult::*;
6 use nix::unistd::*;
149 use nix::sys::ptrace::{self, Event, Options};
150 use nix::sys::signal::*;
151 use nix::sys::wait::*;
152 use nix::unistd::ForkResult::*;
153 use nix::unistd::*;
Dtest_mman.rs1 use nix::sys::mman::{mmap, MapFlags, ProtFlags};
25 use nix::libc::{c_void, size_t}; in test_mremap_grow()
26 use nix::sys::mman::{mremap, MRemapFlags}; in test_mremap_grow()
83 use nix::libc::{c_void, size_t}; in test_mremap_shrink()
84 use nix::sys::mman::{mremap, MRemapFlags}; in test_mremap_shrink()
Dtest_select.rs1 use nix::sys::select::*;
2 use nix::sys::signal::SigSet;
3 use nix::sys::time::{TimeSpec, TimeValLike};
4 use nix::unistd::{pipe, write};
Dtest_termios.rs4 use nix::errno::Errno;
5 use nix::fcntl;
6 use nix::pty::openpty;
7 use nix::sys::termios::{self, tcgetattr, LocalFlags, OutputFlags};
8 use nix::unistd::{close, read, write};
/external/crosvm/rutabaga_gfx/src/cross_domain/sys/
Dunix.rs17 use nix::cmsg_space;
18 use nix::fcntl::fcntl;
19 use nix::fcntl::FcntlArg;
20 use nix::sys::epoll::EpollCreateFlags;
21 use nix::sys::epoll::EpollFlags;
22 use nix::sys::eventfd::eventfd;
23 use nix::sys::eventfd::EfdFlags;
24 use nix::sys::socket::connect;
25 use nix::sys::socket::recvmsg;
26 use nix::sys::socket::sendmsg;
[all …]
Depoll_internal.rs12 use nix::errno::Errno;
13 use nix::sys::epoll::EpollCreateFlags;
14 use nix::sys::epoll::EpollFlags;
15 use nix::sys::epoll::EpollOp;
16 use nix::Result;
/external/rust/crates/userfaultfd/src/
Draw.rs13 nix::ioctl_readwrite!(api, UFFDIO, _UFFDIO_API, uffdio_api);
14 nix::ioctl_readwrite!(register, UFFDIO, _UFFDIO_REGISTER, uffdio_register);
15 nix::ioctl_read!(unregister, UFFDIO, _UFFDIO_UNREGISTER, uffdio_range);
16 nix::ioctl_read!(wake, UFFDIO, _UFFDIO_WAKE, uffdio_range);
17 nix::ioctl_readwrite!(copy, UFFDIO, _UFFDIO_COPY, uffdio_copy);
18 nix::ioctl_readwrite!(zeropage, UFFDIO, _UFFDIO_ZEROPAGE, uffdio_zeropage);
20 nix::ioctl_readwrite!(
Derror.rs2 use nix::errno::Errno;
29 SystemError(#[source] nix::Error),
52 impl From<nix::Error> for Error {
53 fn from(e: nix::Error) -> Error { in from()
/external/cronet/components/metrics/
Dmetrics_log.cc135 base::nix::SessionType session_type) { in ToProtoSessionType()
137 case base::nix::SessionType::kUnset: in ToProtoSessionType()
139 case base::nix::SessionType::kOther: in ToProtoSessionType()
141 case base::nix::SessionType::kUnspecified: in ToProtoSessionType()
143 case base::nix::SessionType::kTty: in ToProtoSessionType()
145 case base::nix::SessionType::kX11: in ToProtoSessionType()
147 case base::nix::SessionType::kWayland: in ToProtoSessionType()
149 case base::nix::SessionType::kMir: in ToProtoSessionType()
158 base::nix::DesktopEnvironment desktop_environment) { in ToProtoCurrentDesktop()
160 case base::nix::DesktopEnvironment::DESKTOP_ENVIRONMENT_OTHER: in ToProtoCurrentDesktop()
[all …]
/external/rust/crates/nix/test/
Dtest_fcntl.rs2 use nix::errno::*;
4 use nix::fcntl::{open, readlink, OFlag};
6 use nix::fcntl::{openat, readlinkat, renameat};
17 use nix::fcntl::{renameat2, RenameFlags};
19 use nix::sys::stat::Mode;
21 use nix::unistd::{close, read};
237 use nix::fcntl::*;
238 use nix::unistd::{close, pipe, read, write};
380 use nix::sys::stat::fstat; in test_ofd_write_lock()
386 let statfs = nix::sys::statfs::fstatfs(&tmp).unwrap(); in test_ofd_write_lock()
[all …]
Dtest_stat.rs19 use nix::errno::Errno;
21 use nix::fcntl;
29 use nix::sys::stat::lutimes;
31 use nix::sys::stat::utimensat;
33 use nix::sys::stat::FchmodatFlags;
34 use nix::sys::stat::Mode;
36 use nix::sys::stat::UtimensatFlags;
38 use nix::sys::stat::{self};
39 use nix::sys::stat::{fchmod, stat};
41 use nix::sys::stat::{fchmodat, mkdirat};
[all …]
Dtest_time.rs8 use nix::time::clock_getcpuclockid;
9 use nix::time::{clock_gettime, ClockId};
14 nix::time::clock_getres(ClockId::CLOCK_REALTIME).expect("assertion failed"); in test_clock_getres()
31 let clock_id = clock_getcpuclockid(nix::unistd::Pid::this()).unwrap(); in test_clock_getcpuclockid()
55 ClockId::pid_cpu_clock_id(nix::unistd::Pid::this()) in test_clock_id_pid_cpu_clock_id()
Dtest_mq.rs5 use nix::errno::Errno;
6 use nix::mqueue::{mq_attr_member_t, mq_close, mq_open, mq_receive, mq_send};
7 use nix::mqueue::{MQ_OFlag, MqAttr};
8 use nix::sys::stat::Mode;
60 use nix::mqueue::mq_getattr; in test_mq_getattr()
85 use nix::mqueue::{mq_getattr, mq_setattr}; in test_mq_setattr()
135 use nix::mqueue::{mq_getattr, mq_remove_nonblock, mq_set_nonblock}; in test_mq_set_nonblocking()
159 use nix::mqueue::mq_unlink; in test_mq_unlink()
Dtest_ptymaster_drop.rs3 use nix::fcntl::OFlag;
4 use nix::pty::*;
5 use nix::unistd::close;
Dtest_pty.rs8 use nix::fcntl::{open, OFlag};
9 use nix::pty::*;
10 use nix::sys::stat;
11 use nix::sys::termios::*;
12 use nix::unistd::{close, pause, write};
284 use nix::sys::signal::*; in test_forkpty()
285 use nix::sys::wait::wait; in test_forkpty()
286 use nix::unistd::ForkResult::*; in test_forkpty()
Dtest_poll.rs1 use nix::{
48 use nix::poll::ppoll; in test_ppoll()
49 use nix::sys::signal::SigSet; in test_ppoll()
50 use nix::sys::time::{TimeSpec, TimeValLike}; in test_ppoll()
/external/crosvm/rutabaga_gfx/src/rutabaga_os/sys/unix/
Dshm.rs12 use nix::sys::memfd::memfd_create;
13 use nix::sys::memfd::MemFdCreateFlag;
14 use nix::unistd::ftruncate;
15 use nix::unistd::sysconf;
16 use nix::unistd::SysconfVar;
/external/cronet/third_party/icu/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] );
/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] );

12345678