summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/daemon/angelbeats/LICENSE12
-rw-r--r--pttbbs/daemon/angelbeats/angelbeats.c14
-rw-r--r--pttbbs/daemon/logind/LICENSE12
-rw-r--r--pttbbs/daemon/logind/logind.c12
-rw-r--r--pttbbs/daemon/regmaild/LICENSE12
-rw-r--r--pttbbs/daemon/regmaild/regmaild.c14
6 files changed, 72 insertions, 4 deletions
diff --git a/pttbbs/daemon/angelbeats/LICENSE b/pttbbs/daemon/angelbeats/LICENSE
new file mode 100644
index 00000000..17cfd018
--- /dev/null
+++ b/pttbbs/daemon/angelbeats/LICENSE
@@ -0,0 +1,12 @@
+Copyright (C) 2010, Hung-Te Lin <piaip@csie.ntu.edu.tw>
+All rights reserved
+Distributed under BSD license (GPL compatible).
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
diff --git a/pttbbs/daemon/angelbeats/angelbeats.c b/pttbbs/daemon/angelbeats/angelbeats.c
index ec67ef31..55c65861 100644
--- a/pttbbs/daemon/angelbeats/angelbeats.c
+++ b/pttbbs/daemon/angelbeats/angelbeats.c
@@ -3,9 +3,20 @@
//
// Create: Hung-Te Lin <piaip@csie.org>
// Mon Jun 28 22:29:43 CST 2010
-//
+// --------------------------------------------------------------------------
// Copyright (C) 2010, Hung-Te Lin <piaip@csie.ntu.edu.tw>
// All rights reserved
+// Distributed under BSD license (GPL compatible).
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are met:
+// 1. Redistributions of source code must retain the above copyright notice,
+// this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+// --------------------------------------------------------------------------
+// TODO change to sort by activity
#include <stdio.h>
#include <stdlib.h>
@@ -43,6 +54,7 @@ static int verbose = 0;
typedef struct {
int uid;
int masters; // counter of who have this one as angel
+ time_t last_activity; // last known activity from master
char userid[IDLEN+1];
} AngelInfo;
diff --git a/pttbbs/daemon/logind/LICENSE b/pttbbs/daemon/logind/LICENSE
new file mode 100644
index 00000000..d88a404d
--- /dev/null
+++ b/pttbbs/daemon/logind/LICENSE
@@ -0,0 +1,12 @@
+Copyright (C) 2009, Hung-Te Lin <piaip@csie.ntu.edu.tw>
+All rights reserved
+Distributed under BSD license (GPL compatible).
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
diff --git a/pttbbs/daemon/logind/logind.c b/pttbbs/daemon/logind/logind.c
index 0ebc5d9b..5c2ebb46 100644
--- a/pttbbs/daemon/logind/logind.c
+++ b/pttbbs/daemon/logind/logind.c
@@ -4,9 +4,19 @@
// Create: Hung-Te Lin <piaip@csie.ntu.edu.tw>
// Contributors: wens, kcwu
// Initial Date: 2009/06/01
-//
+// --------------------------------------------------------------------------
// Copyright (C) 2009, Hung-Te Lin <piaip@csie.ntu.edu.tw>
// All rights reserved
+// Distributed under BSD license (GPL compatible).
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are met:
+// 1. Redistributions of source code must retain the above copyright notice,
+// this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+// --------------------------------------------------------------------------
// TODO:
// 1. [done] cache guest's usernum and check if too many guests online
diff --git a/pttbbs/daemon/regmaild/LICENSE b/pttbbs/daemon/regmaild/LICENSE
new file mode 100644
index 00000000..d88a404d
--- /dev/null
+++ b/pttbbs/daemon/regmaild/LICENSE
@@ -0,0 +1,12 @@
+Copyright (C) 2009, Hung-Te Lin <piaip@csie.ntu.edu.tw>
+All rights reserved
+Distributed under BSD license (GPL compatible).
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
diff --git a/pttbbs/daemon/regmaild/regmaild.c b/pttbbs/daemon/regmaild/regmaild.c
index 0b1fd16e..80edbfec 100644
--- a/pttbbs/daemon/regmaild/regmaild.c
+++ b/pttbbs/daemon/regmaild/regmaild.c
@@ -4,9 +4,19 @@
// sqlite portion from wens
// Create: Hung-Te Lin <piaip@csie.ntu.edu.tw>
// Initial Date: 2009/06/19
-//
+// --------------------------------------------------------------------------
// Copyright (C) 2009, Hung-Te Lin <piaip@csie.ntu.edu.tw>
// All rights reserved
+// Distributed under BSD license (GPL compatible).
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are met:
+// 1. Redistributions of source code must retain the above copyright notice,
+// this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+// --------------------------------------------------------------------------
// TODO:
@@ -22,8 +32,8 @@
#include <sys/resource.h>
#include <sys/wait.h>
-#include "common.h"
#include "pttstruct.h"
+#include "common.h"
///////////////////////////////////////////////////////////////////////
// EmailDB Common Section