/// Creates a wayland display socket at the provided path, using `task` to resolve the path.
Creates a wayland display socket at the provided path, using `task` to resolve the path.
Creates a wayland display socket at the provided path using ` task ` to resolve the path .
fn create_display_socket(task: &Task, display_path: FsString) -> Result<SocketHandle, Errno> {
    let display_socket = Socket::new(SocketDomain::Unix, SocketType::Stream);
    let (socket_parent, socket_basename) =
        task.lookup_parent_at(FdNumber::AT_FDCWD, &display_path)?;
    let mode = task.fs.apply_umask(mode!(IFSOCK, 0o765));
    let _socket_dir_entry = socket_parent.entry.bind_socket(
        socket_basename,
        display_socket.clone(),
        SocketAddress::Unix(display_path.clone()),
        mode,
    );
    display_socket.listen(1)?;
    Ok(display_socket)
}
fn create_display_socket ( task : & Task , display_path : FsString ) -> Result < SocketHandle , Errno > { let display_socket = Socket :: new ( SocketDomain :: Unix , SocketType :: Stream ) ; let ( socket_parent , socket_basename ) = task . lookup_parent_at ( FdNumber :: AT_FDCWD , & display_path ) ? ; let mode = task . fs . apply_umask ( mode ! ( IFSOCK 0o765 ) ) ; let _socket_dir_entry = socket_parent . entry . bind_socket ( socket_basename , display_socket . clone ( ) , SocketAddress :: Unix ( display_path . clone ( ) ) , mode , ) ; display_socket . listen ( 1 ) ? ; Ok ( display_socket ) }
Creates a wayland display socket at the provided path, using `task` to resolve the path.
Creates a wayland display socket at the provided path using ` task ` to resolve the path .
task
&Task
display_path
FsString