Skip to content

Commit

Permalink
add license statements
Browse files Browse the repository at this point in the history
Add a copy of the GPLv2 as well as file header comments to all source
files.

Signed-off-by: Nicolai Stange <[email protected]>
  • Loading branch information
nicstange committed Feb 20, 2019
1 parent 0533a14 commit feab1f5
Show file tree
Hide file tree
Showing 18 changed files with 645 additions and 0 deletions.
339 changes: 339 additions & 0 deletions COPYING

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions heap.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
Expand Down
18 changes: 18 additions & 0 deletions heap.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef _HEAP_H
#define _HEAP_H

Expand Down
18 changes: 18 additions & 0 deletions meminfo-stats.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#include <stdio.h>
#include <errno.h>
#include <ctype.h>
Expand Down
18 changes: 18 additions & 0 deletions meminfo-stats.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef _MEMINFO_STATS_H
#define _MEMINFO_STATS_H

Expand Down
18 changes: 18 additions & 0 deletions pgc.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#define _GNU_SOURCE
#include <unistd.h>
#include <getopt.h>
Expand Down
18 changes: 18 additions & 0 deletions rbtree.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#include <assert.h>
#include "rbtree.h"

Expand Down
18 changes: 18 additions & 0 deletions rbtree.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef _RBTREE_H
#define _RBTREE_H

Expand Down
18 changes: 18 additions & 0 deletions resident-keeper.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#define _GNU_SOURCE
#include <sys/types.h>
#include <unistd.h>
Expand Down
18 changes: 18 additions & 0 deletions resident-keeper.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef _RESIDENT_KEEPER_H
#define _RESIDENT_KEEPER_H

Expand Down
18 changes: 18 additions & 0 deletions sigbus-fixup.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#include <signal.h>
#include <stddef.h>
#include "sigbus-fixup.h"
Expand Down
18 changes: 18 additions & 0 deletions sigbus-fixup.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef _SIGBUS_FIXUP
#define _SIGBUS_FIXUP

Expand Down
18 changes: 18 additions & 0 deletions transient-pager.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#define _GNU_SOURCE
#include <time.h>
#include <unistd.h>
Expand Down
18 changes: 18 additions & 0 deletions transient-pager.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef _TRANSIENT_PAGER_H
#define _TRANSIENT_PAGER_H

Expand Down
18 changes: 18 additions & 0 deletions util.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#include "util.h"

unsigned long ts_diff_ms(struct timespec *start, struct timespec *end)
Expand Down
18 changes: 18 additions & 0 deletions util.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef _UTIL_H
#define _UTIL_H

Expand Down
18 changes: 18 additions & 0 deletions victim-checker.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
Expand Down
18 changes: 18 additions & 0 deletions victim-checker.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 SUSE LLC
*
* This file is part of pgc.
*
* pgc 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; version 2.
*
* pgc 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 pgc. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef _VICTIM_CHECKER_H
#define _VICTIM_CHECKER_H

Expand Down

0 comments on commit feab1f5

Please sign in to comment.