summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-02-11 20:34:12 -0700
committerJens Axboe <axboe@kernel.dk>2020-02-11 20:34:12 -0700
commite50243577946e152fed91133f78dd79c1e5c1141 (patch)
tree2e67549a0e4ba7f77a0e2712d6f0b036284e55f6
parent17d1876ee286c04c66cf18a08fe7be5dd2d52adf (diff)
downloadliburing-e50243577946e152fed91133f78dd79c1e5c1141.tar.gz
liburing-e50243577946e152fed91133f78dd79c1e5c1141.tar.bz2
Add SPDX license identifiers
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--examples/io_uring-cp.c1
-rw-r--r--examples/io_uring-test.c1
-rw-r--r--examples/link-cp.c1
-rw-r--r--examples/ucontext-cp.c1
-rw-r--r--src/include/liburing.h1
-rw-r--r--src/include/liburing/barrier.h1
-rw-r--r--src/include/liburing/compat.h1
-rw-r--r--src/queue.c1
-rw-r--r--src/register.c1
-rw-r--r--src/setup.c1
-rw-r--r--src/syscall.c1
-rw-r--r--src/syscall.h1
-rw-r--r--test/232c93d07b74-test.c1
-rw-r--r--test/35fa71a030ca-test.c1
-rw-r--r--test/500f9fbadef8-test.c1
-rw-r--r--test/7ad0e4b2f83c-test.c1
-rw-r--r--test/8a9973408177-test.c1
-rw-r--r--test/917257daa0fe-test.c1
-rw-r--r--test/a0908ae19763-test.c1
-rw-r--r--test/a4c0b3decb33-test.c1
-rw-r--r--test/accept-link.c1
-rw-r--r--test/accept-reuse.c1
-rw-r--r--test/accept-test.c1
-rw-r--r--test/accept.c1
-rw-r--r--test/across-fork.c1
-rw-r--r--test/b19062a56726-test.c1
-rw-r--r--test/b5837bd5311d-test.c1
-rw-r--r--test/connect.c1
-rw-r--r--test/cq-full.c1
-rw-r--r--test/cq-overflow.c1
-rw-r--r--test/cq-peek-batch.c1
-rw-r--r--test/cq-ready.c1
-rw-r--r--test/cq-size.c1
-rw-r--r--test/d77a67ed5f27-test.c1
-rw-r--r--test/defer.c1
-rw-r--r--test/eeed8b54e0df-test.c1
-rw-r--r--test/eventfd-ring.c1
-rw-r--r--test/eventfd.c1
-rw-r--r--test/fadvise.c1
-rw-r--r--test/fallocate.c1
-rw-r--r--test/fc2a85cb02ef-test.c1
-rw-r--r--test/file-register.c1
-rw-r--r--test/file-update.c1
-rw-r--r--test/fixed-link.c1
-rw-r--r--test/fsync.c1
-rw-r--r--test/io-cancel.c1
-rw-r--r--test/io_uring_enter.c1
-rw-r--r--test/io_uring_register.c1
-rw-r--r--test/io_uring_setup.c1
-rw-r--r--test/link-timeout.c1
-rw-r--r--test/link.c1
-rw-r--r--test/link_drain.c1
-rw-r--r--test/madvise.c1
-rw-r--r--test/nop.c1
-rw-r--r--test/open-close.c1
-rw-r--r--test/openat2.c1
-rw-r--r--test/personality.c1
-rw-r--r--test/poll-cancel-ton.c1
-rw-r--r--test/poll-cancel.c1
-rw-r--r--test/poll-link.c1
-rw-r--r--test/poll-many.c1
-rw-r--r--test/poll-v-poll.c1
-rw-r--r--test/poll.c1
-rw-r--r--test/probe.c1
-rw-r--r--test/read-write.c1
-rw-r--r--test/ring-leak.c1
-rw-r--r--test/send_recv.c1
-rw-r--r--test/send_recvmsg.c1
-rw-r--r--test/shared-wq.c1
-rw-r--r--test/short-read.c1
-rw-r--r--test/socket-rw.c1
-rw-r--r--test/sq-full.c1
-rw-r--r--test/sq-space_left.c1
-rw-r--r--test/statx.c1
-rw-r--r--test/stdout.c1
-rw-r--r--test/submit-reuse.c1
-rw-r--r--test/teardowns.c1
-rw-r--r--test/timeout-overflow.c1
-rw-r--r--test/timeout.c1
79 files changed, 79 insertions, 0 deletions
diff --git a/examples/io_uring-cp.c b/examples/io_uring-cp.c
index 455ca72..cc7a227 100644
--- a/examples/io_uring-cp.c
+++ b/examples/io_uring-cp.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* gcc -Wall -O2 -D_GNU_SOURCE -o io_uring-cp io_uring-cp.c -luring
*/
diff --git a/examples/io_uring-test.c b/examples/io_uring-test.c
index 4f5ebf6..1da8407 100644
--- a/examples/io_uring-test.c
+++ b/examples/io_uring-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Simple app that demonstrates how to setup an io_uring interface,
* submit and complete IO against it, and then tear it down.
diff --git a/examples/link-cp.c b/examples/link-cp.c
index af80a2e..6fa54ac 100644
--- a/examples/link-cp.c
+++ b/examples/link-cp.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Very basic proof-of-concept for doing a copy with linked SQEs. Needs a
* bit of error handling and short read love.
diff --git a/examples/ucontext-cp.c b/examples/ucontext-cp.c
index d521e94..d588a14 100644
--- a/examples/ucontext-cp.c
+++ b/examples/ucontext-cp.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* gcc -Wall -O2 -D_GNU_SOURCE -o ucontext-cp ucontext-cp.c -luring
*/
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 2f1e968..30bee7f 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#ifndef LIB_URING_H
#define LIB_URING_H
diff --git a/src/include/liburing/barrier.h b/src/include/liburing/barrier.h
index aca308a..3df70ea 100644
--- a/src/include/liburing/barrier.h
+++ b/src/include/liburing/barrier.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#ifndef LIBURING_BARRIER_H
#define LIBURING_BARRIER_H
diff --git a/src/include/liburing/compat.h b/src/include/liburing/compat.h
index d322499..d10d7a8 100644
--- a/src/include/liburing/compat.h
+++ b/src/include/liburing/compat.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#ifndef LIBURING_COMPAT_H
#define LIBURING_COMPAT_H
diff --git a/src/queue.c b/src/queue.c
index ef2cc2b..ebe85ac 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
diff --git a/src/register.c b/src/register.c
index c179b8a..eb9af19 100644
--- a/src/register.c
+++ b/src/register.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
diff --git a/src/setup.c b/src/setup.c
index 3638d1b..f783b6a 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
diff --git a/src/syscall.c b/src/syscall.c
index 3bb5575..c41e099 100644
--- a/src/syscall.c
+++ b/src/syscall.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Will go away once libc support is there
*/
diff --git a/src/syscall.h b/src/syscall.h
index 7d56224..7e299d4 100644
--- a/src/syscall.h
+++ b/src/syscall.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#ifndef LIBURING_SYSCALL_H
#define LIBURING_SYSCALL_H
diff --git a/test/232c93d07b74-test.c b/test/232c93d07b74-test.c
index c398de6..fcf37e1 100644
--- a/test/232c93d07b74-test.c
+++ b/test/232c93d07b74-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Test case for socket read/write through IORING_OP_READV and
* IORING_OP_WRITEV, using both TCP and sockets and blocking and
diff --git a/test/35fa71a030ca-test.c b/test/35fa71a030ca-test.c
index 1573413..8fcc2d5 100644
--- a/test/35fa71a030ca-test.c
+++ b/test/35fa71a030ca-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <dirent.h>
diff --git a/test/500f9fbadef8-test.c b/test/500f9fbadef8-test.c
index b480944..46d40fc 100644
--- a/test/500f9fbadef8-test.c
+++ b/test/500f9fbadef8-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: Single depth submit+wait poll hang test
*
diff --git a/test/7ad0e4b2f83c-test.c b/test/7ad0e4b2f83c-test.c
index 1abde44..6fc6699 100644
--- a/test/7ad0e4b2f83c-test.c
+++ b/test/7ad0e4b2f83c-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
diff --git a/test/8a9973408177-test.c b/test/8a9973408177-test.c
index 25c0bee..d905c86 100644
--- a/test/8a9973408177-test.c
+++ b/test/8a9973408177-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/917257daa0fe-test.c b/test/917257daa0fe-test.c
index a5378a7..1fc821d 100644
--- a/test/917257daa0fe-test.c
+++ b/test/917257daa0fe-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <endian.h>
diff --git a/test/a0908ae19763-test.c b/test/a0908ae19763-test.c
index cacd70c..b24db1b 100644
--- a/test/a0908ae19763-test.c
+++ b/test/a0908ae19763-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <endian.h>
diff --git a/test/a4c0b3decb33-test.c b/test/a4c0b3decb33-test.c
index c7d0fec..eeecfc4 100644
--- a/test/a4c0b3decb33-test.c
+++ b/test/a4c0b3decb33-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <dirent.h>
diff --git a/test/accept-link.c b/test/accept-link.c
index 91dbc2b..759d980 100644
--- a/test/accept-link.c
+++ b/test/accept-link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/accept-reuse.c b/test/accept-reuse.c
index 5f3e19a..ea42c68 100644
--- a/test/accept-reuse.c
+++ b/test/accept-reuse.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <assert.h>
#include <liburing.h>
#include <netdb.h>
diff --git a/test/accept-test.c b/test/accept-test.c
index e3e89cd..d1a31bf 100644
--- a/test/accept-test.c
+++ b/test/accept-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: Check to see if accept handles addr and addrlen
*/
diff --git a/test/accept.c b/test/accept.c
index 3de975f..96af594 100644
--- a/test/accept.c
+++ b/test/accept.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Check that IORING_OP_ACCEPT works, and send some data across to verify we
* didn't get a junk fd.
diff --git a/test/across-fork.c b/test/across-fork.c
index 440d6f2..cb47c8e 100644
--- a/test/across-fork.c
+++ b/test/across-fork.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test sharing a ring across a fork
*/
diff --git a/test/b19062a56726-test.c b/test/b19062a56726-test.c
index 62d4645..27f3a08 100644
--- a/test/b19062a56726-test.c
+++ b/test/b19062a56726-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <endian.h>
diff --git a/test/b5837bd5311d-test.c b/test/b5837bd5311d-test.c
index 3758b6c..a8371a1 100644
--- a/test/b5837bd5311d-test.c
+++ b/test/b5837bd5311d-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: Check to see if wait_nr is being honored.
*/
diff --git a/test/connect.c b/test/connect.c
index 65f0471..96aac97 100644
--- a/test/connect.c
+++ b/test/connect.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Check that IORING_OP_CONNECT works, with and without other side
* being open.
diff --git a/test/cq-full.c b/test/cq-full.c
index 299e04f..52640be 100644
--- a/test/cq-full.c
+++ b/test/cq-full.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test CQ ring overflow
*
diff --git a/test/cq-overflow.c b/test/cq-overflow.c
index 9045b5b..680220e 100644
--- a/test/cq-overflow.c
+++ b/test/cq-overflow.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various CQ ring overflow tests
*
diff --git a/test/cq-peek-batch.c b/test/cq-peek-batch.c
index e0a765e..9861cda 100644
--- a/test/cq-peek-batch.c
+++ b/test/cq-peek-batch.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test CQ peek-batch
*
diff --git a/test/cq-ready.c b/test/cq-ready.c
index 1885c0c..083e351 100644
--- a/test/cq-ready.c
+++ b/test/cq-ready.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test CQ ready
*
diff --git a/test/cq-size.c b/test/cq-size.c
index 9b55322..6f2d249 100644
--- a/test/cq-size.c
+++ b/test/cq-size.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test CQ ring sizing
*/
diff --git a/test/d77a67ed5f27-test.c b/test/d77a67ed5f27-test.c
index 5f48b24..3fa45b5 100644
--- a/test/d77a67ed5f27-test.c
+++ b/test/d77a67ed5f27-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <stdio.h>
#include <unistd.h>
#include <string.h>
diff --git a/test/defer.c b/test/defer.c
index 9298112..ec78ee7 100644
--- a/test/defer.c
+++ b/test/defer.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/eeed8b54e0df-test.c b/test/eeed8b54e0df-test.c
index 84237d5..dd0d947 100644
--- a/test/eeed8b54e0df-test.c
+++ b/test/eeed8b54e0df-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: -EAGAIN handling
*
diff --git a/test/eventfd-ring.c b/test/eventfd-ring.c
index 274da49..c78bc86 100644
--- a/test/eventfd-ring.c
+++ b/test/eventfd-ring.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various nop tests
*
diff --git a/test/eventfd.c b/test/eventfd.c
index ca3b610..b5f05c7 100644
--- a/test/eventfd.c
+++ b/test/eventfd.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various nop tests
*
diff --git a/test/fadvise.c b/test/fadvise.c
index 3e1a1da..cb18adc 100644
--- a/test/fadvise.c
+++ b/test/fadvise.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: basic fadvise test
*/
diff --git a/test/fallocate.c b/test/fallocate.c
index 2083056..f925553 100644
--- a/test/fallocate.c
+++ b/test/fallocate.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring fallocate
*
diff --git a/test/fc2a85cb02ef-test.c b/test/fc2a85cb02ef-test.c
index 39f99df..bb8427d 100644
--- a/test/fc2a85cb02ef-test.c
+++ b/test/fc2a85cb02ef-test.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
// https://syzkaller.appspot.com/bug?id=1f2ecd7a23dba87e5ca3505ec44514a462cfe8c0
// autogenerated by syzkaller (https://github.com/google/syzkaller)
diff --git a/test/file-register.c b/test/file-register.c
index 2e7053f..88a2d0e 100644
--- a/test/file-register.c
+++ b/test/file-register.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various file registration tests
*
diff --git a/test/file-update.c b/test/file-update.c
index 32efa4a..761b059 100644
--- a/test/file-update.c
+++ b/test/file-update.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various file registration tests
*
diff --git a/test/fixed-link.c b/test/fixed-link.c
index 2ae7a59..ac6d8a0 100644
--- a/test/fixed-link.c
+++ b/test/fixed-link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/fsync.c b/test/fsync.c
index d0baa4a..839716a 100644
--- a/test/fsync.c
+++ b/test/fsync.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring fsync handling
*
diff --git a/test/io-cancel.c b/test/io-cancel.c
index da4fd62..75fbf43 100644
--- a/test/io-cancel.c
+++ b/test/io-cancel.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: Basic IO cancel test
*/
diff --git a/test/io_uring_enter.c b/test/io_uring_enter.c
index 65beca6..8a31452 100644
--- a/test/io_uring_enter.c
+++ b/test/io_uring_enter.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* io_uring_enter.c
*
diff --git a/test/io_uring_register.c b/test/io_uring_register.c
index fe6b3e0..e4c51f9 100644
--- a/test/io_uring_register.c
+++ b/test/io_uring_register.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* io_uring_register.c
*
diff --git a/test/io_uring_setup.c b/test/io_uring_setup.c
index b28d86a..fe366ef 100644
--- a/test/io_uring_setup.c
+++ b/test/io_uring_setup.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* io_uring_setup.c
*
diff --git a/test/link-timeout.c b/test/link-timeout.c
index 473e23f..d22d515 100644
--- a/test/link-timeout.c
+++ b/test/link-timeout.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various linked timeout cases
*
diff --git a/test/link.c b/test/link.c
index 6c8ae09..d900713 100644
--- a/test/link.c
+++ b/test/link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various linked sqe tests
*
diff --git a/test/link_drain.c b/test/link_drain.c
index ed6e874..800ac88 100644
--- a/test/link_drain.c
+++ b/test/link_drain.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring link io with drain io
*
diff --git a/test/madvise.c b/test/madvise.c
index da788fc..1b11092 100644
--- a/test/madvise.c
+++ b/test/madvise.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: basic madvise test
*/
diff --git a/test/nop.c b/test/nop.c
index 45e65e4..efa3215 100644
--- a/test/nop.c
+++ b/test/nop.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various nop tests
*
diff --git a/test/open-close.c b/test/open-close.c
index fdd7403..ee564a7 100644
--- a/test/open-close.c
+++ b/test/open-close.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various openat(2) tests
*
diff --git a/test/openat2.c b/test/openat2.c
index 462bc9b..197821a 100644
--- a/test/openat2.c
+++ b/test/openat2.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various openat(2) tests
*
diff --git a/test/personality.c b/test/personality.c
index 1d08473..9e99561 100644
--- a/test/personality.c
+++ b/test/personality.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test if personalities work
*
diff --git a/test/poll-cancel-ton.c b/test/poll-cancel-ton.c
index eb3b47b..c963bd0 100644
--- a/test/poll-cancel-ton.c
+++ b/test/poll-cancel-ton.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test massive amounts of poll with cancel
*
diff --git a/test/poll-cancel.c b/test/poll-cancel.c
index d85113a..eeabadf 100644
--- a/test/poll-cancel.c
+++ b/test/poll-cancel.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring poll cancel handling
*
diff --git a/test/poll-link.c b/test/poll-link.c
index 795e04a..bd027fa 100644
--- a/test/poll-link.c
+++ b/test/poll-link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/poll-many.c b/test/poll-many.c
index afde491..cc12db0 100644
--- a/test/poll-many.c
+++ b/test/poll-many.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test many files being polled for
*
diff --git a/test/poll-v-poll.c b/test/poll-v-poll.c
index 62cd486..61d40dd 100644
--- a/test/poll-v-poll.c
+++ b/test/poll-v-poll.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring poll handling
*
diff --git a/test/poll.c b/test/poll.c
index 1ddcf3d..92e3524 100644
--- a/test/poll.c
+++ b/test/poll.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test io_uring poll handling
*
diff --git a/test/probe.c b/test/probe.c
index b85b089..8759db7 100644
--- a/test/probe.c
+++ b/test/probe.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test IORING_REGISTER_PROBE
*/
diff --git a/test/read-write.c b/test/read-write.c
index e36dfbc..c3c10f9 100644
--- a/test/read-write.c
+++ b/test/read-write.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: basic read/write tests with buffered, O_DIRECT, and SQPOLL
*/
diff --git a/test/ring-leak.c b/test/ring-leak.c
index ca18642..1dfe7a4 100644
--- a/test/ring-leak.c
+++ b/test/ring-leak.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Based on description from Al Viro - this demonstrates a leak of the
* io_uring instance, by sending the io_uring fd over a UNIX socket.
diff --git a/test/send_recv.c b/test/send_recv.c
index 9c9b9b8..2455163 100644
--- a/test/send_recv.c
+++ b/test/send_recv.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Simple test case showing using send and recv through io_uring
*/
diff --git a/test/send_recvmsg.c b/test/send_recvmsg.c
index 7449916..b208749 100644
--- a/test/send_recvmsg.c
+++ b/test/send_recvmsg.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Simple test case showing using sendmsg and recvmsg through io_uring
*/
diff --git a/test/shared-wq.c b/test/shared-wq.c
index 1d2f8a5..9f97cbf 100644
--- a/test/shared-wq.c
+++ b/test/shared-wq.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test wq sharing
*/
diff --git a/test/short-read.c b/test/short-read.c
index 357078f..94a148f 100644
--- a/test/short-read.c
+++ b/test/short-read.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/test/socket-rw.c b/test/socket-rw.c
index 1ace4b8..54ceceb 100644
--- a/test/socket-rw.c
+++ b/test/socket-rw.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Check that a readv on a socket queued before a writev doesn't hang
* the processing.
diff --git a/test/sq-full.c b/test/sq-full.c
index cc91477..f3d35b4 100644
--- a/test/sq-full.c
+++ b/test/sq-full.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test SQ queue full condition
*
diff --git a/test/sq-space_left.c b/test/sq-space_left.c
index 81324b1..d7baeba 100644
--- a/test/sq-space_left.c
+++ b/test/sq-space_left.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: test SQ queue space left
*
diff --git a/test/statx.c b/test/statx.c
index a1d97b2..3163540 100644
--- a/test/statx.c
+++ b/test/statx.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various statx(2) tests
*
diff --git a/test/stdout.c b/test/stdout.c
index ddf1f33..440ea20 100644
--- a/test/stdout.c
+++ b/test/stdout.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: check that STDOUT write works
*/
diff --git a/test/submit-reuse.c b/test/submit-reuse.c
index ad50919..3b3a357 100644
--- a/test/submit-reuse.c
+++ b/test/submit-reuse.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Test reads that will punt to blocking context, with immediate overwrite
* of iovec->iov_base to NULL. If the kernel doesn't properly handle
diff --git a/test/teardowns.c b/test/teardowns.c
index 189fcc7..4e10b28 100644
--- a/test/teardowns.c
+++ b/test/teardowns.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/timeout-overflow.c b/test/timeout-overflow.c
index 5f34c10..aef394b 100644
--- a/test/timeout-overflow.c
+++ b/test/timeout-overflow.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run timeout overflow test
*
diff --git a/test/timeout.c b/test/timeout.c
index 8ae8aa3..159e4bf 100644
--- a/test/timeout.c
+++ b/test/timeout.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Description: run various timeout tests
*