Lines Matching refs:write
255 /// use nix::{sys::wait::waitpid,unistd::{fork, ForkResult, write}};
264 /// write(libc::STDOUT_FILENO, "I'm a new child process\n".as_bytes()).ok();
522 /// // create new directory and give read, write and execute rights to the owner
560 /// // create new fifo and give read, write and execute rights to the owner
1029 buffer.as_mut_ptr().wrapping_add(len - 1).write(0); // ensure always null-terminated
1081 /// See also [write(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html)
1082 pub fn write(fd: RawFd, buf: &[u8]) -> Result<usize> {
1084 libc::write(fd, buf.as_ptr() as *const c_void, buf.len() as size_t)
1128 /// Move the read/write file offset.
2323 /// The implementation supports read-write locks.
2894 /// Test for write permission.