summaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/io')
-rw-r--r--src/io/cxxstdio.cpp18
-rw-r--r--src/io/line_test.cpp20
-rw-r--r--src/io/lock.hpp2
-rw-r--r--src/io/read_test.cpp20
-rw-r--r--src/io/write_test.cpp20
5 files changed, 80 insertions, 0 deletions
diff --git a/src/io/cxxstdio.cpp b/src/io/cxxstdio.cpp
index aa603e4..fbfdd46 100644
--- a/src/io/cxxstdio.cpp
+++ b/src/io/cxxstdio.cpp
@@ -1,3 +1,21 @@
#include "cxxstdio.hpp"
+// cxxstdio.cpp - pass C++ types through scanf/printf
+//
+// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
+//
+// This file is part of The Mana World (Athena server)
+//
+// 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 3 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, see <http://www.gnu.org/licenses/>.
#include "../poison.hpp"
diff --git a/src/io/line_test.cpp b/src/io/line_test.cpp
index df8a0d3..feee1fb 100644
--- a/src/io/line_test.cpp
+++ b/src/io/line_test.cpp
@@ -1,9 +1,29 @@
#include "line.hpp"
+// io/line_test.cpp - Testsuite for input from files, line-by-line
+//
+// Copyright © 2014 Ben Longbons <b.r.longbons@gmail.com>
+//
+// This file is part of The Mana World (Athena server)
+//
+// 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 3 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, see <http://www.gnu.org/licenses/>.
#include <gtest/gtest.h>
#include "../strings/zstring.hpp"
+#include "../poison.hpp"
+
static
io::FD string_pipe(ZString sz)
{
diff --git a/src/io/lock.hpp b/src/io/lock.hpp
index b5052cf..b879da5 100644
--- a/src/io/lock.hpp
+++ b/src/io/lock.hpp
@@ -19,6 +19,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
+# include "../sanity.hpp"
+
# include "write.hpp"
# include "../strings/rstring.hpp"
diff --git a/src/io/read_test.cpp b/src/io/read_test.cpp
index 5d287dd..87f95ba 100644
--- a/src/io/read_test.cpp
+++ b/src/io/read_test.cpp
@@ -1,9 +1,29 @@
#include "read.hpp"
+// io/read_test.cpp - Testsuite for input from files
+//
+// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
+//
+// This file is part of The Mana World (Athena server)
+//
+// 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 3 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, see <http://www.gnu.org/licenses/>.
#include <gtest/gtest.h>
#include "../strings/zstring.hpp"
+#include "../poison.hpp"
+
static
io::FD string_pipe(ZString sz)
{
diff --git a/src/io/write_test.cpp b/src/io/write_test.cpp
index f703850..ae8eccd 100644
--- a/src/io/write_test.cpp
+++ b/src/io/write_test.cpp
@@ -1,4 +1,22 @@
#include "write.hpp"
+// io/write_test.cpp - Testsuite for output to files
+//
+// Copyright © 2013 Ben Longbons <b.r.longbons@gmail.com>
+//
+// This file is part of The Mana World (Athena server)
+//
+// 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 3 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, see <http://www.gnu.org/licenses/>.
#include <gtest/gtest.h>
@@ -9,6 +27,8 @@
#include "../strings/mstring.hpp"
#include "../strings/xstring.hpp"
+#include "../poison.hpp"
+
static
io::FD pipew(io::FD& rfd)
{