summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2013-12-26 12:14:55 +0100
committerOlivier Gayot <duskcoder@gmail.com>2014-01-18 13:44:36 +0100
commit5e7842a056f7e99faadc68857a34f4f7cd307898 (patch)
tree322e47e8b0b84fe5ca26cbd88eeaa9c2b0a0e6e0
parent6777f668d8aaf178bcbdd23bb7ecb742be3ffcc7 (diff)
rb: add a header mentionning the GPL license in every source file
-rw-r--r--Makefile16
-rw-r--r--README.md3
-rw-r--r--rb.h18
-rw-r--r--rb_str.h18
-rw-r--r--src/rb.c18
-rw-r--r--src/rb_str.c18
6 files changed, 91 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 98d1a73..af1ebc7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,19 @@
+# Copyright (C) 2013 Olivier Gayot
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
CC ?= gcc
CFLAGS += -W -Wall -std=c99 -Wextra
CFLAGS += -I./
diff --git a/README.md b/README.md
index 39d78b6..b35ccc6 100644
--- a/README.md
+++ b/README.md
@@ -2,3 +2,6 @@ ring_buffer
===========
A ready to use library meant to deal with ring buffers.
+
+This library is free software covered by the GPL license v2. You should
+read the LICENSE file to understand what is implied.
diff --git a/rb.h b/rb.h
index 8a8eb0e..1483977 100644
--- a/rb.h
+++ b/rb.h
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2013 Olivier Gayot
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
#ifndef RING_BUFFER_H
#define RING_BUFFER_H
diff --git a/rb_str.h b/rb_str.h
index bebca5e..6931868 100644
--- a/rb_str.h
+++ b/rb_str.h
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2013 Olivier Gayot
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
#ifndef RB_STR_H
#define RB_STR_H
diff --git a/src/rb.c b/src/rb.c
index d8a801c..dec2082 100644
--- a/src/rb.c
+++ b/src/rb.c
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2013 Olivier Gayot
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
#include <stdlib.h>
#include <string.h>
diff --git a/src/rb_str.c b/src/rb_str.c
index f6b3878..13b911d 100644
--- a/src/rb_str.c
+++ b/src/rb_str.c
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2013 Olivier Gayot
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
#include <malloc.h>
#include "rb_str.h"