From 586699ed8d6740f27b961a632d23770f74c13491 Mon Sep 17 00:00:00 2001 From: "Jessica Wong (Seattle)" Date: Thu, 5 Dec 2024 15:16:57 -0800 Subject: [PATCH] Add missing licensing headers --- examples/asynchronous_sleep.cpp | 14 ++++++++++++++ examples/synchronous_sleep.cpp | 14 ++++++++++++++ include/unifex/async_auto_reset_event.hpp | 16 +++++++++++++++- include/unifex/cleanup_adapt_stream.hpp | 15 ++++++++++++++- include/unifex/upon_done.hpp | 15 +++++++++++++++ include/unifex/upon_error.hpp | 15 +++++++++++++++ source/async_auto_reset_event.cpp | 15 ++++++++++++++- test/async_auto_reset_event_test.cpp | 15 ++++++++++++++- test/detach_on_cancel_test.cpp | 15 +++++++++++++++ test/filter_stream_test.cpp | 15 +++++++++++++++ test/type_list_test.cpp | 15 +++++++++++++++ test/upon_done_test.cpp | 15 +++++++++++++++ test/upon_error_test.cpp | 15 +++++++++++++++ test/when_all_range_test.cpp | 15 ++++++++++++++- 14 files changed, 204 insertions(+), 5 deletions(-) diff --git a/examples/asynchronous_sleep.cpp b/examples/asynchronous_sleep.cpp index 6e35acfdc..631bb3531 100644 --- a/examples/asynchronous_sleep.cpp +++ b/examples/asynchronous_sleep.cpp @@ -1,4 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include #include diff --git a/examples/synchronous_sleep.cpp b/examples/synchronous_sleep.cpp index db8daf0d1..dc7ec5013 100644 --- a/examples/synchronous_sleep.cpp +++ b/examples/synchronous_sleep.cpp @@ -1,4 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include #include diff --git a/include/unifex/async_auto_reset_event.hpp b/include/unifex/async_auto_reset_event.hpp index a342634be..756185cd8 100644 --- a/include/unifex/async_auto_reset_event.hpp +++ b/include/unifex/async_auto_reset_event.hpp @@ -1,5 +1,19 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* + +Copyright (c) Meta Platforms, Inc. and affiliates. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #pragma once #include diff --git a/include/unifex/cleanup_adapt_stream.hpp b/include/unifex/cleanup_adapt_stream.hpp index 0bfcb24c0..395127099 100644 --- a/include/unifex/cleanup_adapt_stream.hpp +++ b/include/unifex/cleanup_adapt_stream.hpp @@ -1,5 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* +Copyright (c) Meta Platforms, Inc. and affiliates. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #pragma once #include diff --git a/include/unifex/upon_done.hpp b/include/unifex/upon_done.hpp index bae13ba4a..b26065397 100644 --- a/include/unifex/upon_done.hpp +++ b/include/unifex/upon_done.hpp @@ -1,3 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #pragma once #include diff --git a/include/unifex/upon_error.hpp b/include/unifex/upon_error.hpp index b061a6cd2..619608b6c 100644 --- a/include/unifex/upon_error.hpp +++ b/include/unifex/upon_error.hpp @@ -1,3 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #pragma once #include diff --git a/source/async_auto_reset_event.cpp b/source/async_auto_reset_event.cpp index b9b68c28a..180ae9196 100644 --- a/source/async_auto_reset_event.cpp +++ b/source/async_auto_reset_event.cpp @@ -1,5 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* +Copyright (c) Meta Platforms, Inc. and affiliates. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include namespace unifex::_aare { diff --git a/test/async_auto_reset_event_test.cpp b/test/async_auto_reset_event_test.cpp index 3c14b0dfd..11f3c2b4e 100644 --- a/test/async_auto_reset_event_test.cpp +++ b/test/async_auto_reset_event_test.cpp @@ -1,5 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* +Copyright (c) Meta Platforms, Inc. and affiliates. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include #include diff --git a/test/detach_on_cancel_test.cpp b/test/detach_on_cancel_test.cpp index 4e0bc83b8..3e78f6c5c 100644 --- a/test/detach_on_cancel_test.cpp +++ b/test/detach_on_cancel_test.cpp @@ -1,3 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include #include #include diff --git a/test/filter_stream_test.cpp b/test/filter_stream_test.cpp index 1110a994b..ff8efa628 100644 --- a/test/filter_stream_test.cpp +++ b/test/filter_stream_test.cpp @@ -1,3 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include #include diff --git a/test/type_list_test.cpp b/test/type_list_test.cpp index 6ce2ad0e9..0519916ba 100644 --- a/test/type_list_test.cpp +++ b/test/type_list_test.cpp @@ -1,3 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include using namespace unifex; diff --git a/test/upon_done_test.cpp b/test/upon_done_test.cpp index 167018a99..07475fbab 100644 --- a/test/upon_done_test.cpp +++ b/test/upon_done_test.cpp @@ -1,3 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include #include diff --git a/test/upon_error_test.cpp b/test/upon_error_test.cpp index 1d5500162..f0e7d9d1f 100644 --- a/test/upon_error_test.cpp +++ b/test/upon_error_test.cpp @@ -1,3 +1,18 @@ +/* +Copyright (c) Meta Platforms, Inc. and affiliates. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include #include diff --git a/test/when_all_range_test.cpp b/test/when_all_range_test.cpp index 011d81f1f..6d6c893b6 100644 --- a/test/when_all_range_test.cpp +++ b/test/when_all_range_test.cpp @@ -1,5 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* +Copyright (c) Meta Platforms, Inc. and affiliates. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + */ #include #include