From 6a95a62b5d0428c985346214de3716c098b23e77 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Tue, 8 Jul 2025 15:33:04 +0200 Subject: [PATCH] Add license in the source code files --- chp1/syscalls/example1.c | 6 ++++++ chp2/fopenflags.c | 6 ++++++ chp2/fopenmode.c | 6 ++++++ chp2/fpread.c | 6 ++++++ chp2/fread.c | 6 ++++++ chp2/ftruncate.c | 6 ++++++ chp2/poll.c | 6 ++++++ chp2/select.c | 6 ++++++ chp2/select_regular_files.c | 6 ++++++ chp3/binarydata.c | 6 ++++++ chp3/input.c | 6 ++++++ chp4/blocks.c | 6 ++++++ chp4/inode.c | 6 ++++++ chp4/mmap.c | 6 ++++++ chp4/readv.c | 6 ++++++ chp4/writev.c | 6 ++++++ chp5/atexit.c | 6 ++++++ chp5/daemon.c | 6 ++++++ chp5/session.c | 6 ++++++ chp5/system.c | 6 ++++++ chp5/wait.c | 6 ++++++ chp6/affinity.c | 6 ++++++ chp6/nice.c | 6 ++++++ exercises/mycp/main.c | 6 ++++++ exercises/run_scripts/main.c | 6 ++++++ exercises/tree/main.c | 6 ++++++ exercises/tree/tree.c | 6 ++++++ exercises/tree/tree.h | 6 ++++++ 28 files changed, 168 insertions(+) diff --git a/chp1/syscalls/example1.c b/chp1/syscalls/example1.c index 0554f19..0f12254 100644 --- a/chp1/syscalls/example1.c +++ b/chp1/syscalls/example1.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp2/fopenflags.c b/chp2/fopenflags.c index 5beb87e..c364f01 100644 --- a/chp2/fopenflags.c +++ b/chp2/fopenflags.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp2/fopenmode.c b/chp2/fopenmode.c index 41aa3e7..7191f1a 100644 --- a/chp2/fopenmode.c +++ b/chp2/fopenmode.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp2/fpread.c b/chp2/fpread.c index 5714a44..a22ab52 100644 --- a/chp2/fpread.c +++ b/chp2/fpread.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp2/fread.c b/chp2/fread.c index 36d3eca..e2deef5 100644 --- a/chp2/fread.c +++ b/chp2/fread.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp2/ftruncate.c b/chp2/ftruncate.c index 47ba2d6..f0de363 100644 --- a/chp2/ftruncate.c +++ b/chp2/ftruncate.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include diff --git a/chp2/poll.c b/chp2/poll.c index c4338d7..dccffd4 100644 --- a/chp2/poll.c +++ b/chp2/poll.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp2/select.c b/chp2/select.c index ed685f0..1a10c91 100644 --- a/chp2/select.c +++ b/chp2/select.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp2/select_regular_files.c b/chp2/select_regular_files.c index 01df9b6..a6bce51 100644 --- a/chp2/select_regular_files.c +++ b/chp2/select_regular_files.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp3/binarydata.c b/chp3/binarydata.c index ce68460..9f1959f 100644 --- a/chp3/binarydata.c +++ b/chp3/binarydata.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include int main(void) diff --git a/chp3/input.c b/chp3/input.c index 8ea91d9..5c9ab72 100644 --- a/chp3/input.c +++ b/chp3/input.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include diff --git a/chp4/blocks.c b/chp4/blocks.c index af4e959..854442a 100644 --- a/chp4/blocks.c +++ b/chp4/blocks.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp4/inode.c b/chp4/inode.c index 1ac89db..31652f4 100644 --- a/chp4/inode.c +++ b/chp4/inode.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp4/mmap.c b/chp4/mmap.c index 789c026..5b8d427 100644 --- a/chp4/mmap.c +++ b/chp4/mmap.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp4/readv.c b/chp4/readv.c index 8088559..bfa98ec 100644 --- a/chp4/readv.c +++ b/chp4/readv.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp4/writev.c b/chp4/writev.c index 1d284aa..59e49ec 100644 --- a/chp4/writev.c +++ b/chp4/writev.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp5/atexit.c b/chp5/atexit.c index 9967300..bfc9adc 100644 --- a/chp5/atexit.c +++ b/chp5/atexit.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include diff --git a/chp5/daemon.c b/chp5/daemon.c index c697c5c..35f575a 100644 --- a/chp5/daemon.c +++ b/chp5/daemon.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp5/session.c b/chp5/session.c index 4cbc231..3fa96cc 100644 --- a/chp5/session.c +++ b/chp5/session.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #define _XOPEN_SOURCE 500 #include diff --git a/chp5/system.c b/chp5/system.c index 0c0203b..632d2cd 100644 --- a/chp5/system.c +++ b/chp5/system.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #define _XOPEN_SOURCE #include diff --git a/chp5/wait.c b/chp5/wait.c index 8480ffc..f6d6569 100644 --- a/chp5/wait.c +++ b/chp5/wait.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/chp6/affinity.c b/chp6/affinity.c index 66b722e..87482f3 100644 --- a/chp6/affinity.c +++ b/chp6/affinity.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #define _GNU_SOURCE #include #include diff --git a/chp6/nice.c b/chp6/nice.c index c4a0e87..18ea5be 100644 --- a/chp6/nice.c +++ b/chp6/nice.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/exercises/mycp/main.c b/exercises/mycp/main.c index 97134aa..a257f1c 100644 --- a/exercises/mycp/main.c +++ b/exercises/mycp/main.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include #include #include diff --git a/exercises/run_scripts/main.c b/exercises/run_scripts/main.c index 28db7da..62290c8 100644 --- a/exercises/run_scripts/main.c +++ b/exercises/run_scripts/main.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + /* This program executes a sequence of Bash scripts * in sequential order. Each script is run in a child * process, and the parent prints the exit status. diff --git a/exercises/tree/main.c b/exercises/tree/main.c index a1ad238..5002183 100644 --- a/exercises/tree/main.c +++ b/exercises/tree/main.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include "tree.h" #include #include diff --git a/exercises/tree/tree.c b/exercises/tree/tree.c index 00ab535..068ca5d 100644 --- a/exercises/tree/tree.c +++ b/exercises/tree/tree.c @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #include "tree.h" #include #include diff --git a/exercises/tree/tree.h b/exercises/tree/tree.h index dc513f7..c7b04ae 100644 --- a/exercises/tree/tree.h +++ b/exercises/tree/tree.h @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: MIT + * Copyright (c) 2025 Fabio Scotto di Santolo + */ + + #ifndef TREE_H #define TREE_H