License rust and c source files

This commit is contained in:
Jianfeng Jiang
2024-01-03 03:22:36 +00:00
committed by Tate, Hongliang Tian
parent 5fb8a9f7e5
commit faaa4438d6
559 changed files with 1192 additions and 89 deletions

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::prelude::*;
use core::ops::{Deref, DerefMut};

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::net::iface::BindPortConfig;
use crate::net::iface::Iface;
use crate::net::iface::{AnyBoundSocket, AnyUnboundSocket};

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::events::{IoEvents, Observer};
use crate::net::iface::IpEndpoint;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use core::sync::atomic::{AtomicBool, Ordering};
use crate::events::IoEvents;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::events::IoEvents;
use crate::net::iface::IpEndpoint;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
mod always_some;
mod common;
mod datagram;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use core::sync::atomic::{AtomicBool, Ordering};
use crate::events::{IoEvents, Observer};

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use core::sync::atomic::{AtomicBool, Ordering};
use alloc::sync::Arc;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use core::sync::atomic::{AtomicBool, Ordering};
use crate::events::IoEvents;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use core::sync::atomic::{AtomicBool, Ordering};
use crate::events::{IoEvents, Observer};

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::events::IoEvents;
use crate::fs::file_handle::FileLike;
use crate::fs::utils::StatusFlags;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::impl_socket_options;
use super::CongestionControl;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::prelude::*;
#[derive(Debug, Clone, Copy, CopyGetters, Setters)]

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::{fs::file_handle::FileLike, prelude::*};
use self::options::SocketOption;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
#[macro_export]
macro_rules! impl_socket_options {
($(

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::impl_socket_options;
use crate::prelude::*;
mod macros;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::fs::utils::Dentry;
use crate::net::socket::util::socket_addr::SocketAddr;
use crate::prelude::*;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
mod addr;
mod stream;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use super::endpoint::Endpoint;
use crate::events::IoEvents;
use crate::net::socket::{unix::addr::UnixSocketAddrBound, SockShutdownCmd};

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::events::IoEvents;
use crate::process::signal::Poller;
use crate::{

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use core::sync::atomic::{AtomicBool, Ordering};
use crate::events::IoEvents;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use super::{connected::Connected, endpoint::Endpoint, UnixStreamSocket};
use crate::events::IoEvents;
use crate::fs::file_handle::FileLike;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
mod connected;
mod endpoint;
mod init;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::events::IoEvents;
use crate::fs::file_handle::FileLike;
use crate::fs::fs_resolver::FsPath;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
pub mod options;
pub mod send_recv_flags;
pub mod shutdown_cmd;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use core::time::Duration;
use crate::net::iface::{RECV_BUF_LEN, SEND_BUF_LEN};

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::prelude::*;
bitflags! {

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::prelude::*;
/// Shutdown types

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MPL-2.0
use crate::net::iface::{IpAddress, Ipv4Address};
use crate::net::iface::{IpEndpoint, IpListenEndpoint};
use crate::net::socket::unix::UnixSocketAddr;