From 4fe996c2e7f157d521b5c8732e8b80e03bd25ff0 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Tue, 27 Feb 2018 12:16:48 +1030 Subject: misc: Replace license blurb with kernel-style SPDX markers This was roughly achieved by the following shell script: $ git ls-files | grep '\.[ch]p*$' | while read F; do EXT=${F##*.}; cat spdx.$EXT <(sed '/^\/\*$/,/^ \*\/$/d' $F) > ${F}.tmp; mv ${F}.tmp $F; done With the following context: $ cat spdx.c // SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2018 IBM Corp. $ cat spdx.h /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright (C) 2018 IBM Corp. */ $ ls -l spdx.* -rw-r--r-- 1 andrew andrew 71 Feb 27 12:02 spdx.c lrwxrwxrwx 1 andrew andrew 6 Feb 27 12:02 spdx.cpp -> spdx.c -rw-r--r-- 1 andrew andrew 77 Feb 27 12:02 spdx.h lrwxrwxrwx 1 andrew andrew 6 Feb 27 12:02 spdx.hpp -> spdx.h The `sed` invocation catches a lot of function documentation, so the hunks were manually added to avoid removing information that we want to keep. Change-Id: I63e49ca2593aa0db0568c7a63bfdead388642e76 Signed-off-by: Andrew Jeffery --- test/bmc_event_ack_v2.c | 20 ++------------------ test/close_window_v2.c | 20 ++------------------ test/copy_flash.c | 20 ++------------------ test/create_oversize_window.c | 20 ++------------------ test/create_read_window_v2.c | 20 ++------------------ test/create_write_window_v2.c | 20 ++------------------ test/create_zero_size_window.c | 20 ++------------------ test/erase_flash.c | 20 ++------------------ test/get_flash_info_v2.c | 20 ++------------------ test/get_mbox_info_v2.c | 20 ++------------------ test/get_mbox_info_v2_timeout.c | 20 ++------------------ test/implicit_flush.c | 20 ++------------------ test/invalid_command.c | 20 ++------------------ test/mark_read_dirty.c | 20 ++------------------ test/mark_write_dirty_v2.c | 20 ++------------------ test/mark_write_erased_v2.c | 20 ++------------------ test/mbox.c | 20 ++------------------ test/mbox.h | 20 ++------------------ test/read_window_cycle.c | 20 ++------------------ test/read_window_mark_write_erased.c | 20 ++------------------ test/read_window_write_flush.c | 20 ++------------------ test/request_high_version.c | 20 ++------------------ test/request_low_version.c | 20 ++------------------ test/reset_state.c | 20 ++------------------ test/sanity.c | 20 ++------------------ test/sequence_numbers.c | 20 ++------------------ test/system.c | 20 ++------------------ test/system.h | 20 ++------------------ test/tmpf.c | 20 ++------------------ test/tmpf.h | 20 ++------------------ test/vpnor/create_pnor_partition_table.cpp | 20 ++------------------ test/write_flash.c | 20 ++------------------ test/write_flush_v2.c | 20 ++------------------ test/write_window_dirty_erase.c | 20 ++------------------ 34 files changed, 68 insertions(+), 612 deletions(-) (limited to 'test') diff --git a/test/bmc_event_ack_v2.c b/test/bmc_event_ack_v2.c index 7bfae6d..3d4cffd 100644 --- a/test/bmc_event_ack_v2.c +++ b/test/bmc_event_ack_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include diff --git a/test/close_window_v2.c b/test/close_window_v2.c index 40d71ac..0e3dd55 100644 --- a/test/close_window_v2.c +++ b/test/close_window_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/copy_flash.c b/test/copy_flash.c index d39ef93..b8beb21 100644 --- a/test/copy_flash.c +++ b/test/copy_flash.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include diff --git a/test/create_oversize_window.c b/test/create_oversize_window.c index 713c62b..c60b19c 100644 --- a/test/create_oversize_window.c +++ b/test/create_oversize_window.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/create_read_window_v2.c b/test/create_read_window_v2.c index 34d6727..6085f96 100644 --- a/test/create_read_window_v2.c +++ b/test/create_read_window_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/create_write_window_v2.c b/test/create_write_window_v2.c index 3682b72..2ec59d6 100644 --- a/test/create_write_window_v2.c +++ b/test/create_write_window_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/create_zero_size_window.c b/test/create_zero_size_window.c index d867d46..4f26cd7 100644 --- a/test/create_zero_size_window.c +++ b/test/create_zero_size_window.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/erase_flash.c b/test/erase_flash.c index fa8c92c..376b7d5 100644 --- a/test/erase_flash.c +++ b/test/erase_flash.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include diff --git a/test/get_flash_info_v2.c b/test/get_flash_info_v2.c index 38af007..ccb1473 100644 --- a/test/get_flash_info_v2.c +++ b/test/get_flash_info_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/get_mbox_info_v2.c b/test/get_mbox_info_v2.c index 3a86f94..2149737 100644 --- a/test/get_mbox_info_v2.c +++ b/test/get_mbox_info_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/get_mbox_info_v2_timeout.c b/test/get_mbox_info_v2_timeout.c index 49cdfb8..8587dfe 100644 --- a/test/get_mbox_info_v2_timeout.c +++ b/test/get_mbox_info_v2_timeout.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/implicit_flush.c b/test/implicit_flush.c index 57676b8..a09b034 100644 --- a/test/implicit_flush.c +++ b/test/implicit_flush.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include diff --git a/test/invalid_command.c b/test/invalid_command.c index 80ee9e2..d277551 100644 --- a/test/invalid_command.c +++ b/test/invalid_command.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/mark_read_dirty.c b/test/mark_read_dirty.c index 9be35a4..36e14bd 100644 --- a/test/mark_read_dirty.c +++ b/test/mark_read_dirty.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/mark_write_dirty_v2.c b/test/mark_write_dirty_v2.c index 9993667..2ea12ae 100644 --- a/test/mark_write_dirty_v2.c +++ b/test/mark_write_dirty_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/mark_write_erased_v2.c b/test/mark_write_erased_v2.c index 46027e6..09efc2a 100644 --- a/test/mark_write_erased_v2.c +++ b/test/mark_write_erased_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include diff --git a/test/mbox.c b/test/mbox.c index c3b3574..3dc1611 100644 --- a/test/mbox.c +++ b/test/mbox.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #define _GNU_SOURCE /* fallocate */ #include diff --git a/test/mbox.h b/test/mbox.h index 929ca22..5b89790 100644 --- a/test/mbox.h +++ b/test/mbox.h @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +/* SPDX-License-Identifier: Apache-2.0 */ +/* Copyright (C) 2018 IBM Corp. */ #ifndef TEST_MBOX_H #define TEST_MBOX_H diff --git a/test/read_window_cycle.c b/test/read_window_cycle.c index e1d1b48..c2f8920 100644 --- a/test/read_window_cycle.c +++ b/test/read_window_cycle.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/read_window_mark_write_erased.c b/test/read_window_mark_write_erased.c index 49cb4b4..7daf9a1 100644 --- a/test/read_window_mark_write_erased.c +++ b/test/read_window_mark_write_erased.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/read_window_write_flush.c b/test/read_window_write_flush.c index 357a132..01bbba4 100644 --- a/test/read_window_write_flush.c +++ b/test/read_window_write_flush.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/request_high_version.c b/test/request_high_version.c index 679211c..b85e63f 100644 --- a/test/request_high_version.c +++ b/test/request_high_version.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/request_low_version.c b/test/request_low_version.c index 9f26e72..5f003f4 100644 --- a/test/request_low_version.c +++ b/test/request_low_version.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/reset_state.c b/test/reset_state.c index 3b2c109..b110f44 100644 --- a/test/reset_state.c +++ b/test/reset_state.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/sanity.c b/test/sanity.c index f96c35b..3c573ec 100644 --- a/test/sanity.c +++ b/test/sanity.c @@ -1,21 +1,5 @@ -/* - * Mailbox Daemon Implementation - * - * Copyright 2018 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. int main(void) { #ifdef NDEBUG diff --git a/test/sequence_numbers.c b/test/sequence_numbers.c index be95d87..3d7d6e9 100644 --- a/test/sequence_numbers.c +++ b/test/sequence_numbers.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include diff --git a/test/system.c b/test/system.c index 2068fb9..24fbcdc 100644 --- a/test/system.c +++ b/test/system.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include diff --git a/test/system.h b/test/system.h index a489e51..a72fc3c 100644 --- a/test/system.h +++ b/test/system.h @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +/* SPDX-License-Identifier: Apache-2.0 */ +/* Copyright (C) 2018 IBM Corp. */ #ifndef TEST_SYSTEM_H #define TEST_SYSTEM_H diff --git a/test/tmpf.c b/test/tmpf.c index e9cc558..483231b 100644 --- a/test/tmpf.c +++ b/test/tmpf.c @@ -1,21 +1,5 @@ -/* - * Mailbox Daemon Temporary File helpers - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #define _GNU_SOURCE #include diff --git a/test/tmpf.h b/test/tmpf.h index cb1bda4..9232e3e 100644 --- a/test/tmpf.h +++ b/test/tmpf.h @@ -1,21 +1,5 @@ -/* - * Mailbox Daemon Temporary File helpers - * - * Copyright 2017 IBM - * - * 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. - * - */ +/* SPDX-License-Identifier: Apache-2.0 */ +/* Copyright (C) 2018 IBM Corp. */ #ifndef MBOX_TEST_UTILS_H #define MBOX_TEST_UTILS_H diff --git a/test/vpnor/create_pnor_partition_table.cpp b/test/vpnor/create_pnor_partition_table.cpp index b3475d0..12dd2e6 100644 --- a/test/vpnor/create_pnor_partition_table.cpp +++ b/test/vpnor/create_pnor_partition_table.cpp @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2018 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include "pnor_partition_table.hpp" #include "config.h" #include diff --git a/test/write_flash.c b/test/write_flash.c index 6a92d4b..4828cdd 100644 --- a/test/write_flash.c +++ b/test/write_flash.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include diff --git a/test/write_flush_v2.c b/test/write_flush_v2.c index 63cc666..c762a76 100644 --- a/test/write_flush_v2.c +++ b/test/write_flush_v2.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include diff --git a/test/write_window_dirty_erase.c b/test/write_window_dirty_erase.c index c29c095..03e7d38 100644 --- a/test/write_window_dirty_erase.c +++ b/test/write_window_dirty_erase.c @@ -1,21 +1,5 @@ -/* - * MBox Daemon Test File - * - * Copyright 2017 IBM - * - * 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. - * - */ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) 2018 IBM Corp. #include #include -- cgit v1.2.1