From 2fe79bb1155065b6575f39ff3c1a65aa6544ca4e Mon Sep 17 00:00:00 2001 From: Christian Eltzschig Date: Tue, 12 Dec 2023 21:33:33 +0100 Subject: [PATCH] [#3] Add license headers --- benchmarks/publish_subscribe/src/main.rs | 12 ++++++++++++ elkodon/src/compiletests.rs | 12 ++++++++++++ elkodon/src/config.rs | 12 ++++++++++++ elkodon/src/elk.rs | 12 ++++++++++++ elkodon/src/lib.rs | 12 ++++++++++++ elkodon/src/message.rs | 12 ++++++++++++ elkodon/src/port/details/mod.rs | 12 ++++++++++++ elkodon/src/port/details/publisher_connections.rs | 12 ++++++++++++ elkodon/src/port/details/subscriber_connections.rs | 12 ++++++++++++ elkodon/src/port/event_id.rs | 12 ++++++++++++ elkodon/src/port/listener.rs | 12 ++++++++++++ elkodon/src/port/mod.rs | 12 ++++++++++++ elkodon/src/port/notifier.rs | 12 ++++++++++++ elkodon/src/port/port_identifiers.rs | 12 ++++++++++++ elkodon/src/port/publisher.rs | 12 ++++++++++++ elkodon/src/port/subscriber.rs | 12 ++++++++++++ elkodon/src/prelude.rs | 12 ++++++++++++ elkodon/src/raw_sample.rs | 12 ++++++++++++ elkodon/src/sample.rs | 12 ++++++++++++ elkodon/src/sample_mut.rs | 12 ++++++++++++ elkodon/src/service/builder/event.rs | 12 ++++++++++++ elkodon/src/service/builder/mod.rs | 12 ++++++++++++ elkodon/src/service/builder/publish_subscribe.rs | 12 ++++++++++++ elkodon/src/service/config_scheme.rs | 12 ++++++++++++ elkodon/src/service/dynamic_config/event.rs | 12 ++++++++++++ elkodon/src/service/dynamic_config/mod.rs | 12 ++++++++++++ .../src/service/dynamic_config/publish_subscribe.rs | 12 ++++++++++++ elkodon/src/service/header/mod.rs | 12 ++++++++++++ elkodon/src/service/header/publish_subscribe.rs | 12 ++++++++++++ elkodon/src/service/messaging_pattern.rs | 12 ++++++++++++ elkodon/src/service/mod.rs | 12 ++++++++++++ elkodon/src/service/naming_scheme.rs | 12 ++++++++++++ elkodon/src/service/port_factory/event.rs | 12 ++++++++++++ elkodon/src/service/port_factory/listener.rs | 12 ++++++++++++ elkodon/src/service/port_factory/mod.rs | 12 ++++++++++++ elkodon/src/service/port_factory/notifier.rs | 12 ++++++++++++ .../src/service/port_factory/publish_subscribe.rs | 12 ++++++++++++ elkodon/src/service/port_factory/publisher.rs | 12 ++++++++++++ elkodon/src/service/port_factory/subscriber.rs | 12 ++++++++++++ elkodon/src/service/process_local.rs | 12 ++++++++++++ elkodon/src/service/service_name.rs | 12 ++++++++++++ elkodon/src/service/static_config/event.rs | 12 ++++++++++++ elkodon/src/service/static_config/mod.rs | 12 ++++++++++++ .../src/service/static_config/publish_subscribe.rs | 12 ++++++++++++ elkodon/src/service/zero_copy.rs | 12 ++++++++++++ elkodon/tests/publisher_tests.rs | 12 ++++++++++++ elkodon/tests/service_event_tests.rs | 12 ++++++++++++ elkodon/tests/service_publish_subscribe_tests.rs | 12 ++++++++++++ elkodon_bb/container/src/byte_string.rs | 12 ++++++++++++ elkodon_bb/container/src/lib.rs | 12 ++++++++++++ elkodon_bb/container/src/queue.rs | 12 ++++++++++++ elkodon_bb/container/src/semantic_string.rs | 12 ++++++++++++ elkodon_bb/container/src/vec.rs | 12 ++++++++++++ elkodon_bb/container/tests/byte_string_tests.rs | 12 ++++++++++++ elkodon_bb/container/tests/queue_tests.rs | 12 ++++++++++++ elkodon_bb/container/tests/semantic_string_tests.rs | 12 ++++++++++++ elkodon_bb/container/tests/vec_tests.rs | 12 ++++++++++++ elkodon_bb/elementary/src/allocator.rs | 12 ++++++++++++ elkodon_bb/elementary/src/enum_gen.rs | 12 ++++++++++++ elkodon_bb/elementary/src/lazy_singleton.rs | 12 ++++++++++++ elkodon_bb/elementary/src/lib.rs | 12 ++++++++++++ elkodon_bb/elementary/src/math.rs | 12 ++++++++++++ elkodon_bb/elementary/src/owning_pointer.rs | 12 ++++++++++++ elkodon_bb/elementary/src/pointer_trait.rs | 12 ++++++++++++ elkodon_bb/elementary/src/relocatable_container.rs | 12 ++++++++++++ elkodon_bb/elementary/src/relocatable_ptr.rs | 12 ++++++++++++ elkodon_bb/elementary/src/scope_guard.rs | 12 ++++++++++++ elkodon_bb/elementary/src/unique_id.rs | 12 ++++++++++++ elkodon_bb/elementary/tests/math_tests.rs | 12 ++++++++++++ .../elementary/tests/relocatable_container_tests.rs | 12 ++++++++++++ elkodon_bb/elementary/tests/relocatable_ptr_tests.rs | 12 ++++++++++++ elkodon_bb/elementary/tests/scope_guard_tests.rs | 12 ++++++++++++ elkodon_bb/elementary/tests/unique_id_tests.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/lib.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/mpmc/container.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/mpmc/mod.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/mpmc/unique_index_set.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/spmc/mod.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/spmc/unrestricted_atomic.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/spsc/index_queue.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/spsc/mod.rs | 12 ++++++++++++ elkodon_bb/lock_free/src/spsc/queue.rs | 12 ++++++++++++ .../src/spsc/safely_overflowing_index_queue.rs | 12 ++++++++++++ elkodon_bb/lock_free/tests/mpmc_container_tests.rs | 12 ++++++++++++ .../lock_free/tests/mpmc_unique_index_set_tests.rs | 12 ++++++++++++ .../tests/spmc_unrestricted_atomic_tests.rs | 12 ++++++++++++ elkodon_bb/lock_free/tests/spsc_index_queue_tests.rs | 12 ++++++++++++ elkodon_bb/lock_free/tests/spsc_queue_tests.rs | 12 ++++++++++++ .../spsc_safely_overflowing_index_queue_tests.rs | 12 ++++++++++++ elkodon_bb/log/src/fail.rs | 12 ++++++++++++ elkodon_bb/log/src/lib.rs | 12 ++++++++++++ elkodon_bb/log/src/log.rs | 12 ++++++++++++ elkodon_bb/log/src/logger/buffer.rs | 12 ++++++++++++ elkodon_bb/log/src/logger/console.rs | 12 ++++++++++++ elkodon_bb/log/src/logger/log.rs | 12 ++++++++++++ elkodon_bb/log/src/logger/mod.rs | 12 ++++++++++++ elkodon_bb/log/src/logger/tracing.rs | 12 ++++++++++++ elkodon_bb/memory/src/bump_allocator.rs | 12 ++++++++++++ elkodon_bb/memory/src/heap_allocator.rs | 12 ++++++++++++ elkodon_bb/memory/src/lib.rs | 12 ++++++++++++ elkodon_bb/memory/src/memory.rs | 12 ++++++++++++ elkodon_bb/memory/src/one_chunk_allocator.rs | 12 ++++++++++++ elkodon_bb/memory/src/pool_allocator.rs | 12 ++++++++++++ elkodon_bb/memory/tests/bump_allocator_tests.rs | 12 ++++++++++++ elkodon_bb/memory/tests/heap_allocator_tests.rs | 12 ++++++++++++ elkodon_bb/memory/tests/one_chunk_allocator_tests.rs | 12 ++++++++++++ elkodon_bb/memory/tests/pool_allocator_tests.rs | 12 ++++++++++++ elkodon_bb/posix/src/access_control_list.rs | 12 ++++++++++++ elkodon_bb/posix/src/access_mode.rs | 12 ++++++++++++ elkodon_bb/posix/src/adaptive_wait.rs | 12 ++++++++++++ elkodon_bb/posix/src/barrier.rs | 12 ++++++++++++ elkodon_bb/posix/src/clock.rs | 12 ++++++++++++ elkodon_bb/posix/src/condition_variable.rs | 12 ++++++++++++ elkodon_bb/posix/src/config.rs | 12 ++++++++++++ elkodon_bb/posix/src/creation_mode.rs | 12 ++++++++++++ elkodon_bb/posix/src/directory.rs | 12 ++++++++++++ elkodon_bb/posix/src/file.rs | 12 ++++++++++++ elkodon_bb/posix/src/file_descriptor.rs | 12 ++++++++++++ elkodon_bb/posix/src/file_descriptor_set.rs | 12 ++++++++++++ elkodon_bb/posix/src/file_lock.rs | 12 ++++++++++++ elkodon_bb/posix/src/file_type.rs | 12 ++++++++++++ elkodon_bb/posix/src/group.rs | 12 ++++++++++++ elkodon_bb/posix/src/handle_errno.rs | 12 ++++++++++++ elkodon_bb/posix/src/lib.rs | 12 ++++++++++++ elkodon_bb/posix/src/memory.rs | 12 ++++++++++++ elkodon_bb/posix/src/memory_lock.rs | 12 ++++++++++++ elkodon_bb/posix/src/message_queue.rs | 12 ++++++++++++ elkodon_bb/posix/src/metadata.rs | 12 ++++++++++++ elkodon_bb/posix/src/mutex.rs | 12 ++++++++++++ elkodon_bb/posix/src/ownership.rs | 12 ++++++++++++ elkodon_bb/posix/src/permission.rs | 12 ++++++++++++ elkodon_bb/posix/src/process.rs | 12 ++++++++++++ elkodon_bb/posix/src/read_write_mutex.rs | 12 ++++++++++++ elkodon_bb/posix/src/scheduler.rs | 12 ++++++++++++ elkodon_bb/posix/src/semaphore.rs | 12 ++++++++++++ elkodon_bb/posix/src/shared_memory.rs | 12 ++++++++++++ elkodon_bb/posix/src/signal.rs | 12 ++++++++++++ elkodon_bb/posix/src/socket_ancillary.rs | 12 ++++++++++++ elkodon_bb/posix/src/system_configuration.rs | 12 ++++++++++++ elkodon_bb/posix/src/thread.rs | 12 ++++++++++++ elkodon_bb/posix/src/udp_socket.rs | 12 ++++++++++++ elkodon_bb/posix/src/unique_system_id.rs | 12 ++++++++++++ elkodon_bb/posix/src/unix_datagram_socket.rs | 12 ++++++++++++ elkodon_bb/posix/src/unmovable_ipc_handle.rs | 12 ++++++++++++ elkodon_bb/posix/src/user.rs | 12 ++++++++++++ elkodon_bb/posix/tests/access_control_list_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/access_mode_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/adaptive_wait_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/barrier_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/clock_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/condition_variable_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/creation_mode_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/directory_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/file_descriptor_set_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/file_descriptor_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/file_lock_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/file_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/file_type_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/group_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/memory_lock_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/memory_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/message_queue_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/metadata_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/mutex_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/ownership_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/permission_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/process_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/read_write_mutex_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/scheduler_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/semaphore_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/shared_memory_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/signal_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/socket_ancillary_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/thread_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/udp_socket_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/unique_system_id_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/unix_datagram_socket_tests.rs | 12 ++++++++++++ elkodon_bb/posix/tests/users_tests.rs | 12 ++++++++++++ elkodon_bb/system_types/src/file_name.rs | 12 ++++++++++++ elkodon_bb/system_types/src/file_path.rs | 12 ++++++++++++ elkodon_bb/system_types/src/group_name.rs | 12 ++++++++++++ elkodon_bb/system_types/src/ipv4_address.rs | 12 ++++++++++++ elkodon_bb/system_types/src/lib.rs | 12 ++++++++++++ elkodon_bb/system_types/src/path.rs | 12 ++++++++++++ elkodon_bb/system_types/src/port.rs | 12 ++++++++++++ elkodon_bb/system_types/src/user_name.rs | 12 ++++++++++++ elkodon_bb/system_types/tests/file_name_tests.rs | 12 ++++++++++++ elkodon_bb/system_types/tests/file_path_tests.rs | 12 ++++++++++++ elkodon_bb/system_types/tests/group_name_tests.rs | 12 ++++++++++++ elkodon_bb/system_types/tests/ipv4_address_tests.rs | 12 ++++++++++++ elkodon_bb/system_types/tests/path_tests.rs | 12 ++++++++++++ elkodon_bb/system_types/tests/port_tests.rs | 12 ++++++++++++ elkodon_bb/system_types/tests/user_name_tests.rs | 12 ++++++++++++ elkodon_bb/testing/src/assert.rs | 12 ++++++++++++ elkodon_bb/testing/src/lib.rs | 12 ++++++++++++ elkodon_bb/testing/src/watchdog.rs | 12 ++++++++++++ elkodon_bb/threadsafe/src/lib.rs | 12 ++++++++++++ elkodon_bb/threadsafe/src/trigger_queue.rs | 12 ++++++++++++ elkodon_bb/threadsafe/tests/trigger_queue_tests.rs | 12 ++++++++++++ .../src/communication_channel/message_queue.rs | 12 ++++++++++++ elkodon_cal/src/communication_channel/mod.rs | 12 ++++++++++++ .../src/communication_channel/posix_shared_memory.rs | 12 ++++++++++++ .../src/communication_channel/process_local.rs | 12 ++++++++++++ .../src/communication_channel/unix_datagram.rs | 12 ++++++++++++ elkodon_cal/src/dynamic_storage/mod.rs | 12 ++++++++++++ .../src/dynamic_storage/posix_shared_memory.rs | 12 ++++++++++++ elkodon_cal/src/dynamic_storage/process_local.rs | 12 ++++++++++++ elkodon_cal/src/event/mod.rs | 12 ++++++++++++ elkodon_cal/src/event/process_local.rs | 12 ++++++++++++ elkodon_cal/src/event/unix_datagram_socket.rs | 12 ++++++++++++ elkodon_cal/src/hash/mod.rs | 12 ++++++++++++ elkodon_cal/src/hash/sha1.rs | 12 ++++++++++++ elkodon_cal/src/hash/sliced_sha1.rs | 12 ++++++++++++ elkodon_cal/src/lib.rs | 12 ++++++++++++ elkodon_cal/src/named_concept.rs | 12 ++++++++++++ elkodon_cal/src/reactor/mod.rs | 12 ++++++++++++ elkodon_cal/src/reactor/posix_select.rs | 12 ++++++++++++ elkodon_cal/src/serialize/cdr.rs | 12 ++++++++++++ elkodon_cal/src/serialize/mod.rs | 12 ++++++++++++ elkodon_cal/src/serialize/toml.rs | 12 ++++++++++++ elkodon_cal/src/shared_memory/mod.rs | 12 ++++++++++++ elkodon_cal/src/shared_memory/posix.rs | 12 ++++++++++++ elkodon_cal/src/shared_memory/process_local.rs | 12 ++++++++++++ .../src/shared_memory_directory/decision_counter.rs | 12 ++++++++++++ elkodon_cal/src/shared_memory_directory/file.rs | 12 ++++++++++++ .../shared_memory_directory/file_reference_set.rs | 12 ++++++++++++ elkodon_cal/src/shared_memory_directory/mod.rs | 12 ++++++++++++ .../src/shared_memory_directory/reference_counter.rs | 12 ++++++++++++ elkodon_cal/src/shm_allocator/bump_allocator.rs | 12 ++++++++++++ elkodon_cal/src/shm_allocator/mod.rs | 12 ++++++++++++ elkodon_cal/src/shm_allocator/pool_allocator.rs | 12 ++++++++++++ elkodon_cal/src/static_storage/file.rs | 12 ++++++++++++ elkodon_cal/src/static_storage/mod.rs | 12 ++++++++++++ elkodon_cal/src/static_storage/process_local.rs | 12 ++++++++++++ elkodon_cal/src/zero_copy_connection/mod.rs | 12 ++++++++++++ .../src/zero_copy_connection/posix_shared_memory.rs | 12 ++++++++++++ .../src/zero_copy_connection/process_local.rs | 12 ++++++++++++ .../tests/communication_channel_trait_tests.rs | 12 ++++++++++++ elkodon_cal/tests/dynamic_storage_trait_tests.rs | 12 ++++++++++++ elkodon_cal/tests/event_tests.rs | 12 ++++++++++++ elkodon_cal/tests/reactor_tests.rs | 12 ++++++++++++ elkodon_cal/tests/serialize_trait_tests.rs | 12 ++++++++++++ elkodon_cal/tests/shared_memory_directory_tests.rs | 12 ++++++++++++ elkodon_cal/tests/shared_memory_trait_tests.rs | 12 ++++++++++++ elkodon_cal/tests/shm_allocator_trait_tests.rs | 12 ++++++++++++ elkodon_cal/tests/static_storage_file_tests.rs | 12 ++++++++++++ elkodon_cal/tests/static_storage_trait_tests.rs | 12 ++++++++++++ .../tests/zero_copy_connection_trait_tests.rs | 12 ++++++++++++ elkodon_pal/concurrency_primitives/src/barrier.rs | 12 ++++++++++++ .../concurrency_primitives/src/condition_variable.rs | 12 ++++++++++++ elkodon_pal/concurrency_primitives/src/lib.rs | 12 ++++++++++++ elkodon_pal/concurrency_primitives/src/mutex.rs | 12 ++++++++++++ elkodon_pal/concurrency_primitives/src/rwlock.rs | 12 ++++++++++++ elkodon_pal/concurrency_primitives/src/semaphore.rs | 12 ++++++++++++ .../concurrency_primitives/tests/barrier_tests.rs | 12 ++++++++++++ .../tests/condition_variable_tests.rs | 12 ++++++++++++ .../concurrency_primitives/tests/mutex_tests.rs | 12 ++++++++++++ .../concurrency_primitives/tests/rwlock_tests.rs | 12 ++++++++++++ .../concurrency_primitives/tests/semaphore_tests.rs | 12 ++++++++++++ elkodon_pal/posix/build.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/acl.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/constants.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/dirent.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/errno.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/fcntl.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/inet.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/mman.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/mod.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/mqueue.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/pthread.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/pwd.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/resource.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/sched.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/select.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/semaphore.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/signal.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/socket.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/stat.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/stdio.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/stdlib.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/string.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/support.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/time.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/types.rs | 12 ++++++++++++ elkodon_pal/posix/src/freebsd/unistd.rs | 12 ++++++++++++ elkodon_pal/posix/src/lib.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/acl.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/constants.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/dirent.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/errno.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/fcntl.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/inet.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/mman.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/mod.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/mqueue.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/pthread.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/pwd.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/resource.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/sched.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/select.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/semaphore.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/signal.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/socket.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/stat.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/stdio.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/stdlib.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/string.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/support.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/time.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/types.rs | 12 ++++++++++++ elkodon_pal/posix/src/linux/unistd.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/acl.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/constants.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/dirent.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/errno.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/fcntl.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/inet.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/mman.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/mod.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/mqueue.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/pthread.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/pwd.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/resource.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/sched.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/select.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/semaphore.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/settings.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/signal.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/socket.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/stat.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/stdio.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/stdlib.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/string.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/support.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/time.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/types.rs | 12 ++++++++++++ elkodon_pal/posix/src/macos/unistd.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/acl.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/constants.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/dirent.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/errno.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/fcntl.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/inet.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/mman.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/mod.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/mqueue.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/pthread.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/pwd.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/resource.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/sched.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/select.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/semaphore.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/settings.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/signal.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/socket.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/stat.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/stdio.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/stdlib.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/string.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/support.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/time.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/types.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/unistd.rs | 12 ++++++++++++ elkodon_pal/posix/src/windows/win32_call.rs | 12 ++++++++++++ .../posix/src/windows/win32_handle_translator.rs | 12 ++++++++++++ .../posix/src/windows/win32_security_attributes.rs | 12 ++++++++++++ .../posix/src/windows/win32_udp_port_to_uds_name.rs | 12 ++++++++++++ .../posix/tests/win32_security_attributes_tests.rs | 12 ++++++++++++ elkodon_pal/posix/tests/win32_select_tests.rs | 12 ++++++++++++ elkodon_pal/settings/src/lib.rs | 12 ++++++++++++ examples/examples/discovery/discovery.rs | 12 ++++++++++++ examples/examples/event/listener.rs | 12 ++++++++++++ examples/examples/event/notifier.rs | 12 ++++++++++++ examples/examples/publish_subscribe/publisher.rs | 12 ++++++++++++ examples/examples/publish_subscribe/subscriber.rs | 12 ++++++++++++ examples/src/transmission_data.rs | 12 ++++++++++++ scripts/ci_test_commit_msg.sh | 12 ++++++++++++ scripts/ci_test_only_use_assert_that_macro.sh | 12 ++++++++++++ scripts/ci_test_spdx_license_header.sh | 12 ++++++++++++ scripts/elkodon_env.sh | 12 ++++++++++++ scripts/generate-cov-report.sh | 12 ++++++++++++ scripts/set_license_header.sh | 12 ++++++++++++ 382 files changed, 4584 insertions(+) diff --git a/benchmarks/publish_subscribe/src/main.rs b/benchmarks/publish_subscribe/src/main.rs index d7fd0b5..a025f99 100644 --- a/benchmarks/publish_subscribe/src/main.rs +++ b/benchmarks/publish_subscribe/src/main.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon::service::{process_local, zero_copy}; use elkodon::service::{service_name::ServiceName, Service}; use elkodon_bb_container::semantic_string::SemanticString; diff --git a/elkodon/src/compiletests.rs b/elkodon/src/compiletests.rs index 1afc615..863c28b 100644 --- a/elkodon/src/compiletests.rs +++ b/elkodon/src/compiletests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + /// ```compile_fail /// use elkodon::prelude::*; /// fn main() -> Result<(), Box> { diff --git a/elkodon/src/config.rs b/elkodon/src/config.rs index 8ae2df9..422f7ca 100644 --- a/elkodon/src/config.rs +++ b/elkodon/src/config.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Examples //! //! ## Publish-Subscriber diff --git a/elkodon/src/elk.rs b/elkodon/src/elk.rs index cd3c5cf..faba1a7 100644 --- a/elkodon/src/elk.rs +++ b/elkodon/src/elk.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ## Simple Event Loop diff --git a/elkodon/src/lib.rs b/elkodon/src/lib.rs index ce952d4..c2f8cc6 100644 --- a/elkodon/src/lib.rs +++ b/elkodon/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Elkodon //! //! Elkodon is a cutting-edge service-oriented zero-copy lock-free inter-process communication diff --git a/elkodon/src/message.rs b/elkodon/src/message.rs index b80c8dd..e52c34b 100644 --- a/elkodon/src/message.rs +++ b/elkodon/src/message.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::fmt; #[repr(C)] diff --git a/elkodon/src/port/details/mod.rs b/elkodon/src/port/details/mod.rs index e24d233..1cf265a 100644 --- a/elkodon/src/port/details/mod.rs +++ b/elkodon/src/port/details/mod.rs @@ -1,2 +1,14 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub(crate) mod publisher_connections; pub(crate) mod subscriber_connections; diff --git a/elkodon/src/port/details/publisher_connections.rs b/elkodon/src/port/details/publisher_connections.rs index a295604..9ec0c13 100644 --- a/elkodon/src/port/details/publisher_connections.rs +++ b/elkodon/src/port/details/publisher_connections.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::cell::UnsafeCell; use crate::{ diff --git a/elkodon/src/port/details/subscriber_connections.rs b/elkodon/src/port/details/subscriber_connections.rs index b0f6b17..8169ee1 100644 --- a/elkodon/src/port/details/subscriber_connections.rs +++ b/elkodon/src/port/details/subscriber_connections.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::cell::UnsafeCell; use elkodon_bb_log::fail; diff --git a/elkodon/src/port/event_id.rs b/elkodon/src/port/event_id.rs index c38cae1..44d949a 100644 --- a/elkodon/src/port/event_id.rs +++ b/elkodon/src/port/event_id.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/port/listener.rs b/elkodon/src/port/listener.rs index 6c165ac..63f9c10 100644 --- a/elkodon/src/port/listener.rs +++ b/elkodon/src/port/listener.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/port/mod.rs b/elkodon/src/port/mod.rs index f4f08fb..6ef6d4d 100644 --- a/elkodon/src/port/mod.rs +++ b/elkodon/src/port/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::fmt::Debug; use tiny_fn::tiny_fn; diff --git a/elkodon/src/port/notifier.rs b/elkodon/src/port/notifier.rs index 3567fb9..dda7490 100644 --- a/elkodon/src/port/notifier.rs +++ b/elkodon/src/port/notifier.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/port/port_identifiers.rs b/elkodon/src/port/port_identifiers.rs index d14e062..0df7e98 100644 --- a/elkodon/src/port/port_identifiers.rs +++ b/elkodon/src/port/port_identifiers.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_log::fatal_panic; use elkodon_bb_posix::unique_system_id::UniqueSystemId; diff --git a/elkodon/src/port/publisher.rs b/elkodon/src/port/publisher.rs index 5e7f7ac..f064a15 100644 --- a/elkodon/src/port/publisher.rs +++ b/elkodon/src/port/publisher.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Examples //! //! ``` diff --git a/elkodon/src/port/subscriber.rs b/elkodon/src/port/subscriber.rs index c9961bc..92d3275 100644 --- a/elkodon/src/port/subscriber.rs +++ b/elkodon/src/port/subscriber.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/prelude.rs b/elkodon/src/prelude.rs index 57f3ea3..8b6d717 100644 --- a/elkodon/src/prelude.rs +++ b/elkodon/src/prelude.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub use crate::elk::Elk; pub use crate::elk::ElkEvent; pub use crate::port::event_id::EventId; diff --git a/elkodon/src/raw_sample.rs b/elkodon/src/raw_sample.rs index 7ffa594..5b5f308 100644 --- a/elkodon/src/raw_sample.rs +++ b/elkodon/src/raw_sample.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::message::Message; use core::fmt; diff --git a/elkodon/src/sample.rs b/elkodon/src/sample.rs index 2cf64bb..a6cc0c7 100644 --- a/elkodon/src/sample.rs +++ b/elkodon/src/sample.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/sample_mut.rs b/elkodon/src/sample_mut.rs index 5f6da96..bd562ee 100644 --- a/elkodon/src/sample_mut.rs +++ b/elkodon/src/sample_mut.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/builder/event.rs b/elkodon/src/service/builder/event.rs index de2e586..ca1886a 100644 --- a/elkodon/src/service/builder/event.rs +++ b/elkodon/src/service/builder/event.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! See [`crate::service`] diff --git a/elkodon/src/service/builder/mod.rs b/elkodon/src/service/builder/mod.rs index 64bcf79..d28ca36 100644 --- a/elkodon/src/service/builder/mod.rs +++ b/elkodon/src/service/builder/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! See [`crate::service`] diff --git a/elkodon/src/service/builder/publish_subscribe.rs b/elkodon/src/service/builder/publish_subscribe.rs index 3030bd5..e1b5f06 100644 --- a/elkodon/src/service/builder/publish_subscribe.rs +++ b/elkodon/src/service/builder/publish_subscribe.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! See [`crate::service`] diff --git a/elkodon/src/service/config_scheme.rs b/elkodon/src/service/config_scheme.rs index a2d4461..548d6a3 100644 --- a/elkodon/src/service/config_scheme.rs +++ b/elkodon/src/service/config_scheme.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::config; use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_log::fatal_panic; diff --git a/elkodon/src/service/dynamic_config/event.rs b/elkodon/src/service/dynamic_config/event.rs index 637dc74..9a4b764 100644 --- a/elkodon/src/service/dynamic_config/event.rs +++ b/elkodon/src/service/dynamic_config/event.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Examples //! //! ``` diff --git a/elkodon/src/service/dynamic_config/mod.rs b/elkodon/src/service/dynamic_config/mod.rs index ad6cb23..2b3868c 100644 --- a/elkodon/src/service/dynamic_config/mod.rs +++ b/elkodon/src/service/dynamic_config/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + /// The dynamic service configuration of an /// [`MessagingPattern::Event`](crate::service::messaging_pattern::MessagingPattern::Event) /// based service. diff --git a/elkodon/src/service/dynamic_config/publish_subscribe.rs b/elkodon/src/service/dynamic_config/publish_subscribe.rs index d9cd2b2..c48e033 100644 --- a/elkodon/src/service/dynamic_config/publish_subscribe.rs +++ b/elkodon/src/service/dynamic_config/publish_subscribe.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/header/mod.rs b/elkodon/src/service/header/mod.rs index 1077b8b..5e157af 100644 --- a/elkodon/src/service/header/mod.rs +++ b/elkodon/src/service/header/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + /// Message header used by /// [`MessagingPattern::PublishSubscribe`](crate::service::messaging_pattern::MessagingPattern::PublishSubscribe) pub mod publish_subscribe; diff --git a/elkodon/src/service/header/publish_subscribe.rs b/elkodon/src/service/header/publish_subscribe.rs index 2b406f2..29b52c1 100644 --- a/elkodon/src/service/header/publish_subscribe.rs +++ b/elkodon/src/service/header/publish_subscribe.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/messaging_pattern.rs b/elkodon/src/service/messaging_pattern.rs index 07d6211..db6adb3 100644 --- a/elkodon/src/service/messaging_pattern.rs +++ b/elkodon/src/service/messaging_pattern.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Defines the messaging pattern used in a [`Service`](crate::service::Service)-based //! communication. //! diff --git a/elkodon/src/service/mod.rs b/elkodon/src/service/mod.rs index 52a5ad8..023bf96 100644 --- a/elkodon/src/service/mod.rs +++ b/elkodon/src/service/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ## Publish-Subscribe diff --git a/elkodon/src/service/naming_scheme.rs b/elkodon/src/service/naming_scheme.rs index 2011d4e..928544e 100644 --- a/elkodon/src/service/naming_scheme.rs +++ b/elkodon/src/service/naming_scheme.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::port::port_identifiers::{UniqueListenerId, UniquePublisherId, UniqueSubscriberId}; use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_log::fatal_panic; diff --git a/elkodon/src/service/port_factory/event.rs b/elkodon/src/service/port_factory/event.rs index 831e9dd..4e0d191 100644 --- a/elkodon/src/service/port_factory/event.rs +++ b/elkodon/src/service/port_factory/event.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Examples //! //! ``` diff --git a/elkodon/src/service/port_factory/listener.rs b/elkodon/src/service/port_factory/listener.rs index 702a605..1214312 100644 --- a/elkodon/src/service/port_factory/listener.rs +++ b/elkodon/src/service/port_factory/listener.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Examples //! //! ``` diff --git a/elkodon/src/service/port_factory/mod.rs b/elkodon/src/service/port_factory/mod.rs index d84229d..08f71da 100644 --- a/elkodon/src/service/port_factory/mod.rs +++ b/elkodon/src/service/port_factory/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + /// Factory to create the endpoints of /// [`MessagingPattern::Event`](crate::service::messaging_pattern::MessagingPattern::Event) based /// communication and to acquire static and dynamic service information diff --git a/elkodon/src/service/port_factory/notifier.rs b/elkodon/src/service/port_factory/notifier.rs index 9bc503a..606751f 100644 --- a/elkodon/src/service/port_factory/notifier.rs +++ b/elkodon/src/service/port_factory/notifier.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Examples //! //! ``` diff --git a/elkodon/src/service/port_factory/publish_subscribe.rs b/elkodon/src/service/port_factory/publish_subscribe.rs index d70e7bf..1539cdc 100644 --- a/elkodon/src/service/port_factory/publish_subscribe.rs +++ b/elkodon/src/service/port_factory/publish_subscribe.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/port_factory/publisher.rs b/elkodon/src/service/port_factory/publisher.rs index f61d9f4..906a358 100644 --- a/elkodon/src/service/port_factory/publisher.rs +++ b/elkodon/src/service/port_factory/publisher.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/port_factory/subscriber.rs b/elkodon/src/service/port_factory/subscriber.rs index 0e99337..4a885db 100644 --- a/elkodon/src/service/port_factory/subscriber.rs +++ b/elkodon/src/service/port_factory/subscriber.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/process_local.rs b/elkodon/src/service/process_local.rs index b18d154..79954c3 100644 --- a/elkodon/src/service/process_local.rs +++ b/elkodon/src/service/process_local.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/service_name.rs b/elkodon/src/service/service_name.rs index 4438911..5677f61 100644 --- a/elkodon/src/service/service_name.rs +++ b/elkodon/src/service/service_name.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/static_config/event.rs b/elkodon/src/service/static_config/event.rs index 82318c7..93b0b22 100644 --- a/elkodon/src/service/static_config/event.rs +++ b/elkodon/src/service/static_config/event.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Examples //! //! ``` diff --git a/elkodon/src/service/static_config/mod.rs b/elkodon/src/service/static_config/mod.rs index f71c730..dd4666b 100644 --- a/elkodon/src/service/static_config/mod.rs +++ b/elkodon/src/service/static_config/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + /// The static service configuration of an /// [`MessagingPattern::Event`] /// based service. diff --git a/elkodon/src/service/static_config/publish_subscribe.rs b/elkodon/src/service/static_config/publish_subscribe.rs index ef83640..756c4d9 100644 --- a/elkodon/src/service/static_config/publish_subscribe.rs +++ b/elkodon/src/service/static_config/publish_subscribe.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/src/service/zero_copy.rs b/elkodon/src/service/zero_copy.rs index b6754b6..ddc1df6 100644 --- a/elkodon/src/service/zero_copy.rs +++ b/elkodon/src/service/zero_copy.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! # Example //! //! ``` diff --git a/elkodon/tests/publisher_tests.rs b/elkodon/tests/publisher_tests.rs index f0a5747..1b11a43 100644 --- a/elkodon/tests/publisher_tests.rs +++ b/elkodon/tests/publisher_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod publisher { use std::time::{Duration, Instant}; diff --git a/elkodon/tests/service_event_tests.rs b/elkodon/tests/service_event_tests.rs index e4c77f6..7e19ed6 100644 --- a/elkodon/tests/service_event_tests.rs +++ b/elkodon/tests/service_event_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod service_event { use elkodon::config::Config; diff --git a/elkodon/tests/service_publish_subscribe_tests.rs b/elkodon/tests/service_publish_subscribe_tests.rs index 13404cd..683f139 100644 --- a/elkodon/tests/service_publish_subscribe_tests.rs +++ b/elkodon/tests/service_publish_subscribe_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod service_publish_subscribe { use elkodon::config::Config; diff --git a/elkodon_bb/container/src/byte_string.rs b/elkodon_bb/container/src/byte_string.rs index d811360..a407706 100644 --- a/elkodon_bb/container/src/byte_string.rs +++ b/elkodon_bb/container/src/byte_string.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Relocatable (inter-process shared memory compatible) string implementations. //! //! The [`FixedSizeByteString`] has a fixed capacity defined at compile time. diff --git a/elkodon_bb/container/src/lib.rs b/elkodon_bb/container/src/lib.rs index f1070a3..7e1234d 100644 --- a/elkodon_bb/container/src/lib.rs +++ b/elkodon_bb/container/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains standard container which are compatible with an inter-process shared memory usage. pub mod byte_string; diff --git a/elkodon_bb/container/src/queue.rs b/elkodon_bb/container/src/queue.rs index 588f252..9a6dd68 100644 --- a/elkodon_bb/container/src/queue.rs +++ b/elkodon_bb/container/src/queue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Two relocatable (inter process shared memory compatible) queues. //! //! The [`Queue`] which has a diff --git a/elkodon_bb/container/src/semantic_string.rs b/elkodon_bb/container/src/semantic_string.rs index 2528502..2f35372 100644 --- a/elkodon_bb/container/src/semantic_string.rs +++ b/elkodon_bb/container/src/semantic_string.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::byte_string::{as_escaped_string, strlen, FixedSizeByteString}; use elkodon_bb_log::fail; use std::fmt::{Debug, Display}; diff --git a/elkodon_bb/container/src/vec.rs b/elkodon_bb/container/src/vec.rs index aae0800..bd7576b 100644 --- a/elkodon_bb/container/src/vec.rs +++ b/elkodon_bb/container/src/vec.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Two relocatable (inter-process shared memory compatible) vector implementations. //! //! diff --git a/elkodon_bb/container/tests/byte_string_tests.rs b/elkodon_bb/container/tests/byte_string_tests.rs index 15d0ea7..c4df9be 100644 --- a/elkodon_bb/container/tests/byte_string_tests.rs +++ b/elkodon_bb/container/tests/byte_string_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::byte_string::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/container/tests/queue_tests.rs b/elkodon_bb/container/tests/queue_tests.rs index ead8459..7f91ffa 100644 --- a/elkodon_bb/container/tests/queue_tests.rs +++ b/elkodon_bb/container/tests/queue_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::queue::*; use elkodon_bb_memory::{bump_allocator::BumpAllocator, memory::Memory}; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/container/tests/semantic_string_tests.rs b/elkodon_bb/container/tests/semantic_string_tests.rs index 0d7c888..1f8627b 100644 --- a/elkodon_bb/container/tests/semantic_string_tests.rs +++ b/elkodon_bb/container/tests/semantic_string_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_system_types::file_name::*; use elkodon_bb_system_types::file_path::*; diff --git a/elkodon_bb/container/tests/vec_tests.rs b/elkodon_bb/container/tests/vec_tests.rs index ad2beb5..6b53ac2 100644 --- a/elkodon_bb/container/tests/vec_tests.rs +++ b/elkodon_bb/container/tests/vec_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::vec::*; use elkodon_bb_elementary::relocatable_container::RelocatableContainer; use elkodon_bb_memory::{bump_allocator::BumpAllocator, memory::Memory}; diff --git a/elkodon_bb/elementary/src/allocator.rs b/elkodon_bb/elementary/src/allocator.rs index 65a78d8..0ee73bb 100644 --- a/elkodon_bb/elementary/src/allocator.rs +++ b/elkodon_bb/elementary/src/allocator.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains the traits [`BaseAllocator`] which contains the most basic functionality an allocator //! requires and [`Allocator`] with more advanced allocation features. diff --git a/elkodon_bb/elementary/src/enum_gen.rs b/elkodon_bb/elementary/src/enum_gen.rs index e71d39c..47f5d07 100644 --- a/elkodon_bb/elementary/src/enum_gen.rs +++ b/elkodon_bb/elementary/src/enum_gen.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Easy enum generation to implement error signaling enums more efficiently. //! //! # Examples diff --git a/elkodon_bb/elementary/src/lazy_singleton.rs b/elkodon_bb/elementary/src/lazy_singleton.rs index 587440a..91d2abc 100644 --- a/elkodon_bb/elementary/src/lazy_singleton.rs +++ b/elkodon_bb/elementary/src/lazy_singleton.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Can be used to implement a singleton object which is not initialized when it is being created. //! //! Useful for global logger, error handling or config objects which are initialized sometime diff --git a/elkodon_bb/elementary/src/lib.rs b/elkodon_bb/elementary/src/lib.rs index 1095d97..b268542 100644 --- a/elkodon_bb/elementary/src/lib.rs +++ b/elkodon_bb/elementary/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains basic constructs which do not have any kind of dependency. #[macro_use] diff --git a/elkodon_bb/elementary/src/math.rs b/elkodon_bb/elementary/src/math.rs index 5ad8b5e..c599ee8 100644 --- a/elkodon_bb/elementary/src/math.rs +++ b/elkodon_bb/elementary/src/math.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains simplistic math functions. /// Aligns value to alignment. It increments value to the next multiple of alignment. diff --git a/elkodon_bb/elementary/src/owning_pointer.rs b/elkodon_bb/elementary/src/owning_pointer.rs index f4c3e38..5194cd0 100644 --- a/elkodon_bb/elementary/src/owning_pointer.rs +++ b/elkodon_bb/elementary/src/owning_pointer.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Represents a normal non-null pointer. It was introduced to distinguish normal pointers from //! [`crate::relocatable_ptr::RelocatablePointer`]. It implements the [`PointerTrait`]. diff --git a/elkodon_bb/elementary/src/pointer_trait.rs b/elkodon_bb/elementary/src/pointer_trait.rs index fb249fa..24eb419 100644 --- a/elkodon_bb/elementary/src/pointer_trait.rs +++ b/elkodon_bb/elementary/src/pointer_trait.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + /// Trait which describes a form of pointer. Required to distinguish normal pointers from /// relocatable pointers. pub trait PointerTrait { diff --git a/elkodon_bb/elementary/src/relocatable_container.rs b/elkodon_bb/elementary/src/relocatable_container.rs index 04225ac..545fdcc 100644 --- a/elkodon_bb/elementary/src/relocatable_container.rs +++ b/elkodon_bb/elementary/src/relocatable_container.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::{allocator::AllocationError, allocator::BaseAllocator}; /// Describes a container which can shared between processes. Since the shared memory is often diff --git a/elkodon_bb/elementary/src/relocatable_ptr.rs b/elkodon_bb/elementary/src/relocatable_ptr.rs index dadb86b..90c3e03 100644 --- a/elkodon_bb/elementary/src/relocatable_ptr.rs +++ b/elkodon_bb/elementary/src/relocatable_ptr.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Building block to handle inter process communication with multiple shared memory object. Every //! process has mapped them to a different virtual memory location therefore pointer inside that //! memory region should be distances starting from a fix point which maybe different in every diff --git a/elkodon_bb/elementary/src/scope_guard.rs b/elkodon_bb/elementary/src/scope_guard.rs index f30d435..90a5853 100644 --- a/elkodon_bb/elementary/src/scope_guard.rs +++ b/elkodon_bb/elementary/src/scope_guard.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A building block to handle resources that need to be explicitly cleaned up. //! //! Useful when building higher level abstractions of low level hardware/OS resources. diff --git a/elkodon_bb/elementary/src/unique_id.rs b/elkodon_bb/elementary/src/unique_id.rs index d416dce..0569a68 100644 --- a/elkodon_bb/elementary/src/unique_id.rs +++ b/elkodon_bb/elementary/src/unique_id.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains two building blocks to generate unique ids. Useful for parallized unit test to //! generate names which point to OS resources or to enumerate constructs uniquely. //! diff --git a/elkodon_bb/elementary/tests/math_tests.rs b/elkodon_bb/elementary/tests/math_tests.rs index a36bf14..576ef83 100644 --- a/elkodon_bb/elementary/tests/math_tests.rs +++ b/elkodon_bb/elementary/tests/math_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_elementary::math::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/elementary/tests/relocatable_container_tests.rs b/elkodon_bb/elementary/tests/relocatable_container_tests.rs index 7fabad0..3f1bdb6 100644 --- a/elkodon_bb/elementary/tests/relocatable_container_tests.rs +++ b/elkodon_bb/elementary/tests/relocatable_container_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod relocatable_container { use elkodon_bb_container::{queue::RelocatableQueue, vec::Vec}; diff --git a/elkodon_bb/elementary/tests/relocatable_ptr_tests.rs b/elkodon_bb/elementary/tests/relocatable_ptr_tests.rs index 1467948..e8e6c7e 100644 --- a/elkodon_bb/elementary/tests/relocatable_ptr_tests.rs +++ b/elkodon_bb/elementary/tests/relocatable_ptr_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_elementary::{pointer_trait::PointerTrait, relocatable_ptr::RelocatablePointer}; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/elementary/tests/scope_guard_tests.rs b/elkodon_bb/elementary/tests/scope_guard_tests.rs index b6a58b6..d605fb9 100644 --- a/elkodon_bb/elementary/tests/scope_guard_tests.rs +++ b/elkodon_bb/elementary/tests/scope_guard_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::sync::atomic::{AtomicU64, Ordering}; use elkodon_bb_elementary::scope_guard::*; diff --git a/elkodon_bb/elementary/tests/unique_id_tests.rs b/elkodon_bb/elementary/tests/unique_id_tests.rs index 4bd8d13..56539d5 100644 --- a/elkodon_bb/elementary/tests/unique_id_tests.rs +++ b/elkodon_bb/elementary/tests/unique_id_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_elementary::unique_id::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/lock_free/src/lib.rs b/elkodon_bb/lock_free/src/lib.rs index 5209c04..37e1eb4 100644 --- a/elkodon_bb/lock_free/src/lib.rs +++ b/elkodon_bb/lock_free/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Library of lock-free constructs. //! //! From C++ Concurrency in Action - Anthony Williams diff --git a/elkodon_bb/lock_free/src/mpmc/container.rs b/elkodon_bb/lock_free/src/mpmc/container.rs index 54b74a6..4c8f014 100644 --- a/elkodon_bb/lock_free/src/mpmc/container.rs +++ b/elkodon_bb/lock_free/src/mpmc/container.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A simplistic **threadsafe** and **lock-free** container which contains element in an //! unspecified order. //! diff --git a/elkodon_bb/lock_free/src/mpmc/mod.rs b/elkodon_bb/lock_free/src/mpmc/mod.rs index 7b17d0f..db01843 100644 --- a/elkodon_bb/lock_free/src/mpmc/mod.rs +++ b/elkodon_bb/lock_free/src/mpmc/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Multi producer multi consumer constructs pub mod container; diff --git a/elkodon_bb/lock_free/src/mpmc/unique_index_set.rs b/elkodon_bb/lock_free/src/mpmc/unique_index_set.rs index 336f14c..5952fb9 100644 --- a/elkodon_bb/lock_free/src/mpmc/unique_index_set.rs +++ b/elkodon_bb/lock_free/src/mpmc/unique_index_set.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe** and **lock-free** set of indices. Can be used as a building block for //! allocators or lock-free containers. When it is created it is filled with indices which can //! be acquired and returned. diff --git a/elkodon_bb/lock_free/src/spmc/mod.rs b/elkodon_bb/lock_free/src/spmc/mod.rs index 40b7a5f..f001a12 100644 --- a/elkodon_bb/lock_free/src/spmc/mod.rs +++ b/elkodon_bb/lock_free/src/spmc/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Single producer multi consumer constructs pub mod unrestricted_atomic; diff --git a/elkodon_bb/lock_free/src/spmc/unrestricted_atomic.rs b/elkodon_bb/lock_free/src/spmc/unrestricted_atomic.rs index 94674e1..248b3c4 100644 --- a/elkodon_bb/lock_free/src/spmc/unrestricted_atomic.rs +++ b/elkodon_bb/lock_free/src/spmc/unrestricted_atomic.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe** **lock-free** more generic alternative of the atomic. Can hold any arbitrary //! type but is restricted to single producer multi consumer. //! diff --git a/elkodon_bb/lock_free/src/spsc/index_queue.rs b/elkodon_bb/lock_free/src/spsc/index_queue.rs index 06dfb79..14c5d40 100644 --- a/elkodon_bb/lock_free/src/spsc/index_queue.rs +++ b/elkodon_bb/lock_free/src/spsc/index_queue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe** **lock-free** single producer single consumer queue which can store [`u64`] //! integers or indices. //! diff --git a/elkodon_bb/lock_free/src/spsc/mod.rs b/elkodon_bb/lock_free/src/spsc/mod.rs index 79d3d2c..1c83be4 100644 --- a/elkodon_bb/lock_free/src/spsc/mod.rs +++ b/elkodon_bb/lock_free/src/spsc/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains single produce single consumer construct pub mod index_queue; diff --git a/elkodon_bb/lock_free/src/spsc/queue.rs b/elkodon_bb/lock_free/src/spsc/queue.rs index 9b9c76b..cd6667e 100644 --- a/elkodon_bb/lock_free/src/spsc/queue.rs +++ b/elkodon_bb/lock_free/src/spsc/queue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe** **lock-free** single produce single consumer queue. //! **IMPORTANT** Can only be used with trivially copyable types which are also trivially dropable. //! diff --git a/elkodon_bb/lock_free/src/spsc/safely_overflowing_index_queue.rs b/elkodon_bb/lock_free/src/spsc/safely_overflowing_index_queue.rs index 0ead074..4497c4e 100644 --- a/elkodon_bb/lock_free/src/spsc/safely_overflowing_index_queue.rs +++ b/elkodon_bb/lock_free/src/spsc/safely_overflowing_index_queue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe** **lock-free** single producer single consumer queue which can store [`usize`] //! integers or indices with overflow behavior. When the queue is full the oldest element is //! returned to the producer and replaced with the newest. diff --git a/elkodon_bb/lock_free/tests/mpmc_container_tests.rs b/elkodon_bb/lock_free/tests/mpmc_container_tests.rs index d284b0b..0904736 100644 --- a/elkodon_bb/lock_free/tests/mpmc_container_tests.rs +++ b/elkodon_bb/lock_free/tests/mpmc_container_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_testing::assert_that; #[derive(Clone, Copy, Debug)] diff --git a/elkodon_bb/lock_free/tests/mpmc_unique_index_set_tests.rs b/elkodon_bb/lock_free/tests/mpmc_unique_index_set_tests.rs index 6ebe1b7..16d5bf0 100644 --- a/elkodon_bb/lock_free/tests/mpmc_unique_index_set_tests.rs +++ b/elkodon_bb/lock_free/tests/mpmc_unique_index_set_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_elementary::relocatable_container::RelocatableContainer; use elkodon_bb_lock_free::mpmc::unique_index_set::*; use elkodon_bb_memory::bump_allocator::BumpAllocator; diff --git a/elkodon_bb/lock_free/tests/spmc_unrestricted_atomic_tests.rs b/elkodon_bb/lock_free/tests/spmc_unrestricted_atomic_tests.rs index f252792..f87ef28 100644 --- a/elkodon_bb/lock_free/tests/spmc_unrestricted_atomic_tests.rs +++ b/elkodon_bb/lock_free/tests/spmc_unrestricted_atomic_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{ sync::{ atomic::{AtomicBool, Ordering}, diff --git a/elkodon_bb/lock_free/tests/spsc_index_queue_tests.rs b/elkodon_bb/lock_free/tests/spsc_index_queue_tests.rs index c53688f..68fdeed 100644 --- a/elkodon_bb/lock_free/tests/spsc_index_queue_tests.rs +++ b/elkodon_bb/lock_free/tests/spsc_index_queue_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_lock_free::spsc::index_queue::*; use elkodon_bb_posix::barrier::{BarrierBuilder, BarrierHandle}; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/lock_free/tests/spsc_queue_tests.rs b/elkodon_bb/lock_free/tests/spsc_queue_tests.rs index 0395540..54fa763 100644 --- a/elkodon_bb/lock_free/tests/spsc_queue_tests.rs +++ b/elkodon_bb/lock_free/tests/spsc_queue_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_lock_free::spsc::queue::*; use elkodon_bb_testing::assert_that; use std::sync::{Arc, Mutex}; diff --git a/elkodon_bb/lock_free/tests/spsc_safely_overflowing_index_queue_tests.rs b/elkodon_bb/lock_free/tests/spsc_safely_overflowing_index_queue_tests.rs index 2dbce12..43aa295 100644 --- a/elkodon_bb/lock_free/tests/spsc_safely_overflowing_index_queue_tests.rs +++ b/elkodon_bb/lock_free/tests/spsc_safely_overflowing_index_queue_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_lock_free::spsc::safely_overflowing_index_queue::*; use elkodon_bb_posix::barrier::{BarrierBuilder, BarrierHandle}; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/log/src/fail.rs b/elkodon_bb/log/src/fail.rs index f2d060b..f1731f6 100644 --- a/elkodon_bb/log/src/fail.rs +++ b/elkodon_bb/log/src/fail.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Combines error handling with logging. /// Macro to combine error handling with log messages. It automatically fails and converts the diff --git a/elkodon_bb/log/src/lib.rs b/elkodon_bb/log/src/lib.rs index edcb081..f569d04 100644 --- a/elkodon_bb/log/src/lib.rs +++ b/elkodon_bb/log/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Simplistic logger. It has 6 [`LogLevel`]s which can be set via [`set_log_level()`] and read via //! [`get_log_level()`]. //! diff --git a/elkodon_bb/log/src/log.rs b/elkodon_bb/log/src/log.rs index 2235dbc..66d7c19 100644 --- a/elkodon_bb/log/src/log.rs +++ b/elkodon_bb/log/src/log.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains all macros to log messages. /// Logs a trace message. diff --git a/elkodon_bb/log/src/logger/buffer.rs b/elkodon_bb/log/src/logger/buffer.rs index 40fcb31..8533e74 100644 --- a/elkodon_bb/log/src/logger/buffer.rs +++ b/elkodon_bb/log/src/logger/buffer.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::sync::Mutex; use crate::LogLevel; diff --git a/elkodon_bb/log/src/logger/console.rs b/elkodon_bb/log/src/logger/console.rs index b5e1f9d..af0aca1 100644 --- a/elkodon_bb/log/src/logger/console.rs +++ b/elkodon_bb/log/src/logger/console.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! The default [`Logger`] implementation. use std::{ diff --git a/elkodon_bb/log/src/logger/log.rs b/elkodon_bb/log/src/logger/log.rs index 072af97..ab1f658 100644 --- a/elkodon_bb/log/src/logger/log.rs +++ b/elkodon_bb/log/src/logger/log.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::LogLevel; pub struct Logger { diff --git a/elkodon_bb/log/src/logger/mod.rs b/elkodon_bb/log/src/logger/mod.rs index f2be657..f64dba9 100644 --- a/elkodon_bb/log/src/logger/mod.rs +++ b/elkodon_bb/log/src/logger/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Trait which can be implemented by logger, see [`crate::logger::console::Logger`] //! for instance. diff --git a/elkodon_bb/log/src/logger/tracing.rs b/elkodon_bb/log/src/logger/tracing.rs index 4e21ff4..7362f65 100644 --- a/elkodon_bb/log/src/logger/tracing.rs +++ b/elkodon_bb/log/src/logger/tracing.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::LogLevel; pub struct Logger { diff --git a/elkodon_bb/memory/src/bump_allocator.rs b/elkodon_bb/memory/src/bump_allocator.rs index 41e737b..70b12ed 100644 --- a/elkodon_bb/memory/src/bump_allocator.rs +++ b/elkodon_bb/memory/src/bump_allocator.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe** and **lock-free** bump allocator which implements the [`BaseAllocator`]. //! It can be allocated with [`BumpAllocator::allocate()`] but [`BumpAllocator::deallocate`] //! deallocate all allocated chunks. See this: `https://os.phil-opp.com/allocator-designs/` diff --git a/elkodon_bb/memory/src/heap_allocator.rs b/elkodon_bb/memory/src/heap_allocator.rs index b1608d1..83998bb 100644 --- a/elkodon_bb/memory/src/heap_allocator.rs +++ b/elkodon_bb/memory/src/heap_allocator.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe** and **lock-free** [`Allocator`] which acquires the memory from the heap. use std::{alloc::Layout, ptr::NonNull}; diff --git a/elkodon_bb/memory/src/lib.rs b/elkodon_bb/memory/src/lib.rs index 2bd240e..e2ea68d 100644 --- a/elkodon_bb/memory/src/lib.rs +++ b/elkodon_bb/memory/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod bump_allocator; pub mod heap_allocator; pub mod memory; diff --git a/elkodon_bb/memory/src/memory.rs b/elkodon_bb/memory/src/memory.rs index f16019d..a986a20 100644 --- a/elkodon_bb/memory/src/memory.rs +++ b/elkodon_bb/memory/src/memory.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A fixed size piece of uninitialized memory. It comes with an allocator so that it can be used //! in combination with data structures than can use a custom allocator to implement //! simplistic fixed size versions of them. diff --git a/elkodon_bb/memory/src/one_chunk_allocator.rs b/elkodon_bb/memory/src/one_chunk_allocator.rs index 95483ad..4ab1087 100644 --- a/elkodon_bb/memory/src/one_chunk_allocator.rs +++ b/elkodon_bb/memory/src/one_chunk_allocator.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **non-threadsafe** [`Allocator`] which manages only on chunk. When allocating memory always the //! maximum amount of available aligned memory is provided. //! diff --git a/elkodon_bb/memory/src/pool_allocator.rs b/elkodon_bb/memory/src/pool_allocator.rs index b4ad872..4e309a0 100644 --- a/elkodon_bb/memory/src/pool_allocator.rs +++ b/elkodon_bb/memory/src/pool_allocator.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe**, **lock-free** bucket [`Allocator`] which partitions the provided memory into //! buckets of equal size with a given alignment. //! The memory chunks cannot be resized or greater than the maximum bucket size. diff --git a/elkodon_bb/memory/tests/bump_allocator_tests.rs b/elkodon_bb/memory/tests/bump_allocator_tests.rs index f0a51b1..488e595 100644 --- a/elkodon_bb/memory/tests/bump_allocator_tests.rs +++ b/elkodon_bb/memory/tests/bump_allocator_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_elementary::allocator::*; use elkodon_bb_memory::bump_allocator::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/memory/tests/heap_allocator_tests.rs b/elkodon_bb/memory/tests/heap_allocator_tests.rs index 68acb8d..6e98b17 100644 --- a/elkodon_bb/memory/tests/heap_allocator_tests.rs +++ b/elkodon_bb/memory/tests/heap_allocator_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{alloc::Layout, ptr::NonNull}; use elkodon_bb_memory::heap_allocator::*; diff --git a/elkodon_bb/memory/tests/one_chunk_allocator_tests.rs b/elkodon_bb/memory/tests/one_chunk_allocator_tests.rs index c02decb..d761db4 100644 --- a/elkodon_bb/memory/tests/one_chunk_allocator_tests.rs +++ b/elkodon_bb/memory/tests/one_chunk_allocator_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_elementary::allocator::*; use elkodon_bb_elementary::math::*; use elkodon_bb_memory::one_chunk_allocator::*; diff --git a/elkodon_bb/memory/tests/pool_allocator_tests.rs b/elkodon_bb/memory/tests/pool_allocator_tests.rs index c777d5c..bd1f500 100644 --- a/elkodon_bb/memory/tests/pool_allocator_tests.rs +++ b/elkodon_bb/memory/tests/pool_allocator_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_elementary::allocator::*; use elkodon_bb_memory::{bump_allocator::BumpAllocator, pool_allocator::*}; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/posix/src/access_control_list.rs b/elkodon_bb/posix/src/access_control_list.rs index 3bc3bfc..3ad87a2 100644 --- a/elkodon_bb/posix/src/access_control_list.rs +++ b/elkodon_bb/posix/src/access_control_list.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Access Control Lists provide the ability to set more fine grained permissions to files and //! directories then the POSIX user, group, others model. //! diff --git a/elkodon_bb/posix/src/access_mode.rs b/elkodon_bb/posix/src/access_mode.rs index 1bc92a0..a79d8cd 100644 --- a/elkodon_bb/posix/src/access_mode.rs +++ b/elkodon_bb/posix/src/access_mode.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! The [`AccessMode`] describes the mode in which resources like [`crate::file::File`], //! [`crate::shared_memory::SharedMemory`] or others should be opened. diff --git a/elkodon_bb/posix/src/adaptive_wait.rs b/elkodon_bb/posix/src/adaptive_wait.rs index 81e3876..f39d436 100644 --- a/elkodon_bb/posix/src/adaptive_wait.rs +++ b/elkodon_bb/posix/src/adaptive_wait.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! [`AdaptiveWait`] is a building block which can be integrated into busy loops to make //! them less CPU consuming. //! diff --git a/elkodon_bb/posix/src/barrier.rs b/elkodon_bb/posix/src/barrier.rs index c7296cf..ff57ee2 100644 --- a/elkodon_bb/posix/src/barrier.rs +++ b/elkodon_bb/posix/src/barrier.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Inter-process capable [`Barrier`] which blocks a previously defined number of waiters //! untilthe all the waiters reached [`Barrier::wait()`] //! diff --git a/elkodon_bb/posix/src/clock.rs b/elkodon_bb/posix/src/clock.rs index e61ed14..7f0c685 100644 --- a/elkodon_bb/posix/src/clock.rs +++ b/elkodon_bb/posix/src/clock.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains POSIX timing related abstractions. //! //! * [`Time`] - acquires the current system time and measures the elapsed time diff --git a/elkodon_bb/posix/src/condition_variable.rs b/elkodon_bb/posix/src/condition_variable.rs index ca8918e..9a78f48 100644 --- a/elkodon_bb/posix/src/condition_variable.rs +++ b/elkodon_bb/posix/src/condition_variable.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Contains several variants of POSIX condition variables. A mutex is always included, either as //! reference or the object itself. //! diff --git a/elkodon_bb/posix/src/config.rs b/elkodon_bb/posix/src/config.rs index 5ad1f7c..4d6c56f 100644 --- a/elkodon_bb/posix/src/config.rs +++ b/elkodon_bb/posix/src/config.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Defines configuration options for the posix module. They can be adapted when working on //! a different system. diff --git a/elkodon_bb/posix/src/creation_mode.rs b/elkodon_bb/posix/src/creation_mode.rs index df828fd..b2c247a 100644 --- a/elkodon_bb/posix/src/creation_mode.rs +++ b/elkodon_bb/posix/src/creation_mode.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! The [`CreationMode`] describes how certain posix resources should be created. use elkodon_pal_posix::*; diff --git a/elkodon_bb/posix/src/directory.rs b/elkodon_bb/posix/src/directory.rs index cf1445b..ae92359 100644 --- a/elkodon_bb/posix/src/directory.rs +++ b/elkodon_bb/posix/src/directory.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Create and read directory contents based on a POSIX api. It provides also advanced features //! like [`Permission`] setting, use of [`crate::access_control_list::AccessControlList`] and //! to be created from a [`FileDescriptor`] diff --git a/elkodon_bb/posix/src/file.rs b/elkodon_bb/posix/src/file.rs index 702bb9e..8db0c84 100644 --- a/elkodon_bb/posix/src/file.rs +++ b/elkodon_bb/posix/src/file.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Read, create, write or modify files based on a POSIX api. It provides also advanced features //! like [`Permission`] setting, use of [`crate::access_control_list::AccessControlList`] and to //! be created from a [`FileDescriptor`]. diff --git a/elkodon_bb/posix/src/file_descriptor.rs b/elkodon_bb/posix/src/file_descriptor.rs index 10ea1dd..ad31274 100644 --- a/elkodon_bb/posix/src/file_descriptor.rs +++ b/elkodon_bb/posix/src/file_descriptor.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides a [`FileDescriptor`] abstraction which takes the ownership of low-level POSIX //! file descriptors and the [`FileDescriptorBased`] & [`FileDescriptorManagement`] traits //! which provide advanced functionalities to all [`FileDescriptorBased`] constructs. diff --git a/elkodon_bb/posix/src/file_descriptor_set.rs b/elkodon_bb/posix/src/file_descriptor_set.rs index 46e7845..80a3d39 100644 --- a/elkodon_bb/posix/src/file_descriptor_set.rs +++ b/elkodon_bb/posix/src/file_descriptor_set.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Abstracts a POSIX file descriptor set based of FD_* and select. //! Can be used to wait on multiple objects which implement the [`SynchronousMultiplexing`] //! trait. diff --git a/elkodon_bb/posix/src/file_lock.rs b/elkodon_bb/posix/src/file_lock.rs index 18969cb..a5249bb 100644 --- a/elkodon_bb/posix/src/file_lock.rs +++ b/elkodon_bb/posix/src/file_lock.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A FileLock can be created around any object which implements the [`FileDescriptorBased`] trait. //! Either one can exclusively lock the file for writing or many can lock it for reading. //! diff --git a/elkodon_bb/posix/src/file_type.rs b/elkodon_bb/posix/src/file_type.rs index 107ca74..af19047 100644 --- a/elkodon_bb/posix/src/file_type.rs +++ b/elkodon_bb/posix/src/file_type.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! [`FileType`] describes the type of files which can be used in a POSIX system. use elkodon_pal_posix::*; diff --git a/elkodon_bb/posix/src/group.rs b/elkodon_bb/posix/src/group.rs index f441f57..8739eba 100644 --- a/elkodon_bb/posix/src/group.rs +++ b/elkodon_bb/posix/src/group.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides the trait [`GroupExt`] to create groups from strings by interpreting them as group //! name or from unsigned integers by interpreting them as group id. The [`Group`] struct provides //! access to the properties of a POSIX group. diff --git a/elkodon_bb/posix/src/handle_errno.rs b/elkodon_bb/posix/src/handle_errno.rs index ade59c0..a43da63 100644 --- a/elkodon_bb/posix/src/handle_errno.rs +++ b/elkodon_bb/posix/src/handle_errno.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Used internally to perform error handling based on errnos #[doc(hidden)] diff --git a/elkodon_bb/posix/src/lib.rs b/elkodon_bb/posix/src/lib.rs index 9d0e388..6c77aca 100644 --- a/elkodon_bb/posix/src/lib.rs +++ b/elkodon_bb/posix/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Abstraction of POSIX constructs with a safe API use access_control_list::AccessControlListError; diff --git a/elkodon_bb/posix/src/memory.rs b/elkodon_bb/posix/src/memory.rs index 46d1b98..ccfcf23 100644 --- a/elkodon_bb/posix/src/memory.rs +++ b/elkodon_bb/posix/src/memory.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides an interface for low-level heap allocations. use elkodon_bb_elementary::allocator::{ diff --git a/elkodon_bb/posix/src/memory_lock.rs b/elkodon_bb/posix/src/memory_lock.rs index 7a6cca6..20be059 100644 --- a/elkodon_bb/posix/src/memory_lock.rs +++ b/elkodon_bb/posix/src/memory_lock.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A [`MemoryLock`] excludes a specific range in the memory from paging, e.g. makes it non-swapable. //! This may increase the runtime and reduce jitter in a realtime applications since the specific //! region inside the memory is not moved into the swap space. diff --git a/elkodon_bb/posix/src/message_queue.rs b/elkodon_bb/posix/src/message_queue.rs index a073619..57ad4f3 100644 --- a/elkodon_bb/posix/src/message_queue.rs +++ b/elkodon_bb/posix/src/message_queue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Abstraction for the posix message queue. The [`MessageQueueReceiver`] can receive only, the //! [`MessageQueueSender`] can send only and the [`MessageQueueDuplex`] can send and receive. //! diff --git a/elkodon_bb/posix/src/metadata.rs b/elkodon_bb/posix/src/metadata.rs index 0044614..8a6eaeb 100644 --- a/elkodon_bb/posix/src/metadata.rs +++ b/elkodon_bb/posix/src/metadata.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! [`Metadata`] contains all informations like type, credentials, size, access times about every //! structure which has a file handle representation. Every struct which implements the //! [`crate::file_descriptor::FileDescriptorManagement`] trait can emit a [`Metadata`]. diff --git a/elkodon_bb/posix/src/mutex.rs b/elkodon_bb/posix/src/mutex.rs index d821b12..0af2319 100644 --- a/elkodon_bb/posix/src/mutex.rs +++ b/elkodon_bb/posix/src/mutex.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides an inter-process capable POSIX [`Mutex`] which can be created by the [`MutexBuilder`]. //! //! # Example diff --git a/elkodon_bb/posix/src/ownership.rs b/elkodon_bb/posix/src/ownership.rs index c15f8eb..d89e55e 100644 --- a/elkodon_bb/posix/src/ownership.rs +++ b/elkodon_bb/posix/src/ownership.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Represents the [`Ownership`] in a unix environment consisting of user and group. Can be used in //! combination with [`crate::file_descriptor::FileDescriptorManagement`] to set the //! credentials of [`crate::file::File`], [`crate::shared_memory::SharedMemory`] and others. diff --git a/elkodon_bb/posix/src/permission.rs b/elkodon_bb/posix/src/permission.rs index 8b754ad..1aded0a 100644 --- a/elkodon_bb/posix/src/permission.rs +++ b/elkodon_bb/posix/src/permission.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Defines the [`Permission`] of a file or directory in a POSIX system. //! Can be used in //! combination with [`crate::file_descriptor::FileDescriptorManagement`] to set the diff --git a/elkodon_bb/posix/src/process.rs b/elkodon_bb/posix/src/process.rs index fb448fe..60fc9e0 100644 --- a/elkodon_bb/posix/src/process.rs +++ b/elkodon_bb/posix/src/process.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides an abstraction of [`Process`]es in a POSIX system. //! //! # Scheduler & Priorities diff --git a/elkodon_bb/posix/src/read_write_mutex.rs b/elkodon_bb/posix/src/read_write_mutex.rs index 1919187..05e30ad 100644 --- a/elkodon_bb/posix/src/read_write_mutex.rs +++ b/elkodon_bb/posix/src/read_write_mutex.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A POSIX inter-process capable [`ReadWriteMutex`] where either multiple readers can acquire //! multiple read-locks or one writer can acquire a write-lock. //! It is built by the [`ReadWriteMutexBuilder`]. diff --git a/elkodon_bb/posix/src/scheduler.rs b/elkodon_bb/posix/src/scheduler.rs index 64c882f..ebe8691 100644 --- a/elkodon_bb/posix/src/scheduler.rs +++ b/elkodon_bb/posix/src/scheduler.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides a POSIX [`Scheduler`] abstraction. use elkodon_bb_log::{fail, fatal_panic, warn}; diff --git a/elkodon_bb/posix/src/semaphore.rs b/elkodon_bb/posix/src/semaphore.rs index ff3f961..a9cbc45 100644 --- a/elkodon_bb/posix/src/semaphore.rs +++ b/elkodon_bb/posix/src/semaphore.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides the [`NamedSemaphore`] and the [`UnnamedSemaphore`]. Both can be used in an //! inter-process context to signal events between processes. diff --git a/elkodon_bb/posix/src/shared_memory.rs b/elkodon_bb/posix/src/shared_memory.rs index 193e876..a34c68c 100644 --- a/elkodon_bb/posix/src/shared_memory.rs +++ b/elkodon_bb/posix/src/shared_memory.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides access to a POSIX [`SharedMemory`]Object used to share memory between processes. //! //! # Important diff --git a/elkodon_bb/posix/src/signal.rs b/elkodon_bb/posix/src/signal.rs index e173c29..d416bc9 100644 --- a/elkodon_bb/posix/src/signal.rs +++ b/elkodon_bb/posix/src/signal.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides a POSIX [`SignalHandler`]. It provides an interface to register custom callbacks for //! signals, to perform a blocking wait until a certain signal arrived (for instance like CTRL+c) and //! tracks signals which were received by the process. diff --git a/elkodon_bb/posix/src/socket_ancillary.rs b/elkodon_bb/posix/src/socket_ancillary.rs index c6212fd..e1888a0 100644 --- a/elkodon_bb/posix/src/socket_ancillary.rs +++ b/elkodon_bb/posix/src/socket_ancillary.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! The [`SocketAncillary`] can be sent with //! [`crate::unix_datagram_socket::UnixDatagramSender::try_send_msg()`] and //! received via diff --git a/elkodon_bb/posix/src/system_configuration.rs b/elkodon_bb/posix/src/system_configuration.rs index 379df2e..910c499 100644 --- a/elkodon_bb/posix/src/system_configuration.rs +++ b/elkodon_bb/posix/src/system_configuration.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides information about the POSIX [`SystemInfo`], [`Limit`]s, available [`SysOption`] and //! [`Feature`]s. diff --git a/elkodon_bb/posix/src/thread.rs b/elkodon_bb/posix/src/thread.rs index d7a9301..47a528c 100644 --- a/elkodon_bb/posix/src/thread.rs +++ b/elkodon_bb/posix/src/thread.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! An abstraction of a POSIX [`Thread`] with a rich feature set. //! //! # Examples diff --git a/elkodon_bb/posix/src/udp_socket.rs b/elkodon_bb/posix/src/udp_socket.rs index 33a41cb..b754017 100644 --- a/elkodon_bb/posix/src/udp_socket.rs +++ b/elkodon_bb/posix/src/udp_socket.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Abstraction of an UDP socket. //! //! The [`UdpServerBuilder`] creates an [`UdpServer`] that can diff --git a/elkodon_bb/posix/src/unique_system_id.rs b/elkodon_bb/posix/src/unique_system_id.rs index 96c86a1..9dbe173 100644 --- a/elkodon_bb/posix/src/unique_system_id.rs +++ b/elkodon_bb/posix/src/unique_system_id.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Generates a [`UniqueSystemId`] which is in all processes on the current system. The guarantee //! is that no other process with the same id exists. //! But it is possible that a process with a specific id terminates and a new process generates diff --git a/elkodon_bb/posix/src/unix_datagram_socket.rs b/elkodon_bb/posix/src/unix_datagram_socket.rs index a436b33..1e8b4ea 100644 --- a/elkodon_bb/posix/src/unix_datagram_socket.rs +++ b/elkodon_bb/posix/src/unix_datagram_socket.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Abstraction of datagram based unix domain sockets. The [`UnixDatagramReceiver`] creates a //! socket and the [`UnixDatagramSender`] can connect to it and send messages. //! diff --git a/elkodon_bb/posix/src/unmovable_ipc_handle.rs b/elkodon_bb/posix/src/unmovable_ipc_handle.rs index b0299b8..d73ac12 100644 --- a/elkodon_bb/posix/src/unmovable_ipc_handle.rs +++ b/elkodon_bb/posix/src/unmovable_ipc_handle.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_log::fail; use std::{ fmt::Debug, diff --git a/elkodon_bb/posix/src/user.rs b/elkodon_bb/posix/src/user.rs index dda0ef3..31769fc 100644 --- a/elkodon_bb/posix/src/user.rs +++ b/elkodon_bb/posix/src/user.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Provides the trait [`UserExt`] to create users from strings by interpreting them as user //! name or from unsigned integers by interpreting them as user id. The [`User`] struct provides //! access to the properties of a POSIX user. diff --git a/elkodon_bb/posix/tests/access_control_list_tests.rs b/elkodon_bb/posix/tests/access_control_list_tests.rs index 7a2811f..5dae6e5 100644 --- a/elkodon_bb/posix/tests/access_control_list_tests.rs +++ b/elkodon_bb/posix/tests/access_control_list_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::access_control_list::*; use elkodon_bb_posix::config::TEST_DIRECTORY; use elkodon_bb_posix::directory::*; diff --git a/elkodon_bb/posix/tests/access_mode_tests.rs b/elkodon_bb/posix/tests/access_mode_tests.rs index 26b696a..26b99e7 100644 --- a/elkodon_bb/posix/tests/access_mode_tests.rs +++ b/elkodon_bb/posix/tests/access_mode_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::access_mode::*; use elkodon_bb_testing::assert_that; use elkodon_pal_posix::*; diff --git a/elkodon_bb/posix/tests/adaptive_wait_tests.rs b/elkodon_bb/posix/tests/adaptive_wait_tests.rs index 05ef94e..6392afa 100644 --- a/elkodon_bb/posix/tests/adaptive_wait_tests.rs +++ b/elkodon_bb/posix/tests/adaptive_wait_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::adaptive_wait::*; use elkodon_bb_posix::clock::*; use elkodon_bb_posix::config::*; diff --git a/elkodon_bb/posix/tests/barrier_tests.rs b/elkodon_bb/posix/tests/barrier_tests.rs index f38cf5f..04a00b7 100644 --- a/elkodon_bb/posix/tests/barrier_tests.rs +++ b/elkodon_bb/posix/tests/barrier_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::barrier::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/posix/tests/clock_tests.rs b/elkodon_bb/posix/tests/clock_tests.rs index 8c1ada9..d701269 100644 --- a/elkodon_bb/posix/tests/clock_tests.rs +++ b/elkodon_bb/posix/tests/clock_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::clock::*; use elkodon_bb_posix::system_configuration::Feature; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/posix/tests/condition_variable_tests.rs b/elkodon_bb/posix/tests/condition_variable_tests.rs index 56a6665..54c4778 100644 --- a/elkodon_bb/posix/tests/condition_variable_tests.rs +++ b/elkodon_bb/posix/tests/condition_variable_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::condition_variable::*; use elkodon_bb_testing::assert_that; use std::sync::atomic::{AtomicI32, Ordering}; diff --git a/elkodon_bb/posix/tests/creation_mode_tests.rs b/elkodon_bb/posix/tests/creation_mode_tests.rs index 0812f33..cb4edb5 100644 --- a/elkodon_bb/posix/tests/creation_mode_tests.rs +++ b/elkodon_bb/posix/tests/creation_mode_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::creation_mode::*; use elkodon_bb_testing::assert_that; use elkodon_pal_posix::*; diff --git a/elkodon_bb/posix/tests/directory_tests.rs b/elkodon_bb/posix/tests/directory_tests.rs index dfa562e..fa64387 100644 --- a/elkodon_bb/posix/tests/directory_tests.rs +++ b/elkodon_bb/posix/tests/directory_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::byte_string::FixedSizeByteString; use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_posix::config::*; diff --git a/elkodon_bb/posix/tests/file_descriptor_set_tests.rs b/elkodon_bb/posix/tests/file_descriptor_set_tests.rs index 440be54..f6b42c5 100644 --- a/elkodon_bb/posix/tests/file_descriptor_set_tests.rs +++ b/elkodon_bb/posix/tests/file_descriptor_set_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_posix::config::*; use elkodon_bb_posix::file_descriptor::FileDescriptorBased; diff --git a/elkodon_bb/posix/tests/file_descriptor_tests.rs b/elkodon_bb/posix/tests/file_descriptor_tests.rs index 23b0a44..ac6030c 100644 --- a/elkodon_bb/posix/tests/file_descriptor_tests.rs +++ b/elkodon_bb/posix/tests/file_descriptor_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_elementary::math::ToB64; use elkodon_bb_posix::access_control_list::*; diff --git a/elkodon_bb/posix/tests/file_lock_tests.rs b/elkodon_bb/posix/tests/file_lock_tests.rs index e1b8945..1ae6ebb 100644 --- a/elkodon_bb/posix/tests/file_lock_tests.rs +++ b/elkodon_bb/posix/tests/file_lock_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_posix::config::*; use elkodon_bb_posix::file::*; diff --git a/elkodon_bb/posix/tests/file_tests.rs b/elkodon_bb/posix/tests/file_tests.rs index 7434cb9..ff7bba8 100644 --- a/elkodon_bb/posix/tests/file_tests.rs +++ b/elkodon_bb/posix/tests/file_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_posix::config::*; use elkodon_bb_posix::file::*; diff --git a/elkodon_bb/posix/tests/file_type_tests.rs b/elkodon_bb/posix/tests/file_type_tests.rs index 5eee407..a893235 100644 --- a/elkodon_bb/posix/tests/file_type_tests.rs +++ b/elkodon_bb/posix/tests/file_type_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::file_type::*; use elkodon_bb_testing::assert_that; use elkodon_pal_posix::*; diff --git a/elkodon_bb/posix/tests/group_tests.rs b/elkodon_bb/posix/tests/group_tests.rs index 10924cc..7579d0b 100644 --- a/elkodon_bb/posix/tests/group_tests.rs +++ b/elkodon_bb/posix/tests/group_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_posix::group::*; use elkodon_bb_system_types::group_name::GroupName; diff --git a/elkodon_bb/posix/tests/memory_lock_tests.rs b/elkodon_bb/posix/tests/memory_lock_tests.rs index 613bba8..e915e32 100644 --- a/elkodon_bb/posix/tests/memory_lock_tests.rs +++ b/elkodon_bb/posix/tests/memory_lock_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::memory_lock::*; use elkodon_bb_testing::{assert_that, test_requires}; use elkodon_pal_posix::posix; diff --git a/elkodon_bb/posix/tests/memory_tests.rs b/elkodon_bb/posix/tests/memory_tests.rs index f7eb7de..254081a 100644 --- a/elkodon_bb/posix/tests/memory_tests.rs +++ b/elkodon_bb/posix/tests/memory_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::memory::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/posix/tests/message_queue_tests.rs b/elkodon_bb/posix/tests/message_queue_tests.rs index 6bd94b9..0d67cfa 100644 --- a/elkodon_bb/posix/tests/message_queue_tests.rs +++ b/elkodon_bb/posix/tests/message_queue_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{ sync::atomic::{AtomicU64, Ordering}, time::Duration, diff --git a/elkodon_bb/posix/tests/metadata_tests.rs b/elkodon_bb/posix/tests/metadata_tests.rs index 69a8314..63007ed 100644 --- a/elkodon_bb/posix/tests/metadata_tests.rs +++ b/elkodon_bb/posix/tests/metadata_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_posix::config::*; use elkodon_bb_posix::creation_mode::*; diff --git a/elkodon_bb/posix/tests/mutex_tests.rs b/elkodon_bb/posix/tests/mutex_tests.rs index c83985b..41fa2e8 100644 --- a/elkodon_bb/posix/tests/mutex_tests.rs +++ b/elkodon_bb/posix/tests/mutex_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::clock::*; use elkodon_bb_posix::mutex::*; use elkodon_bb_posix::system_configuration::Feature; diff --git a/elkodon_bb/posix/tests/ownership_tests.rs b/elkodon_bb/posix/tests/ownership_tests.rs index f5e9c68..47ac5a5 100644 --- a/elkodon_bb/posix/tests/ownership_tests.rs +++ b/elkodon_bb/posix/tests/ownership_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_posix::group::*; use elkodon_bb_posix::ownership::*; diff --git a/elkodon_bb/posix/tests/permission_tests.rs b/elkodon_bb/posix/tests/permission_tests.rs index 3d74797..8284b7e 100644 --- a/elkodon_bb/posix/tests/permission_tests.rs +++ b/elkodon_bb/posix/tests/permission_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::permission::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/posix/tests/process_tests.rs b/elkodon_bb/posix/tests/process_tests.rs index a3fd9f0..6c174ec 100644 --- a/elkodon_bb/posix/tests/process_tests.rs +++ b/elkodon_bb/posix/tests/process_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::process::*; use elkodon_bb_testing::{assert_that, test_requires}; use elkodon_pal_posix::posix::{self, POSIX_SUPPORT_SCHEDULER}; diff --git a/elkodon_bb/posix/tests/read_write_mutex_tests.rs b/elkodon_bb/posix/tests/read_write_mutex_tests.rs index 30293a9..479cf9c 100644 --- a/elkodon_bb/posix/tests/read_write_mutex_tests.rs +++ b/elkodon_bb/posix/tests/read_write_mutex_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::clock::*; use elkodon_bb_posix::read_write_mutex::*; use elkodon_bb_posix::system_configuration::Feature; diff --git a/elkodon_bb/posix/tests/scheduler_tests.rs b/elkodon_bb/posix/tests/scheduler_tests.rs index 2129ece..882db5c 100644 --- a/elkodon_bb/posix/tests/scheduler_tests.rs +++ b/elkodon_bb/posix/tests/scheduler_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::config::DEFAULT_SCHEDULER; use elkodon_bb_posix::scheduler::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/posix/tests/semaphore_tests.rs b/elkodon_bb/posix/tests/semaphore_tests.rs index 18978b2..976dc15 100644 --- a/elkodon_bb/posix/tests/semaphore_tests.rs +++ b/elkodon_bb/posix/tests/semaphore_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_posix::clock::*; use elkodon_bb_posix::semaphore::*; diff --git a/elkodon_bb/posix/tests/shared_memory_tests.rs b/elkodon_bb/posix/tests/shared_memory_tests.rs index c5ee4d7..e1cd961 100644 --- a/elkodon_bb/posix/tests/shared_memory_tests.rs +++ b/elkodon_bb/posix/tests/shared_memory_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_elementary::math::ToB64; use elkodon_bb_posix::{shared_memory::*, unique_system_id::UniqueSystemId}; diff --git a/elkodon_bb/posix/tests/signal_tests.rs b/elkodon_bb/posix/tests/signal_tests.rs index a12d0e9..603ae56 100644 --- a/elkodon_bb/posix/tests/signal_tests.rs +++ b/elkodon_bb/posix/tests/signal_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::clock::*; use elkodon_bb_posix::process::*; use elkodon_bb_posix::signal::*; diff --git a/elkodon_bb/posix/tests/socket_ancillary_tests.rs b/elkodon_bb/posix/tests/socket_ancillary_tests.rs index ca93d96..3f49117 100644 --- a/elkodon_bb/posix/tests/socket_ancillary_tests.rs +++ b/elkodon_bb/posix/tests/socket_ancillary_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_elementary::unique_id::*; use elkodon_bb_posix::config::*; diff --git a/elkodon_bb/posix/tests/thread_tests.rs b/elkodon_bb/posix/tests/thread_tests.rs index e59e377..017f5ec 100644 --- a/elkodon_bb/posix/tests/thread_tests.rs +++ b/elkodon_bb/posix/tests/thread_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_posix::clock::*; use elkodon_bb_posix::thread::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/posix/tests/udp_socket_tests.rs b/elkodon_bb/posix/tests/udp_socket_tests.rs index a1cb927..41c652c 100644 --- a/elkodon_bb/posix/tests/udp_socket_tests.rs +++ b/elkodon_bb/posix/tests/udp_socket_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{ sync::atomic::{AtomicU64, Ordering}, time::{Duration, Instant}, diff --git a/elkodon_bb/posix/tests/unique_system_id_tests.rs b/elkodon_bb/posix/tests/unique_system_id_tests.rs index 431dc41..4de6fd4 100644 --- a/elkodon_bb/posix/tests/unique_system_id_tests.rs +++ b/elkodon_bb/posix/tests/unique_system_id_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::time::Duration; use elkodon_bb_posix::{process::Process, unique_system_id::*}; diff --git a/elkodon_bb/posix/tests/unix_datagram_socket_tests.rs b/elkodon_bb/posix/tests/unix_datagram_socket_tests.rs index 0885606..ff86280 100644 --- a/elkodon_bb/posix/tests/unix_datagram_socket_tests.rs +++ b/elkodon_bb/posix/tests/unix_datagram_socket_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::SemanticString; use elkodon_bb_posix::barrier::*; use elkodon_bb_posix::config::*; diff --git a/elkodon_bb/posix/tests/users_tests.rs b/elkodon_bb/posix/tests/users_tests.rs index c138755..667c91f 100644 --- a/elkodon_bb/posix/tests/users_tests.rs +++ b/elkodon_bb/posix/tests/users_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_posix::user::*; use elkodon_bb_system_types::user_name::UserName; diff --git a/elkodon_bb/system_types/src/file_name.rs b/elkodon_bb/system_types/src/file_name.rs index 3545f78..e05508b 100644 --- a/elkodon_bb/system_types/src/file_name.rs +++ b/elkodon_bb/system_types/src/file_name.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Relocatable (inter-process shared memory compatible) [`semantic_string::SemanticString`] implementation for //! [`FileName`]. All modification operations ensure that never an //! invalid file or path name can be generated. All strings have a fixed size so that the maximum diff --git a/elkodon_bb/system_types/src/file_path.rs b/elkodon_bb/system_types/src/file_path.rs index a5fafc3..6543e59 100644 --- a/elkodon_bb/system_types/src/file_path.rs +++ b/elkodon_bb/system_types/src/file_path.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Relocatable (inter-process shared memory compatible) [`SemanticString`] implementation for //! [`FilePath`]. All modification operations ensure that never an //! invalid file or path name can be generated. All strings have a fixed size so that the maximum diff --git a/elkodon_bb/system_types/src/group_name.rs b/elkodon_bb/system_types/src/group_name.rs index 48b52f8..a9aadf7 100644 --- a/elkodon_bb/system_types/src/group_name.rs +++ b/elkodon_bb/system_types/src/group_name.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Relocatable (inter-process shared memory compatible) [`semantic_string::SemanticString`] implementations for //! [`GroupName`]. //! diff --git a/elkodon_bb/system_types/src/ipv4_address.rs b/elkodon_bb/system_types/src/ipv4_address.rs index d68a20f..fb293c0 100644 --- a/elkodon_bb/system_types/src/ipv4_address.rs +++ b/elkodon_bb/system_types/src/ipv4_address.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{fmt::Debug, fmt::Display}; #[derive(Clone, Copy, PartialEq, Eq)] diff --git a/elkodon_bb/system_types/src/lib.rs b/elkodon_bb/system_types/src/lib.rs index 1dc0bba..899d940 100644 --- a/elkodon_bb/system_types/src/lib.rs +++ b/elkodon_bb/system_types/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod file_name; pub mod file_path; pub mod group_name; diff --git a/elkodon_bb/system_types/src/path.rs b/elkodon_bb/system_types/src/path.rs index 988a5c1..68e114c 100644 --- a/elkodon_bb/system_types/src/path.rs +++ b/elkodon_bb/system_types/src/path.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Relocatable (inter-process shared memory compatible) [`SemanticString`] implementation for //! [`Path`]. All modification operations ensure that never an //! invalid file or path name can be generated. All strings have a fixed size so that the maximum diff --git a/elkodon_bb/system_types/src/port.rs b/elkodon_bb/system_types/src/port.rs index eeaf89b..247c1e9 100644 --- a/elkodon_bb/system_types/src/port.rs +++ b/elkodon_bb/system_types/src/port.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::fmt::Display; #[derive(Clone, Copy, PartialEq, Eq, Debug)] diff --git a/elkodon_bb/system_types/src/user_name.rs b/elkodon_bb/system_types/src/user_name.rs index b62ad26..7481a54 100644 --- a/elkodon_bb/system_types/src/user_name.rs +++ b/elkodon_bb/system_types/src/user_name.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Relocatable (inter-process shared memory compatible) [`semantic_string::SemanticString`] implementations for //! [`UserName`]. //! diff --git a/elkodon_bb/system_types/tests/file_name_tests.rs b/elkodon_bb/system_types/tests/file_name_tests.rs index 9a72887..5ac54ea 100644 --- a/elkodon_bb/system_types/tests/file_name_tests.rs +++ b/elkodon_bb/system_types/tests/file_name_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_system_types::file_name::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/system_types/tests/file_path_tests.rs b/elkodon_bb/system_types/tests/file_path_tests.rs index adbaacb..180f51f 100644 --- a/elkodon_bb/system_types/tests/file_path_tests.rs +++ b/elkodon_bb/system_types/tests/file_path_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_system_types::file_name::FileName; use elkodon_bb_system_types::file_path::*; diff --git a/elkodon_bb/system_types/tests/group_name_tests.rs b/elkodon_bb/system_types/tests/group_name_tests.rs index 4776501..fe97764 100644 --- a/elkodon_bb/system_types/tests/group_name_tests.rs +++ b/elkodon_bb/system_types/tests/group_name_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_system_types::group_name::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/system_types/tests/ipv4_address_tests.rs b/elkodon_bb/system_types/tests/ipv4_address_tests.rs index b73c697..34f1eb0 100644 --- a/elkodon_bb/system_types/tests/ipv4_address_tests.rs +++ b/elkodon_bb/system_types/tests/ipv4_address_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_system_types::ipv4_address::{Ipv4Address, BROADCAST, LOCALHOST, UNSPECIFIED}; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/system_types/tests/path_tests.rs b/elkodon_bb/system_types/tests/path_tests.rs index efe437e..5b2970a 100644 --- a/elkodon_bb/system_types/tests/path_tests.rs +++ b/elkodon_bb/system_types/tests/path_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::byte_string::FixedSizeByteString; use elkodon_bb_container::semantic_string::*; use elkodon_bb_system_types::path::*; diff --git a/elkodon_bb/system_types/tests/port_tests.rs b/elkodon_bb/system_types/tests/port_tests.rs index 41e68e4..f85858c 100644 --- a/elkodon_bb/system_types/tests/port_tests.rs +++ b/elkodon_bb/system_types/tests/port_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_system_types::port::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/system_types/tests/user_name_tests.rs b/elkodon_bb/system_types/tests/user_name_tests.rs index 70838de..3eed3b9 100644 --- a/elkodon_bb/system_types/tests/user_name_tests.rs +++ b/elkodon_bb/system_types/tests/user_name_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_system_types::user_name::*; use elkodon_bb_testing::assert_that; diff --git a/elkodon_bb/testing/src/assert.rs b/elkodon_bb/testing/src/assert.rs index ed8d8e0..a38613a 100644 --- a/elkodon_bb/testing/src/assert.rs +++ b/elkodon_bb/testing/src/assert.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[macro_export(local_inner_macros)] macro_rules! assert_that { ($lhs:expr, eq $rhs:expr) => { diff --git a/elkodon_bb/testing/src/lib.rs b/elkodon_bb/testing/src/lib.rs index 51cc51c..11b87fe 100644 --- a/elkodon_bb/testing/src/lib.rs +++ b/elkodon_bb/testing/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[macro_use] pub mod assert; pub mod watchdog; diff --git a/elkodon_bb/testing/src/watchdog.rs b/elkodon_bb/testing/src/watchdog.rs index fa88db0..a349ce2 100644 --- a/elkodon_bb/testing/src/watchdog.rs +++ b/elkodon_bb/testing/src/watchdog.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::{sync::atomic::AtomicBool, time::Duration}; use std::{ sync::{atomic::Ordering, Arc}, diff --git a/elkodon_bb/threadsafe/src/lib.rs b/elkodon_bb/threadsafe/src/lib.rs index c5b1c95..4c0cd03 100644 --- a/elkodon_bb/threadsafe/src/lib.rs +++ b/elkodon_bb/threadsafe/src/lib.rs @@ -1 +1,13 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod trigger_queue; diff --git a/elkodon_bb/threadsafe/src/trigger_queue.rs b/elkodon_bb/threadsafe/src/trigger_queue.rs index bf13afd..362f773 100644 --- a/elkodon_bb/threadsafe/src/trigger_queue.rs +++ b/elkodon_bb/threadsafe/src/trigger_queue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A **threadsafe** queue which triggers a consumer when data arrived or triggers the producer //! when the queue is no longer full. //! diff --git a/elkodon_bb/threadsafe/tests/trigger_queue_tests.rs b/elkodon_bb/threadsafe/tests/trigger_queue_tests.rs index 51f1b6d..eb73b95 100644 --- a/elkodon_bb/threadsafe/tests/trigger_queue_tests.rs +++ b/elkodon_bb/threadsafe/tests/trigger_queue_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::sync::atomic::{AtomicU64, Ordering}; use std::thread; use std::time::Duration; diff --git a/elkodon_cal/src/communication_channel/message_queue.rs b/elkodon_cal/src/communication_channel/message_queue.rs index 030886f..7245698 100644 --- a/elkodon_cal/src/communication_channel/message_queue.rs +++ b/elkodon_cal/src/communication_channel/message_queue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! [CommunicationChannel] based on [`MessageQueueSender`] & [`MessageQueueReceiver`]. Can send and //! receive data without restrictions. diff --git a/elkodon_cal/src/communication_channel/mod.rs b/elkodon_cal/src/communication_channel/mod.rs index 6fb3f7a..0c5277d 100644 --- a/elkodon_cal/src/communication_channel/mod.rs +++ b/elkodon_cal/src/communication_channel/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A [`CommunicationChannel`] is identified by a name and allows two processes to communicate //! with each other (inter-process communication). //! diff --git a/elkodon_cal/src/communication_channel/posix_shared_memory.rs b/elkodon_cal/src/communication_channel/posix_shared_memory.rs index fc5c3aa..21bdff0 100644 --- a/elkodon_cal/src/communication_channel/posix_shared_memory.rs +++ b/elkodon_cal/src/communication_channel/posix_shared_memory.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! [`CommunicationChannel`] which is able to send and receive only [`usize`] values //! (**except** [`usize::MAX`]). //! diff --git a/elkodon_cal/src/communication_channel/process_local.rs b/elkodon_cal/src/communication_channel/process_local.rs index 17b42c2..84aaf81 100644 --- a/elkodon_cal/src/communication_channel/process_local.rs +++ b/elkodon_cal/src/communication_channel/process_local.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! **Non inter-process capable** [`CommunicationChannel`] which can be used only in a //! process-local context. diff --git a/elkodon_cal/src/communication_channel/unix_datagram.rs b/elkodon_cal/src/communication_channel/unix_datagram.rs index d04c554..8516c97 100644 --- a/elkodon_cal/src/communication_channel/unix_datagram.rs +++ b/elkodon_cal/src/communication_channel/unix_datagram.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! [CommunicationChannel] based on [`UnixDatagramSender`] & [`UnixDatagramSender`]. Can send and //! receive data without restrictions. diff --git a/elkodon_cal/src/dynamic_storage/mod.rs b/elkodon_cal/src/dynamic_storage/mod.rs index b29ef3b..82659f8 100644 --- a/elkodon_cal/src/dynamic_storage/mod.rs +++ b/elkodon_cal/src/dynamic_storage/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Traits that provide modifyable memory which can be accessed by multiple processes //! identified by a name. //! diff --git a/elkodon_cal/src/dynamic_storage/posix_shared_memory.rs b/elkodon_cal/src/dynamic_storage/posix_shared_memory.rs index ebc8487..3aec20b 100644 --- a/elkodon_cal/src/dynamic_storage/posix_shared_memory.rs +++ b/elkodon_cal/src/dynamic_storage/posix_shared_memory.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! [`SharedMemory`] based implementation of a [`DynamicStorage`]. //! //! # Example diff --git a/elkodon_cal/src/dynamic_storage/process_local.rs b/elkodon_cal/src/dynamic_storage/process_local.rs index 220a1a3..1ed408c 100644 --- a/elkodon_cal/src/dynamic_storage/process_local.rs +++ b/elkodon_cal/src/dynamic_storage/process_local.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Process local implementation of [`DynamicStorage`]. **Cannot be used in an inter-process.** //! context. //! diff --git a/elkodon_cal/src/event/mod.rs b/elkodon_cal/src/event/mod.rs index ecd8d62..7c90499 100644 --- a/elkodon_cal/src/event/mod.rs +++ b/elkodon_cal/src/event/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod process_local; pub mod unix_datagram_socket; diff --git a/elkodon_cal/src/event/process_local.rs b/elkodon_cal/src/event/process_local.rs index d2259dd..1d23c0a 100644 --- a/elkodon_cal/src/event/process_local.rs +++ b/elkodon_cal/src/event/process_local.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{ any::Any, collections::HashMap, diff --git a/elkodon_cal/src/event/unix_datagram_socket.rs b/elkodon_cal/src/event/unix_datagram_socket.rs index bbeb4ac..ec5a099 100644 --- a/elkodon_cal/src/event/unix_datagram_socket.rs +++ b/elkodon_cal/src/event/unix_datagram_socket.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{marker::PhantomData, mem::MaybeUninit}; pub use crate::event::*; diff --git a/elkodon_cal/src/hash/mod.rs b/elkodon_cal/src/hash/mod.rs index 3542e09..2d91a93 100644 --- a/elkodon_cal/src/hash/mod.rs +++ b/elkodon_cal/src/hash/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Creates hashes from arbitrary byte slices. //! //! # Example diff --git a/elkodon_cal/src/hash/sha1.rs b/elkodon_cal/src/hash/sha1.rs index 2071cb7..e7e4433 100644 --- a/elkodon_cal/src/hash/sha1.rs +++ b/elkodon_cal/src/hash/sha1.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Creates a Sha1 [`Hash`]. **Shall not be used for security critical use cases.** use crate::hash::*; diff --git a/elkodon_cal/src/hash/sliced_sha1.rs b/elkodon_cal/src/hash/sliced_sha1.rs index 53a3937..b4629ce 100644 --- a/elkodon_cal/src/hash/sliced_sha1.rs +++ b/elkodon_cal/src/hash/sliced_sha1.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Creates a Sha1 [`Hash`]. **Shall not be used for security critical use cases.** use crate::hash::*; diff --git a/elkodon_cal/src/lib.rs b/elkodon_cal/src/lib.rs index 9fe8fb3..d5f6b11 100644 --- a/elkodon_cal/src/lib.rs +++ b/elkodon_cal/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod communication_channel; pub mod dynamic_storage; pub mod event; diff --git a/elkodon_cal/src/named_concept.rs b/elkodon_cal/src/named_concept.rs index e701b94..5fa3c7b 100644 --- a/elkodon_cal/src/named_concept.rs +++ b/elkodon_cal/src/named_concept.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::fmt::Debug; use elkodon_bb_container::semantic_string::SemanticString; diff --git a/elkodon_cal/src/reactor/mod.rs b/elkodon_cal/src/reactor/mod.rs index 0bd5458..967c43e 100644 --- a/elkodon_cal/src/reactor/mod.rs +++ b/elkodon_cal/src/reactor/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod posix_select; use std::{fmt::Debug, time::Duration}; diff --git a/elkodon_cal/src/reactor/posix_select.rs b/elkodon_cal/src/reactor/posix_select.rs index ecfc333..80a2d37 100644 --- a/elkodon_cal/src/reactor/posix_select.rs +++ b/elkodon_cal/src/reactor/posix_select.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{fmt::Debug, time::Duration}; use elkodon_bb_log::fail; diff --git a/elkodon_cal/src/serialize/cdr.rs b/elkodon_cal/src/serialize/cdr.rs index a5a84dd..5912404 100644 --- a/elkodon_cal/src/serialize/cdr.rs +++ b/elkodon_cal/src/serialize/cdr.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Implements [`Serialize`] for the Common Data Representation (cdr), //! see: . diff --git a/elkodon_cal/src/serialize/mod.rs b/elkodon_cal/src/serialize/mod.rs index 6b0a7ff..61ddbf4 100644 --- a/elkodon_cal/src/serialize/mod.rs +++ b/elkodon_cal/src/serialize/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Simplifies the kind of serialization which shall be used. The implementation has two methods //! * [`Serialize::serialize()`] - serialize a given object //! * [`Serialize::deserialize()`] - deserialize a given byte reference into the source object diff --git a/elkodon_cal/src/serialize/toml.rs b/elkodon_cal/src/serialize/toml.rs index b8074b8..052c82b 100644 --- a/elkodon_cal/src/serialize/toml.rs +++ b/elkodon_cal/src/serialize/toml.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Implements [`Serialize`] for TOML files. use elkodon_bb_log::fail; diff --git a/elkodon_cal/src/shared_memory/mod.rs b/elkodon_cal/src/shared_memory/mod.rs index 4b0e9df..ff534d6 100644 --- a/elkodon_cal/src/shared_memory/mod.rs +++ b/elkodon_cal/src/shared_memory/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A [`SharedMemory`] is identified by a name and allows two processes to share memory with each //! other (inter-process memory). //! diff --git a/elkodon_cal/src/shared_memory/posix.rs b/elkodon_cal/src/shared_memory/posix.rs index 8fe4bf4..3f0693f 100644 --- a/elkodon_cal/src/shared_memory/posix.rs +++ b/elkodon_cal/src/shared_memory/posix.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::fmt::Debug; use std::marker::PhantomData; use std::ptr::NonNull; diff --git a/elkodon_cal/src/shared_memory/process_local.rs b/elkodon_cal/src/shared_memory/process_local.rs index 9917575..0ef222e 100644 --- a/elkodon_cal/src/shared_memory/process_local.rs +++ b/elkodon_cal/src/shared_memory/process_local.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub use crate::shared_memory::*; use crate::static_storage::file::NamedConceptConfiguration; use elkodon_bb_elementary::allocator::BaseAllocator; diff --git a/elkodon_cal/src/shared_memory_directory/decision_counter.rs b/elkodon_cal/src/shared_memory_directory/decision_counter.rs index 8f704fe..8eec299 100644 --- a/elkodon_cal/src/shared_memory_directory/decision_counter.rs +++ b/elkodon_cal/src/shared_memory_directory/decision_counter.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::sync::atomic::{AtomicU64, Ordering}; const UNDECIDED: u64 = u64::MAX; diff --git a/elkodon_cal/src/shared_memory_directory/file.rs b/elkodon_cal/src/shared_memory_directory/file.rs index 9cc3e6e..d1b5ed3 100644 --- a/elkodon_cal/src/shared_memory_directory/file.rs +++ b/elkodon_cal/src/shared_memory_directory/file.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_log::fail; use elkodon_bb_system_types::file_name::FileName; use std::{alloc::Layout, fmt::Debug}; diff --git a/elkodon_cal/src/shared_memory_directory/file_reference_set.rs b/elkodon_cal/src/shared_memory_directory/file_reference_set.rs index 849873a..5136f6f 100644 --- a/elkodon_cal/src/shared_memory_directory/file_reference_set.rs +++ b/elkodon_cal/src/shared_memory_directory/file_reference_set.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::shared_memory_directory::decision_counter::DecisionCounter; use crate::shared_memory_directory::file::File; use crate::shared_memory_directory::reference_counter::ReferenceCounter; diff --git a/elkodon_cal/src/shared_memory_directory/mod.rs b/elkodon_cal/src/shared_memory_directory/mod.rs index a3dcb49..c0932a8 100644 --- a/elkodon_cal/src/shared_memory_directory/mod.rs +++ b/elkodon_cal/src/shared_memory_directory/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + mod decision_counter; pub mod file; mod file_reference_set; diff --git a/elkodon_cal/src/shared_memory_directory/reference_counter.rs b/elkodon_cal/src/shared_memory_directory/reference_counter.rs index 0330722..2f802f4 100644 --- a/elkodon_cal/src/shared_memory_directory/reference_counter.rs +++ b/elkodon_cal/src/shared_memory_directory/reference_counter.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::sync::atomic::{AtomicU64, Ordering}; struct ReferenceCounterDetails { diff --git a/elkodon_cal/src/shm_allocator/bump_allocator.rs b/elkodon_cal/src/shm_allocator/bump_allocator.rs index c01f889..a128b4a 100644 --- a/elkodon_cal/src/shm_allocator/bump_allocator.rs +++ b/elkodon_cal/src/shm_allocator/bump_allocator.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::shm_allocator::*; use elkodon_bb_log::fail; diff --git a/elkodon_cal/src/shm_allocator/mod.rs b/elkodon_cal/src/shm_allocator/mod.rs index 5a948d9..98f7566 100644 --- a/elkodon_cal/src/shm_allocator/mod.rs +++ b/elkodon_cal/src/shm_allocator/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod bump_allocator; pub mod pool_allocator; diff --git a/elkodon_cal/src/shm_allocator/pool_allocator.rs b/elkodon_cal/src/shm_allocator/pool_allocator.rs index dcee437..38c9f75 100644 --- a/elkodon_cal/src/shm_allocator/pool_allocator.rs +++ b/elkodon_cal/src/shm_allocator/pool_allocator.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{alloc::Layout, ptr::NonNull}; use crate::shm_allocator::{ShmAllocator, ShmAllocatorConfig}; diff --git a/elkodon_cal/src/static_storage/file.rs b/elkodon_cal/src/static_storage/file.rs index ba34cc7..0c956cf 100644 --- a/elkodon_cal/src/static_storage/file.rs +++ b/elkodon_cal/src/static_storage/file.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! File based implementation of [`StaticStorage`]. //! //! # Example diff --git a/elkodon_cal/src/static_storage/mod.rs b/elkodon_cal/src/static_storage/mod.rs index 31b6da2..9541431 100644 --- a/elkodon_cal/src/static_storage/mod.rs +++ b/elkodon_cal/src/static_storage/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Traits that provide read-only memory which can be accessed by multiple processes //! identified by a name. diff --git a/elkodon_cal/src/static_storage/process_local.rs b/elkodon_cal/src/static_storage/process_local.rs index 55d8525..e62c6c8 100644 --- a/elkodon_cal/src/static_storage/process_local.rs +++ b/elkodon_cal/src/static_storage/process_local.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Process local implementation of [`StaticStorage`]. Cannot be used in an //! inter-process context. //! diff --git a/elkodon_cal/src/zero_copy_connection/mod.rs b/elkodon_cal/src/zero_copy_connection/mod.rs index e54368b..d81883f 100644 --- a/elkodon_cal/src/zero_copy_connection/mod.rs +++ b/elkodon_cal/src/zero_copy_connection/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod posix_shared_memory; pub mod process_local; diff --git a/elkodon_cal/src/zero_copy_connection/posix_shared_memory.rs b/elkodon_cal/src/zero_copy_connection/posix_shared_memory.rs index 4722e2c..6e57ec3 100644 --- a/elkodon_cal/src/zero_copy_connection/posix_shared_memory.rs +++ b/elkodon_cal/src/zero_copy_connection/posix_shared_memory.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::cell::UnsafeCell; use std::fmt::Debug; use std::ptr::NonNull; diff --git a/elkodon_cal/src/zero_copy_connection/process_local.rs b/elkodon_cal/src/zero_copy_connection/process_local.rs index eae9075..472d993 100644 --- a/elkodon_cal/src/zero_copy_connection/process_local.rs +++ b/elkodon_cal/src/zero_copy_connection/process_local.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::named_concept::*; pub use crate::zero_copy_connection::*; use elkodon_bb_lock_free::spsc::{ diff --git a/elkodon_cal/tests/communication_channel_trait_tests.rs b/elkodon_cal/tests/communication_channel_trait_tests.rs index 9388692..2b23be6 100644 --- a/elkodon_cal/tests/communication_channel_trait_tests.rs +++ b/elkodon_cal/tests/communication_channel_trait_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod communication_channel { use elkodon_bb_container::semantic_string::*; diff --git a/elkodon_cal/tests/dynamic_storage_trait_tests.rs b/elkodon_cal/tests/dynamic_storage_trait_tests.rs index 89f18f6..a83a98a 100644 --- a/elkodon_cal/tests/dynamic_storage_trait_tests.rs +++ b/elkodon_cal/tests/dynamic_storage_trait_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod dynamic_storage { use elkodon_bb_container::semantic_string::*; diff --git a/elkodon_cal/tests/event_tests.rs b/elkodon_cal/tests/event_tests.rs index f2782e5..ebdc2ae 100644 --- a/elkodon_cal/tests/event_tests.rs +++ b/elkodon_cal/tests/event_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod event { use std::sync::atomic::{AtomicU64, Ordering}; diff --git a/elkodon_cal/tests/reactor_tests.rs b/elkodon_cal/tests/reactor_tests.rs index ddce693..69a2cc8 100644 --- a/elkodon_cal/tests/reactor_tests.rs +++ b/elkodon_cal/tests/reactor_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod reactor { use elkodon_bb_container::semantic_string::*; diff --git a/elkodon_cal/tests/serialize_trait_tests.rs b/elkodon_cal/tests/serialize_trait_tests.rs index 05341a7..9dc9389 100644 --- a/elkodon_cal/tests/serialize_trait_tests.rs +++ b/elkodon_cal/tests/serialize_trait_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod serialize { use elkodon_bb_testing::assert_that; diff --git a/elkodon_cal/tests/shared_memory_directory_tests.rs b/elkodon_cal/tests/shared_memory_directory_tests.rs index 814a410..0f1d476 100644 --- a/elkodon_cal/tests/shared_memory_directory_tests.rs +++ b/elkodon_cal/tests/shared_memory_directory_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + mod shared_memory_directory { use std::alloc::Layout; use std::sync::Barrier; diff --git a/elkodon_cal/tests/shared_memory_trait_tests.rs b/elkodon_cal/tests/shared_memory_trait_tests.rs index 60e41f4..2545875 100644 --- a/elkodon_cal/tests/shared_memory_trait_tests.rs +++ b/elkodon_cal/tests/shared_memory_trait_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod shared_memory { use std::alloc::Layout; diff --git a/elkodon_cal/tests/shm_allocator_trait_tests.rs b/elkodon_cal/tests/shm_allocator_trait_tests.rs index 0846d8e..f022bda 100644 --- a/elkodon_cal/tests/shm_allocator_trait_tests.rs +++ b/elkodon_cal/tests/shm_allocator_trait_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod shm_allocator { use elkodon_bb_elementary::math::round_to_pow2; diff --git a/elkodon_cal/tests/static_storage_file_tests.rs b/elkodon_cal/tests/static_storage_file_tests.rs index 6e2ac32..9e352cb 100644 --- a/elkodon_cal/tests/static_storage_file_tests.rs +++ b/elkodon_cal/tests/static_storage_file_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon_bb_container::semantic_string::*; use elkodon_bb_posix::config::*; use elkodon_bb_posix::directory::Directory; diff --git a/elkodon_cal/tests/static_storage_trait_tests.rs b/elkodon_cal/tests/static_storage_trait_tests.rs index 2f8e525..5f0a27d 100644 --- a/elkodon_cal/tests/static_storage_trait_tests.rs +++ b/elkodon_cal/tests/static_storage_trait_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod static_storage { use elkodon_bb_container::semantic_string::*; diff --git a/elkodon_cal/tests/zero_copy_connection_trait_tests.rs b/elkodon_cal/tests/zero_copy_connection_trait_tests.rs index 7b69523..7f450ac 100644 --- a/elkodon_cal/tests/zero_copy_connection_trait_tests.rs +++ b/elkodon_cal/tests/zero_copy_connection_trait_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[generic_tests::define] mod zero_copy_connection { use std::time::{Duration, Instant}; diff --git a/elkodon_pal/concurrency_primitives/src/barrier.rs b/elkodon_pal/concurrency_primitives/src/barrier.rs index b27dec4..603fc34 100644 --- a/elkodon_pal/concurrency_primitives/src/barrier.rs +++ b/elkodon_pal/concurrency_primitives/src/barrier.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::{ hint::spin_loop, sync::atomic::{AtomicU32, Ordering}, diff --git a/elkodon_pal/concurrency_primitives/src/condition_variable.rs b/elkodon_pal/concurrency_primitives/src/condition_variable.rs index 8fa65c2..32b10b8 100644 --- a/elkodon_pal/concurrency_primitives/src/condition_variable.rs +++ b/elkodon_pal/concurrency_primitives/src/condition_variable.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::sync::atomic::{AtomicU32, Ordering}; pub use crate::mutex::Mutex; diff --git a/elkodon_pal/concurrency_primitives/src/lib.rs b/elkodon_pal/concurrency_primitives/src/lib.rs index ff93c41..ea12bd3 100644 --- a/elkodon_pal/concurrency_primitives/src/lib.rs +++ b/elkodon_pal/concurrency_primitives/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![no_std] const SPIN_REPETITIONS: u64 = 10000; diff --git a/elkodon_pal/concurrency_primitives/src/mutex.rs b/elkodon_pal/concurrency_primitives/src/mutex.rs index 4248454..ce92953 100644 --- a/elkodon_pal/concurrency_primitives/src/mutex.rs +++ b/elkodon_pal/concurrency_primitives/src/mutex.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::{ hint::spin_loop, sync::atomic::{AtomicU32, Ordering}, diff --git a/elkodon_pal/concurrency_primitives/src/rwlock.rs b/elkodon_pal/concurrency_primitives/src/rwlock.rs index 30defe8..4e74a43 100644 --- a/elkodon_pal/concurrency_primitives/src/rwlock.rs +++ b/elkodon_pal/concurrency_primitives/src/rwlock.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::{ hint::spin_loop, sync::atomic::{AtomicU32, Ordering}, diff --git a/elkodon_pal/concurrency_primitives/src/semaphore.rs b/elkodon_pal/concurrency_primitives/src/semaphore.rs index d801132..70ff2ac 100644 --- a/elkodon_pal/concurrency_primitives/src/semaphore.rs +++ b/elkodon_pal/concurrency_primitives/src/semaphore.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::{ hint::spin_loop, sync::atomic::{AtomicU32, Ordering}, diff --git a/elkodon_pal/concurrency_primitives/tests/barrier_tests.rs b/elkodon_pal/concurrency_primitives/tests/barrier_tests.rs index e3a1a2c..ce21fdd 100644 --- a/elkodon_pal/concurrency_primitives/tests/barrier_tests.rs +++ b/elkodon_pal/concurrency_primitives/tests/barrier_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::sync::atomic::{AtomicI32, Ordering}; use elkodon_bb_testing::assert_that; diff --git a/elkodon_pal/concurrency_primitives/tests/condition_variable_tests.rs b/elkodon_pal/concurrency_primitives/tests/condition_variable_tests.rs index 2b2c775..c119a52 100644 --- a/elkodon_pal/concurrency_primitives/tests/condition_variable_tests.rs +++ b/elkodon_pal/concurrency_primitives/tests/condition_variable_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{ hint::spin_loop, sync::atomic::{AtomicU32, Ordering}, diff --git a/elkodon_pal/concurrency_primitives/tests/mutex_tests.rs b/elkodon_pal/concurrency_primitives/tests/mutex_tests.rs index 20451e9..8c820e7 100644 --- a/elkodon_pal/concurrency_primitives/tests/mutex_tests.rs +++ b/elkodon_pal/concurrency_primitives/tests/mutex_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{ sync::atomic::{AtomicU32, Ordering}, time::{Duration, Instant}, diff --git a/elkodon_pal/concurrency_primitives/tests/rwlock_tests.rs b/elkodon_pal/concurrency_primitives/tests/rwlock_tests.rs index b15c1da..8a97184 100644 --- a/elkodon_pal/concurrency_primitives/tests/rwlock_tests.rs +++ b/elkodon_pal/concurrency_primitives/tests/rwlock_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{ sync::atomic::{AtomicU32, Ordering}, time::Duration, diff --git a/elkodon_pal/concurrency_primitives/tests/semaphore_tests.rs b/elkodon_pal/concurrency_primitives/tests/semaphore_tests.rs index 7c9f3d6..a70e6e2 100644 --- a/elkodon_pal/concurrency_primitives/tests/semaphore_tests.rs +++ b/elkodon_pal/concurrency_primitives/tests/semaphore_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::{ sync::atomic::{AtomicU32, Ordering}, time::Duration, diff --git a/elkodon_pal/posix/build.rs b/elkodon_pal/posix/build.rs index 538d9c2..f661a0d 100644 --- a/elkodon_pal/posix/build.rs +++ b/elkodon_pal/posix/build.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + extern crate bindgen; extern crate cc; diff --git a/elkodon_pal/posix/src/freebsd/acl.rs b/elkodon_pal/posix/src/freebsd/acl.rs index d007ee2..d8642e8 100644 --- a/elkodon_pal/posix/src/freebsd/acl.rs +++ b/elkodon_pal/posix/src/freebsd/acl.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/constants.rs b/elkodon_pal/posix/src/freebsd/constants.rs index 856e9f6..7052452 100644 --- a/elkodon_pal/posix/src/freebsd/constants.rs +++ b/elkodon_pal/posix/src/freebsd/constants.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/dirent.rs b/elkodon_pal/posix/src/freebsd/dirent.rs index 770f4d5..f9e1ace 100644 --- a/elkodon_pal/posix/src/freebsd/dirent.rs +++ b/elkodon_pal/posix/src/freebsd/dirent.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/errno.rs b/elkodon_pal/posix/src/freebsd/errno.rs index 7a8226e..e0e0148 100644 --- a/elkodon_pal/posix/src/freebsd/errno.rs +++ b/elkodon_pal/posix/src/freebsd/errno.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/freebsd/fcntl.rs b/elkodon_pal/posix/src/freebsd/fcntl.rs index f429846..b03fe3b 100644 --- a/elkodon_pal/posix/src/freebsd/fcntl.rs +++ b/elkodon_pal/posix/src/freebsd/fcntl.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/inet.rs b/elkodon_pal/posix/src/freebsd/inet.rs index bfe5547..abb6c94 100644 --- a/elkodon_pal/posix/src/freebsd/inet.rs +++ b/elkodon_pal/posix/src/freebsd/inet.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/mman.rs b/elkodon_pal/posix/src/freebsd/mman.rs index 12ca7d8..8587121 100644 --- a/elkodon_pal/posix/src/freebsd/mman.rs +++ b/elkodon_pal/posix/src/freebsd/mman.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/mod.rs b/elkodon_pal/posix/src/freebsd/mod.rs index fb70cf9..55b8b45 100644 --- a/elkodon_pal/posix/src/freebsd/mod.rs +++ b/elkodon_pal/posix/src/freebsd/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod acl; pub mod constants; pub mod dirent; diff --git a/elkodon_pal/posix/src/freebsd/mqueue.rs b/elkodon_pal/posix/src/freebsd/mqueue.rs index f6aadc9..34e2e52 100644 --- a/elkodon_pal/posix/src/freebsd/mqueue.rs +++ b/elkodon_pal/posix/src/freebsd/mqueue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/pthread.rs b/elkodon_pal/posix/src/freebsd/pthread.rs index b211ab7..c17bb74 100644 --- a/elkodon_pal/posix/src/freebsd/pthread.rs +++ b/elkodon_pal/posix/src/freebsd/pthread.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/pwd.rs b/elkodon_pal/posix/src/freebsd/pwd.rs index 16bfade..72d1b37 100644 --- a/elkodon_pal/posix/src/freebsd/pwd.rs +++ b/elkodon_pal/posix/src/freebsd/pwd.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/freebsd/resource.rs b/elkodon_pal/posix/src/freebsd/resource.rs index 6b27628..398e4e2 100644 --- a/elkodon_pal/posix/src/freebsd/resource.rs +++ b/elkodon_pal/posix/src/freebsd/resource.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/sched.rs b/elkodon_pal/posix/src/freebsd/sched.rs index 6f2acd2..bad7aba 100644 --- a/elkodon_pal/posix/src/freebsd/sched.rs +++ b/elkodon_pal/posix/src/freebsd/sched.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, dead_code)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/select.rs b/elkodon_pal/posix/src/freebsd/select.rs index 65a35bb..f64baca 100644 --- a/elkodon_pal/posix/src/freebsd/select.rs +++ b/elkodon_pal/posix/src/freebsd/select.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/semaphore.rs b/elkodon_pal/posix/src/freebsd/semaphore.rs index 339f7c8..d783273 100644 --- a/elkodon_pal/posix/src/freebsd/semaphore.rs +++ b/elkodon_pal/posix/src/freebsd/semaphore.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/signal.rs b/elkodon_pal/posix/src/freebsd/signal.rs index ce9bfad..1a20462 100644 --- a/elkodon_pal/posix/src/freebsd/signal.rs +++ b/elkodon_pal/posix/src/freebsd/signal.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/freebsd/socket.rs b/elkodon_pal/posix/src/freebsd/socket.rs index 71dec72..ea0a4d7 100644 --- a/elkodon_pal/posix/src/freebsd/socket.rs +++ b/elkodon_pal/posix/src/freebsd/socket.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/stat.rs b/elkodon_pal/posix/src/freebsd/stat.rs index 5b16512..74d0324 100644 --- a/elkodon_pal/posix/src/freebsd/stat.rs +++ b/elkodon_pal/posix/src/freebsd/stat.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/stdio.rs b/elkodon_pal/posix/src/freebsd/stdio.rs index 6c28ab9..908aa2f 100644 --- a/elkodon_pal/posix/src/freebsd/stdio.rs +++ b/elkodon_pal/posix/src/freebsd/stdio.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/stdlib.rs b/elkodon_pal/posix/src/freebsd/stdlib.rs index ccc09fd..273c1cc 100644 --- a/elkodon_pal/posix/src/freebsd/stdlib.rs +++ b/elkodon_pal/posix/src/freebsd/stdlib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/string.rs b/elkodon_pal/posix/src/freebsd/string.rs index c5aa489..bbce857 100644 --- a/elkodon_pal/posix/src/freebsd/string.rs +++ b/elkodon_pal/posix/src/freebsd/string.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/support.rs b/elkodon_pal/posix/src/freebsd/support.rs index 4ca88e0..9a68fa9 100644 --- a/elkodon_pal/posix/src/freebsd/support.rs +++ b/elkodon_pal/posix/src/freebsd/support.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub const POSIX_SUPPORT_ACL: bool = false; pub const POSIX_SUPPORT_NAMED_SEMAPHORE: bool = true; pub const POSIX_SUPPORT_PERSISTENT_SHARED_MEMORY: bool = true; diff --git a/elkodon_pal/posix/src/freebsd/time.rs b/elkodon_pal/posix/src/freebsd/time.rs index 18e2e34..0efc126 100644 --- a/elkodon_pal/posix/src/freebsd/time.rs +++ b/elkodon_pal/posix/src/freebsd/time.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/types.rs b/elkodon_pal/posix/src/freebsd/types.rs index 5c81338..c51fd93 100644 --- a/elkodon_pal/posix/src/freebsd/types.rs +++ b/elkodon_pal/posix/src/freebsd/types.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/freebsd/unistd.rs b/elkodon_pal/posix/src/freebsd/unistd.rs index f963018..ff4a4f2 100644 --- a/elkodon_pal/posix/src/freebsd/unistd.rs +++ b/elkodon_pal/posix/src/freebsd/unistd.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/lib.rs b/elkodon_pal/posix/src/lib.rs index 620b8a3..a7e6bec 100644 --- a/elkodon_pal/posix/src/lib.rs +++ b/elkodon_pal/posix/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub(crate) mod internal { #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] diff --git a/elkodon_pal/posix/src/linux/acl.rs b/elkodon_pal/posix/src/linux/acl.rs index 90a5d0b..e77165b 100644 --- a/elkodon_pal/posix/src/linux/acl.rs +++ b/elkodon_pal/posix/src/linux/acl.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/constants.rs b/elkodon_pal/posix/src/linux/constants.rs index ce51cbb..273f78d 100644 --- a/elkodon_pal/posix/src/linux/constants.rs +++ b/elkodon_pal/posix/src/linux/constants.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/dirent.rs b/elkodon_pal/posix/src/linux/dirent.rs index 6c054a7..2db0aa9 100644 --- a/elkodon_pal/posix/src/linux/dirent.rs +++ b/elkodon_pal/posix/src/linux/dirent.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/errno.rs b/elkodon_pal/posix/src/linux/errno.rs index 476b5f5..7435a47 100644 --- a/elkodon_pal/posix/src/linux/errno.rs +++ b/elkodon_pal/posix/src/linux/errno.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/linux/fcntl.rs b/elkodon_pal/posix/src/linux/fcntl.rs index 1b5ead2..db55ef1 100644 --- a/elkodon_pal/posix/src/linux/fcntl.rs +++ b/elkodon_pal/posix/src/linux/fcntl.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/inet.rs b/elkodon_pal/posix/src/linux/inet.rs index bfe5547..abb6c94 100644 --- a/elkodon_pal/posix/src/linux/inet.rs +++ b/elkodon_pal/posix/src/linux/inet.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/mman.rs b/elkodon_pal/posix/src/linux/mman.rs index 3e55265..653c840 100644 --- a/elkodon_pal/posix/src/linux/mman.rs +++ b/elkodon_pal/posix/src/linux/mman.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/mod.rs b/elkodon_pal/posix/src/linux/mod.rs index b03e17d..7914004 100644 --- a/elkodon_pal/posix/src/linux/mod.rs +++ b/elkodon_pal/posix/src/linux/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod acl; pub mod constants; pub mod dirent; diff --git a/elkodon_pal/posix/src/linux/mqueue.rs b/elkodon_pal/posix/src/linux/mqueue.rs index 6f80fed..a057aa0 100644 --- a/elkodon_pal/posix/src/linux/mqueue.rs +++ b/elkodon_pal/posix/src/linux/mqueue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/pthread.rs b/elkodon_pal/posix/src/linux/pthread.rs index 4c4fe4f..b93496c 100644 --- a/elkodon_pal/posix/src/linux/pthread.rs +++ b/elkodon_pal/posix/src/linux/pthread.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/pwd.rs b/elkodon_pal/posix/src/linux/pwd.rs index 16bfade..72d1b37 100644 --- a/elkodon_pal/posix/src/linux/pwd.rs +++ b/elkodon_pal/posix/src/linux/pwd.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/linux/resource.rs b/elkodon_pal/posix/src/linux/resource.rs index 6b27628..398e4e2 100644 --- a/elkodon_pal/posix/src/linux/resource.rs +++ b/elkodon_pal/posix/src/linux/resource.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/sched.rs b/elkodon_pal/posix/src/linux/sched.rs index 6f2acd2..bad7aba 100644 --- a/elkodon_pal/posix/src/linux/sched.rs +++ b/elkodon_pal/posix/src/linux/sched.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, dead_code)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/select.rs b/elkodon_pal/posix/src/linux/select.rs index dc3f422..0c81e2f 100644 --- a/elkodon_pal/posix/src/linux/select.rs +++ b/elkodon_pal/posix/src/linux/select.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/semaphore.rs b/elkodon_pal/posix/src/linux/semaphore.rs index d493be1..8be3653 100644 --- a/elkodon_pal/posix/src/linux/semaphore.rs +++ b/elkodon_pal/posix/src/linux/semaphore.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/signal.rs b/elkodon_pal/posix/src/linux/signal.rs index ce9bfad..1a20462 100644 --- a/elkodon_pal/posix/src/linux/signal.rs +++ b/elkodon_pal/posix/src/linux/signal.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/linux/socket.rs b/elkodon_pal/posix/src/linux/socket.rs index 28a0f1f..b6a965e 100644 --- a/elkodon_pal/posix/src/linux/socket.rs +++ b/elkodon_pal/posix/src/linux/socket.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/stat.rs b/elkodon_pal/posix/src/linux/stat.rs index 5b16512..74d0324 100644 --- a/elkodon_pal/posix/src/linux/stat.rs +++ b/elkodon_pal/posix/src/linux/stat.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/stdio.rs b/elkodon_pal/posix/src/linux/stdio.rs index 6c28ab9..908aa2f 100644 --- a/elkodon_pal/posix/src/linux/stdio.rs +++ b/elkodon_pal/posix/src/linux/stdio.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/stdlib.rs b/elkodon_pal/posix/src/linux/stdlib.rs index ccc09fd..273c1cc 100644 --- a/elkodon_pal/posix/src/linux/stdlib.rs +++ b/elkodon_pal/posix/src/linux/stdlib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/string.rs b/elkodon_pal/posix/src/linux/string.rs index c5aa489..bbce857 100644 --- a/elkodon_pal/posix/src/linux/string.rs +++ b/elkodon_pal/posix/src/linux/string.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/support.rs b/elkodon_pal/posix/src/linux/support.rs index e85ae18..27484e8 100644 --- a/elkodon_pal/posix/src/linux/support.rs +++ b/elkodon_pal/posix/src/linux/support.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub const POSIX_SUPPORT_ACL: bool = true; pub const POSIX_SUPPORT_NAMED_SEMAPHORE: bool = true; pub const POSIX_SUPPORT_PERSISTENT_SHARED_MEMORY: bool = true; diff --git a/elkodon_pal/posix/src/linux/time.rs b/elkodon_pal/posix/src/linux/time.rs index 18e2e34..0efc126 100644 --- a/elkodon_pal/posix/src/linux/time.rs +++ b/elkodon_pal/posix/src/linux/time.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/types.rs b/elkodon_pal/posix/src/linux/types.rs index f061643..ab9cc66 100644 --- a/elkodon_pal/posix/src/linux/types.rs +++ b/elkodon_pal/posix/src/linux/types.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/linux/unistd.rs b/elkodon_pal/posix/src/linux/unistd.rs index f963018..ff4a4f2 100644 --- a/elkodon_pal/posix/src/linux/unistd.rs +++ b/elkodon_pal/posix/src/linux/unistd.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/acl.rs b/elkodon_pal/posix/src/macos/acl.rs index ce476e1..267b9ad 100644 --- a/elkodon_pal/posix/src/macos/acl.rs +++ b/elkodon_pal/posix/src/macos/acl.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/constants.rs b/elkodon_pal/posix/src/macos/constants.rs index 5386df5..dfdd905 100644 --- a/elkodon_pal/posix/src/macos/constants.rs +++ b/elkodon_pal/posix/src/macos/constants.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/dirent.rs b/elkodon_pal/posix/src/macos/dirent.rs index 191ddd3..651d24a 100644 --- a/elkodon_pal/posix/src/macos/dirent.rs +++ b/elkodon_pal/posix/src/macos/dirent.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/errno.rs b/elkodon_pal/posix/src/macos/errno.rs index 180e559..5ddff49 100644 --- a/elkodon_pal/posix/src/macos/errno.rs +++ b/elkodon_pal/posix/src/macos/errno.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/macos/fcntl.rs b/elkodon_pal/posix/src/macos/fcntl.rs index f429846..b03fe3b 100644 --- a/elkodon_pal/posix/src/macos/fcntl.rs +++ b/elkodon_pal/posix/src/macos/fcntl.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/inet.rs b/elkodon_pal/posix/src/macos/inet.rs index b7dcac1..f0a1bce 100644 --- a/elkodon_pal/posix/src/macos/inet.rs +++ b/elkodon_pal/posix/src/macos/inet.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/mman.rs b/elkodon_pal/posix/src/macos/mman.rs index 292bccc..0f1168a 100644 --- a/elkodon_pal/posix/src/macos/mman.rs +++ b/elkodon_pal/posix/src/macos/mman.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/mod.rs b/elkodon_pal/posix/src/macos/mod.rs index 5b79d05..7352613 100644 --- a/elkodon_pal/posix/src/macos/mod.rs +++ b/elkodon_pal/posix/src/macos/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod acl; pub mod constants; pub mod dirent; diff --git a/elkodon_pal/posix/src/macos/mqueue.rs b/elkodon_pal/posix/src/macos/mqueue.rs index d11b1e6..ab78ec3 100644 --- a/elkodon_pal/posix/src/macos/mqueue.rs +++ b/elkodon_pal/posix/src/macos/mqueue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/pthread.rs b/elkodon_pal/posix/src/macos/pthread.rs index 05f7d69..ab73250 100644 --- a/elkodon_pal/posix/src/macos/pthread.rs +++ b/elkodon_pal/posix/src/macos/pthread.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/macos/pwd.rs b/elkodon_pal/posix/src/macos/pwd.rs index 16bfade..72d1b37 100644 --- a/elkodon_pal/posix/src/macos/pwd.rs +++ b/elkodon_pal/posix/src/macos/pwd.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/macos/resource.rs b/elkodon_pal/posix/src/macos/resource.rs index 6b27628..398e4e2 100644 --- a/elkodon_pal/posix/src/macos/resource.rs +++ b/elkodon_pal/posix/src/macos/resource.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/sched.rs b/elkodon_pal/posix/src/macos/sched.rs index 141ef4e..d7d04df 100644 --- a/elkodon_pal/posix/src/macos/sched.rs +++ b/elkodon_pal/posix/src/macos/sched.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, dead_code)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/select.rs b/elkodon_pal/posix/src/macos/select.rs index 60e42a6..1fb4f67 100644 --- a/elkodon_pal/posix/src/macos/select.rs +++ b/elkodon_pal/posix/src/macos/select.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/semaphore.rs b/elkodon_pal/posix/src/macos/semaphore.rs index 4069779..65fff14 100644 --- a/elkodon_pal/posix/src/macos/semaphore.rs +++ b/elkodon_pal/posix/src/macos/semaphore.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/macos/settings.rs b/elkodon_pal/posix/src/macos/settings.rs index 887fe80..a346eaa 100644 --- a/elkodon_pal/posix/src/macos/settings.rs +++ b/elkodon_pal/posix/src/macos/settings.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub(crate) const MAX_FILE_NAME_LENGTH: usize = 255; pub(crate) const MAX_PATH_LENGTH: usize = 255; pub(crate) const SHM_STATE_DIRECTORY: &[u8] = elkodon_pal_settings::TEMP_DIRECTORY; diff --git a/elkodon_pal/posix/src/macos/signal.rs b/elkodon_pal/posix/src/macos/signal.rs index ce9bfad..1a20462 100644 --- a/elkodon_pal/posix/src/macos/signal.rs +++ b/elkodon_pal/posix/src/macos/signal.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] use crate::posix::types::*; diff --git a/elkodon_pal/posix/src/macos/socket.rs b/elkodon_pal/posix/src/macos/socket.rs index 276ff9a..2485677 100644 --- a/elkodon_pal/posix/src/macos/socket.rs +++ b/elkodon_pal/posix/src/macos/socket.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/stat.rs b/elkodon_pal/posix/src/macos/stat.rs index 5b16512..74d0324 100644 --- a/elkodon_pal/posix/src/macos/stat.rs +++ b/elkodon_pal/posix/src/macos/stat.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/stdio.rs b/elkodon_pal/posix/src/macos/stdio.rs index 6c28ab9..908aa2f 100644 --- a/elkodon_pal/posix/src/macos/stdio.rs +++ b/elkodon_pal/posix/src/macos/stdio.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/stdlib.rs b/elkodon_pal/posix/src/macos/stdlib.rs index ccc09fd..273c1cc 100644 --- a/elkodon_pal/posix/src/macos/stdlib.rs +++ b/elkodon_pal/posix/src/macos/stdlib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/string.rs b/elkodon_pal/posix/src/macos/string.rs index c5aa489..bbce857 100644 --- a/elkodon_pal/posix/src/macos/string.rs +++ b/elkodon_pal/posix/src/macos/string.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/support.rs b/elkodon_pal/posix/src/macos/support.rs index 9b7c798..84b9ac6 100644 --- a/elkodon_pal/posix/src/macos/support.rs +++ b/elkodon_pal/posix/src/macos/support.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub const POSIX_SUPPORT_ACL: bool = false; pub const POSIX_SUPPORT_NAMED_SEMAPHORE: bool = false; pub const POSIX_SUPPORT_PERSISTENT_SHARED_MEMORY: bool = false; diff --git a/elkodon_pal/posix/src/macos/time.rs b/elkodon_pal/posix/src/macos/time.rs index 7e95bee..f8e52ca 100644 --- a/elkodon_pal/posix/src/macos/time.rs +++ b/elkodon_pal/posix/src/macos/time.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/types.rs b/elkodon_pal/posix/src/macos/types.rs index e2f4e22..9856be4 100644 --- a/elkodon_pal/posix/src/macos/types.rs +++ b/elkodon_pal/posix/src/macos/types.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/macos/unistd.rs b/elkodon_pal/posix/src/macos/unistd.rs index c0b26ce..084f842 100644 --- a/elkodon_pal/posix/src/macos/unistd.rs +++ b/elkodon_pal/posix/src/macos/unistd.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/windows/acl.rs b/elkodon_pal/posix/src/windows/acl.rs index cdc1672..2b6e5d1 100644 --- a/elkodon_pal/posix/src/windows/acl.rs +++ b/elkodon_pal/posix/src/windows/acl.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/constants.rs b/elkodon_pal/posix/src/windows/constants.rs index 1d92a61..f79e139 100644 --- a/elkodon_pal/posix/src/windows/constants.rs +++ b/elkodon_pal/posix/src/windows/constants.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/windows/dirent.rs b/elkodon_pal/posix/src/windows/dirent.rs index 6a2b635..f2e3f21 100644 --- a/elkodon_pal/posix/src/windows/dirent.rs +++ b/elkodon_pal/posix/src/windows/dirent.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/errno.rs b/elkodon_pal/posix/src/windows/errno.rs index 00fd432..01c4072 100644 --- a/elkodon_pal/posix/src/windows/errno.rs +++ b/elkodon_pal/posix/src/windows/errno.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/fcntl.rs b/elkodon_pal/posix/src/windows/fcntl.rs index 75aa0f6..361595a 100644 --- a/elkodon_pal/posix/src/windows/fcntl.rs +++ b/elkodon_pal/posix/src/windows/fcntl.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/inet.rs b/elkodon_pal/posix/src/windows/inet.rs index 520c40e..48ebcf5 100644 --- a/elkodon_pal/posix/src/windows/inet.rs +++ b/elkodon_pal/posix/src/windows/inet.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/windows/mman.rs b/elkodon_pal/posix/src/windows/mman.rs index 2082767..11adb6e 100644 --- a/elkodon_pal/posix/src/windows/mman.rs +++ b/elkodon_pal/posix/src/windows/mman.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/mod.rs b/elkodon_pal/posix/src/windows/mod.rs index bd5d8d1..8110966 100644 --- a/elkodon_pal/posix/src/windows/mod.rs +++ b/elkodon_pal/posix/src/windows/mod.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub mod acl; pub mod constants; pub mod dirent; diff --git a/elkodon_pal/posix/src/windows/mqueue.rs b/elkodon_pal/posix/src/windows/mqueue.rs index 52844b8..8fc453b 100644 --- a/elkodon_pal/posix/src/windows/mqueue.rs +++ b/elkodon_pal/posix/src/windows/mqueue.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/pthread.rs b/elkodon_pal/posix/src/windows/pthread.rs index bcf816a..8f7709f 100644 --- a/elkodon_pal/posix/src/windows/pthread.rs +++ b/elkodon_pal/posix/src/windows/pthread.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/pwd.rs b/elkodon_pal/posix/src/windows/pwd.rs index 58612e2..8e233cd 100644 --- a/elkodon_pal/posix/src/windows/pwd.rs +++ b/elkodon_pal/posix/src/windows/pwd.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/resource.rs b/elkodon_pal/posix/src/windows/resource.rs index f4ce242..894daf1 100644 --- a/elkodon_pal/posix/src/windows/resource.rs +++ b/elkodon_pal/posix/src/windows/resource.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/sched.rs b/elkodon_pal/posix/src/windows/sched.rs index e14d99f..4590845 100644 --- a/elkodon_pal/posix/src/windows/sched.rs +++ b/elkodon_pal/posix/src/windows/sched.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, dead_code)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/select.rs b/elkodon_pal/posix/src/windows/select.rs index d0eb6c8..4656c09 100644 --- a/elkodon_pal/posix/src/windows/select.rs +++ b/elkodon_pal/posix/src/windows/select.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/semaphore.rs b/elkodon_pal/posix/src/windows/semaphore.rs index 2f910de..2ebabf5 100644 --- a/elkodon_pal/posix/src/windows/semaphore.rs +++ b/elkodon_pal/posix/src/windows/semaphore.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/settings.rs b/elkodon_pal/posix/src/windows/settings.rs index 15f4eff..b0c1885 100644 --- a/elkodon_pal/posix/src/windows/settings.rs +++ b/elkodon_pal/posix/src/windows/settings.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use windows_sys::Win32::Foundation::MAX_PATH; pub(crate) const MAX_PATH_LENGTH: usize = MAX_PATH as usize; diff --git a/elkodon_pal/posix/src/windows/signal.rs b/elkodon_pal/posix/src/windows/signal.rs index 1f0ae0c..e32ae18 100644 --- a/elkodon_pal/posix/src/windows/signal.rs +++ b/elkodon_pal/posix/src/windows/signal.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/socket.rs b/elkodon_pal/posix/src/windows/socket.rs index ccf47a5..20ffb32 100644 --- a/elkodon_pal/posix/src/windows/socket.rs +++ b/elkodon_pal/posix/src/windows/socket.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/stat.rs b/elkodon_pal/posix/src/windows/stat.rs index 872e8ce..3dbcf57 100644 --- a/elkodon_pal/posix/src/windows/stat.rs +++ b/elkodon_pal/posix/src/windows/stat.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/stdio.rs b/elkodon_pal/posix/src/windows/stdio.rs index 8840bb9..96ed41b 100644 --- a/elkodon_pal/posix/src/windows/stdio.rs +++ b/elkodon_pal/posix/src/windows/stdio.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/stdlib.rs b/elkodon_pal/posix/src/windows/stdlib.rs index ccc09fd..273c1cc 100644 --- a/elkodon_pal/posix/src/windows/stdlib.rs +++ b/elkodon_pal/posix/src/windows/stdlib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/windows/string.rs b/elkodon_pal/posix/src/windows/string.rs index c5aa489..bbce857 100644 --- a/elkodon_pal/posix/src/windows/string.rs +++ b/elkodon_pal/posix/src/windows/string.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] diff --git a/elkodon_pal/posix/src/windows/support.rs b/elkodon_pal/posix/src/windows/support.rs index e335018..3bb2bd1 100644 --- a/elkodon_pal/posix/src/windows/support.rs +++ b/elkodon_pal/posix/src/windows/support.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + pub const POSIX_SUPPORT_ACL: bool = false; pub const POSIX_SUPPORT_NAMED_SEMAPHORE: bool = false; pub const POSIX_SUPPORT_PERSISTENT_SHARED_MEMORY: bool = false; diff --git a/elkodon_pal/posix/src/windows/time.rs b/elkodon_pal/posix/src/windows/time.rs index 235be16..9e3ce42 100644 --- a/elkodon_pal/posix/src/windows/time.rs +++ b/elkodon_pal/posix/src/windows/time.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/types.rs b/elkodon_pal/posix/src/windows/types.rs index bc30550..68e02c7 100644 --- a/elkodon_pal/posix/src/windows/types.rs +++ b/elkodon_pal/posix/src/windows/types.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/unistd.rs b/elkodon_pal/posix/src/windows/unistd.rs index ea3b324..eb4d6ad 100644 --- a/elkodon_pal/posix/src/windows/unistd.rs +++ b/elkodon_pal/posix/src/windows/unistd.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_camel_case_types, non_snake_case)] #![allow(clippy::missing_safety_doc)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/win32_call.rs b/elkodon_pal/posix/src/windows/win32_call.rs index 704b58c..fe0569b 100644 --- a/elkodon_pal/posix/src/windows/win32_call.rs +++ b/elkodon_pal/posix/src/windows/win32_call.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use windows_sys::Win32::{ Foundation::{ ERROR_ACCESS_DENIED, ERROR_ALREADY_EXISTS, ERROR_ARENA_TRASHED, ERROR_BAD_COMMAND, diff --git a/elkodon_pal/posix/src/windows/win32_handle_translator.rs b/elkodon_pal/posix/src/windows/win32_handle_translator.rs index 671fd6e..6751ea0 100644 --- a/elkodon_pal/posix/src/windows/win32_handle_translator.rs +++ b/elkodon_pal/posix/src/windows/win32_handle_translator.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use windows_sys::Win32::{ Foundation::HANDLE, Networking::WinSock::SOCKADDR, diff --git a/elkodon_pal/posix/src/windows/win32_security_attributes.rs b/elkodon_pal/posix/src/windows/win32_security_attributes.rs index e5eca1a..e80dfa2 100644 --- a/elkodon_pal/posix/src/windows/win32_security_attributes.rs +++ b/elkodon_pal/posix/src/windows/win32_security_attributes.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(dead_code)] #![allow(unused_variables)] diff --git a/elkodon_pal/posix/src/windows/win32_udp_port_to_uds_name.rs b/elkodon_pal/posix/src/windows/win32_udp_port_to_uds_name.rs index 1d63f58..ecf4110 100644 --- a/elkodon_pal/posix/src/windows/win32_udp_port_to_uds_name.rs +++ b/elkodon_pal/posix/src/windows/win32_udp_port_to_uds_name.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use windows_sys::Win32::{ Foundation::{CloseHandle, GetLastError, ERROR_ALREADY_EXISTS, HANDLE}, Security::SECURITY_ATTRIBUTES, diff --git a/elkodon_pal/posix/tests/win32_security_attributes_tests.rs b/elkodon_pal/posix/tests/win32_security_attributes_tests.rs index 76aab4c..7f781c6 100644 --- a/elkodon_pal/posix/tests/win32_security_attributes_tests.rs +++ b/elkodon_pal/posix/tests/win32_security_attributes_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[cfg(target_os = "windows")] mod win32_security_attributes { use elkodon_bb_testing::assert_that; diff --git a/elkodon_pal/posix/tests/win32_select_tests.rs b/elkodon_pal/posix/tests/win32_select_tests.rs index a0cc7c0..d75ce16 100644 --- a/elkodon_pal/posix/tests/win32_select_tests.rs +++ b/elkodon_pal/posix/tests/win32_select_tests.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[cfg(target_os = "windows")] mod win32_select { use elkodon_bb_testing::assert_that; diff --git a/elkodon_pal/settings/src/lib.rs b/elkodon_pal/settings/src/lib.rs index bb9c5c7..4fc6ee8 100644 --- a/elkodon_pal/settings/src/lib.rs +++ b/elkodon_pal/settings/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![no_std] #[cfg(not(target_os = "windows"))] diff --git a/examples/examples/discovery/discovery.rs b/examples/examples/discovery/discovery.rs index 4966691..61a19ab 100644 --- a/examples/examples/discovery/discovery.rs +++ b/examples/examples/discovery/discovery.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use elkodon::prelude::*; fn main() -> Result<(), Box> { diff --git a/examples/examples/event/listener.rs b/examples/examples/event/listener.rs index 3f239b3..99c23ca 100644 --- a/examples/examples/event/listener.rs +++ b/examples/examples/event/listener.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::time::Duration; use elkodon::prelude::*; diff --git a/examples/examples/event/notifier.rs b/examples/examples/event/notifier.rs index 88368ce..5037415 100644 --- a/examples/examples/event/notifier.rs +++ b/examples/examples/event/notifier.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::time::Duration; use elkodon::prelude::*; diff --git a/examples/examples/publish_subscribe/publisher.rs b/examples/examples/publish_subscribe/publisher.rs index 1b9ce32..99e11cb 100644 --- a/examples/examples/publish_subscribe/publisher.rs +++ b/examples/examples/publish_subscribe/publisher.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::time::Duration; use elkodon::prelude::*; use transmission_data::TransmissionData; diff --git a/examples/examples/publish_subscribe/subscriber.rs b/examples/examples/publish_subscribe/subscriber.rs index 9b0a686..83f091f 100644 --- a/examples/examples/publish_subscribe/subscriber.rs +++ b/examples/examples/publish_subscribe/subscriber.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::time::Duration; use elkodon::prelude::*; use transmission_data::TransmissionData; diff --git a/examples/src/transmission_data.rs b/examples/src/transmission_data.rs index 714620d..7cc19d3 100644 --- a/examples/src/transmission_data.rs +++ b/examples/src/transmission_data.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2023 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #[derive(Debug)] #[repr(C)] pub struct TransmissionData { diff --git a/scripts/ci_test_commit_msg.sh b/scripts/ci_test_commit_msg.sh index 24443c1..5afb316 100755 --- a/scripts/ci_test_commit_msg.sh +++ b/scripts/ci_test_commit_msg.sh @@ -1,3 +1,15 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + #!/bin/bash RET_VAL=0 diff --git a/scripts/ci_test_only_use_assert_that_macro.sh b/scripts/ci_test_only_use_assert_that_macro.sh index ef1b1bd..c3eedd9 100755 --- a/scripts/ci_test_only_use_assert_that_macro.sh +++ b/scripts/ci_test_only_use_assert_that_macro.sh @@ -1,3 +1,15 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + #!/bin/bash cd $(git rev-parse --show-toplevel) diff --git a/scripts/ci_test_spdx_license_header.sh b/scripts/ci_test_spdx_license_header.sh index 280863a..3b27937 100755 --- a/scripts/ci_test_spdx_license_header.sh +++ b/scripts/ci_test_spdx_license_header.sh @@ -1,3 +1,15 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + #!/bin/bash cd $(git rev-parse --show-toplevel) diff --git a/scripts/elkodon_env.sh b/scripts/elkodon_env.sh index c261acc..5a3ed90 100755 --- a/scripts/elkodon_env.sh +++ b/scripts/elkodon_env.sh @@ -1,3 +1,15 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + #!/bin/bash # based on eclipse-iceoryx/iceoryx ice_env.sh diff --git a/scripts/generate-cov-report.sh b/scripts/generate-cov-report.sh index a330047..3ec709a 100755 --- a/scripts/generate-cov-report.sh +++ b/scripts/generate-cov-report.sh @@ -1,3 +1,15 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + #!/bin/bash COLOR_OFF='\033[0m' diff --git a/scripts/set_license_header.sh b/scripts/set_license_header.sh index 9236a6f..ec66c38 100755 --- a/scripts/set_license_header.sh +++ b/scripts/set_license_header.sh @@ -1,3 +1,15 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + #!/bin/bash cd $(git rev-parse --show-toplevel)